* added 0.99 linux version
[mascara-docs.git] / i386 / linux / linux-2.3.21 / arch / sh / Makefile
blobc1c6f1e29f3e20f63d0832871cdb36fed06335e1
1 # $Id$
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.
7 # This file is included by the global makefile so that you can add your own
8 # architecture-specific flags and dependencies. Remember to do have actions
9 # for "archclean" and "archdep" for cleaning up and making dependencies for
10 # this architecture
14 # Select the object file format to substitute into the linker script.
16 tool-prefix = sh-gniibe-
17 oformat = elf
19 ifdef CONFIG_CROSSCOMPILE
20 CROSS_COMPILE = $(tool-prefix)
21 endif
23 LINKFLAGS = # -EL # -static #-N
24 MODFLAGS +=
28 CFLAGS += -m3 # -ml
29 LINKFLAGS +=
30 LDFLAGS += # -EL
34 HOSTCC = cc
37 # Choosing incompatible machines durings configuration will result in
38 # error messages during linking. Select a default linkscript if
39 # none has been choosen above.
41 LINKSCRIPT = arch/sh/vmlinux.lds
42 LINKFLAGS += -T $(word 1,$(LINKSCRIPT)) -e __stext
44 ifdef LOADADDR
45 LINKFLAGS += -Ttext $(word 1,$(LOADADDR))
46 endif
49 CFLAGS += -pipe
51 HEAD := arch/sh/kernel/head.o arch/sh/kernel/init_task.o
53 SUBDIRS := $(SUBDIRS) $(addprefix arch/sh/, kernel mm lib)
54 CORE_FILES := arch/sh/kernel/kernel.o arch/sh/mm/mm.o $(CORE_FILES)
55 LIBS := $(TOPDIR)/arch/sh/lib/lib.a $(LIBS) $(TOPDIR)/arch/sh/lib/lib.a /home/niibe/lib/gcc-lib/sh-gniibe-elf/egcs-2.91.66/libgcc.a
57 MAKEBOOT = $(MAKE) -C arch/$(ARCH)/boot
59 vmlinux: arch/sh/vmlinux.lds
61 arch/sh/vmlinux.lds: arch/sh/vmlinux.lds.S FORCE
62 gcc -E -C -P -I$(HPATH) -imacros $(HPATH)/linux/config.h -Ush arch/sh/vmlinux.lds.S >arch/sh/vmlinux.lds
64 FORCE: ;
66 zImage: vmlinux
67 @$(MAKEBOOT) zImage
69 compressed: zImage
71 zdisk: vmlinux
72 @$(MAKEBOOT) zdisk
74 archclean:
75 @$(MAKEBOOT) clean
76 $(MAKE) -C arch/$(ARCH)/kernel clean
77 # $(MAKE) -C arch/$(ARCH)/tools clean
79 archmrproper:
81 archdep:
82 @$(MAKEBOOT) dep