OSDN Git Service

tcp: Clear probes_out more aggressively in tcp_ack().
[linux-kernel-docs/linux-2.4.36.git] / arch / sh / Makefile
1 # $Id: Makefile,v 1.1.1.1.2.5 2003/10/23 22:08:56 yoshii Exp $
2 #
3 # This file is subject to the terms and conditions of the GNU General Public
4 # License.  See the file "COPYING" in the main directory of this archive
5 # for more details.
6 #
7 # Copyright (C) 1999  Kaz Kojima
8 #
9 # This file is included by the global makefile so that you can add your own
10 # architecture-specific flags and dependencies. Remember to do have actions
11 # for "archclean" and "archdep" for cleaning up and making dependencies for
12 # this architecture
13 #
14
15 ifdef CONFIG_CPU_LITTLE_ENDIAN
16 CFLAGS          += -ml
17 AFLAGS          += -ml
18 # LINKFLAGS     += -EL
19 LDFLAGS         := -EL
20 else
21 CFLAGS          += -mb
22 AFLAGS          += -mb
23 # LINKFLAGS     += -EB
24 LDFLAGS         := -EB
25 endif
26
27 ifdef CONFIG_SH_DSP
28 AFLAGS += -Wa,-dsp
29 endif
30
31 ifdef CONFIG_SH_KGDB
32 CFLAGS :=$(CFLAGS:-fomit-frame-pointer=) -g
33 AFLAGS += -g
34 ifdef CONFIG_KGDB_MORE
35 CFLAGS += $(shell echo $(CONFIG_KGDB_OPTIONS) | sed -e 's/"//g')
36 endif
37 endif
38
39 LD      =$(CROSS_COMPILE)ld $(LDFLAGS)
40 OBJCOPY=$(CROSS_COMPILE)objcopy -O binary -R .note -R .comment -R .stab -R .stabstr -S
41
42 MODFLAGS        +=
43
44 #
45 #
46
47 ifdef CONFIG_CPU_SH3
48 CFLAGS          += -m3
49 AFLAGS          += -m3
50 endif
51 ifdef CONFIG_CPU_SH4
52 CFLAGS          += -m4 -mno-implicit-fp
53 AFLAGS          += -m4 -mno-implicit-fp
54 endif
55
56 #
57 # Choosing incompatible machines durings configuration will result in
58 # error messages during linking.  Select a default linkscript if
59 # none has been choosen above.
60 #
61 LINKSCRIPT    = arch/sh/vmlinux.lds
62 LINKFLAGS     += -T $(word 1,$(LINKSCRIPT)) -e _stext
63
64 ifdef LOADADDR
65 LINKFLAGS     += -Ttext $(word 1,$(LOADADDR))
66 endif
67
68 #
69 CFLAGS          += -pipe
70
71 HEAD := arch/sh/kernel/head.o arch/sh/kernel/init_task.o
72
73 SUBDIRS := $(SUBDIRS) $(addprefix arch/sh/, kernel mm lib)
74 CORE_FILES := arch/sh/kernel/kernel.o arch/sh/mm/mm.o $(CORE_FILES)
75 LIBGCC := $(shell $(CC) $(CFLAGS) -print-libgcc-file-name)
76 LIBS := $(TOPDIR)/arch/sh/lib/lib.a $(LIBS) $(TOPDIR)/arch/sh/lib/lib.a \
77         $(LIBGCC)
78
79 MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
80
81 ifneq ($(CONFIG_SH_GENERIC)$(CONFIG_SH_STB1_HARP)$(CONFIG_SH_STB1_OVERDRIVE),)
82 SUBDIRS += arch/sh/stboards
83 CORE_FILES += arch/sh/stboards/stboards.o
84 endif
85
86 vmlinux: arch/sh/vmlinux.lds
87
88 arch/sh/vmlinux.lds: arch/sh/vmlinux.lds.S FORCE
89         $(CPP) -traditional -C -P -I$(HPATH) -Ush arch/sh/vmlinux.lds.S >arch/sh/vmlinux.lds
90
91 FORCE: ;
92
93 zImage: vmlinux
94         @$(MAKEBOOT) $@
95
96 compressed: zImage
97
98 zdisk: vmlinux
99         @$(MAKEBOOT) zdisk
100
101 archclean:
102         @$(MAKEBOOT) clean
103         $(MAKE) -C arch/$(ARCH)/kernel clean
104         $(MAKE) -C arch/$(ARCH)/stboards clean
105 #       $(MAKE) -C arch/$(ARCH)/tools clean
106
107 archmrproper:
108         rm -f arch/sh/vmlinux.lds
109
110 archdep:
111         @$(MAKEBOOT) dep