1# $NetBSD: Makefile.sun3,v 1.93 2002/02/10 18:22:31 chs 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= ${SUN3}/${MACHTYPE}/genassym.cf 30 31## 32## (2) compile settings 33## 34XDEFS= -undef -D__NetBSD__ -Dm68k -Dmc68000 -D__m68k__ -D__ELF__ 35DEFINES= -Dsun3 36CPPFLAGS+= ${XDEFS} ${DEFINES} 37CFLAGS+= ${CMACHFLAGS} -msoft-float -fno-defer-pop 38AFLAGS+= -x assembler-with-cpp -traditional-cpp 39 40## 41## (3) libkern and compat 42## 43KERN_AS= obj 44 45## 46## (4) local objects, compile rules, and dependencies 47## 48MD_OBJS= locore.o 49MD_CFILES= 50MD_SFILES= ${SUN3}/${MACHTYPE}/locore.s 51 52locore.o: ${SUN3}/${MACHTYPE}/locore.s 53 ${NORMAL_S} 54 55## 56## (5) link settings 57## 58.if ${MACHTYPE} == "sun3x" 59TEXTADDR?= F8004000 60.else 61TEXTADDR?= 0E004000 62.endif 63LINKFORMAT= -N 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 sun3_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