Makefile.vax revision 1.86
11.86Srin#	$NetBSD: Makefile.vax,v 1.86 2023/10/07 12:15:54 rin Exp $
21.4Scgd
31.16Smycroft# Makefile for NetBSD
41.1Sragge#
51.1Sragge# This makefile is constructed from a machine description:
61.1Sragge#	config machineid
71.1Sragge# Most changes should be made in the machine description
81.16Smycroft#	/sys/arch/vax/conf/``machineid''
91.1Sragge# after which you should do
101.16Smycroft#	config machineid
111.1Sragge# Machine generic makefile changes should be made in
121.16Smycroft#	/sys/arch/vax/conf/Makefile.vax
131.1Sragge# after which config should be rerun for all machines of that type.
141.63Satatat#
151.64Slukem# To specify debugging, add the config line: makeoptions DEBUG="-g"
161.63Satatat# A better way is to specify -g only for a few files.
171.63Satatat#
181.63Satatat#	makeoptions DEBUGLIST="uvm* trap if_*"
191.61Sthorpej
201.63SatatatMACHINE_ARCH=	vax
211.62SjmcUSETOOLS?=	no
221.63SatatatNEED_OWN_INSTALL_TARGET?=no
231.62Sjmc.include <bsd.own.mk>
241.16Smycroft
251.63Satatat##
261.63Satatat## (1) port identification
271.63Satatat##
281.63SatatatVAX=		$S/arch/vax
291.74SchristosGENASSYM_CONF=	${VAX}/vax/genassym.cf
301.63Satatat
311.63Satatat##
321.63Satatat## (2) compile settings
331.63Satatat##
341.65SatatatCPPFLAGS+=	-D_VAX_INLINE_
351.81SjoergAFLAGS+=	-x assembler-with-cpp -fno-pic
361.70SthorpejCFLAGS+=	-fno-pic
371.85Smrg
381.48Smrg
391.63Satatat##
401.64Slukem## (3) libkern and compat
411.63Satatat##
421.84SrinOPT_MODULAR=	%MODULAR%
431.27Smycroft
441.63Satatat##
451.63Satatat## (4) local objects, compile rules, and dependencies
461.63Satatat##
471.63SatatatMD_OBJS=	intvec.o subr.o
481.63SatatatMD_CFILES=
491.69SmattMD_SFILES=	${VAX}/vax/intvec.S ${VAX}/vax/subr.S
501.1Sragge
511.69Smattintvec.o: ${VAX}/vax/intvec.S assym.h
521.63Satatat	${NORMAL_S}
531.1Sragge
541.69Smattsubr.o: ${VAX}/vax/subr.S assym.h
551.63Satatat	${NORMAL_S}
561.11Sragge
571.63Satatat##
581.63Satatat## (5) link settings
591.63Satatat##
601.63SatatatTEXTADDR?=	80000000
611.63SatatatLINKFORMAT=	-N
621.63SatatatLINKFLAGS_DEBUG=	-X
631.63SatatatLINKFLAGS_NORMAL=	-S
641.63Satatat
651.63Satatat##
661.63Satatat## (6) port specific target dependencies
671.63Satatat##
681.16Smycroft
691.64Slukem# depend on CPU configuration
701.63Satatattmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile
711.63Satatatsbi.o subr.o: Makefile
721.72Ssimonb
731.80Sjoerglock_stubs.o unimpl_emul.o: assym.h
741.24Smycroft
751.63Satatat##
761.63Satatat## (7) misc settings
771.63Satatat##
781.63Satatat
791.63Satatat##
801.63Satatat## (8) config(8) generated machinery
811.63Satatat##
821.63Satatat%INCLUDES
831.1Sragge
841.1Sragge%OBJS
851.1Sragge
861.1Sragge%CFILES
871.1Sragge
881.16Smycroft%SFILES
891.16Smycroft
901.1Sragge%LOAD
911.1Sragge
921.63Satatat%RULES
931.1Sragge
941.63Satatat##
951.63Satatat## (9) port independent kernel machinery
961.63Satatat##
971.63Satatat.include "$S/conf/Makefile.kern.inc"
981.73Sthorpej
991.73Sthorpej##
1001.73Sthorpej## (10) Appending make options.
1011.73Sthorpej##
1021.73Sthorpej%MAKEOPTIONSAPPEND
103