Makefile.news68k revision 1.23
11.23Sandvar# $NetBSD: Makefile.news68k,v 1.23 2023/10/01 18:50:53 andvar Exp $ 21.1Stsutsui# 31.1Stsutsui# Makefile for NetBSD 41.1Stsutsui# 51.1Stsutsui# This makefile is constructed from a machine description: 61.1Stsutsui# config machineid 71.1Stsutsui# Most changes should be made in the machine description 81.1Stsutsui# /sys/arch/news68k/conf/``machineid'' 91.1Stsutsui# after which you should do 101.1Stsutsui# config machineid 111.1Stsutsui# Machine generic makefile changes should be made in 121.1Stsutsui# /sys/arch/news68k/conf/Makefile.news68k 131.1Stsutsui# after which config should be rerun for all machines of that type. 141.13Satatat# 151.13Satatat# To specify debugging, add the config line: makeoptions DEBUG="-g" 161.13Satatat# A better way is to specify -g only for a few files. 171.13Satatat# 181.13Satatat# makeoptions DEBUGLIST="uvm* trap if_*" 191.10Sthorpej 201.10SthorpejMACHINE_ARCH=m68k 211.11SjmcUSETOOLS?= no 221.13SatatatNEED_OWN_INSTALL_TARGET?=no 231.11Sjmc.include <bsd.own.mk> 241.1Stsutsui 251.13Satatat## 261.13Satatat## (1) port identification 271.13Satatat## 281.1Stsutsui.ifndef S 291.13SatatatS= ../../../.. 301.1Stsutsui.endif 311.13SatatatNEWS68K= $S/arch/news68k 321.17SchristosGENASSYM_CONF= ${NEWS68K}/news68k/genassym.cf 331.1Stsutsui 341.13Satatat## 351.13Satatat## (2) compile settings 361.13Satatat## 371.13SatatatCPPFLAGS+= -Dnews68k 381.13SatatatCFLAGS+= -msoft-float 391.20SjoergAFLAGS+= -x assembler-with-cpp 401.13Satatat 411.13Satatat## 421.13Satatat## (3) libkern and compat 431.13Satatat## 441.22SrinOPT_MODULAR= %MODULAR% 451.1Stsutsui 461.13Satatat## 471.13Satatat## (4) local objects, compile rules, and dependencies 481.13Satatat## 491.23Sandvar# for the Motorola 68040 Floating Point Software Product 501.23Sandvar.include "$S/arch/m68k/fpsp/Makefile.inc" 511.23Sandvar 521.21SuebayasiMD_OBJS= locore.o 531.21SuebayasiMD_LIBS= ${FPSP} 541.13SatatatMD_CFILES= 551.13SatatatMD_SFILES= ${NEWS68K}/news68k/locore.s 561.1Stsutsui 571.13Satatatlocore.o: ${NEWS68K}/news68k/locore.s assym.h 581.13Satatat ${NORMAL_S} 591.1Stsutsui 601.13Satatat## 611.13Satatat## (5) link settings 621.13Satatat## 631.13SatatatLINKFORMAT= -n 641.13SatatatTEXTADDR?= 0 651.13Satatat 661.13Satatat## 671.13Satatat## (6) port specific target dependencies 681.13Satatat## 691.1Stsutsui 701.13Satatat# depend on CPU configuration 711.13Satatatmachdep.o mainbus.o trap.o: Makefile 721.1Stsutsui 731.19Sjoergcopy.o copypage.o lock_stubs.o: assym.h 741.19Sjoerg 751.13Satatat## 761.13Satatat## (7) misc settings 771.13Satatat## 781.13Satatat 791.13Satatat## 801.13Satatat## (8) config(8) generated machinery 811.13Satatat## 821.13Satatat%INCLUDES 831.1Stsutsui 841.1Stsutsui%OBJS 851.1Stsutsui 861.1Stsutsui%CFILES 871.1Stsutsui 881.1Stsutsui%SFILES 891.1Stsutsui 901.1Stsutsui%LOAD 911.1Stsutsui 921.13Satatat%RULES 931.1Stsutsui 941.13Satatat## 951.13Satatat## (9) port independent kernel machinery 961.13Satatat## 971.13Satatat.include "$S/conf/Makefile.kern.inc" 981.16Sthorpej 991.16Sthorpej## 1001.16Sthorpej## (10) Appending make options. 1011.16Sthorpej## 1021.16Sthorpej%MAKEOPTIONSAPPEND 103