1# $NetBSD: Makefile.sparc,v 1.88 2011/01/17 18:11:10 joerg 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 37AFLAGS+= -x assembler-with-cpp 38 39## 40## (3) libkern and compat 41## 42KERN_AS= obj 43 44## 45## (4) local objects, compile rules, and dependencies 46## 47MD_OBJS= locore.o 48MD_CFILES= 49MD_SFILES= ${SPARC}/sparc/locore.s 50 51locore.o: ${SPARC}/sparc/locore.s assym.h 52 ${NORMAL_S} 53 54amd7930intr.o bsd_fdintr.o lock_stubs.o: assym.h 55 56## 57## (5) link settings 58## 59TEXTADDR?= F0004000 60EXTRA_LINKFLAGS= -X 61KERN_LDSCRIPT?= kern.ldscript 62LINKFORMAT= -n -T ${SPARC}/conf/${KERN_LDSCRIPT} 63 64## 65## (6) port specific target dependencies 66## 67 68## 69## (7) misc settings 70## 71 72## 73## (8) config(8) generated machinery 74## 75%INCLUDES 76 77%OBJS 78 79%CFILES 80 81%SFILES 82 83%LOAD 84 85%RULES 86 87## 88## (9) port independent kernel machinery 89## 90.include "$S/conf/Makefile.kern.inc" 91 92## 93## (10) Appending make options. 94## 95%MAKEOPTIONSAPPEND 96