xref: /netbsd-src/sys/arch/hpcarm/conf/Makefile.hpcarm (revision 86811edb37e43f44504b192591c863c5d48f5e08)
1#	$NetBSD: Makefile.hpcarm,v 1.17 2005/12/11 12:17:30 christos 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/hpcarm/conf/``machineid''
9# after which you should do
10#	config machineid
11# Machine generic makefile changes should be made in
12#	/sys/arch/hpcarm/conf/Makefile.hpcarm
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##
27HPCARM=		$S/arch/hpcarm
28ARM=		$S/arch/arm
29GENASSYM_CONF=	${ARM}/arm32/genassym.cf
30GENASSYM_EXTRAS+=	${HPCARM}/hpcarm/genassym.cf
31
32##
33## (2) compile settings
34##
35CPPFLAGS+=	-Dhpcarm -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=	${HPCARM}/hpcarm/locore.S
50
51locore.o: ${HPCARM}/hpcarm/locore.S assym.h
52	${NORMAL_S}
53
54##
55## (5) link settings
56##
57TEXTADDR?=	C0040000
58LINKFLAGS_NORMAL=	-X
59
60##
61## (6) port specific target dependencies
62##
63
64# depend on CPU configuration
65cpufunc.o cpufunc_asm.o: Makefile
66
67# depend on DIAGNOSTIC etc.
68cpuswitch.o fault.o machdep.o: Makefile
69
70##
71## (7) misc settings
72##
73
74##
75## (8) config(8) generated machinery
76##
77%INCLUDES
78
79%OBJS
80
81%CFILES
82
83%SFILES
84
85%LOAD
86
87%RULES
88
89##
90## (9) port independent kernel machinery
91##
92.include "$S/conf/Makefile.kern.inc"
93
94##
95## (10) Appending make options.
96##
97%MAKEOPTIONSAPPEND
98