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
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
13 # Copyright (C) 1994 by Hamish Macdonald
16 # test for cross compiling
17 COMPILE_ARCH
= $(shell uname
-m
)
19 # override top level makefile
22 ifneq ($(COMPILE_ARCH
),$(ARCH
))
23 # prefix for cross-compiling binaries
24 CROSS_COMPILE
= m68k-linux-
27 LINKFLAGS
= -T
$(TOPDIR
)/arch
/m68k
/vmlinux.lds
29 # without -fno-strength-reduce the 53c7xx.c driver fails ;-(
30 CFLAGS
+= -pipe
-fno-strength-reduce
-ffixed-a2
32 # enable processor switch if compiled only for a single cpu
37 CFLAGS
:= $(CFLAGS
) -m68040
41 CFLAGS
:= $(CFLAGS
) -m68060
48 # If configured for kgdb support, include debugging infos and keep the
50 CFLAGS
:= $(subst -fomit-frame-pointer
,,$(CFLAGS
)) -g
53 HEAD
:= arch
/m68k
/kernel
/head.o
55 SUBDIRS
+= arch
/m68k
/kernel arch
/m68k
/mm arch
/m68k
/lib
56 CORE_FILES
:= arch
/m68k
/kernel
/kernel.o arch
/m68k
/mm
/mm.o
$(CORE_FILES
)
57 LIBS
+= arch
/m68k
/lib
/lib.a
60 CORE_FILES
:= $(CORE_FILES
) arch
/m68k
/amiga
/amiga.o
61 SUBDIRS
:= $(SUBDIRS
) arch
/m68k
/amiga
65 CORE_FILES
:= $(CORE_FILES
) arch
/m68k
/atari
/atari.o
66 SUBDIRS
:= $(SUBDIRS
) arch
/m68k
/atari
70 CORE_FILES
:= $(CORE_FILES
) arch
/m68k
/mac
/mac.o
71 SUBDIRS
:= $(SUBDIRS
) arch
/m68k
/mac
75 CORE_FILES
:= $(CORE_FILES
) arch
/m68k
/hp300
/hp300.o
76 SUBDIRS
:= $(SUBDIRS
) arch
/m68k
/hp300
80 CORE_FILES
:= $(CORE_FILES
) arch
/m68k
/apollo
/apollo.o
81 SUBDIRS
:= $(SUBDIRS
) arch
/m68k
/apollo
85 CORE_FILES
:= $(CORE_FILES
) arch
/m68k
/mvme16x
/mvme16x.o
86 SUBDIRS
:= $(SUBDIRS
) arch
/m68k
/mvme16x
90 CORE_FILES
:= $(CORE_FILES
) arch
/m68k
/bvme6000
/bvme6000.o
91 SUBDIRS
:= $(SUBDIRS
) arch
/m68k
/bvme6000
95 CORE_FILES
:= $(CORE_FILES
) arch
/m68k
/fpsp040
/fpsp.o
96 SUBDIRS
:= $(SUBDIRS
) arch
/m68k
/fpsp040
100 CORE_FILES
:= $(CORE_FILES
) arch
/m68k
/ifpsp060
/ifpsp.o
101 SUBDIRS
:= $(SUBDIRS
) arch
/m68k
/ifpsp060
105 if
[ -f
$(INSTALL_PATH
)/vmlinux
]; then mv
-f
$(INSTALL_PATH
)/vmlinux
$(INSTALL_PATH
)/vmlinux.old
; fi
106 if
[ -f
$(INSTALL_PATH
)/System.map
]; then mv
-f
$(INSTALL_PATH
)/System.map
$(INSTALL_PATH
)/System.old
; fi
107 cat vmlinux
> $(INSTALL_PATH
)/vmlinux
108 cp System.map
$(INSTALL_PATH
)/System.map
109 if
[ -x
/sbin
/lilo
]; then
/sbin
/lilo
; else /etc
/lilo
/install; fi
111 zImage compressed
: vmlinux.gz
116 cp vmlinux vmlinux.tmp
118 gzip
-9c vmlinux.tmp
>vmlinux.gz
121 gzip
-9c vmlinux
>vmlinux.gz
126 rm -f arch
/m68k
/kernel
/m68k_defs.h arch
/m68k
/kernel
/m68k_defs.d