Files
xen/tools/firmware/extboot/Makefile
T
Keir Fraser 0080a146fc x86 firmware: Consolidate firmware common build rules.
Also avoid overriding global optimisation default (-O1, -O2, etc.)

Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
2008-04-02 10:42:27 +01:00

23 lines
438 B
Makefile

XEN_ROOT = ../../..
include $(XEN_ROOT)/tools/firmware/Rules.mk
CFLAGS += -I$(XEN_ROOT)/tools/libxc -I.
.PHONY: all
all: extboot.bin
%.o: %.S
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@ -c $<
extboot.img: extboot.o
$(LD) $(LDFLAGS_DIRECT) --oformat binary -Ttext 0 -o $@ $<
extboot.bin: extboot.img signrom
./signrom extboot.img extboot.bin
signrom: signrom.c
$(HOSTCC) $(HOSTCFLAGS) -o $@ $^
clean:
$(RM) -f *.o *.img *.bin signrom *~