more debug output
[linux-2.4.git] / arch / s390 / Makefile
1
2 # s390/Makefile
3 #
4 # This file is included by the global makefile so that you can add your own
5 # architecture-specific flags and dependencies. Remember to do have actions
6 # for "archclean" and "archdep" for cleaning up and making dependencies for
7 # this architecture
8 #
9 # This file is subject to the terms and conditions of the GNU General Public
10 # License.  See the file "COPYING" in the main directory of this archive
11 # for more details.
12 #
13 # Copyright (C) 1994 by Linus Torvalds
14 #
15
16 LD=$(CROSS_COMPILE)ld -m elf_s390
17 CPP=$(CC) -E
18 OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -S
19 LDFLAGS=-e start
20 ifeq ($(CONFIG_SHARED_KERNEL),y)
21 LINKFLAGS =-T $(TOPDIR)/arch/s390/vmlinux-shared.lds $(LDFLAGS)
22 else
23 LINKFLAGS =-T $(TOPDIR)/arch/s390/vmlinux.lds $(LDFLAGS)
24 endif
25
26 CFLAGS_PIPE := -pipe
27 CFLAGS_NSR  := -fno-strength-reduce
28 CFLAGS := $(CFLAGS) $(CFLAGS_PIPE) $(CFLAGS_NSR)
29
30 HEAD := arch/s390/kernel/head.o arch/s390/kernel/init_task.o
31
32 SUBDIRS := $(SUBDIRS) arch/s390/mm arch/s390/kernel arch/s390/lib \
33            drivers/s390 arch/s390/math-emu
34 CORE_FILES := arch/s390/mm/mm.o arch/s390/kernel/kernel.o $(CORE_FILES)
35 DRIVERS := $(DRIVERS) drivers/s390/io.o
36 LIBS := $(TOPDIR)/arch/s390/lib/lib.a $(LIBS) $(TOPDIR)/arch/s390/lib/lib.a
37
38 ifeq ($(CONFIG_MATHEMU),y)
39   CORE_FILES := $(CORE_FILES) arch/s390/math-emu/math-emu.o
40 endif
41
42 all: image listing
43
44 listing: vmlinux
45         @$(MAKEBOOT) listing
46
47 arch/s390/kernel: dummy
48         $(MAKE) linuxsubdirs SUBDIRS=arch/s390/kernel
49
50 arch/s390/mm: dummy
51         $(MAKE) linuxsubdirs SUBDIRS=arch/s390/mm
52
53 drivers/s390: dummy
54         $(MAKE) linuxsubdirs SUBDIRS=drivers/s390
55
56 MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
57
58 image: vmlinux 
59         @$(MAKEBOOT) image
60
61 archclean:
62         @$(MAKEBOOT) clean
63         $(MAKE) -C arch/$(ARCH)/kernel clean
64
65 archmrproper:
66
67 archdep:
68         @$(MAKEBOOT) dep
69
70 install: vmlinux
71         @$(MAKEBOOT) BOOTIMAGE=image install