Makefile.powerpc revision 1.20
11.20Satatat#	$NetBSD: Makefile.powerpc,v 1.20 2001/12/09 05:00:49 atatat Exp $
21.1Sws#
31.1Sws# Makefile for NetBSD
41.1Sws#
51.1Sws# This makefile is constructed from a machine description:
61.1Sws#	config machineid
71.1Sws# Most changes should be made in the machine description
81.1Sws#	/sys/arch/powerpc/conf/``machineid''
91.1Sws# after which you should do
101.1Sws#	config machineid
111.1Sws# Machine generic makefile changes should be made in
121.1Sws#	/sys/arch/powerpc/conf/Makefile.powerpc
131.1Sws# after which config should be rerun for all machines of that type.
141.1Sws#
151.20Satatat# To specify debugging, add the config line: makeoptions DEBUG="-g"
161.20Satatat# A better way is to specify -g only for a few files.
171.1Sws#
181.20Satatat#	makeoptions DEBUGLIST="uvm* trap if_*"
191.18Sthorpej
201.18SthorpejMACHINE_ARCH=powerpc
211.19SjmcUSETOOLS?=	no
221.20SatatatNEED_OWN_INSTALL_TARGET?=no
231.16Sthorpej.include <bsd.own.mk>
241.1Sws
251.20Satatat##
261.20Satatat## (1) port identification
271.20Satatat##
281.17SthorpejTHISPPC=	$S/arch/${MACHINE}
291.14SmattPOWERPC=	$S/arch/powerpc
301.20SatatatGENASSYM=	${THISPPC}/${MACHINE}/genassym.cf
311.20Satatat.-include "${THISPPC}/conf/Makefile.${MACHINE}.inc"
321.1Sws
331.20Satatat##
341.20Satatat## (2) compile settings
351.20Satatat##
361.20SatatatCPPFLAGS+=	-D${MACHINE}
371.20SatatatCWARNFLAGS+=	-Wreturn-type
381.20SatatatCFLAGS+=	-msoft-float ${CCPUOPTS}
391.20SatatatAFLAGS+=	${AOPTS}
401.20Satatat
411.20Satatat##
421.20Satatat## (3) libkern and compat
431.20Satatat##
441.20Satatat
451.20Satatat##
461.20Satatat## (4) local objects, compile rules, and dependencies
471.20Satatat##
481.20SatatatMD_OBJS=	locore.o
491.20SatatatMD_CFILES=
501.20SatatatMS_SFILES=	${THISPPC}/${MACHINE}/locore.S
511.15Ssimonb
521.20Satatatlocore.o: ${THISPPC}/${MACHINE}/locore.S assym.h
531.20Satatat	${NORMAL_S}
541.1Sws
551.20Satatat##
561.20Satatat## (5) link settings
571.20Satatat##
581.20SatatatTEXTADDR?=	0x100000
591.20SatatatLINKFORMAT=	-N
601.20SatatatENTRYPOINT=	__start
611.14Smatt
621.20Satatat.if defined(NEED_SREC)
631.20SatatatSYSTEM_LD_TAIL_EXTRA=; \
641.20Satatat		${OBJCOPY} -v -O srec $@ $@.srec
651.1Sws.endif
661.1Sws
671.20Satatat##
681.20Satatat## (6) port specific target dependencies
691.20Satatat##
701.1Sws
711.20Satatat# depend on CPU configuration
721.20Satatatlocore.o machdep.o: Makefile
731.1Sws
741.20Satatat##
751.20Satatat## (7) misc settings
761.20Satatat##
771.20Satatat
781.20Satatat##
791.20Satatat## (8) config(8) generated machinery
801.20Satatat##
811.20Satatat%INCLUDES
821.1Sws
831.1Sws%OBJS
841.1Sws
851.1Sws%CFILES
861.1Sws
871.1Sws%SFILES
881.1Sws
891.1Sws%LOAD
901.1Sws
911.20Satatat%RULES
921.1Sws
931.20Satatat##
941.20Satatat## (9) port independent kernel machinery
951.20Satatat##
961.20Satatat.include "$S/conf/Makefile.kern.inc"
97