1 # $NetBSD: Makefile.hpcarm,v 1.17 2005/12/11 12:17:30 christos Exp $
5 # This makefile is constructed from a machine description:
7 # Most changes should be made in the machine description
8 # /sys/arch/hpcarm/conf/``machineid''
9 # after which you should do
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.
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 HPCARM= $S/arch/hpcarm
29 GENASSYM_CONF= ${ARM}/arm32/genassym.cf
30 GENASSYM_EXTRAS+= ${HPCARM}/hpcarm/genassym.cf
33 ## (2) compile settings
35 CPPFLAGS+= -Dhpcarm -Darm32
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= ${HPCARM}/hpcarm/locore.S
51 locore.o: ${HPCARM}/hpcarm/locore.S assym.h
61 ## (6) port specific target dependencies
64 # depend on CPU configuration
65 cpufunc.o cpufunc_asm.o: Makefile
67 # depend on DIAGNOSTIC etc.
68 cpuswitch.o fault.o machdep.o: Makefile
70 atomic.o bcopyinout.o bcopy_page.o copystr.o cpu_in_cksum.o: assym.h
71 cpuswitch.o exception.o fiq_subr.o fusu.o sa11x0_irq.o sigcode.o: assym.h
72 spl.o vectors.o: assym.h
79 ## (8) config(8) generated machinery
94 ## (9) port independent kernel machinery
96 .include "$S/conf/Makefile.kern.inc"
99 ## (10) Appending make options.