1# $NetBSD: Makefile.sun3,v 1.101 2011/01/21 15:59:09 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/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} -msoft-float -fno-defer-pop 36AFLAGS+= -x assembler-with-cpp 37 38## 39## (3) libkern and compat 40## 41KERN_AS= obj 42 43## 44## (4) local objects, compile rules, and dependencies 45## 46MD_OBJS= locore.o 47MD_CFILES= 48MD_SFILES= ${SUN3}/${MACHTYPE}/locore.s 49 50locore.o: ${SUN3}/${MACHTYPE}/locore.s 51 ${NORMAL_S} 52 53## 54## (5) link settings 55## 56.if ${MACHTYPE} == "sun3x" 57TEXTADDR?= F8004000 58.else 59TEXTADDR?= 0E004000 60.endif 61LINKFORMAT= -N 62 63## 64## (6) port specific target dependencies 65## 66 67# For cross-compilation, the "gcc -M" mkdep script is convenient, 68# but that does not correctly make rules from *.s files. The 69# easiest work-around is to just list those dependencies here. 70locore.o: assym.h m68k/asm.h m68k/trap.h 71copy.o: assym.h m68k/asm.h $S/sys/errno.h 72bcopy.o: assym.h m68k/asm.h 73copypage.o: assym.h m68k/asm.h 74lock_stubs.o: assym.h 75 76# depend on CPU configuration 77db_machdep.o dvma.o machdep.o pmap.o sun3_startup.o vm_machdep.o: Makefile 78 79# depends on DDB, etc. 80stub.o: Makefile 81 82## 83## (7) misc settings 84## 85 86## 87## (8) config(8) generated machinery 88## 89%INCLUDES 90 91%OBJS 92 93%CFILES 94 95%SFILES 96 97%LOAD 98 99%RULES 100 101## 102## (9) port independent kernel machinery 103## 104.include "$S/conf/Makefile.kern.inc" 105 106## 107## (10) Appending make options. 108## 109%MAKEOPTIONSAPPEND 110