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