1b462fcd5SAlexander Grafall: build-all 2b462fcd5SAlexander Graf# Dummy command so that make thinks it has done something 3b462fcd5SAlexander Graf @true 4b462fcd5SAlexander Graf 5b462fcd5SAlexander Grafinclude ../../config-host.mak 6b462fcd5SAlexander Grafinclude $(SRC_PATH)/rules.mak 7b462fcd5SAlexander Graf 8b462fcd5SAlexander Graf$(call set-vpath, $(SRC_PATH)/pc-bios/s390-ccw) 9b462fcd5SAlexander Graf 10b462fcd5SAlexander Graf.PHONY : all clean build-all 11b462fcd5SAlexander Graf 1280ba3e24SEugene (jno) DvurechenskiOBJECTS = start.o main.o bootmap.o sclp-ascii.o virtio.o virtio-scsi.o 13c86c03cfSChristian BorntraegerQEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS)) 14c86c03cfSChristian BorntraegerQEMU_CFLAGS += -ffreestanding -fno-delete-null-pointer-checks -msoft-float 15c86c03cfSChristian BorntraegerQEMU_CFLAGS += -march=z900 -fPIE -fno-strict-aliasing 16c86c03cfSChristian BorntraegerQEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -fno-stack-protector) 17d884c86dSThomas HuthLDFLAGS += -Wl,-pie -nostdlib 18b462fcd5SAlexander Graf 19b462fcd5SAlexander Grafbuild-all: s390-ccw.img 20b462fcd5SAlexander Graf 21b462fcd5SAlexander Grafs390-ccw.elf: $(OBJECTS) 22*0bdb12c7SPeter Maydell $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(OBJECTS),"BUILD","$(TARGET_DIR)$@") 23b462fcd5SAlexander Graf 24b462fcd5SAlexander Grafs390-ccw.img: s390-ccw.elf 25*0bdb12c7SPeter Maydell $(call quiet-command,strip --strip-unneeded $< -o $@,"STRIP","$(TARGET_DIR)$@") 26d884c86dSThomas Huth 27d884c86dSThomas Huth$(OBJECTS): Makefile 28b462fcd5SAlexander Graf 29b462fcd5SAlexander Grafclean: 306328801fSChristian Borntraeger rm -f *.o *.d *.img *.elf *~ 31