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-
31 # without -fno-strength-reduce the 53c7xx.c driver fails ;-(
32 CFLAGS += -pipe -fno-strength-reduce -ffixed-a2
34 # enable processor switch if compiled only for a single cpu
39 CFLAGS := $(CFLAGS) -m68040
43 CFLAGS := $(CFLAGS) -m68060
50 # If configured for kgdb support, include debugging infos and keep the
52 CFLAGS := $(subst -fomit-frame-pointer,,$(CFLAGS)) -g
56 head-y := arch/m68k/kernel/head.o
58 head-y := arch/m68k/kernel/sun3-head.o
61 core-y += arch/m68k/kernel/ arch/m68k/mm/
62 libs-y += arch/m68k/lib/
64 core-$(CONFIG_Q40) += arch/m68k/q40/
65 core-$(CONFIG_AMIGA) += arch/m68k/amiga/
66 core-$(CONFIG_ATARI) += arch/m68k/atari/
67 core-$(CONFIG_MAC) += arch/m68k/mac/
68 core-$(CONFIG_HP300) += arch/m68k/hp300/
69 core-$(CONFIG_APOLLO) += arch/m68k/apollo/
70 core-$(CONFIG_MVME147) += arch/m68k/mvme147/
71 core-$(CONFIG_MVME16x) += arch/m68k/mvme16x/
72 core-$(CONFIG_BVME6000) += arch/m68k/bvme6000/
73 core-$(CONFIG_SUN3X) += arch/m68k/sun3x/ arch/m68k/sun3/
74 core-$(CONFIG_SUN3) += arch/m68k/sun3/ arch/m68k/sun3/prom/
75 core-$(CONFIG_M68040) += arch/m68k/fpsp040/
76 core-$(CONFIG_M68060) += arch/m68k/ifpsp060/
77 core-$(CONFIG_M68KFPU_EMU) += arch/m68k/math-emu/
82 if [ -f $(INSTALL_PATH)/vmlinux ]; then mv -f $(INSTALL_PATH)/vmlinux $(INSTALL_PATH)/vmlinux.old; fi
83 if [ -f $(INSTALL_PATH)/System.map ]; then mv -f $(INSTALL_PATH)/System.map $(INSTALL_PATH)/System.old; fi
84 cat vmlinux > $(INSTALL_PATH)/vmlinux
85 cp System.map $(INSTALL_PATH)/System.map
86 if [ -x /sbin/lilo ]; then /sbin/lilo; else /etc/lilo/install; fi
88 zImage compressed: vmlinux.gz
93 cp vmlinux vmlinux.tmp
95 gzip -9c vmlinux.tmp >vmlinux.gz
98 gzip -9c vmlinux >vmlinux.gz
106 cp vmlinux vmlinux.tmp
108 bzip2 -1c vmlinux.tmp >vmlinux.bz2
111 bzip2 -1c vmlinux >vmlinux.bz2
114 prepare: include/asm-$(ARCH)/offsets.h
115 CLEAN_FILES += include/asm-$(ARCH)/offsets.h
117 arch/$(ARCH)/kernel/asm-offsets.s: include/asm include/linux/version.h \
118 include/config/MARKER
120 include/asm-$(ARCH)/offsets.h: arch/$(ARCH)/kernel/asm-offsets.s
121 $(call filechk,gen-asm-offsets)
124 rm -f vmlinux.gz vmlinux.bz2