Makefile.sun2 revision 1.19
11.19Sjoerg# $NetBSD: Makefile.sun2,v 1.19 2008/01/22 15:24:50 joerg Exp $ 21.1Sfredette 31.1Sfredette# Makefile for NetBSD 41.1Sfredette# 51.1Sfredette# This makefile is constructed from a machine description: 61.1Sfredette# config machineid 71.1Sfredette# Most changes should be made in the machine description 81.1Sfredette# /sys/arch/sun2/conf/``machineid'' 91.1Sfredette# after which you should do 101.1Sfredette# config machineid 111.1Sfredette# Machine generic makefile changes should be made in 121.1Sfredette# /sys/arch/sun2/conf/Makefile.sun2 131.1Sfredette# after which config should be rerun for all machines of that type. 141.1Sfredette# 151.11Sfredette# To specify debugging, add the config line: makeoptions DEBUG="-g" 161.11Sfredette# A better way is to specify -g only for a few files. 171.1Sfredette# 181.11Sfredette# makeoptions DEBUGLIST="uvm* trap if_*" 191.1Sfredette 201.14SchsMACHINE_ARCH=m68000 211.7SjmcUSETOOLS?= no 221.11SfredetteNEED_OWN_INSTALL_TARGET?=no 231.7Sjmc.include <bsd.own.mk> 241.6Sthorpej 251.11Sfredette## 261.11Sfredette## (1) port identification 271.11Sfredette## 281.11SfredetteSUN2= $S/arch/sun2 291.17SchristosGENASSYM_CONF= ${SUN2}/sun2/genassym.cf 301.11Sfredette 311.11Sfredette## 321.11Sfredette## (2) compile settings 331.11Sfredette## 341.12SthorpejCPPFLAGS+= -Dsun2 351.11SfredetteCFLAGS+= -msoft-float -fno-defer-pop 361.13SthorpejAFLAGS+= -x assembler-with-cpp -traditional-cpp 371.1Sfredette 381.11Sfredette## 391.11Sfredette## (3) libkern and compat 401.11Sfredette## 411.1SfredetteKERN_AS= obj 421.4Sfredette# XXX lib/libkern/arch/m68k/Makefile.inc needs to know that 431.4Sfredette# XXX our MACHINE_ARCH is m68000, and not m68k. --fredette 441.2SfredetteKERNMISCMAKEFLAGS= MACHINE_ARCH=${MACHINE_ARCH} 451.1Sfredette 461.11Sfredette## 471.11Sfredette## (4) local objects, compile rules, and dependencies 481.11Sfredette## 491.11SfredetteMD_OBJS= locore.o 501.11SfredetteMD_CFILES= 511.11SfredetteMD_SFILES= ${SUN2}/sun2/locore.s 521.1Sfredette 531.11Sfredettelocore.o: ${SUN2}/sun2/locore.s 541.11Sfredette ${NORMAL_S} 551.1Sfredette 561.11Sfredette## 571.11Sfredette## (5) link settings 581.11Sfredette## 591.11SfredetteLINKFORMAT= -N 601.11SfredetteTEXTADDR?= 00006000 611.11Sfredette 621.11Sfredette## 631.11Sfredette## (6) port specific target dependencies 641.11Sfredette## 651.1Sfredette 661.1Sfredette# For cross-compilation, the "gcc -M" mkdep script is convenient, 671.1Sfredette# but that does not correctly make rules from *.s files. The 681.1Sfredette# easiest work-around is to just list those dependencies here. 691.1Sfredettelocore.o: assym.h m68k/asm.h m68k/trap.h 701.1Sfredettecopy.o: assym.h m68k/asm.h $S/sys/errno.h 711.1Sfredettebcopy.o: assym.h m68k/asm.h 721.1Sfredettecopypage.o: assym.h m68k/asm.h 731.19Sjoerglock_stubs.o: assym.h 741.1Sfredette 751.9Slukem# depend on CPU configuration 761.1Sfredettedb_machdep.o dvma.o machdep.o pmap.o sun2_startup.o vm_machdep.o: Makefile 771.1Sfredette 781.1Sfredette# depends on DDB, etc. 791.1Sfredettestub.o: Makefile 801.1Sfredette 811.11Sfredette## 821.11Sfredette## (7) misc settings 831.11Sfredette## 841.11Sfredette 851.11Sfredette## 861.11Sfredette## (8) config(8) generated machinery 871.11Sfredette## 881.11Sfredette%INCLUDES 891.11Sfredette 901.11Sfredette%OBJS 911.11Sfredette 921.11Sfredette%CFILES 931.1Sfredette 941.11Sfredette%SFILES 951.1Sfredette 961.11Sfredette%LOAD 971.1Sfredette 981.1Sfredette%RULES 991.11Sfredette 1001.11Sfredette## 1011.11Sfredette## (9) port independent kernel machinery 1021.11Sfredette## 1031.11Sfredette.include "$S/conf/Makefile.kern.inc" 1041.16Sthorpej 1051.16Sthorpej## 1061.16Sthorpej## (10) Appending make options. 1071.16Sthorpej## 1081.16Sthorpej%MAKEOPTIONSAPPEND 109