Disable mixing of DMA and FIFO messages in the Solaris ESP kernel module.
[openbios.git] / Makefile
blob74e462c8c1ec68fb2eb695663d392cd39bf3591b
1 ODIRS=$(wildcard obj-*)
2 TARGETS=$(subst obj-,,$(ODIRS))
4 all: requirements info build
6 requirements:
7 @which xsltproc &>/dev/null || ( echo ; echo "Please install libxslt2"; \
8 echo; exit 1 )
10 info:
11 @echo "Building OpenBIOS for $(TARGETS)"
13 clean:
14 @echo "Cleaning up..."
15 @for dir in $(ODIRS); do \
16 $(MAKE) -C $$dir clean; \
17 done
19 build:
20 @printf "Building..."
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 ) \
24 done
26 build-verbose:
27 @echo "Building..."
28 @for dir in $(ODIRS); do \
29 $(MAKE) -C $$dir || exit 1; \
30 done
32 run:
33 @echo "Running..."
34 @for dir in $(ODIRS); do \
35 $$dir/openbios-unix $$dir/openbios-unix.dict; \
36 done
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
46 qemu -cdrom $^