Debian Codegraph @

tools/firmware/rombios/Makefile

raw
1 XEN_ROOT = $(CURDIR)/../../..
2 include $(XEN_ROOT)/tools/Rules.mk
3
4 SUBDIRS := 32bit
5
6 .PHONY: all
7 all: subdirs-all
8 $(MAKE) BIOS-bochs-latest
9
10 .PHONY: clean
11 clean: subdirs-clean
12 rm -f *.o *.a *.s rombios.bin _rombios*_.c
13 rm -f as86-sym.txt ld86-sym.txt
14 rm -f rombios*.txt rombios*.sym usage biossums
15 rm -f BIOS-bochs-*
16 rm -f $(DEPS_RM)
17
18 .PHONY: distclean
19 distclean: clean
20
21 BIOS-bochs-latest: rombios.c biossums 32bitgateway.c tcgbios.c
22 $(CPP) -DBX_SMP_PROCESSORS=1 -P $< > _rombios_.c
23 bcc -o rombios.s -C-c -D__i86__ -0 -S _rombios_.c
24 sed -e 's/^\.text//' -e 's/^\.data//' rombios.s > _rombios_.s
25 as86 _rombios_.s -b tmp.bin -u- -w- -g -0 -j -O -l rombios.txt
26 -perl makesym.perl < rombios.txt > rombios.sym
27 mv tmp.bin BIOS-bochs-latest
28 ./biossums BIOS-bochs-latest
29 rm -f _rombios_.s
30
31 biossums: biossums.c
32 $(HOSTCC) $(HOSTCFLAGS) -o biossums biossums.c
33
34 -include $(DEPS_INCLUDE)