Makefile.sparc revision 1.93
1# $NetBSD: Makefile.sparc,v 1.93 2015/08/24 14:04:25 uebayasi 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/sparc/conf/``machineid'' 9# after which you should do 10# config machineid 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. 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 20MACHINE_ARCH= sparc 21USETOOLS?= no 22NEED_OWN_INSTALL_TARGET?=no 23.include <bsd.own.mk> 24 25## 26## (1) port identification 27## 28SPARC= $S/arch/sparc 29GENASSYM_CONF= ${SPARC}/sparc/genassym.cf 30 31## 32## (2) compile settings 33## 34# work around GCC (egcs-2.91.66) bug which is liable 35# to use FPU registers as temporaries: 36CFLAGS+= -mno-fpu 37CFLAGS+= -Wa,-Av8 38AFLAGS+= -x assembler-with-cpp 39AFLAGS+= -Wa,-Av8 40 41## 42## (3) libkern and compat 43## 44KERN_AS= obj 45 46## 47## (4) local objects, compile rules, and dependencies 48## 49MD_OBJS= locore.o 50MD_CFILES= 51MD_SFILES= ${SPARC}/sparc/locore.s 52 53locore.o: ${SPARC}/sparc/locore.s assym.h 54 ${NORMAL_S} 55 56amd7930intr.o bsd_fdintr.o lock_stubs.o: assym.h 57 58## 59## (5) link settings 60## 61TEXTADDR?= F0004000 62EXTRA_LINKFLAGS= -X 63KERNLDSCRIPT?= ${SPARC}/conf/kern.ldscript 64LINKFORMAT= -n 65 66## 67## (6) port specific target dependencies 68## 69 70## 71## (7) misc settings 72## 73 74## 75## (8) config(8) generated machinery 76## 77%INCLUDES 78 79%OBJS 80 81%CFILES 82 83%SFILES 84 85%LOAD 86 87%RULES 88 89## 90## (9) port independent kernel machinery 91## 92.include "$S/conf/Makefile.kern.inc" 93 94## 95## (10) Appending make options. 96## 97%MAKEOPTIONSAPPEND 98