Makefile.sun2 revision 1.13
1# $NetBSD: Makefile.sun2,v 1.13 2002/06/04 21:39:12 thorpej 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/sun2/conf/``machineid'' 9# after which you should do 10# config machineid 11# Machine generic makefile changes should be made in 12# /sys/arch/sun2/conf/Makefile.sun2 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 20USETOOLS?= no 21NEED_OWN_INSTALL_TARGET?=no 22.include <bsd.own.mk> 23 24## 25## (1) port identification 26## 27SUN2= $S/arch/sun2 28GENASSYM= ${SUN2}/sun2/genassym.cf 29 30## 31## (2) compile settings 32## 33CPPFLAGS+= -Dsun2 34CFLAGS+= -msoft-float -fno-defer-pop 35.if defined(HAVE_GCC3) 36AFLAGS+= -x assembler-with-cpp 37.else 38AFLAGS+= -x assembler-with-cpp -traditional-cpp 39.endif 40 41## 42## (3) libkern and compat 43## 44KERN_AS= obj 45# XXX lib/libkern/arch/m68k/Makefile.inc needs to know that 46# XXX our MACHINE_ARCH is m68000, and not m68k. --fredette 47KERNMISCMAKEFLAGS= MACHINE_ARCH=${MACHINE_ARCH} 48 49## 50## (4) local objects, compile rules, and dependencies 51## 52MD_OBJS= locore.o 53MD_CFILES= 54MD_SFILES= ${SUN2}/sun2/locore.s 55 56locore.o: ${SUN2}/sun2/locore.s 57 ${NORMAL_S} 58 59## 60## (5) link settings 61## 62LINKFORMAT= -N 63TEXTADDR?= 00006000 64 65## 66## (6) port specific target dependencies 67## 68 69# For cross-compilation, the "gcc -M" mkdep script is convenient, 70# but that does not correctly make rules from *.s files. The 71# easiest work-around is to just list those dependencies here. 72locore.o: assym.h m68k/asm.h m68k/trap.h 73copy.o: assym.h m68k/asm.h $S/sys/errno.h 74bcopy.o: assym.h m68k/asm.h 75copypage.o: assym.h m68k/asm.h 76 77# depend on CPU configuration 78db_machdep.o dvma.o machdep.o pmap.o sun2_startup.o vm_machdep.o: Makefile 79 80# depends on DDB, etc. 81stub.o: Makefile 82 83## 84## (7) misc settings 85## 86 87## 88## (8) config(8) generated machinery 89## 90%INCLUDES 91 92%OBJS 93 94%CFILES 95 96%SFILES 97 98%LOAD 99 100%RULES 101 102## 103## (9) port independent kernel machinery 104## 105.include "$S/conf/Makefile.kern.inc" 106