Makefile.sun3 revision 1.106
11.106Smrg# $NetBSD: Makefile.sun3,v 1.106 2018/03/03 03:19:36 mrg Exp $ 21.23Scgd 31.24Sgwr# Makefile for NetBSD 41.1Sglass# 51.1Sglass# This makefile is constructed from a machine description: 61.1Sglass# config machineid 71.1Sglass# Most changes should be made in the machine description 81.35Sgwr# /sys/arch/sun3/conf/``machineid'' 91.1Sglass# after which you should do 101.38Smycroft# config machineid 111.1Sglass# Machine generic makefile changes should be made in 121.35Sgwr# /sys/arch/sun3/conf/Makefile.sun3 131.1Sglass# after which config should be rerun for all machines of that type. 141.92Satatat# 151.92Satatat# To specify debugging, add the config line: makeoptions DEBUG="-g" 161.92Satatat# A better way is to specify -g only for a few files. 171.92Satatat# 181.92Satatat# makeoptions DEBUGLIST="uvm* trap if_*" 191.1Sglass 201.88SthorpejMACHINE_ARCH=m68k 211.89SjmcUSETOOLS?= no 221.92SatatatNEED_OWN_INSTALL_TARGET?=no 231.89Sjmc.include <bsd.own.mk> 241.88Sthorpej 251.92Satatat## 261.92Satatat## (1) port identification 271.92Satatat## 281.92SatatatSUN3= $S/arch/sun3 291.98SchristosGENASSYM_CONF= ${SUN3}/${MACHTYPE}/genassym.cf 301.92Satatat 311.92Satatat## 321.92Satatat## (2) compile settings 331.92Satatat## 341.94SthorpejCPPFLAGS+= -Dsun3 351.102SmrgCFLAGS+= ${CMACHFLAGS} -fno-defer-pop 361.102SmrgCFLAGS+= -msoft-float 371.101SjoergAFLAGS+= -x assembler-with-cpp 381.92Satatat 391.92Satatat## 401.92Satatat## (3) libkern and compat 411.92Satatat## 421.106SmrgOPT_MODULAR= %MODULAR% 431.106Smrg.if !empty(OPT_MODULAR) 441.106SmrgKERN_AS= obj 451.106Smrg.else 461.106SmrgKERN_AS= library 471.106Smrg.endif 481.1Sglass 491.92Satatat## 501.92Satatat## (4) local objects, compile rules, and dependencies 511.92Satatat## 521.92SatatatMD_OBJS= locore.o 531.92SatatatMD_CFILES= 541.92SatatatMD_SFILES= ${SUN3}/${MACHTYPE}/locore.s 551.32Schristos 561.92Satatatlocore.o: ${SUN3}/${MACHTYPE}/locore.s 571.92Satatat ${NORMAL_S} 581.1Sglass 591.105Smrg.include "$S/arch/m68k/conf/Makefile.kern.m68k.inc" 601.105Smrg 611.92Satatat## 621.92Satatat## (5) link settings 631.92Satatat## 641.92Satatat.if ${MACHTYPE} == "sun3x" 651.92SatatatTEXTADDR?= F8004000 661.11Sderaadt.else 671.92SatatatTEXTADDR?= 0E004000 681.11Sderaadt.endif 691.92SatatatLINKFORMAT= -N 701.1Sglass 711.92Satatat## 721.92Satatat## (6) port specific target dependencies 731.92Satatat## 741.79Stron 751.45Sgwr# For cross-compilation, the "gcc -M" mkdep script is convenient, 761.45Sgwr# but that does not correctly make rules from *.s files. The 771.59Sgwr# easiest work-around is to just list those dependencies here. 781.59Sgwrlocore.o: assym.h m68k/asm.h m68k/trap.h 791.59Sgwrcopy.o: assym.h m68k/asm.h $S/sys/errno.h 801.59Sgwrbcopy.o: assym.h m68k/asm.h 811.59Sgwrcopypage.o: assym.h m68k/asm.h 821.100Sjoerglock_stubs.o: assym.h 831.1Sglass 841.91Slukem# depend on CPU configuration 851.38Smycroftdb_machdep.o dvma.o machdep.o pmap.o sun3_startup.o vm_machdep.o: Makefile 861.64Sgwr 871.64Sgwr# depends on DDB, etc. 881.64Sgwrstub.o: Makefile 891.1Sglass 901.92Satatat## 911.92Satatat## (7) misc settings 921.92Satatat## 931.92Satatat 941.92Satatat## 951.92Satatat## (8) config(8) generated machinery 961.92Satatat## 971.92Satatat%INCLUDES 981.92Satatat 991.92Satatat%OBJS 1001.92Satatat 1011.92Satatat%CFILES 1021.47Smycroft 1031.92Satatat%SFILES 1041.82Shubertf 1051.92Satatat%LOAD 1061.1Sglass 1071.1Sglass%RULES 1081.92Satatat 1091.92Satatat## 1101.92Satatat## (9) port independent kernel machinery 1111.92Satatat## 1121.92Satatat.include "$S/conf/Makefile.kern.inc" 1131.97Sthorpej 1141.97Sthorpej## 1151.97Sthorpej## (10) Appending make options. 1161.97Sthorpej## 1171.97Sthorpej%MAKEOPTIONSAPPEND 118