1 ODIRS
=$(wildcard obj-
*)
2 TARGETS
=$(subst obj-
,,$(ODIRS
))
4 all: requirements
info build
7 @which xsltproc
&>/dev
/null ||
( echo
; echo
"Please install libxslt2"; \
11 @echo
"Building OpenBIOS for $(TARGETS)"
14 @echo
"Cleaning up..."
15 @for
dir in
$(ODIRS
); do \
16 $(MAKE
) -C
$$dir clean; \
21 @for
dir in
$(ODIRS
); do \
22 $(MAKE
) -C
$$dir > $$dir/build.log
2>&1 && echo
"ok." || \
23 ( echo
"error:"; tail
-15 $$dir/build.log
; exit
1 ) \
28 @for
dir in
$(ODIRS
); do \
29 $(MAKE
) -C
$$dir || exit
1; \
34 @for
dir in
$(ODIRS
); do \
35 $$dir/openbios-unix
$$dir/openbios-unix.dict
; \
39 # The following two targets will only work on x86 so far.
41 $(ODIR
)/openbios.iso
: $(ODIR
)/openbios.multiboot
$(ODIR
)/openbios-x86.dict
42 @mkisofs
-input-charset UTF-8
-r
-b boot
/grub
/stage2_eltorito
-no-emul-boot \
43 -boot-load-size
4 -boot-info-table
-o
$@ utils
/iso
$^
45 runiso
: $(ODIR
)/openbios.iso