1# $NetBSD: Makefile.x68k,v 1.61 2008/02/12 18:26:48 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/x68k/conf/``machineid'' 9# after which you should do 10# config machineid 11# Machine generic makefile changes should be made in 12# /sys/arch/x68k/conf/Makefile.x68k 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## 28X68K= $S/arch/x68k 29GENASSYM_CONF= ${X68K}/x68k/genassym.cf 30 31## 32## (2) compile settings 33## 34CPPFLAGS+= -Dx68k 35AFLAGS+= -x assembler-with-cpp -traditional-cpp 36CMACHFLAGS?= -m68020-60 -Wa,-m68030 -Wa,-m68851 37CFLAGS+= ${CMACHFLAGS} -msoft-float 38 39## 40## (3) libkern and compat 41## 42KERN_AS= obj 43 44## 45## (4) local objects, compile rules, and dependencies 46## 47# for the Motorola 68040 Floating Point Software Product 48.include "$S/arch/m68k/fpsp/Makefile.inc" 49 50# for the Motorola 68060 Software Support Package 51.include "$S/arch/m68k/060sp/Makefile.inc" 52 53MD_OBJS= locore.o ${FPSP} 54MD_CFILES= 55MD_SFILES= ${X68K}/x68k/locore.s 56 57locore.o: ${X68K}/x68k/locore.s assym.h Makefile 58 ${NORMAL_S} 59 60copy.o copypage.o lock_stubs.o: assym.h 61 62## 63## (5) link settings 64## 65TEXTADDR?= 0 66LINKFORMAT= -n 67 68## 69## (6) port specific target dependencies 70## 71 72# depend on root or device configuration 73autoconf.o conf.o: Makefile 74 75# depend on maxusers 76machdep.o: Makefile 77 78# depend on DEBUG and/or DIAGNOSTIC options 79grf.o par.o sram.o: Makefile 80intio_dmac.o mfp.o neptune.o opm.o scsirom.o xel.o zs.o bus.o: Makefile 81intio.o vm_machdep.o: Makefile 82 83## 84## (7) misc settings 85## 86 87 88 89## 90## (8) config(8) generated machinery 91## 92%INCLUDES 93 94%OBJS 95 96%CFILES 97 98%SFILES 99 100%LOAD 101 102%RULES 103 104## 105## (9) port independent kernel machinery 106## 107.include "$S/conf/Makefile.kern.inc" 108 109## 110## (10) Appending make options. 111## 112%MAKEOPTIONSAPPEND 113