1 # $NetBSD: Makefile.acorn32,v 1.22 2008/02/14 00:35:56 joerg Exp $
5 # This makefile is constructed from a machine description:
7 # Most changes should be made in the machine description
8 # /sys/arch/acorn32/conf/``machineid''
9 # after which you should do
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.
15 # To specify debugging, add the config line: makeoptions DEBUG="-g"
16 # A better way is to specify -g only for a few files.
18 # makeoptions DEBUGLIST="uvm* trap if_*"
21 NEED_OWN_INSTALL_TARGET?=no
25 ## (1) port identification
27 ACORN32= $S/arch/acorn32
29 GENASSYM_CONF= ${ARM}/arm32/genassym.cf
30 GENASSYM_EXTRAS+= ${ACORN32}/acorn32/genassym.cf
33 ## (2) compile settings
36 CWARNFLAGS+= -Wcomment
37 AFLAGS+= -x assembler-with-cpp
40 ## (3) libkern and compat
45 ## (4) local objects, compile rules, and dependencies
49 MD_SFILES= ${ARM}/arm32/locore.S
51 atomic.o bcopy_page.o bcopyinout.o copystr.o cpuswitch.o: assym.h
52 cpu_in_cksum.o exception.o fiq_subr.o fusu.o iomd_irqhandler.o: assym.h
53 iomd_irq.o sigcode.o spl.o vectors.o: assym.h
55 locore.o: ${ARM}/arm32/locore.S assym.h
59 MD_CFILES+= modedefs.c
62 modedefs.c: ${ARM}/iomd/makemodes.awk ${ACORN32}/conf/monitors/${MONITOR} Makefile
64 ${TOOL_AWK} -f ${ARM}/iomd/makemodes.awk \
65 ${ACORN32}/conf/monitors/${MONITOR} ${MODES} >modedefs.c
67 modedefs.c: ${ARM}/iomd/makemodes.awk Makefile
69 ${TOOL_AWK} -f ${ARM}/iomd/makemodes.awk </dev/null >modedefs.c
72 modedefs.o: modedefs.c
79 LOADADDRESS?= 0xF0000000
84 ## (6) port specific target dependencies
87 # depend on CPU configuration
88 cpufunc.o cpufunc_asm.o: Makefile
90 # depend on DIAGNOSTIC etc.
91 cpuswitch.o fault.o machdep.o: Makefile
98 ## (8) config(8) generated machinery
113 ## (9) port independent kernel machinery
115 .include "$S/conf/Makefile.kern.inc"
118 ## (10) Appending make options.