Makefile.hpcarm revision 1.20
11.20Srin#	$NetBSD: Makefile.hpcarm,v 1.20 2021/11/08 23:35:43 rin 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.20SrinOPT_DDB=	%DDB%
401.20Srin.if !empty(OPT_DDB) && ${HAVE_GCC:U0} > 0
411.20SrinCFLAGS+=	-mapcs-frame
421.20Srin.endif
431.20Srin
441.12Satatat##
451.12Satatat## (3) libkern and compat
461.12Satatat##
471.19SrinOPT_MODULAR=	%MODULAR%
481.1Sichiro
491.12Satatat##
501.12Satatat## (4) local objects, compile rules, and dependencies
511.12Satatat##
521.12SatatatMD_OBJS=	locore.o
531.12SatatatMD_CFILES=
541.12SatatatMD_SFILES=	${HPCARM}/hpcarm/locore.S
551.1Sichiro
561.12Satatatlocore.o: ${HPCARM}/hpcarm/locore.S assym.h
571.12Satatat	${NORMAL_S}
581.1Sichiro
591.12Satatat##
601.12Satatat## (5) link settings
611.12Satatat##
621.12SatatatTEXTADDR?=	C0040000
631.12SatatatLINKFLAGS_NORMAL=	-X
641.12Satatat
651.12Satatat##
661.12Satatat## (6) port specific target dependencies
671.12Satatat##
681.1Sichiro
691.9Slukem# depend on CPU configuration
701.1Sichirocpufunc.o cpufunc_asm.o: Makefile
711.1Sichiro
721.1Sichiro# depend on DIAGNOSTIC etc.
731.1Sichirocpuswitch.o fault.o machdep.o: Makefile
741.1Sichiro
751.18Sjoergatomic.o bcopyinout.o bcopy_page.o copystr.o cpu_in_cksum.o: assym.h
761.18Sjoergcpuswitch.o exception.o fiq_subr.o fusu.o sa11x0_irq.o sigcode.o: assym.h
771.18Sjoergspl.o vectors.o: assym.h
781.18Sjoerg
791.12Satatat##
801.12Satatat## (7) misc settings
811.12Satatat##
821.12Satatat
831.12Satatat##
841.12Satatat## (8) config(8) generated machinery
851.12Satatat##
861.12Satatat%INCLUDES
871.12Satatat
881.12Satatat%OBJS
891.12Satatat
901.12Satatat%CFILES
911.1Sichiro
921.12Satatat%SFILES
931.1Sichiro
941.12Satatat%LOAD
951.1Sichiro
961.1Sichiro%RULES
971.12Satatat
981.12Satatat##
991.12Satatat## (9) port independent kernel machinery
1001.12Satatat##
1011.12Satatat.include "$S/conf/Makefile.kern.inc"
1021.15Sthorpej
1031.15Sthorpej##
1041.15Sthorpej## (10) Appending make options.
1051.15Sthorpej##
1061.15Sthorpej%MAKEOPTIONSAPPEND
107