Makefile.mvme68k revision 1.56
1# $NetBSD: Makefile.mvme68k,v 1.56 2002/06/04 21:39:11 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/mvme68k/conf/``machineid'' 9# after which you should do 10# config machineid 11# Machine generic makefile changes should be made in 12# /sys/arch/mvme68k/conf/Makefile.mvme68k 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## 28MVME68K= $S/arch/mvme68k 29GENASSYM= ${MVME68K}/mvme68k/genassym.cf 30 31## 32## (2) compile settings 33## 34CPPFLAGS+= -Dmvme68k 35.if empty(IDENT:M-DMVME172) && empty(IDENT:M-DMVME177) 36.if empty(IDENT:M-DMVME147) 37CMACHFLAGS= -m68040 38.else 39CMACHFLAGS= -m68030 40.endif 41.else 42.if empty(IDENT:M-DMVME147) && empty(IDENT:M-DMVME162) && empty(IDENT:M-DMVME167) 43CMACHFLAGS= -m68060 -Wa,-m68030 -Wa,-m68851 44.else 45CMACHFLAGS= -m68020-60 -Wa,-m68030 -Wa,-m68851 46.endif 47.endif 48CFLAGS+= ${CMACHFLAGS} -msoft-float 49.if defined(HAVE_GCC3) 50AFLAGS+= -x assembler-with-cpp 51.else 52AFLAGS+= -x assembler-with-cpp -traditional-cpp 53.endif 54 55## 56## (3) libkern and compat 57## 58KERN_AS= obj 59 60## 61## (4) local objects, compile rules, and dependencies 62## 63# for the Motorola 68040 Floating Point Software Product 64.include "$S/arch/m68k/fpsp/Makefile.inc" 65 66# for the Motorola 68060 Software Support Package 67.include "$S/arch/m68k/060sp/Makefile.inc" 68 69MD_OBJS= locore.o ${FPSP} 70MD_CFILES= 71MD_SFILES= ${MVME68K}/mvme68k/locore.s 72 73 74locore.o: ${MVME68K}/mvme68k/locore.s assym.h 75 ${NORMAL_S} 76## 77## (5) link settings 78## 79LINKFORMAT= -n 80TEXTADDR?= 8000 81 82## 83## (6) port specific target dependencies 84## 85 86# depend on CPU configuration 87locore.o pmap.o sys_machdep.o trap.o: Makefile 88 89## 90## (7) misc settings 91## 92 93## 94## (8) config(8) generated machinery 95## 96%INCLUDES 97 98%OBJS 99 100%CFILES 101 102%SFILES 103 104%LOAD 105 106%RULES 107 108## 109## (9) port independent kernel machinery 110## 111.include "$S/conf/Makefile.kern.inc" 112