Makefile.hpcarm revision 1.16
11.16Schristos#	$NetBSD: Makefile.hpcarm,v 1.16 2005/05/31 04:03:10 christos Exp $
21.1Sichiro
31.1Sichiro# Makefile for NetBSD
41.1Sichiro#
51.1Sichiro# This makefile is constructed from a machine description:
61.1Sichiro#	config machineid
71.1Sichiro# Most changes should be made in the machine description
81.1Sichiro#	/sys/arch/hpcarm/conf/``machineid''
91.1Sichiro# after which you should do
101.1Sichiro#	config machineid
111.1Sichiro# Machine generic makefile changes should be made in
121.1Sichiro#	/sys/arch/hpcarm/conf/Makefile.hpcarm
131.1Sichiro# after which config should be rerun for all machines of that type.
141.12Satatat#
151.12Satatat# To specify debugging, add the config line: makeoptions DEBUG="-g"
161.12Satatat# A better way is to specify -g only for a few files.
171.12Satatat#
181.12Satatat#	makeoptions DEBUGLIST="uvm* trap if_*"
191.6Sthorpej
201.7SjmcUSETOOLS?=	no
211.12SatatatNEED_OWN_INSTALL_TARGET?=no
221.5Sthorpej.include <bsd.own.mk>
231.1Sichiro
241.12Satatat##
251.12Satatat## (1) port identification
261.12Satatat##
271.12SatatatHPCARM=		$S/arch/hpcarm
281.12SatatatARM=		$S/arch/arm
291.16SchristosGENASSYM_CONF=	${ARM}/arm32/genassym.cf
301.11SthorpejGENASSYM_EXTRAS+=	${HPCARM}/hpcarm/genassym.cf
311.11Sthorpej
321.12Satatat##
331.12Satatat## (2) compile settings
341.12Satatat##
351.12SatatatCPPFLAGS+=	-Dhpcarm -Darm32
361.12SatatatCWARNFLAGS+=	-Wcomment
371.12SatatatAFLAGS+=	-x assembler-with-cpp
381.12Satatat
391.12Satatat##
401.12Satatat## (3) libkern and compat
411.12Satatat##
421.1SichiroKERN_AS=	obj
431.1Sichiro
441.12Satatat##
451.12Satatat## (4) local objects, compile rules, and dependencies
461.12Satatat##
471.12SatatatMD_OBJS=	locore.o
481.12SatatatMD_CFILES=
491.12SatatatMD_SFILES=	${HPCARM}/hpcarm/locore.S
501.1Sichiro
511.12Satatatlocore.o: ${HPCARM}/hpcarm/locore.S assym.h
521.12Satatat	${NORMAL_S}
531.1Sichiro
541.12Satatat##
551.12Satatat## (5) link settings
561.12Satatat##
571.12SatatatTEXTADDR?=	C0040000
581.12SatatatLINKFLAGS_NORMAL=	-X
591.12Satatat
601.12Satatat##
611.12Satatat## (6) port specific target dependencies
621.12Satatat##
631.1Sichiro
641.9Slukem# depend on CPU configuration
651.1Sichirocpufunc.o cpufunc_asm.o: Makefile
661.1Sichiro
671.1Sichiro# depend on DIAGNOSTIC etc.
681.1Sichirocpuswitch.o fault.o machdep.o: Makefile
691.1Sichiro
701.12Satatat##
711.12Satatat## (7) misc settings
721.12Satatat##
731.12Satatat
741.12Satatat##
751.12Satatat## (8) config(8) generated machinery
761.12Satatat##
771.12Satatat%INCLUDES
781.12Satatat
791.12Satatat%OBJS
801.12Satatat
811.12Satatat%CFILES
821.1Sichiro
831.12Satatat%SFILES
841.1Sichiro
851.12Satatat%LOAD
861.1Sichiro
871.1Sichiro%RULES
881.12Satatat
891.12Satatat##
901.12Satatat## (9) port independent kernel machinery
911.12Satatat##
921.12Satatat.include "$S/conf/Makefile.kern.inc"
931.15Sthorpej
941.15Sthorpej##
951.15Sthorpej## (10) Appending make options.
961.15Sthorpej##
971.15Sthorpej%MAKEOPTIONSAPPEND
98