Makefile.sun3 revision 1.94
11.94Sthorpej# $NetBSD: Makefile.sun3,v 1.94 2002/05/30 22:02:13 thorpej Exp $
21.23Scgd
31.24Sgwr# Makefile for NetBSD
41.1Sglass#
51.1Sglass# This makefile is constructed from a machine description:
61.1Sglass#	config machineid
71.1Sglass# Most changes should be made in the machine description
81.35Sgwr#	/sys/arch/sun3/conf/``machineid''
91.1Sglass# after which you should do
101.38Smycroft#	config machineid
111.1Sglass# Machine generic makefile changes should be made in
121.35Sgwr#	/sys/arch/sun3/conf/Makefile.sun3
131.1Sglass# after which config should be rerun for all machines of that type.
141.92Satatat#
151.92Satatat# To specify debugging, add the config line: makeoptions DEBUG="-g"
161.92Satatat# A better way is to specify -g only for a few files.
171.92Satatat#
181.92Satatat#	makeoptions DEBUGLIST="uvm* trap if_*"
191.1Sglass
201.88SthorpejMACHINE_ARCH=m68k
211.89SjmcUSETOOLS?=	no
221.92SatatatNEED_OWN_INSTALL_TARGET?=no
231.89Sjmc.include <bsd.own.mk>
241.88Sthorpej
251.92Satatat##
261.92Satatat## (1) port identification
271.92Satatat##
281.92SatatatSUN3=		$S/arch/sun3
291.92SatatatGENASSYM=	${SUN3}/${MACHTYPE}/genassym.cf
301.92Satatat
311.92Satatat##
321.92Satatat## (2) compile settings
331.92Satatat##
341.94SthorpejCPPFLAGS+=	-Dsun3
351.93SchsCFLAGS+=	${CMACHFLAGS} -msoft-float -fno-defer-pop
361.92SatatatAFLAGS+=	-x assembler-with-cpp -traditional-cpp
371.92Satatat
381.92Satatat##
391.92Satatat## (3) libkern and compat
401.92Satatat##
411.71SdrochnerKERN_AS=	obj
421.1Sglass
431.92Satatat##
441.92Satatat## (4) local objects, compile rules, and dependencies
451.92Satatat##
461.92SatatatMD_OBJS=	locore.o
471.92SatatatMD_CFILES=
481.92SatatatMD_SFILES=	${SUN3}/${MACHTYPE}/locore.s
491.32Schristos
501.92Satatatlocore.o: ${SUN3}/${MACHTYPE}/locore.s
511.92Satatat	${NORMAL_S}
521.1Sglass
531.92Satatat##
541.92Satatat## (5) link settings
551.92Satatat##
561.92Satatat.if ${MACHTYPE} == "sun3x"
571.92SatatatTEXTADDR?=	F8004000
581.11Sderaadt.else
591.92SatatatTEXTADDR?=	0E004000
601.11Sderaadt.endif
611.92SatatatLINKFORMAT=	-N
621.1Sglass
631.92Satatat##
641.92Satatat## (6) port specific target dependencies
651.92Satatat##
661.79Stron
671.45Sgwr# For cross-compilation, the "gcc -M" mkdep script is convenient,
681.45Sgwr# but that does not correctly make rules from *.s files.  The
691.59Sgwr# easiest work-around is to just list those dependencies here.
701.59Sgwrlocore.o:   assym.h m68k/asm.h m68k/trap.h
711.59Sgwrcopy.o:     assym.h m68k/asm.h $S/sys/errno.h
721.59Sgwrbcopy.o:    assym.h m68k/asm.h
731.59Sgwrcopypage.o: assym.h m68k/asm.h
741.1Sglass
751.91Slukem# depend on CPU configuration
761.38Smycroftdb_machdep.o dvma.o machdep.o pmap.o sun3_startup.o vm_machdep.o: Makefile
771.64Sgwr
781.64Sgwr# depends on DDB, etc.
791.64Sgwrstub.o: Makefile
801.1Sglass
811.92Satatat##
821.92Satatat## (7) misc settings
831.92Satatat##
841.92Satatat
851.92Satatat##
861.92Satatat## (8) config(8) generated machinery
871.92Satatat##
881.92Satatat%INCLUDES
891.92Satatat
901.92Satatat%OBJS
911.92Satatat
921.92Satatat%CFILES
931.47Smycroft
941.92Satatat%SFILES
951.82Shubertf
961.92Satatat%LOAD
971.1Sglass
981.1Sglass%RULES
991.92Satatat
1001.92Satatat##
1011.92Satatat## (9) port independent kernel machinery
1021.92Satatat##
1031.92Satatat.include "$S/conf/Makefile.kern.inc"
104