|
|
1.1 ! root 1: ODIRS=$(wildcard obj-*) ! 2: TARGETS=$(subst obj-,,$(ODIRS)) ! 3: ! 4: all: requirements info build ! 5: ! 6: requirements: ! 7: @which xsltproc &>/dev/null || ( echo ; echo "Please install libxslt2"; \ ! 8: echo; exit 1 ) ! 9: ! 10: info: ! 11: @echo "Building OpenBIOS for $(TARGETS)" ! 12: ! 13: clean: ! 14: @echo "Cleaning up..." ! 15: @for dir in $(ODIRS); do \ ! 16: $(MAKE) -C $$dir clean; \ ! 17: done ! 18: ! 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 ! 25: ! 26: build-verbose: ! 27: @echo "Building..." ! 28: @for dir in $(ODIRS); do \ ! 29: $(MAKE) -C $$dir || exit 1; \ ! 30: done ! 31: ! 32: run: ! 33: @echo "Running..." ! 34: @for dir in $(ODIRS); do \ ! 35: $$dir/openbios-unix $$dir/openbios-unix.dict; \ ! 36: done ! 37: ! 38: ! 39: # The following two targets will only work on x86 so far. ! 40: # ! 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 $^ ! 44: ! 45: runiso: $(ODIR)/openbios.iso ! 46: qemu -cdrom $^
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.