Makefile.mvme68k revision 1.53.2.2 1 # $NetBSD: Makefile.mvme68k,v 1.53.2.2 2002/01/08 00:26:31 nathanw Exp $
2
3 # Makefile for NetBSD
4 #
5 # This makefile is constructed from a machine description:
6 # config machineid
7 # Most changes should be made in the machine description
8 # /sys/arch/mvme68k/conf/``machineid''
9 # after which you should do
10 # config machineid
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.
14 #
15 # To specify debugging, add the config line: makeoptions DEBUG="-g"
16 # A better way is to specify -g only for a few files.
17 #
18 # makeoptions DEBUGLIST="uvm* trap if_*"
19
20 MACHINE_ARCH=m68k
21 USETOOLS?= no
22 NEED_OWN_INSTALL_TARGET?=no
23 .include <bsd.own.mk>
24
25 ##
26 ## (1) port identification
27 ##
28 MVME68K= $S/arch/mvme68k
29 GENASSYM= ${MVME68K}/mvme68k/genassym.cf
30
31 ##
32 ## (2) compile settings
33 ##
34 CPPFLAGS+= -Dmvme68k
35 .if empty(IDENT:M-DMVME172) && empty(IDENT:M-DMVME177)
36 .if empty(IDENT:M-DMVME147)
37 CMACHFLAGS= -m68040
38 .else
39 CMACHFLAGS= -m68030
40 .endif
41 .else
42 .if empty(IDENT:M-DMVME147) && empty(IDENT:M-DMVME162) && empty(IDENT:M-DMVME167)
43 CMACHFLAGS= -m68060 -Wa,-m68030 -Wa,-m68851
44 .else
45 CMACHFLAGS= -m68020-60 -Wa,-m68030 -Wa,-m68851
46 .endif
47 .endif
48 CWARNFLAGS?= -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes \
49 -Wpointer-arith
50 # XXX Delete -Wuninitialized for now, since the compiler doesn't
51 # XXX always get it right. --thorpej
52 CWARNFLAGS+= -Wno-uninitialized
53 .if (${HAVE_EGCS} != "")
54 CWARNFLAGS+= -Wno-main
55 .endif
56 CFLAGS+= ${CMACHFLAGS} -msoft-float
57 AFLAGS+= -x assembler-with-cpp -traditional-cpp
58
59 ##
60 ## (3) libkern and compat
61 ##
62 KERN_AS= obj
63
64 ##
65 ## (4) local objects, compile rules, and dependencies
66 ##
67 # for the Motorola 68040 Floating Point Software Product
68 .include "$S/arch/m68k/fpsp/Makefile.inc"
69
70 # for the Motorola 68060 Software Support Package
71 .include "$S/arch/m68k/060sp/Makefile.inc"
72
73 MD_OBJS= locore.o ${FPSP}
74 MD_CFILES=
75 MD_SFILES= ${MVME68K}/mvme68k/locore.s
76
77
78 locore.o: ${MVME68K}/mvme68k/locore.s assym.h
79 ${NORMAL_S}
80 ##
81 ## (5) link settings
82 ##
83 LINKFORMAT= -n
84 TEXTADDR?= 8000
85
86 ##
87 ## (6) port specific target dependencies
88 ##
89
90 # depend on CPU configuration
91 locore.o pmap.o sys_machdep.o trap.o: Makefile
92
93 ##
94 ## (7) misc settings
95 ##
96
97 ##
98 ## (8) config(8) generated machinery
99 ##
100 %INCLUDES
101
102 %OBJS
103
104 %CFILES
105
106 %SFILES
107
108 %LOAD
109
110 %RULES
111
112 ##
113 ## (9) port independent kernel machinery
114 ##
115 .include "$S/conf/Makefile.kern.inc"
116