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 OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -S
18 LDFLAGS=-e start
19 LINKFLAGS =-T $(TOPDIR)/arch/s390/vmlinux.lds $(LDFLAGS)
20
21 CFLAGS_PIPE := -pipe
22 CFLAGS_NSR := -fno-strength-reduce
23 CFLAGS := $(CFLAGS) $(CFLAGS_PIPE) $(CFLAGS_NSR)
24
25 HEAD := arch/s390/kernel/head.o arch/s390/kernel/init_task.o
26
27 SUBDIRS := $(SUBDIRS) arch/s390/mm arch/s390/kernel arch/s390/lib \
28 drivers/s390
29 CORE_FILES := arch/s390/mm/mm.o arch/s390/kernel/kernel.o $(CORE_FILES) \
30 drivers/s390/io.o
31 LIBS := $(TOPDIR)/arch/s390/lib/lib.a $(LIBS) $(TOPDIR)/arch/s390/lib/lib.a
32
33 all: image listing
34
35 listing: vmlinux
36 @$(MAKEBOOT) listing
37
38 arch/s390/kernel: dummy
39 $(MAKE) linuxsubdirs SUBDIRS=arch/s390/kernel
40
41 arch/s390/mm: dummy
42 $(MAKE) linuxsubdirs SUBDIRS=arch/s390/mm
43
44 drivers/s390: dummy
45 $(MAKE) linuxsubdirs SUBDIRS=drivers/s390
46
47 MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
48
49 MAKESILO = $(MAKE) -C arch/$(ARCH)/tools/silo
50
51 MAKEDASDFMT = $(MAKE) -C arch/$(ARCH)/tools/dasdfmt
52
53 silo:
54 @$(MAKESILO) silo
55
56 dasdfmt:
57 @$(MAKEDASDFMT) dasdfmt
58
59 image: vmlinux
60 @$(MAKEBOOT) image
61
62 archclean:
63 @$(MAKEBOOT) clean
64
65 archmrproper:
66
67 archdep:
68 @$(MAKEBOOT) dep
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.