1#	$NetBSD: Makefile.vax,v 1.86 2023/10/07 12:15:54 rin 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_CONF=	${VAX}/vax/genassym.cf
30
31##
32## (2) compile settings
33##
34CPPFLAGS+=	-D_VAX_INLINE_
35AFLAGS+=	-x assembler-with-cpp -fno-pic
36CFLAGS+=	-fno-pic
37
38
39##
40## (3) libkern and compat
41##
42OPT_MODULAR=	%MODULAR%
43
44##
45## (4) local objects, compile rules, and dependencies
46##
47MD_OBJS=	intvec.o subr.o
48MD_CFILES=
49MD_SFILES=	${VAX}/vax/intvec.S ${VAX}/vax/subr.S
50
51intvec.o: ${VAX}/vax/intvec.S assym.h
52	${NORMAL_S}
53
54subr.o: ${VAX}/vax/subr.S assym.h
55	${NORMAL_S}
56
57##
58## (5) link settings
59##
60TEXTADDR?=	80000000
61LINKFORMAT=	-N
62LINKFLAGS_DEBUG=	-X
63LINKFLAGS_NORMAL=	-S
64
65##
66## (6) port specific target dependencies
67##
68
69# depend on CPU configuration
70tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile
71sbi.o subr.o: Makefile
72
73lock_stubs.o unimpl_emul.o: assym.h
74
75##
76## (7) misc settings
77##
78
79##
80## (8) config(8) generated machinery
81##
82%INCLUDES
83
84%OBJS
85
86%CFILES
87
88%SFILES
89
90%LOAD
91
92%RULES
93
94##
95## (9) port independent kernel machinery
96##
97.include "$S/conf/Makefile.kern.inc"
98
99##
100## (10) Appending make options.
101##
102%MAKEOPTIONSAPPEND
103