root / pc-bios / optionrom / Makefile @ f7b4f61f
History | View | Annotate | Download (751 Bytes)
1 | 253d0942 | Alexander Graf | all: build-all |
---|---|---|---|
2 | c05ac895 | Paul Brook | # Dummy command so that make thinks it has done something |
3 | c05ac895 | Paul Brook | @true |
4 | 253d0942 | Alexander Graf | |
5 | 253d0942 | Alexander Graf | include ../../config-host.mak |
6 | 925ce05f | Blue Swirl | include $(SRC_PATH)/rules.mak |
7 | 253d0942 | Alexander Graf | |
8 | 253d0942 | Alexander Graf | VPATH=$(SRC_PATH)/pc-bios/optionrom |
9 | 253d0942 | Alexander Graf | |
10 | a558ee17 | Juan Quintela | CFLAGS = -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin |
11 | a558ee17 | Juan Quintela | CFLAGS += -I$(SRC_PATH) |
12 | 8a2e6ab5 | Juan Quintela | CFLAGS += $(call cc-option, -fno-stack-protector,"") |
13 | 9b083b62 | Juan Quintela | QEMU_CFLAGS = $(CFLAGS) |
14 | 253d0942 | Alexander Graf | |
15 | 253d0942 | Alexander Graf | build-all: multiboot.bin |
16 | 253d0942 | Alexander Graf | |
17 | 253d0942 | Alexander Graf | %.img: %.o |
18 | 791e08c7 | Juan Quintela | $(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@") |
19 | 253d0942 | Alexander Graf | |
20 | 7aa486fe | Anthony Liguori | %.raw: %.img |
21 | 791e08c7 | Juan Quintela | $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@") |
22 | 7aa486fe | Anthony Liguori | |
23 | 7aa486fe | Anthony Liguori | %.bin: %.raw |
24 | 0ff6697d | malc | $(call quiet-command,$(SHELL) $(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@," Signing $(TARGET_DIR)$@") |
25 | 253d0942 | Alexander Graf | |
26 | 253d0942 | Alexander Graf | clean: |
27 | ae20c622 | Juan Quintela | $(RM) *.o *.d *.raw *.img *.bin *~ |