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