Makefile.mvme68k revision 1.55
11.55Satatat#	$NetBSD: Makefile.mvme68k,v 1.55 2001/12/09 05:00:47 atatat Exp $
21.1Schuck
31.1Schuck# Makefile for NetBSD
41.1Schuck#
51.1Schuck# This makefile is constructed from a machine description:
61.1Schuck#	config machineid
71.1Schuck# Most changes should be made in the machine description
81.1Schuck#	/sys/arch/mvme68k/conf/``machineid''
91.1Schuck# after which you should do
101.6Smycroft#	config machineid
111.1Schuck# Machine generic makefile changes should be made in
121.1Schuck#	/sys/arch/mvme68k/conf/Makefile.mvme68k
131.1Schuck# after which config should be rerun for all machines of that type.
141.55Satatat#
151.55Satatat# To specify debugging, add the config line: makeoptions DEBUG="-g"
161.55Satatat# A better way is to specify -g only for a few files.
171.55Satatat#
181.55Satatat#	makeoptions DEBUGLIST="uvm* trap if_*"
191.52Sthorpej
201.52SthorpejMACHINE_ARCH=m68k
211.53SjmcUSETOOLS?=	no
221.55SatatatNEED_OWN_INSTALL_TARGET?=no
231.53Sjmc.include <bsd.own.mk>
241.1Schuck
251.55Satatat##
261.55Satatat## (1) port identification
271.55Satatat##
281.55SatatatMVME68K=	$S/arch/mvme68k
291.55SatatatGENASSYM=	${MVME68K}/mvme68k/genassym.cf
301.55Satatat
311.55Satatat##
321.55Satatat## (2) compile settings
331.55Satatat##
341.55SatatatCPPFLAGS+=	-Dmvme68k
351.49Sscw.if empty(IDENT:M-DMVME172) && empty(IDENT:M-DMVME177)
361.49Sscw.if empty(IDENT:M-DMVME147)
371.49SscwCMACHFLAGS=	-m68040
381.49Sscw.else
391.49SscwCMACHFLAGS=	-m68030
401.49Sscw.endif
411.49Sscw.else
421.49Sscw.if empty(IDENT:M-DMVME147) && empty(IDENT:M-DMVME162) && empty(IDENT:M-DMVME167)
431.49SscwCMACHFLAGS=	-m68060 -Wa,-m68030 -Wa,-m68851
441.49Sscw.else
451.49SscwCMACHFLAGS=	-m68020-60 -Wa,-m68030 -Wa,-m68851
461.49Sscw.endif
471.49Sscw.endif
481.55SatatatCFLAGS+=	${CMACHFLAGS} -msoft-float
491.55SatatatAFLAGS+=	-x assembler-with-cpp -traditional-cpp
501.25Sthorpej
511.55Satatat##
521.55Satatat## (3) libkern and compat
531.55Satatat##
541.36SdrochnerKERN_AS=	obj
551.1Schuck
561.55Satatat##
571.55Satatat## (4) local objects, compile rules, and dependencies
581.55Satatat##
591.55Satatat# for the Motorola 68040 Floating Point Software Product
601.1Schuck.include "$S/arch/m68k/fpsp/Makefile.inc"
611.49Sscw
621.55Satatat# for the Motorola 68060 Software Support Package
631.49Sscw.include "$S/arch/m68k/060sp/Makefile.inc"
641.1Schuck
651.55SatatatMD_OBJS=	locore.o ${FPSP}
661.55SatatatMD_CFILES=
671.55SatatatMD_SFILES=	${MVME68K}/mvme68k/locore.s
681.1Schuck
691.1Schuck
701.55Satatatlocore.o: ${MVME68K}/mvme68k/locore.s assym.h
711.55Satatat	${NORMAL_S}
721.55Satatat##
731.55Satatat## (5) link settings
741.55Satatat##
751.55SatatatLINKFORMAT=	-n
761.55SatatatTEXTADDR?=	8000
771.55Satatat
781.55Satatat##
791.55Satatat## (6) port specific target dependencies
801.55Satatat##
811.55Satatat
821.55Satatat# depend on CPU configuration
831.55Satatatlocore.o pmap.o sys_machdep.o trap.o: Makefile
841.55Satatat
851.55Satatat##
861.55Satatat## (7) misc settings
871.55Satatat##
881.55Satatat
891.55Satatat##
901.55Satatat## (8) config(8) generated machinery
911.55Satatat##
921.55Satatat%INCLUDES
931.13Smycroft
941.1Schuck%OBJS
951.1Schuck
961.1Schuck%CFILES
971.1Schuck
981.6Smycroft%SFILES
991.6Smycroft
1001.1Schuck%LOAD
1011.1Schuck
1021.55Satatat%RULES
1031.1Schuck
1041.55Satatat##
1051.55Satatat## (9) port independent kernel machinery
1061.55Satatat##
1071.55Satatat.include "$S/conf/Makefile.kern.inc"
108