Makefile.alpha revision 1.86
11.86Sthorpej#	$NetBSD: Makefile.alpha,v 1.86 2021/05/05 01:35:35 thorpej Exp $
21.10Smycroft
31.1Scgd# Makefile for NetBSD
41.1Scgd#
51.1Scgd# This makefile is constructed from a machine description:
61.1Scgd#	config machineid
71.1Scgd# Most changes should be made in the machine description
81.10Smycroft#	/sys/arch/alpha/conf/``machineid''
91.1Scgd# after which you should do
101.10Smycroft#	config machineid
111.1Scgd# Machine generic makefile changes should be made in
121.10Smycroft#	/sys/arch/alpha/conf/Makefile.alpha
131.1Scgd# after which config should be rerun for all machines of that type.
141.63Sross#
151.69Slukem# To specify debugging, add the config line: makeoptions DEBUG="-g"
161.63Sross# A better way is to specify -g only for a few files.
171.63Sross#
181.63Sross#	makeoptions DEBUGLIST="uvm* trap if_*"
191.1Scgd
201.68SatatatMACHINE_ARCH=	alpha
211.68SatatatUSETOOLS?=	no
221.68SatatatNEED_OWN_INSTALL_TARGET?=no
231.68Satatat.include <bsd.own.mk>
241.68Satatat
251.68Satatat##
261.68Satatat## (1) port identification
271.68Satatat##
281.68SatatatALPHA=		$S/arch/alpha
291.75SchristosGENASSYM_CONF=	${ALPHA}/alpha/genassym.cf
301.68Satatat
311.68Satatat##
321.68Satatat## (2) compile settings
331.68Satatat##
341.70SatatatCPPFLAGS+=	-Dalpha
351.70SatatatCFLAGS+=	-mno-fp-regs
361.70SatatatAFLAGS+=	-traditional
371.70Satatat
381.80SapbNORMAL_S=	${CPP} ${AFLAGS} ${CPPFLAGS} $< | ${TOOL_SED} -e 's,^\#.*,,' | \
391.70Satatat		${AS} -o ${.TARGET}
401.68Satatat
411.68Satatat##
421.69Slukem## (3) libkern and compat
431.68Satatat##
441.83SchristosOPT_MODULAR=	%MODULAR%
451.68Satatat
461.68Satatat##
471.68Satatat## (4) local objects, compile rules, and dependencies
481.68Satatat##
491.68SatatatMD_OBJS=	locore.o transfer.o
501.68SatatatMD_CFILES=
511.68SatatatMD_SFILES=	${ALPHA}/alpha/locore.s ${ALPHA}/alpha/transfer.s
521.68Satatat
531.68Satatatlocore.o: ${ALPHA}/alpha/locore.s assym.h
541.68Satatat	${NORMAL_S}
551.68Satatat
561.68Satatattransfer.o: ${ALPHA}/alpha/transfer.s
571.68Satatat	${NORMAL_S}
581.68Satatat
591.78Syamtlock_stubs.o: assym.h
601.78Syamt
611.68Satatat##
621.68Satatat## (5) link settings
631.68Satatat##
641.84SjklosTEXTADDR?=	fffffc0000a00000
651.71SatatatENTRYPOINT=	__transfer
661.86SthorpejKERNLDSCRIPT?=	${ALPHA}/conf/kern.ldscript
671.68SatatatEXTRA_LINKFLAGS=	-G 4
681.51SrossSTRIPFLAGS=	-g -X
691.52Smrg
701.68Satatat##
711.68Satatat## (6) port specific target dependencies
721.68Satatat##
731.24Smycroft
741.69Slukem# depend on CPU configuration
751.73Sadclock.o apecs.o cia.o lca.o ioasic.o icasic.o: Makefile
761.5Schristos
771.68Satatat##
781.68Satatat## (7) misc settings
791.68Satatat##
801.68SatatatMKDEP_AFLAGS=	-x assembler-with-cpp ${AFLAGS}
811.68Satatat
821.68Satatat##
831.68Satatat## (8) config(8) generated machinery
841.68Satatat##
851.68Satatat%INCLUDES
861.1Scgd
871.1Scgd%OBJS
881.1Scgd
891.1Scgd%CFILES
901.1Scgd
911.10Smycroft%SFILES
921.10Smycroft
931.1Scgd%LOAD
941.1Scgd
951.68Satatat%RULES
961.10Smycroft
971.68Satatat##
981.68Satatat## (9) port independent kernel machinery
991.68Satatat##
1001.68Satatat.include "$S/conf/Makefile.kern.inc"
1011.74Sthorpej
1021.74Sthorpej##
1031.74Sthorpej## (10) Appending make options.
1041.74Sthorpej##
1051.74Sthorpej%MAKEOPTIONSAPPEND
106