Statistics
| Branch: | Revision:

root / pc-bios / optionrom / Makefile @ 4c3b5a48

History | View | Annotate | Download (807 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 076d2471 Paolo Bonzini
$(call set-vpath, $(SRC_PATH)/pc-bios/optionrom)
9 076d2471 Paolo Bonzini
10 4888ec26 Juan Quintela
.PHONY : all clean build-all
11 253d0942 Alexander Graf
12 fc3baad7 Thomas Monjalon
CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer -fno-builtin
13 a558ee17 Juan Quintela
CFLAGS += -I$(SRC_PATH)
14 fc3baad7 Thomas Monjalon
CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector)
15 9b083b62 Juan Quintela
QEMU_CFLAGS = $(CFLAGS)
16 253d0942 Alexander Graf
17 57a46d05 Alexander Graf
build-all: multiboot.bin linuxboot.bin
18 253d0942 Alexander Graf
19 253d0942 Alexander Graf
%.img: %.o
20 791e08c7 Juan Quintela
	$(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<,"  Building $(TARGET_DIR)$@")
21 253d0942 Alexander Graf
22 7aa486fe Anthony Liguori
%.raw: %.img
23 791e08c7 Juan Quintela
	$(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,"  Building $(TARGET_DIR)$@")
24 7aa486fe Anthony Liguori
25 7aa486fe Anthony Liguori
%.bin: %.raw
26 4c3b5a48 Blue Swirl
	$(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/signrom.sh $< $@,"  Signing $(TARGET_DIR)$@")
27 253d0942 Alexander Graf
28 253d0942 Alexander Graf
clean:
29 3e4e4646 Juan Quintela
	rm -f *.o *.d *.raw *.img *.bin *~