1 include config-host.mak
3 all: requirements
info build
6 @which xsltproc
&>/dev
/null ||
( echo
; echo
"Please install libxslt2"; \
10 @echo
"Building OpenBIOS for $(TARGETS)"
13 @echo
"Cleaning up..."
14 @for
dir in
$(ODIRS
); do \
15 $(MAKE
) -C
$$dir clean; \
19 @for
dir in
$(ODIRS
); do \
20 $(MAKE
) -C
$$dir > $$dir/build.log
2>&1 && echo
"ok." || \
21 ( echo
"error:"; tail
-15 $$dir/build.log
; exit
1 ) \
24 SUBDIR_RULES
=$(patsubst %,subdir-
%, $(TARGETS
))
25 SUBDIR_MAKEFLAGS
=$(if
$(V
),,--no-print-directory
)
27 quiet-command
= $(if
$(V
),$1,$(if
$(2),@echo
$2 && $1, @
$1))
29 build-verbose
: start-build
$(SUBDIR_RULES
)
32 $(call quiet-command
,$(MAKE
) $(SUBDIR_MAKEFLAGS
) -C obj-
$* V
="$(V)" all,)
39 @for
dir in
$(ODIRS
); do \
40 $$dir/openbios-unix
$$dir/openbios-unix.dict
; \
44 # The following two targets will only work on x86 so far.
46 $(ODIR
)/openbios.iso
: $(ODIR
)/openbios.multiboot
$(ODIR
)/openbios-x86.dict
47 @mkisofs
-input-charset UTF-8
-r
-b boot
/grub
/stage2_eltorito
-no-emul-boot \
48 -boot-load-size
4 -boot-info-table
-o
$@ utils
/iso
$^
50 runiso
: $(ODIR
)/openbios.iso