root / pc-bios / optionrom / Makefile @ a558ee17
History | View | Annotate | Download (728 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 | a558ee17 | Juan Quintela | CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector,"") |
13 | 253d0942 | Alexander Graf | |
14 | 253d0942 | Alexander Graf | build-all: multiboot.bin |
15 | 253d0942 | Alexander Graf | |
16 | 253d0942 | Alexander Graf | %.img: %.o |
17 | 791e08c7 | Juan Quintela | $(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<," Building $(TARGET_DIR)$@") |
18 | 253d0942 | Alexander Graf | |
19 | 7aa486fe | Anthony Liguori | %.raw: %.img |
20 | 791e08c7 | Juan Quintela | $(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@," Building $(TARGET_DIR)$@") |
21 | 7aa486fe | Anthony Liguori | |
22 | 7aa486fe | Anthony Liguori | %.bin: %.raw |
23 | 0ff6697d | malc | $(call quiet-command,$(SHELL) $(SRC_PATH)/pc-bios/optionrom/signrom.sh $< $@," Signing $(TARGET_DIR)$@") |
24 | 253d0942 | Alexander Graf | |
25 | 253d0942 | Alexander Graf | clean: |
26 | 89e671e3 | Alexander Graf | $(RM) *.o *.img *.bin *~ |