Makefile.news68k revision 1.17
11.17Schristos#	$NetBSD: Makefile.news68k,v 1.17 2005/05/31 04:03:10 christos 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.13SatatatAFLAGS+=	-x assembler-with-cpp -traditional-cpp
401.13Satatat
411.13Satatat##
421.13Satatat## (3) libkern and compat
431.13Satatat##
441.13SatatatKERN_AS=	obj
451.1Stsutsui
461.13Satatat##
471.13Satatat## (4) local objects, compile rules, and dependencies
481.13Satatat##
491.13SatatatMD_OBJS=	locore.o ${FPSP}
501.13SatatatMD_CFILES=
511.13SatatatMD_SFILES=	${NEWS68K}/news68k/locore.s
521.1Stsutsui
531.13Satatatlocore.o: ${NEWS68K}/news68k/locore.s assym.h
541.13Satatat	${NORMAL_S}
551.1Stsutsui
561.13Satatat##
571.13Satatat## (5) link settings
581.13Satatat##
591.13SatatatLINKFORMAT=	-n
601.13SatatatTEXTADDR?=	0
611.13Satatat
621.13Satatat##
631.13Satatat## (6) port specific target dependencies
641.13Satatat##
651.1Stsutsui
661.13Satatat# depend on CPU configuration
671.13Satatatmachdep.o mainbus.o trap.o: Makefile
681.1Stsutsui
691.13Satatat##
701.13Satatat## (7) misc settings
711.13Satatat##
721.13Satatat
731.13Satatat##
741.13Satatat## (8) config(8) generated machinery
751.13Satatat##
761.13Satatat%INCLUDES
771.1Stsutsui
781.1Stsutsui%OBJS
791.1Stsutsui
801.1Stsutsui%CFILES
811.1Stsutsui
821.1Stsutsui%SFILES
831.1Stsutsui
841.1Stsutsui%LOAD
851.1Stsutsui
861.13Satatat%RULES
871.1Stsutsui
881.13Satatat##
891.13Satatat## (9) port independent kernel machinery
901.13Satatat##
911.13Satatat.include "$S/conf/Makefile.kern.inc"
921.16Sthorpej
931.16Sthorpej##
941.16Sthorpej## (10) Appending make options.
951.16Sthorpej##
961.16Sthorpej%MAKEOPTIONSAPPEND
97