1 # $NetBSD: Makefile.sparc,v 1.85 2005/12/11 12:19:05 christos Exp $
5 # This makefile is constructed from a machine description:
7 # Most changes should be made in the machine description
8 # /sys/arch/sparc/conf/``machineid''
9 # after which you should do
11 # Machine generic makefile changes should be made in
12 # /sys/arch/sparc/conf/Makefile.sparc
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_*"
22 NEED_OWN_INSTALL_TARGET?=no
26 ## (1) port identification
29 GENASSYM_CONF= ${SPARC}/sparc/genassym.cf
32 ## (2) compile settings
34 # work around GCC (egcs-2.91.66) bug which is liable
35 # to use FPU registers as temporaries:
37 AFLAGS+= -x assembler-with-cpp -traditional-cpp
40 ## (3) libkern and compat
45 ## (4) local objects, compile rules, and dependencies
49 MD_SFILES= ${SPARC}/sparc/locore.s
51 locore.o: ${SPARC}/sparc/locore.s assym.h
54 amd7930intr.o bsd_fdintr.o lock_stubs.o: assym.h
61 .if ${OBJECT_FMT} == "ELF"
62 KERN_LDSCRIPT?= kern.ldscript
63 LINKFORMAT= -n -T ${SPARC}/conf/${KERN_LDSCRIPT}
69 ## (6) port specific target dependencies
77 ## (8) config(8) generated machinery
92 ## (9) port independent kernel machinery
94 .include "$S/conf/Makefile.kern.inc"
97 ## (10) Appending make options.