Makefile.vax revision 1.65
1#	$NetBSD: Makefile.vax,v 1.65 2001/11/23 05:19:02 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/vax/conf/``machineid''
9# after which you should do
10#	config machineid
11# Machine generic makefile changes should be made in
12#	/sys/arch/vax/conf/Makefile.vax
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=	vax
21USETOOLS?=	no
22NEED_OWN_INSTALL_TARGET?=no
23.include <bsd.own.mk>
24
25##
26## (1) port identification
27##
28VAX=		$S/arch/vax
29GENASSYM=	${VAX}/vax/genassym.cf
30
31##
32## (2) compile settings
33##
34CPPFLAGS+=	-D_VAX_INLINE_
35AFLAGS+=	-x assembler-with-cpp -traditional-cpp
36CFLAGS+=	-mno-pic
37
38##
39## (3) libkern and compat
40##
41KERN_AS=	obj
42
43##
44## (4) local objects, compile rules, and dependencies
45##
46MD_OBJS=	intvec.o subr.o
47MD_CFILES=
48MD_SFILES=	${VAX}/vax/intvec.s ${VAX}/vax/subr.s
49
50intvec.o: ${VAX}/vax/intvec.s assym.h
51	${NORMAL_S}
52
53subr.o: ${VAX}/vax/subr.s assym.h
54	${NORMAL_S}
55
56##
57## (5) link settings
58##
59TEXTADDR?=	80000000
60LINKFORMAT=	-N
61LINKFLAGS_DEBUG=	-X
62LINKFLAGS_NORMAL=	-S
63
64##
65## (6) port specific target dependencies
66##
67
68# depend on CPU configuration
69tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile
70sbi.o subr.o: Makefile
71
72##
73## (7) misc settings
74##
75
76##
77## (8) config(8) generated machinery
78##
79%INCLUDES
80
81%OBJS
82
83%CFILES
84
85%SFILES
86
87%LOAD
88
89%RULES
90
91##
92## (9) port independent kernel machinery
93##
94.include "$S/conf/Makefile.kern.inc"
95