1# $NetBSD: Makefile.mac68k,v 1.83 2001/12/09 05:00:45 atatat 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/mac68k/conf/``machineid'' 9# after which you should do 10# config machineid 11# Machine generic makefile changes should be made in 12# /sys/arch/mac68k/conf/Makefile.mac68k 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## 28MAC68K= $S/arch/mac68k 29GENASSYM= ${MAC68K}/mac68k/genassym.cf 30 31## 32## (2) compile settings 33## 34CPPFLAGS+= -Dmac68k 35CFLAGS+= -msoft-float 36AFLAGS+= -traditional 37 38NORMAL_S= ${CPP} ${AFLAGS} ${CPPFLAGS} $< | sed -e 's/^\#.*//' | \ 39 ${AS} -o ${.TARGET} 40 41## 42## (3) libkern and compat 43## 44KERN_AS= obj 45 46## 47## (4) local objects, compile rules, and dependencies 48## 49# for the Motorola 68040 Floating Point Software Product 50.include "$S/arch/m68k/fpsp/Makefile.inc" 51 52MD_OBJS= locore.o ${FPSP} 53MD_CFILES= 54MD_SFILES= ${MAC68K}/mac68k/locore.s 55 56locore.o: ${MAC68K}/mac68k/locore.s assym.h 57 ${NORMAL_S} 58 59## 60## (5) link settings 61## 62LINKFORMAT= -n 63TEXTADDR?= 0 64 65## 66## (6) port specific target dependencies 67## 68 69# depend on CPU configuration 70locore.o pmap.o trap.o: Makefile 71 72## 73## (7) misc settings 74## 75 76## 77## (8) config(8) generated machinery 78## 79%INCLUDES 80 81%OBJS 82 83%CFILES 84 85%SFILES 86 87%LOAD 88 89%RULES 90 91## 92## (9) port independent kernel machinery 93## 94.include "$S/conf/Makefile.kern.inc" 95