1# 2# arch/s390/boot/Makefile 3# 4# Note! Dependencies are done automagically by 'make dep', which also 5# removes any old dependencies. DON'T put your own dependencies here 6# unless it's something special (ie not a .c file). 7# 8# Note 2! The CFLAGS definition is now in the main makefile... 9 10OBJCOPY = $(CROSS_COMPILE)objcopy 11 12O_TARGET := 13 14include $(TOPDIR)/Rules.make 15 16.S.o: 17 $(CC) -D__ASSEMBLY__ $(AFLAGS) -traditional -c $< -o $*.o 18 19%.lnk: %.o 20 $(LD) -Ttext 0x0 -o $@ $< 21 22%.boot: %.lnk 23 $(OBJCOPY) -O binary $< $@ 24 25image: $(CONFIGURE) $(TOPDIR)/vmlinux \ 26 iplfba.boot ipleckd.boot ipldump.boot 27 $(OBJCOPY) -O binary $(TOPDIR)/vmlinux image 28 $(NM) $(TOPDIR)/vmlinux | grep -v '\(compiled\)\|\( [aUw] \)\|\(\.\)\|\(LASH[RL]DI\)' | sort > $(TOPDIR)/System.map 29 30listing: ../../../vmlinux 31 $(OBJDUMP) --disassemble --disassemble-all --disassemble-zeroes --reloc $(TOPDIR)/vmlinux > listing 32 33dep: 34 35clean: 36 rm -f image listing iplfba.boot ipleckd.boot ipldump.boot 37 38install: $(CONFIGURE) $(BOOTIMAGE) 39 sh -x ./install.sh $(KERNELRELEASE) $(BOOTIMAGE) $(TOPDIR)/System.map $(TOPDIR)/Kerntypes "$(INSTALL_PATH)" 40 41