1# $NetBSD: Makefile.news68k,v 1.24 2023/10/06 21:10:12 andvar 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/news68k/conf/``machineid'' 9# after which you should do 10# config machineid 11# Machine generic makefile changes should be made in 12# /sys/arch/news68k/conf/Makefile.news68k 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## 28.ifndef S 29S= ../../../.. 30.endif 31NEWS68K= $S/arch/news68k 32GENASSYM_CONF= ${NEWS68K}/news68k/genassym.cf 33 34## 35## (2) compile settings 36## 37CPPFLAGS+= -Dnews68k 38CFLAGS+= -msoft-float 39AFLAGS+= -x assembler-with-cpp 40 41## 42## (3) libkern and compat 43## 44OPT_MODULAR= %MODULAR% 45 46## 47## (4) local objects, compile rules, and dependencies 48## 49 50MD_OBJS= locore.o 51MD_LIBS= ${FPSP} 52MD_CFILES= 53MD_SFILES= ${NEWS68K}/news68k/locore.s 54 55locore.o: ${NEWS68K}/news68k/locore.s assym.h 56 ${NORMAL_S} 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 69machdep.o mainbus.o trap.o: Makefile 70 71copy.o copypage.o lock_stubs.o: assym.h 72 73## 74## (7) misc settings 75## 76 77## 78## (8) config(8) generated machinery 79## 80%INCLUDES 81 82%OBJS 83 84%CFILES 85 86%SFILES 87 88%LOAD 89 90%RULES 91 92## 93## (9) port independent kernel machinery 94## 95.include "$S/conf/Makefile.kern.inc" 96 97## 98## (10) Appending make options. 99## 100%MAKEOPTIONSAPPEND 101