xref: /netbsd/sys/arch/vax/conf/Makefile.vax (revision 04c8c320)
1#	$NetBSD: Makefile.vax,v 1.85 2020/09/15 05:08:07 mrg 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
37COPTS.wsmux.c+=	${${ACTIVE_CC} == "gcc" && ${HAVE_GCC:U0} >= 9:? -O1 :}
38
39
40##
41## (3) libkern and compat
42##
43OPT_MODULAR=	%MODULAR%
44
45##
46## (4) local objects, compile rules, and dependencies
47##
48MD_OBJS=	intvec.o subr.o
49MD_CFILES=
50MD_SFILES=	${VAX}/vax/intvec.S ${VAX}/vax/subr.S
51
52intvec.o: ${VAX}/vax/intvec.S assym.h
53	${NORMAL_S}
54
55subr.o: ${VAX}/vax/subr.S assym.h
56	${NORMAL_S}
57
58##
59## (5) link settings
60##
61TEXTADDR?=	80000000
62LINKFORMAT=	-N
63LINKFLAGS_DEBUG=	-X
64LINKFLAGS_NORMAL=	-S
65
66##
67## (6) port specific target dependencies
68##
69
70# depend on CPU configuration
71tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile
72sbi.o subr.o: Makefile
73
74lock_stubs.o unimpl_emul.o: assym.h
75
76##
77## (7) misc settings
78##
79
80##
81## (8) config(8) generated machinery
82##
83%INCLUDES
84
85%OBJS
86
87%CFILES
88
89%SFILES
90
91%LOAD
92
93%RULES
94
95##
96## (9) port independent kernel machinery
97##
98.include "$S/conf/Makefile.kern.inc"
99
100##
101## (10) Appending make options.
102##
103%MAKEOPTIONSAPPEND
104