Makefile.acorn32 revision 1.19
1#	$NetBSD: Makefile.acorn32,v 1.19 2006/08/19 13:34:15 bjh21 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/acorn32/conf/``machineid''
9# after which you should do
10#	config machineid
11# Machine generic makefile changes should be made in
12#	/sys/arch/acorn32/conf/Makefile.acorn32
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
20USETOOLS?=	no
21NEED_OWN_INSTALL_TARGET?=no
22.include <bsd.own.mk>
23
24##
25## (1) port identification
26##
27ACORN32=	$S/arch/acorn32
28ARM=		$S/arch/arm
29GENASSYM_CONF=	${ARM}/arm32/genassym.cf
30GENASSYM_EXTRAS+=	${ACORN32}/acorn32/genassym.cf
31
32##
33## (2) compile settings
34##
35CPPFLAGS+=	-Darm32
36CWARNFLAGS+=	-Wcomment
37AFLAGS+=	-x assembler-with-cpp
38
39##
40## (3) libkern and compat
41##
42KERN_AS=	obj
43
44##
45## (4) local objects, compile rules, and dependencies
46##
47MD_OBJS=	locore.o
48MD_CFILES=
49MD_SFILES=	${ARM}/arm32/locore.S
50
51locore.o: ${ARM}/arm32/locore.S assym.h
52	${NORMAL_S}
53
54MD_OBJS+=	modedefs.o
55MD_CFILES+=	modedefs.c
56
57.ifdef MONITOR
58modedefs.c: ${ARM}/iomd/makemodes.awk ${ACORN32}/conf/monitors/${MONITOR} Makefile
59	${_MKTARGET_CREATE}
60	awk -f ${ARM}/iomd/makemodes.awk ${ACORN32}/conf/monitors/${MONITOR} ${MODES} >modedefs.c
61.else
62modedefs.c: ${ARM}/iomd/makemodes.awk Makefile
63	${_MKTARGET_CREATE}
64	awk -f ${ARM}/iomd/makemodes.awk >modedefs.c
65.endif
66
67modedefs.o: modedefs.c
68	${NORMAL_C}
69
70
71##
72## (5) link settings
73##
74LOADADDRESS?=	0xF0000000
75LINKFORMAT=	-N
76LINKFLAGS_NORMAL=	-x
77
78##
79## (6) port specific target dependencies
80##
81
82# depend on CPU configuration
83cpufunc.o cpufunc_asm.o: Makefile
84
85# depend on DIAGNOSTIC etc.
86cpuswitch.o fault.o machdep.o: Makefile
87
88##
89## (7) misc settings
90##
91
92##
93## (8) config(8) generated machinery
94##
95%INCLUDES
96
97%OBJS
98
99%CFILES
100
101%SFILES
102
103%LOAD
104
105%RULES
106
107##
108## (9) port independent kernel machinery
109##
110.include "$S/conf/Makefile.kern.inc"
111
112##
113## (10) Appending make options.
114##
115%MAKEOPTIONSAPPEND
116