2 # Dummy command so that make thinks it has done something
5 include ..
/..
/config-host.mak
6 include $(SRC_PATH
)/rules.mak
8 $(call set-vpath
, $(SRC_PATH
)/pc-bios
/s390-ccw
)
10 .PHONY
: all clean build-all
12 OBJECTS
= start.o main.o bootmap.o sclp-ascii.o virtio.o virtio-scsi.o
13 CFLAGS
+= -fPIE
-fno-stack-protector
-ffreestanding
-march
=z900
14 CFLAGS
+= -fno-delete-null-pointer-checks
-msoft-float
15 LDFLAGS
+= -Wl
,-pie
-nostdlib
17 build-all
: s390-ccw.img
19 s390-ccw.elf
: $(OBJECTS
)
20 $(call quiet-command
,$(CC
) $(LDFLAGS
) -o
$@
$(OBJECTS
)," Building $(TARGET_DIR)$@")
22 s390-ccw.img
: s390-ccw.elf
23 $(call quiet-command
,strip --strip-unneeded
$< -o
$@
," Stripping $(TARGET_DIR)$@")
28 rm -f
*.o
*.d
*.img
*.elf
*~