Makefile.vax revision 1.70
1#	$NetBSD: Makefile.vax,v 1.70 2002/11/05 14:35:33 thorpej 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
36.if ${OBJECT_FMT} == "ELF"
37CFLAGS+=	-mno-asm-pic
38AFLAGS+=	-mno-asm-pic
39.else
40CFLAGS+=	-fno-pic
41.endif
42
43##
44## (3) libkern and compat
45##
46KERN_AS=	obj
47
48##
49## (4) local objects, compile rules, and dependencies
50##
51MD_OBJS=	intvec.o subr.o
52MD_CFILES=
53MD_SFILES=	${VAX}/vax/intvec.S ${VAX}/vax/subr.S
54
55intvec.o: ${VAX}/vax/intvec.S assym.h
56	${NORMAL_S}
57
58subr.o: ${VAX}/vax/subr.S assym.h
59	${NORMAL_S}
60
61##
62## (5) link settings
63##
64TEXTADDR?=	80000000
65LINKFORMAT=	-N
66LINKFLAGS_DEBUG=	-X
67LINKFLAGS_NORMAL=	-S
68
69##
70## (6) port specific target dependencies
71##
72
73# depend on CPU configuration
74tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile
75sbi.o subr.o: Makefile
76
77##
78## (7) misc settings
79##
80
81##
82## (8) config(8) generated machinery
83##
84%INCLUDES
85
86%OBJS
87
88%CFILES
89
90%SFILES
91
92%LOAD
93
94%RULES
95
96##
97## (9) port independent kernel machinery
98##
99.include "$S/conf/Makefile.kern.inc"
100