Makefile.arm revision 1.15
1# $NetBSD: Makefile.arm,v 1.15 2001/12/09 05:00:41 atatat 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/<arch>/conf/``machineid'' 9# after which you should do 10# config machineid 11# Machine generic makefile changes should be made in 12# /sys/arch/arm/conf/Makefile.arm 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## 27THISARM= $S/arch/${MACHINE} 28ARM= $S/arch/arm 29ARM32= $S/arch/arm32 30GENASSYM= ${ARM}/arm32/genassym.cf 31.-include "$S/arch/${MACHINE}/conf/Makefile.${MACHINE}.inc" 32 33## 34## (2) compile settings 35## 36CPPFLAGS+= -D${MACHINE} 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= ${SYSTEM_FIRST_OBJ} locore.o 49MD_CFILES= 50MD_SFILES= ${SYSTEM_FIRST_SFILE} ${ARM}/arm32/locore.S 51 52.if defined(SYSTEM_FIRST_OBJ) 53${SYSTEM_FIRST_OBJ}: ${SYSTEM_FIRST_SFILE} assym.h 54 ${NORMAL_S} 55.endif 56 57locore.o: ${ARM}/arm32/locore.S assym.h 58 ${NORMAL_S} 59 60## 61## (5) link settings 62## 63LOADADDRESS?= 0xF0000000 64LINKFLAGS_NORMAL= -X 65 66## 67## (6) port specific target dependencies 68## 69 70# depend on CPU configuration 71cpufunc.o cpufunc_asm.o: Makefile 72 73# depend on DIAGNOSTIC etc. 74cpuswitch.o fault.o machdep.o: Makefile 75 76## 77## (7) misc settings 78## 79 80## 81## (8) config(8) generated machinery 82## 83%INCLUDES 84 85%OBJS 86 87%CFILES 88 89%SFILES 90 91%LOAD 92 93%RULES 94 95## 96## (9) port independent kernel machinery 97## 98.include "$S/conf/Makefile.kern.inc" 99