Makefile.acorn32 revision 1.14
1# $NetBSD: Makefile.acorn32,v 1.14 2002/06/01 23:24:15 bjh21 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/acorn32/conf/``machineid'' 9# after which you should do 10# config machineid 11# Machine generic makefile changes should be made in 12# /sys/arch/acorn32/conf/Makefile.acorn32 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## 27ACORN32= $S/arch/acorn32 28ARM= $S/arch/arm 29GENASSYM= ${ARM}/arm32/genassym.cf 30GENASSYM_EXTRAS+= ${ACORN32}/acorn32/genassym.cf 31 32## 33## (2) compile settings 34## 35CPPFLAGS+= -Darm32 36CWARNFLAGS+= -Wcomment 37LOOSE_PROTOTYPES= yes 38AFLAGS+= -x assembler-with-cpp 39 40## 41## (3) libkern and compat 42## 43KERN_AS= obj 44 45## 46## (4) local objects, compile rules, and dependencies 47## 48MD_OBJS= locore.o 49MD_CFILES= 50MD_SFILES= ${ARM}/arm32/locore.S 51 52locore.o: ${ARM}/arm32/locore.S assym.h 53 ${NORMAL_S} 54 55.ifdef MONITOR 56MD_OBJS+= modedefs.o 57MD_CFILES+= modedefs.c 58 59modedefs.c: ${ARM}/iomd/makemodes.awk ${ACORN32}/conf/monitors/${MONITOR} Makefile 60 awk -f ${ARM}/iomd/makemodes.awk ${ACORN32}/conf/monitors/${MONITOR} ${MODES} >modedefs.c 61 62modedefs.o: modedefs.c 63 ${NORMAL_C} 64.endif 65 66## 67## (5) link settings 68## 69LOADADDRESS?= 0xF0000000 70LINKFORMAT= -N 71LINKFLAGS_NORMAL= -x 72 73## 74## (6) port specific target dependencies 75## 76 77# depend on CPU configuration 78cpufunc.o cpufunc_asm.o: Makefile 79 80# depend on DIAGNOSTIC etc. 81cpuswitch.o fault.o machdep.o: Makefile 82 83## 84## (7) misc settings 85## 86 87## 88## (8) config(8) generated machinery 89## 90%INCLUDES 91 92%OBJS 93 94%CFILES 95 96%SFILES 97 98%LOAD 99 100%RULES 101 102## 103## (9) port independent kernel machinery 104## 105.include "$S/conf/Makefile.kern.inc" 106