Makefile.news68k revision 1.22
11.22Srin#	$NetBSD: Makefile.news68k,v 1.22 2018/09/22 12:24:02 rin Exp $
21.1Stsutsui#
31.1Stsutsui# Makefile for NetBSD
41.1Stsutsui#
51.1Stsutsui# This makefile is constructed from a machine description:
61.1Stsutsui#	config machineid
71.1Stsutsui# Most changes should be made in the machine description
81.1Stsutsui#	/sys/arch/news68k/conf/``machineid''
91.1Stsutsui# after which you should do
101.1Stsutsui#	config machineid
111.1Stsutsui# Machine generic makefile changes should be made in
121.1Stsutsui#	/sys/arch/news68k/conf/Makefile.news68k
131.1Stsutsui# after which config should be rerun for all machines of that type.
141.13Satatat#
151.13Satatat# To specify debugging, add the config line: makeoptions DEBUG="-g"
161.13Satatat# A better way is to specify -g only for a few files.
171.13Satatat#
181.13Satatat#	makeoptions DEBUGLIST="uvm* trap if_*"
191.10Sthorpej
201.10SthorpejMACHINE_ARCH=m68k
211.11SjmcUSETOOLS?=	no
221.13SatatatNEED_OWN_INSTALL_TARGET?=no
231.11Sjmc.include <bsd.own.mk>
241.1Stsutsui
251.13Satatat##
261.13Satatat## (1) port identification
271.13Satatat##
281.1Stsutsui.ifndef S
291.13SatatatS=		../../../..
301.1Stsutsui.endif
311.13SatatatNEWS68K=	$S/arch/news68k
321.17SchristosGENASSYM_CONF=	${NEWS68K}/news68k/genassym.cf
331.1Stsutsui
341.13Satatat##
351.13Satatat## (2) compile settings
361.13Satatat##
371.13SatatatCPPFLAGS+=	-Dnews68k
381.13SatatatCFLAGS+=	-msoft-float
391.20SjoergAFLAGS+=	-x assembler-with-cpp
401.13Satatat
411.13Satatat##
421.13Satatat## (3) libkern and compat
431.13Satatat##
441.22SrinOPT_MODULAR=	%MODULAR%
451.1Stsutsui
461.13Satatat##
471.13Satatat## (4) local objects, compile rules, and dependencies
481.13Satatat##
491.21SuebayasiMD_OBJS=	locore.o
501.21SuebayasiMD_LIBS=	${FPSP}
511.13SatatatMD_CFILES=
521.13SatatatMD_SFILES=	${NEWS68K}/news68k/locore.s
531.1Stsutsui
541.13Satatatlocore.o: ${NEWS68K}/news68k/locore.s assym.h
551.13Satatat	${NORMAL_S}
561.1Stsutsui
571.13Satatat##
581.13Satatat## (5) link settings
591.13Satatat##
601.13SatatatLINKFORMAT=	-n
611.13SatatatTEXTADDR?=	0
621.13Satatat
631.13Satatat##
641.13Satatat## (6) port specific target dependencies
651.13Satatat##
661.1Stsutsui
671.13Satatat# depend on CPU configuration
681.13Satatatmachdep.o mainbus.o trap.o: Makefile
691.1Stsutsui
701.19Sjoergcopy.o copypage.o lock_stubs.o: assym.h
711.19Sjoerg
721.13Satatat##
731.13Satatat## (7) misc settings
741.13Satatat##
751.13Satatat
761.13Satatat##
771.13Satatat## (8) config(8) generated machinery
781.13Satatat##
791.13Satatat%INCLUDES
801.1Stsutsui
811.1Stsutsui%OBJS
821.1Stsutsui
831.1Stsutsui%CFILES
841.1Stsutsui
851.1Stsutsui%SFILES
861.1Stsutsui
871.1Stsutsui%LOAD
881.1Stsutsui
891.13Satatat%RULES
901.1Stsutsui
911.13Satatat##
921.13Satatat## (9) port independent kernel machinery
931.13Satatat##
941.13Satatat.include "$S/conf/Makefile.kern.inc"
951.16Sthorpej
961.16Sthorpej##
971.16Sthorpej## (10) Appending make options.
981.16Sthorpej##
991.16Sthorpej%MAKEOPTIONSAPPEND
100