Makefile.vax revision 1.64
11.64Slukem# $NetBSD: Makefile.vax,v 1.64 2001/11/20 12:56:42 lukem Exp $ 21.4Scgd 31.16Smycroft# Makefile for NetBSD 41.1Sragge# 51.1Sragge# This makefile is constructed from a machine description: 61.1Sragge# config machineid 71.1Sragge# Most changes should be made in the machine description 81.16Smycroft# /sys/arch/vax/conf/``machineid'' 91.1Sragge# after which you should do 101.16Smycroft# config machineid 111.1Sragge# Machine generic makefile changes should be made in 121.16Smycroft# /sys/arch/vax/conf/Makefile.vax 131.1Sragge# after which config should be rerun for all machines of that type. 141.63Satatat# 151.64Slukem# To specify debugging, add the config line: makeoptions DEBUG="-g" 161.63Satatat# A better way is to specify -g only for a few files. 171.63Satatat# 181.63Satatat# makeoptions DEBUGLIST="uvm* trap if_*" 191.61Sthorpej 201.63SatatatMACHINE_ARCH= vax 211.62SjmcUSETOOLS?= no 221.63SatatatNEED_OWN_INSTALL_TARGET?=no 231.62Sjmc.include <bsd.own.mk> 241.16Smycroft 251.63Satatat## 261.63Satatat## (1) port identification 271.63Satatat## 281.63SatatatVAX= $S/arch/vax 291.63SatatatGENASSYM= ${VAX}/vax/genassym.cf 301.63SatatatMD_CPPFLAGS= -D_VAX_INLINE_ 311.63Satatat 321.63Satatat## 331.63Satatat## (2) compile settings 341.63Satatat## 351.63SatatatCPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT \ 361.63Satatat ${MD_CPPFLAGS} 371.63SatatatCOPTS?= -O2 381.63SatatatCFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} 391.63SatatatAFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE 401.1Sragge 411.64SlukemHAVE_EGCS!= ${CC} --version | egrep "^(2\.8|2\.9[0-4]|egcs)" ; echo 421.54Sthorpej.if (${HAVE_EGCS} != "") 431.47SmattCFLAGS+= -mno-pic 441.47Smatt.endif 451.48Smrg 461.63Satatat## 471.64Slukem## (3) libkern and compat 481.63Satatat## 491.63SatatatKERN_AS= obj 501.27Smycroft 511.63Satatat## 521.63Satatat## (4) local objects, compile rules, and dependencies 531.63Satatat## 541.63SatatatMD_OBJS= intvec.o subr.o 551.63SatatatMD_CFILES= 561.63SatatatMD_SFILES= ${VAX}/vax/intvec.s ${VAX}/vax/subr.s 571.1Sragge 581.63Satatatintvec.o: ${VAX}/vax/intvec.s assym.h 591.63Satatat ${NORMAL_S} 601.1Sragge 611.63Satatatsubr.o: ${VAX}/vax/subr.s assym.h 621.63Satatat ${NORMAL_S} 631.11Sragge 641.63Satatat## 651.63Satatat## (5) link settings 661.63Satatat## 671.63SatatatTEXTADDR?= 80000000 681.63SatatatLINKFORMAT= -N 691.63SatatatLINKFLAGS_DEBUG= -X 701.63SatatatLINKFLAGS_NORMAL= -S 711.63Satatat 721.63Satatat## 731.63Satatat## (6) port specific target dependencies 741.63Satatat## 751.16Smycroft 761.64Slukem# depend on CPU configuration 771.63Satatattmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile 781.63Satatatsbi.o subr.o: Makefile 791.24Smycroft 801.63Satatat## 811.63Satatat## (7) misc settings 821.63Satatat## 831.63Satatat 841.63Satatat## 851.63Satatat## (8) config(8) generated machinery 861.63Satatat## 871.63Satatat%INCLUDES 881.1Sragge 891.1Sragge%OBJS 901.1Sragge 911.1Sragge%CFILES 921.1Sragge 931.16Smycroft%SFILES 941.16Smycroft 951.1Sragge%LOAD 961.1Sragge 971.63Satatat%RULES 981.1Sragge 991.63Satatat## 1001.63Satatat## (9) port independent kernel machinery 1011.63Satatat## 1021.63Satatat.include "$S/conf/Makefile.kern.inc" 103