1 # $NetBSD: Makefile.mvme68k,v 1.60 2005/12/11 12:18:17 christos Exp $
5 # This makefile is constructed from a machine description:
7 # Most changes should be made in the machine description
8 # /sys/arch/mvme68k/conf/``machineid''
9 # after which you should do
11 # Machine generic makefile changes should be made in
12 # /sys/arch/mvme68k/conf/Makefile.mvme68k
13 # after which config should be rerun for all machines of that type.
15 # To specify debugging, add the config line: makeoptions DEBUG="-g"
16 # A better way is to specify -g only for a few files.
18 # makeoptions DEBUGLIST="uvm* trap if_*"
22 NEED_OWN_INSTALL_TARGET?=no
26 ## (1) port identification
28 MVME68K= $S/arch/mvme68k
29 GENASSYM_CONF= ${MVME68K}/mvme68k/genassym.cf
32 ## (2) compile settings
35 .if empty(IDENT:M-DMVME172) && empty(IDENT:M-DMVME177)
36 .if empty(IDENT:M-DMVME147)
42 .if empty(IDENT:M-DMVME147) && empty(IDENT:M-DMVME162) && empty(IDENT:M-DMVME167)
43 CMACHFLAGS= -m68060 -Wa,-m68030 -Wa,-m68851
45 CMACHFLAGS= -m68020-60 -Wa,-m68030 -Wa,-m68851
48 CFLAGS+= ${CMACHFLAGS} -msoft-float
49 AFLAGS+= -x assembler-with-cpp -traditional-cpp
52 ## (3) libkern and compat
57 ## (4) local objects, compile rules, and dependencies
59 # for the Motorola 68040 Floating Point Software Product
60 .include "$S/arch/m68k/fpsp/Makefile.inc"
62 # for the Motorola 68060 Software Support Package
63 .include "$S/arch/m68k/060sp/Makefile.inc"
65 MD_OBJS= locore.o ${FPSP}
67 MD_SFILES= ${MVME68K}/mvme68k/locore.s
70 locore.o: ${MVME68K}/mvme68k/locore.s assym.h
79 ## (6) port specific target dependencies
82 # depend on CPU configuration
83 locore.o pmap.o sys_machdep.o trap.o: Makefile
85 copy.o copypage.o lock_stubs.o: assym.h
92 ## (8) config(8) generated machinery
107 ## (9) port independent kernel machinery
109 .include "$S/conf/Makefile.kern.inc"
112 ## (10) Appending make options.