Makefile.sparc revision 1.89
10Sduke# $NetBSD: Makefile.sparc,v 1.89 2013/10/03 22:01:04 mrg Exp $ 213462Sglaubitz 30Sduke# Makefile for NetBSD 40Sduke# 50Sduke# This makefile is constructed from a machine description: 60Sduke# config machineid 70Sduke# Most changes should be made in the machine description 80Sduke# /sys/arch/sparc/conf/``machineid'' 90Sduke# after which you should do 100Sduke# config machineid 110Sduke# Machine generic makefile changes should be made in 120Sduke# /sys/arch/sparc/conf/Makefile.sparc 130Sduke# after which config should be rerun for all machines of that type. 140Sduke# 150Sduke# To specify debugging, add the config line: makeoptions DEBUG="-g" 160Sduke# A better way is to specify -g only for a few files. 170Sduke# 180Sduke# makeoptions DEBUGLIST="uvm* trap if_*" 191472Strims 201472StrimsMACHINE_ARCH= sparc 211472StrimsUSETOOLS?= no 220SdukeNEED_OWN_INSTALL_TARGET?=no 230Sduke.include <bsd.own.mk> 240Sduke 251879Sstefank## 261879Sstefank## (1) port identification 271879Sstefank## 281879SstefankSPARC= $S/arch/sparc 2913462SglaubitzGENASSYM_CONF= ${SPARC}/sparc/genassym.cf 301879Sstefank 311879Sstefank## 321879Sstefank## (2) compile settings 331879Sstefank## 340Sduke# work around GCC (egcs-2.91.66) bug which is liable 350Sduke# to use FPU registers as temporaries: 360SdukeCFLAGS+= -mno-fpu 370SdukeCFLAGS+= -Wa,-Av8 380SdukeAFLAGS+= -x assembler-with-cpp 390SdukeAFLAGS+= -Wa,-Av8 400Sduke 410Sduke## 420Sduke## (3) libkern and compat 430Sduke## 440SdukeKERN_AS= obj 450Sduke 460Sduke## 470Sduke## (4) local objects, compile rules, and dependencies 480Sduke## 490SdukeMD_OBJS= locore.o 500SdukeMD_CFILES= 510SdukeMD_SFILES= ${SPARC}/sparc/locore.s 520Sduke 530Sdukelocore.o: ${SPARC}/sparc/locore.s assym.h 540Sduke ${NORMAL_S} 550Sduke 560Sdukeamd7930intr.o bsd_fdintr.o lock_stubs.o: assym.h 570Sduke 580Sduke## 590Sduke## (5) link settings 600Sduke## 610SdukeTEXTADDR?= F0004000 620SdukeEXTRA_LINKFLAGS= -X 630SdukeKERN_LDSCRIPT?= kern.ldscript 640SdukeLINKFORMAT= -n -T ${SPARC}/conf/${KERN_LDSCRIPT} 650Sduke 660Sduke## 670Sduke## (6) port specific target dependencies 680Sduke## 690Sduke 702062Scoleenp## 710Sduke## (7) misc settings 720Sduke## 730Sduke 740Sduke## 750Sduke## (8) config(8) generated machinery 760Sduke## 770Sduke%INCLUDES 780Sduke 790Sduke%OBJS 803602Scoleenp 810Sduke%CFILES 823602Scoleenp 833602Scoleenp%SFILES 840Sduke 850Sduke%LOAD 860Sduke 870Sduke%RULES 880Sduke 890Sduke## 900Sduke## (9) port independent kernel machinery 910Sduke## 920Sduke.include "$S/conf/Makefile.kern.inc" 930Sduke 940Sduke## 950Sduke## (10) Appending make options. 960Sduke## 970Sduke%MAKEOPTIONSAPPEND 980Sduke