Makefile.acorn32 revision 1.10
1#	$NetBSD: Makefile.acorn32,v 1.10 2002/01/09 20:54:40 reinoud 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
20MACHINE_ARCH?=arm32
21USETOOLS?=	no
22NEED_OWN_INSTALL_TARGET?=no
23.include <bsd.own.mk>
24
25##
26## (1) port identification
27##
28ACORN32=	$S/arch/acorn32
29ARM=		$S/arch/arm
30GENASSYM=	${ARM}/arm32/genassym.cf
31GENASSYM_EXTRAS+=	${ACORN32}/acorn32/genassym.cf
32
33##
34## (2) compile settings
35##
36CPPFLAGS+=	-Darm32
37CWARNFLAGS+=	-Wcomment
38LOOSE_PROTOTYPES= yes
39AFLAGS+=	-x assembler-with-cpp
40
41##
42## (3) libkern and compat
43##
44KERN_AS=	obj
45
46##
47## (4) local objects, compile rules, and dependencies
48##
49MD_OBJS=	locore.o
50MD_CFILES=
51MD_SFILES=	${ARM}/arm32/locore.S
52
53locore.o: ${ARM}/arm32/locore.S assym.h
54	${NORMAL_S}
55
56.ifdef MONITOR
57MD_OBJS+=	modedefs.o
58MD_CFILES+=	modedefs.c
59
60modedefs.c: ${ARM}/iomd/makemodes.awk ${ACORN32}/conf/monitors/${MONITOR} Makefile
61	awk -f ${ARM}/iomd/makemodes.awk ${ACORN32}/conf/monitors/${MONITOR} ${MODES} >modedefs.c
62
63modedefs.o: modedefs.c
64	${NORMAL_C}
65.endif
66
67##
68## (5) link settings
69##
70LOADADDRESS?=	0xF0000000
71LINKFLAGS_NORMAL=	-x
72
73##
74## (6) port specific target dependencies
75##
76
77# depend on CPU configuration
78cpufunc.o cpufunc_asm.o: Makefile
79
80# depend on DIAGNOSTIC etc.
81cpuswitch.o fault.o machdep.o: Makefile
82
83##
84## (7) misc settings
85##
86
87##
88## (8) config(8) generated machinery
89##
90%INCLUDES
91
92%OBJS
93
94%CFILES
95
96%SFILES
97
98%LOAD
99
100%RULES
101
102##
103## (9) port independent kernel machinery
104##
105.include "$S/conf/Makefile.kern.inc"
106