Makefile.alpha revision 1.70
1# $NetBSD: Makefile.alpha,v 1.70 2001/11/23 05:19:01 atatat 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/alpha/conf/``machineid''
9# after which you should do
10#	config machineid
11# Machine generic makefile changes should be made in
12#	/sys/arch/alpha/conf/Makefile.alpha
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=	alpha
21USETOOLS?=	no
22NEED_OWN_INSTALL_TARGET?=no
23.include <bsd.own.mk>
24
25##
26## (1) port identification
27##
28ALPHA=		$S/arch/alpha
29GENASSYM=	${ALPHA}/alpha/genassym.cf
30
31##
32## (2) compile settings
33##
34CPPFLAGS+=	-Dalpha
35CFLAGS+=	-mno-fp-regs
36AFLAGS+=	-traditional
37
38NORMAL_S=	${CPP} ${AFLAGS} ${CPPFLAGS} $< | sed -e 's,^\#.*,,' | \
39		${AS} -o ${.TARGET}
40
41##
42## (3) libkern and compat
43##
44
45##
46## (4) local objects, compile rules, and dependencies
47##
48MD_OBJS=	locore.o transfer.o
49MD_CFILES=
50MD_SFILES=	${ALPHA}/alpha/locore.s ${ALPHA}/alpha/transfer.s
51
52locore.o: ${ALPHA}/alpha/locore.s assym.h
53	${NORMAL_S}
54
55transfer.o: ${ALPHA}/alpha/transfer.s
56	${NORMAL_S}
57
58##
59## (5) link settings
60##
61LINKFORMAT=	-N
62TEXTADDR?=	fffffc0000300000
63EXTRA_LINKFLAGS=	-G 4
64STRIPFLAGS=	-g -X
65
66##
67## (6) port specific target dependencies
68##
69
70# depend on CPU configuration
71clock.o apecs.o cia.o lca.o ioasic.o scc.o icasic.o: Makefile
72
73##
74## (7) misc settings
75##
76MKDEP_AFLAGS=	-x assembler-with-cpp ${AFLAGS}
77
78##
79## (8) config(8) generated machinery
80##
81%INCLUDES
82
83%OBJS
84
85%CFILES
86
87%SFILES
88
89%LOAD
90
91%RULES
92
93##
94## (9) port independent kernel machinery
95##
96.include "$S/conf/Makefile.kern.inc"
97