Makefile.sun3 revision 1.103
1# $NetBSD: Makefile.sun3,v 1.103 2011/07/09 15:04:06 mrg 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/sun3/conf/``machineid'' 9# after which you should do 10# config machineid 11# Machine generic makefile changes should be made in 12# /sys/arch/sun3/conf/Makefile.sun3 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=m68k 21USETOOLS?= no 22NEED_OWN_INSTALL_TARGET?=no 23.include <bsd.own.mk> 24 25## 26## (1) port identification 27## 28SUN3= $S/arch/sun3 29GENASSYM_CONF= ${SUN3}/${MACHTYPE}/genassym.cf 30 31## 32## (2) compile settings 33## 34CPPFLAGS+= -Dsun3 35CFLAGS+= ${CMACHFLAGS} -fno-defer-pop 36.if defined(HAVE_GCC) && ${HAVE_GCC} != 45 37CFLAGS+= -msoft-float 38.endif 39AFLAGS+= -x assembler-with-cpp 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= ${SUN3}/${MACHTYPE}/locore.s 52 53locore.o: ${SUN3}/${MACHTYPE}/locore.s 54 ${NORMAL_S} 55 56## 57## (5) link settings 58## 59.if ${MACHTYPE} == "sun3x" 60TEXTADDR?= F8004000 61.else 62TEXTADDR?= 0E004000 63.endif 64LINKFORMAT= -N 65 66## 67## (6) port specific target dependencies 68## 69 70# For cross-compilation, the "gcc -M" mkdep script is convenient, 71# but that does not correctly make rules from *.s files. The 72# easiest work-around is to just list those dependencies here. 73locore.o: assym.h m68k/asm.h m68k/trap.h 74copy.o: assym.h m68k/asm.h $S/sys/errno.h 75bcopy.o: assym.h m68k/asm.h 76copypage.o: assym.h m68k/asm.h 77lock_stubs.o: assym.h 78 79# depend on CPU configuration 80db_machdep.o dvma.o machdep.o pmap.o sun3_startup.o vm_machdep.o: Makefile 81 82# depends on DDB, etc. 83stub.o: Makefile 84 85## 86## (7) misc settings 87## 88 89## 90## (8) config(8) generated machinery 91## 92%INCLUDES 93 94%OBJS 95 96%CFILES 97 98%SFILES 99 100%LOAD 101 102%RULES 103 104## 105## (9) port independent kernel machinery 106## 107.include "$S/conf/Makefile.kern.inc" 108 109## 110## (10) Appending make options. 111## 112%MAKEOPTIONSAPPEND 113