debuggers.hg

view tools/firmware/rombios/32bit/Makefile @ 13683:4dd3266e13a7

[TCGBIOS] Fix some makefile issues.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
author kaf24@localhost.localdomain
date Fri Jan 26 16:46:00 2007 +0000 (2007-01-26)
parents c07326324f8d
children aae5932afc6d
line source
2 override XEN_TARGET_ARCH = x86_32
3 XEN_ROOT = ../../../..
4 CFLAGS :=
5 include $(XEN_ROOT)/tools/Rules.mk
7 SOURCES = util.c
8 TARGET = 32bitbios_flat.h
10 CFLAGS += -fno-builtin -O2 -msoft-float -nostdlib
11 CFLAGS += -I../
13 SUBDIRS = tcgbios
15 MODULES = tcgbios/tcgbiosext.o
17 .PHONY: all subdirs clean
19 subdirs:
20 @for subdir in $(SUBDIRS); do \
21 $(MAKE) -C $$subdir all; \
22 done;
24 all: $(TARGET)
26 clean:
27 rm -rf *.o $(TARGET)
28 @for subdir in $(SUBDIRS); do \
29 $(MAKE) -C $$subdir $@; \
30 done;
32 $(TARGET): subdirs 32bitbios.o util.o
33 ld $(LDFLAGS_DIRECT) -r 32bitbios.o $(MODULES) util.o -o 32bitbios_all.o
34 @nm 32bitbios_all.o | \
35 grep -E -q '^ +U ' && { \
36 echo "There are undefined symbols in the BIOS:"; \
37 nm -u 32bitbios_all.o; \
38 exit 11; \
39 } || :
40 bash mkhex highbios_array 32bitbios_all.o > $@