vl: fix max_cpus check
[qemu/ar7.git] / pc-bios / s390-ccw / Makefile
blobad55a14a144516871e62f05f5906afb1f7954c33
1 all: build-all
2 # Dummy command so that make thinks it has done something
3 @true
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=main.o bootmap.o sclp-ascii.o virtio.o start.o
13 CFLAGS += -fno-stack-protector
14 # XXX find a more clever to locate the bootloader
15 LDFLAGS += -Wl,-Ttext,0x7e00000,-Tbss,0x7f00000 -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 $< -o $@," Stripping $(TARGET_DIR)$@")
25 clean:
26 rm -f *.o *.d *.img *.elf *~