Statistics
| Branch: | Revision:

root / pc-bios / optionrom / Makefile @ 2a2af967

History | View | Annotate | Download (879 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 2a2af967 Jan Kiszka
build-all: multiboot.bin linuxboot.bin kvmvapic.bin
18 253d0942 Alexander Graf
19 6fbcef29 Jan Kiszka
# suppress auto-removal of intermediate files
20 6fbcef29 Jan Kiszka
.SECONDARY:
21 6fbcef29 Jan Kiszka
22 253d0942 Alexander Graf
%.img: %.o
23 791e08c7 Juan Quintela
	$(call quiet-command,$(LD) -Ttext 0 -e _start -s -o $@ $<,"  Building $(TARGET_DIR)$@")
24 253d0942 Alexander Graf
25 7aa486fe Anthony Liguori
%.raw: %.img
26 791e08c7 Juan Quintela
	$(call quiet-command,$(OBJCOPY) -O binary -j .text $< $@,"  Building $(TARGET_DIR)$@")
27 7aa486fe Anthony Liguori
28 7aa486fe Anthony Liguori
%.bin: %.raw
29 4c3b5a48 Blue Swirl
	$(call quiet-command,$(SHELL) $(SRC_PATH)/scripts/signrom.sh $< $@,"  Signing $(TARGET_DIR)$@")
30 253d0942 Alexander Graf
31 253d0942 Alexander Graf
clean:
32 3e4e4646 Juan Quintela
	rm -f *.o *.d *.raw *.img *.bin *~