11.1Sthorpej#	$NetBSD: Makefile.virt68k,v 1.1 2024/01/02 07:40:59 thorpej Exp $
21.1Sthorpej
31.1Sthorpej# Makefile for NetBSD
41.1Sthorpej#
51.1Sthorpej# This makefile is constructed from a machine description:
61.1Sthorpej#	config machineid
71.1Sthorpej# Most changes should be made in the machine description
81.1Sthorpej#	/sys/arch/virt68k/conf/``machineid''
91.1Sthorpej# after which you should do
101.1Sthorpej#	config machineid
111.1Sthorpej# Machine generic makefile changes should be made in
121.1Sthorpej#	/sys/arch/virt68k/conf/Makefile.virt68k
131.1Sthorpej# after which config should be rerun for all machines of that type.
141.1Sthorpej#
151.1Sthorpej# To specify debugging, add the config line: makeoptions DEBUG="-g"
161.1Sthorpej# A better way is to specify -g only for a few files.
171.1Sthorpej#
181.1Sthorpej#	makeoptions DEBUGLIST="uvm* trap if_*"
191.1Sthorpej
201.1SthorpejMACHINE_ARCH=m68k
211.1SthorpejUSETOOLS?=	no
221.1SthorpejNEED_OWN_INSTALL_TARGET?=no
231.1Sthorpej.include <bsd.own.mk>
241.1Sthorpej
251.1Sthorpej##
261.1Sthorpej## (1) port identification
271.1Sthorpej##
281.1SthorpejVIRT68K=	$S/arch/virt68k
291.1SthorpejGENASSYM_CONF=	${VIRT68K}/virt68k/genassym.cf
301.1Sthorpej
311.1Sthorpej##
321.1Sthorpej## (2) compile settings
331.1Sthorpej##
341.1SthorpejCPPFLAGS+=	-Dvirt68k
351.1SthorpejCMACHFLAGS=	-m68020-60 -Wa,-m68030 -Wa,-mcpu=68030 -Wa,-m68851
361.1Sthorpej
371.1SthorpejCFLAGS+=	${CMACHFLAGS} -msoft-float
381.1SthorpejAFLAGS+=	-x assembler-with-cpp
391.1Sthorpej
401.1Sthorpej##
411.1Sthorpej## (3) libkern and compat
421.1Sthorpej##
431.1SthorpejOPT_MODULAR=	%MODULAR%
441.1Sthorpej
451.1Sthorpej##
461.1Sthorpej## (4) local objects, compile rules, and dependencies
471.1Sthorpej##
481.1Sthorpej# for the Motorola 68040 Floating Point Software Product
491.1Sthorpej.include "$S/arch/m68k/fpsp/Makefile.inc"
501.1Sthorpej
511.1Sthorpej# for the Motorola 68060 Software Support Package
521.1Sthorpej.include "$S/arch/m68k/060sp/Makefile.inc"
531.1Sthorpej
541.1SthorpejMD_OBJS=	locore.o
551.1SthorpejMD_LIBS=	${FPSP}
561.1SthorpejMD_CFILES=
571.1SthorpejMD_SFILES=	${VIRT68K}/virt68k/locore.s
581.1Sthorpej
591.1Sthorpej
601.1Sthorpejlocore.o: ${VIRT68K}/virt68k/locore.s assym.h
611.1Sthorpej	${NORMAL_S}
621.1Sthorpej##
631.1Sthorpej## (5) link settings
641.1Sthorpej##
651.1SthorpejLINKFORMAT=	-n
661.1SthorpejTEXTADDR?=	2000
671.1Sthorpej
681.1Sthorpej##
691.1Sthorpej## (6) port specific target dependencies
701.1Sthorpej##
711.1Sthorpej
721.1Sthorpej# depend on CPU configuration
731.1Sthorpejlocore.o pmap.o sys_machdep.o trap.o: Makefile
741.1Sthorpej
751.1Sthorpejcopy.o copypage.o lock_stubs.o: assym.h
761.1Sthorpej
771.1Sthorpej##
781.1Sthorpej## (7) misc settings
791.1Sthorpej##
801.1Sthorpej
811.1Sthorpej##
821.1Sthorpej## (8) config(8) generated machinery
831.1Sthorpej##
841.1Sthorpej%INCLUDES
851.1Sthorpej
861.1Sthorpej%OBJS
871.1Sthorpej
881.1Sthorpej%CFILES
891.1Sthorpej
901.1Sthorpej%SFILES
911.1Sthorpej
921.1Sthorpej%LOAD
931.1Sthorpej
941.1Sthorpej%RULES
951.1Sthorpej
961.1Sthorpej##
971.1Sthorpej## (9) port independent kernel machinery
981.1Sthorpej##
991.1Sthorpej.include "$S/conf/Makefile.kern.inc"
1001.1Sthorpej
1011.1Sthorpej##
1021.1Sthorpej## (10) Appending make options.
1031.1Sthorpej##
1041.1Sthorpej%MAKEOPTIONSAPPEND
105