Makefile.alpha revision 1.80
11.80Sapb#	$NetBSD: Makefile.alpha,v 1.80 2008/10/25 22:27:36 apb 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.68Satatat
451.68Satatat##
461.68Satatat## (4) local objects, compile rules, and dependencies
471.68Satatat##
481.68SatatatMD_OBJS=	locore.o transfer.o
491.68SatatatMD_CFILES=
501.68SatatatMD_SFILES=	${ALPHA}/alpha/locore.s ${ALPHA}/alpha/transfer.s
511.68Satatat
521.68Satatatlocore.o: ${ALPHA}/alpha/locore.s assym.h
531.68Satatat	${NORMAL_S}
541.68Satatat
551.68Satatattransfer.o: ${ALPHA}/alpha/transfer.s
561.68Satatat	${NORMAL_S}
571.68Satatat
581.78Syamtlock_stubs.o: assym.h
591.78Syamt
601.68Satatat##
611.68Satatat## (5) link settings
621.68Satatat##
631.68SatatatLINKFORMAT=	-N
641.68SatatatTEXTADDR?=	fffffc0000300000
651.71SatatatENTRYPOINT=	__transfer
661.68SatatatEXTRA_LINKFLAGS=	-G 4
671.51SrossSTRIPFLAGS=	-g -X
681.52Smrg
691.68Satatat##
701.68Satatat## (6) port specific target dependencies
711.68Satatat##
721.24Smycroft
731.69Slukem# depend on CPU configuration
741.73Sadclock.o apecs.o cia.o lca.o ioasic.o icasic.o: Makefile
751.5Schristos
761.68Satatat##
771.68Satatat## (7) misc settings
781.68Satatat##
791.68SatatatMKDEP_AFLAGS=	-x assembler-with-cpp ${AFLAGS}
801.68Satatat
811.68Satatat##
821.68Satatat## (8) config(8) generated machinery
831.68Satatat##
841.68Satatat%INCLUDES
851.1Scgd
861.1Scgd%OBJS
871.1Scgd
881.1Scgd%CFILES
891.1Scgd
901.10Smycroft%SFILES
911.10Smycroft
921.1Scgd%LOAD
931.1Scgd
941.68Satatat%RULES
951.10Smycroft
961.77Sdyoung## Include rules for Atheros WLAN
971.77Sdyoung.include "$S/contrib/dev/ath/netbsd/Makefile.ath.inc"
981.77Sdyoung
991.68Satatat##
1001.68Satatat## (9) port independent kernel machinery
1011.68Satatat##
1021.68Satatat.include "$S/conf/Makefile.kern.inc"
1031.74Sthorpej
1041.74Sthorpej##
1051.74Sthorpej## (10) Appending make options.
1061.74Sthorpej##
1071.74Sthorpej%MAKEOPTIONSAPPEND
108