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 12*d884c86dSThomas HuthOBJECTS = start.o main.o bootmap.o sclp-ascii.o virtio.o 13*d884c86dSThomas HuthCFLAGS += -fPIE -fno-stack-protector -ffreestanding 14*d884c86dSThomas HuthLDFLAGS += -Wl,-pie -nostdlib 15b462fcd5SAlexander Graf 16b462fcd5SAlexander Grafbuild-all: s390-ccw.img 17b462fcd5SAlexander Graf 18b462fcd5SAlexander Grafs390-ccw.elf: $(OBJECTS) 19b462fcd5SAlexander Graf $(call quiet-command,$(CC) $(LDFLAGS) -o $@ $(OBJECTS)," Building $(TARGET_DIR)$@") 20b462fcd5SAlexander Graf 21b462fcd5SAlexander Grafs390-ccw.img: s390-ccw.elf 22*d884c86dSThomas Huth $(call quiet-command,strip --strip-unneeded $< -o $@," Stripping $(TARGET_DIR)$@") 23*d884c86dSThomas Huth 24*d884c86dSThomas Huth$(OBJECTS): Makefile 25b462fcd5SAlexander Graf 26b462fcd5SAlexander Grafclean: 276328801fSChristian Borntraeger rm -f *.o *.d *.img *.elf *~ 28