source: trunk/packages/xen-3.1/xen-3.1/tools/firmware/rombios/32bit/Makefile @ 34

Last change on this file since 34 was 34, checked in by hartmans, 18 years ago

Add xen and xen-common

File size: 1.0 KB
Line 
1
2override XEN_TARGET_ARCH = x86_32
3XEN_ROOT = ../../../..
4CFLAGS :=
5include $(XEN_ROOT)/tools/Rules.mk
6
7SOURCES = util.c
8TARGET = 32bitbios_flat.h
9
10CFLAGS += -fno-builtin -O2 -msoft-float -nostdlib
11CFLAGS += -I../ -DGCC_PROTOS
12CFLAGS += $(call cc-option,$(CC),-fno-stack-protector,)
13CFLAGS += $(call cc-option,$(CC),-fno-stack-protector-all,)
14
15SUBDIRS = tcgbios
16
17MODULES = tcgbios/tcgbiosext.o
18
19.PHONY: all subdirs clean
20
21subdirs:
22        @for subdir in $(SUBDIRS); do \
23                $(MAKE) -C $$subdir all; \
24        done;
25
26all: $(TARGET)
27
28clean:
29        rm -rf *.o $(TARGET)
30        @for subdir in $(SUBDIRS); do \
31                $(MAKE) -C $$subdir $@; \
32        done;
33
34$(TARGET): subdirs 32bitbios.o util.o
35        $(LD) $(LDFLAGS_DIRECT) -s -r 32bitbios.o $(MODULES) util.o -o 32bitbios_all.o
36        @nm 32bitbios_all.o |                                \
37          grep -E -q '^ +U ' && {                            \
38            echo "There are undefined symbols in the BIOS:"; \
39            nm -u 32bitbios_all.o;                           \
40            exit 11;                                         \
41          } || :
42        bash mkhex highbios_array 32bitbios_all.o > $@
Note: See TracBrowser for help on using the repository browser.