1 # $NetBSD: Makefile.acorn26,v 1.9 2007/03/04 13:12:22 bjh21 Exp $
5 # This makefile is constructed from a machine description:
7 # Most changes should be made in the machine description
8 # /sys/arch/acorn26/conf/``machineid''
9 # after which you should do
11 # Machine generic makefile changes should be made in
12 # /sys/arch/acorn26/conf/Makefile.i386
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
28 ACORN26= $S/arch/acorn26
29 GENASSYM_CONF= ${ACORN26}/acorn26/genassym.cf
32 ## (2) compile settings
35 CWARNFLAGS+= -Wcomment
36 # We'd like GCC to leave R14 alone as much as possible (so page faults in the
38 CFLAGS+= -ffixed-r14 -mapcs-frame -fno-omit-frame-pointer
39 AFLAGS+= -x assembler-with-cpp -traditional-cpp
42 ## (3) libkern and compat
46 ## (4) local objects, compile rules, and dependencies
48 MD_OBJS= vectors.o locore.o
50 MD_SFILES= ${ARM}/arm/vectors.S ${ACORN26}/acorn26/locore.S
52 locore.o: ${ACORN26}/acorn26/locore.S assym.h
55 vectors.o: ${ARM}/arm/vectors.S assym.h
58 bcopyinout.o copyinout.o copystr.o cpu_in_cksum.o fiq_subr.o: assym.h
66 # Strip ARM mapping symbols from the kernel image, as they interfere
67 # with ddb. Do it differently if 'makeoptions DEBUG="-g"' was specified.
68 .if !defined(DEBUG) || empty(DEBUG:M-g*)
69 SYSTEM_LD_TAIL?= @${OBJCOPY} --strip-symbol='$$a' \
70 --strip-symbol='$$t' \
71 --strip-symbol='$$d' $@ ;\
72 ${SIZE} $@; chmod 755 $@
74 STRIPFLAGS=-g --strip-symbol='$$a' --strip-symbol='$$t' --strip-symbol='$$d'
78 ## (6) port specific target dependencies
86 ## (8) config(8) generated machinery
101 ## (9) port independent kernel machinery
103 .include "$S/conf/Makefile.kern.inc"
106 ## (10) Appending make options.