]> git.proxmox.com Git - mirror_qemu.git/blob - pc-bios/s390-ccw/Makefile
Merge remote-tracking branch 'remotes/stsquad/tags/pull-mttcg-fixups-for-rc2-280317...
[mirror_qemu.git] / pc-bios / s390-ccw / Makefile
1 all: build-all
2 # Dummy command so that make thinks it has done something
3 @true
4
5 include ../../config-host.mak
6 include $(SRC_PATH)/rules.mak
7
8 $(call set-vpath, $(SRC_PATH)/pc-bios/s390-ccw)
9
10 .PHONY : all clean build-all
11
12 OBJECTS = start.o main.o bootmap.o sclp-ascii.o virtio.o virtio-scsi.o
13 QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS))
14 QEMU_CFLAGS += -ffreestanding -fno-delete-null-pointer-checks -msoft-float
15 QEMU_CFLAGS += -march=z900 -fPIE -fno-strict-aliasing
16 QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -fno-stack-protector)
17 LDFLAGS += -Wl,-pie -nostdlib
18
19 build-all: s390-ccw.img
20
21 s390-ccw.elf: $(OBJECTS)
22 $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(OBJECTS),"BUILD","$(TARGET_DIR)$@")
23
24 s390-ccw.img: s390-ccw.elf
25 $(call quiet-command,strip --strip-unneeded $< -o $@,"STRIP","$(TARGET_DIR)$@")
26
27 $(OBJECTS): Makefile
28
29 clean:
30 rm -f *.o *.d *.img *.elf *~