1# $NetBSD: Makefile.hpcarm,v 1.19 2018/09/22 12:24:02 rin Exp $ 2 3# Makefile for NetBSD 4# 5# This makefile is constructed from a machine description: 6# config machineid 7# Most changes should be made in the machine description 8# /sys/arch/hpcarm/conf/``machineid'' 9# after which you should do 10# config machineid 11# Machine generic makefile changes should be made in 12# /sys/arch/hpcarm/conf/Makefile.hpcarm 13# after which config should be rerun for all machines of that type. 14# 15# To specify debugging, add the config line: makeoptions DEBUG="-g" 16# A better way is to specify -g only for a few files. 17# 18# makeoptions DEBUGLIST="uvm* trap if_*" 19 20USETOOLS?= no 21NEED_OWN_INSTALL_TARGET?=no 22.include <bsd.own.mk> 23 24## 25## (1) port identification 26## 27HPCARM= $S/arch/hpcarm 28ARM= $S/arch/arm 29GENASSYM_CONF= ${ARM}/arm32/genassym.cf 30GENASSYM_EXTRAS+= ${HPCARM}/hpcarm/genassym.cf 31 32## 33## (2) compile settings 34## 35CPPFLAGS+= -Dhpcarm -Darm32 36CWARNFLAGS+= -Wcomment 37AFLAGS+= -x assembler-with-cpp 38 39## 40## (3) libkern and compat 41## 42OPT_MODULAR= %MODULAR% 43 44## 45## (4) local objects, compile rules, and dependencies 46## 47MD_OBJS= locore.o 48MD_CFILES= 49MD_SFILES= ${HPCARM}/hpcarm/locore.S 50 51locore.o: ${HPCARM}/hpcarm/locore.S assym.h 52 ${NORMAL_S} 53 54## 55## (5) link settings 56## 57TEXTADDR?= C0040000 58LINKFLAGS_NORMAL= -X 59 60## 61## (6) port specific target dependencies 62## 63 64# depend on CPU configuration 65cpufunc.o cpufunc_asm.o: Makefile 66 67# depend on DIAGNOSTIC etc. 68cpuswitch.o fault.o machdep.o: Makefile 69 70atomic.o bcopyinout.o bcopy_page.o copystr.o cpu_in_cksum.o: assym.h 71cpuswitch.o exception.o fiq_subr.o fusu.o sa11x0_irq.o sigcode.o: assym.h 72spl.o vectors.o: assym.h 73 74## 75## (7) misc settings 76## 77 78## 79## (8) config(8) generated machinery 80## 81%INCLUDES 82 83%OBJS 84 85%CFILES 86 87%SFILES 88 89%LOAD 90 91%RULES 92 93## 94## (9) port independent kernel machinery 95## 96.include "$S/conf/Makefile.kern.inc" 97 98## 99## (10) Appending make options. 100## 101%MAKEOPTIONSAPPEND 102