Makefile.vax revision 1.70
11.70Sthorpej# $NetBSD: Makefile.vax,v 1.70 2002/11/05 14:35:33 thorpej 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.63Satatat 311.63Satatat## 321.63Satatat## (2) compile settings 331.63Satatat## 341.65SatatatCPPFLAGS+= -D_VAX_INLINE_ 351.65SatatatAFLAGS+= -x assembler-with-cpp -traditional-cpp 361.70Sthorpej.if ${OBJECT_FMT} == "ELF" 371.70SthorpejCFLAGS+= -mno-asm-pic 381.70SthorpejAFLAGS+= -mno-asm-pic 391.70Sthorpej.else 401.70SthorpejCFLAGS+= -fno-pic 411.68Sthorpej.endif 421.48Smrg 431.63Satatat## 441.64Slukem## (3) libkern and compat 451.63Satatat## 461.63SatatatKERN_AS= obj 471.27Smycroft 481.63Satatat## 491.63Satatat## (4) local objects, compile rules, and dependencies 501.63Satatat## 511.63SatatatMD_OBJS= intvec.o subr.o 521.63SatatatMD_CFILES= 531.69SmattMD_SFILES= ${VAX}/vax/intvec.S ${VAX}/vax/subr.S 541.1Sragge 551.69Smattintvec.o: ${VAX}/vax/intvec.S assym.h 561.63Satatat ${NORMAL_S} 571.1Sragge 581.69Smattsubr.o: ${VAX}/vax/subr.S assym.h 591.63Satatat ${NORMAL_S} 601.11Sragge 611.63Satatat## 621.63Satatat## (5) link settings 631.63Satatat## 641.63SatatatTEXTADDR?= 80000000 651.63SatatatLINKFORMAT= -N 661.63SatatatLINKFLAGS_DEBUG= -X 671.63SatatatLINKFLAGS_NORMAL= -S 681.63Satatat 691.63Satatat## 701.63Satatat## (6) port specific target dependencies 711.63Satatat## 721.16Smycroft 731.64Slukem# depend on CPU configuration 741.63Satatattmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile 751.63Satatatsbi.o subr.o: Makefile 761.24Smycroft 771.63Satatat## 781.63Satatat## (7) misc settings 791.63Satatat## 801.63Satatat 811.63Satatat## 821.63Satatat## (8) config(8) generated machinery 831.63Satatat## 841.63Satatat%INCLUDES 851.1Sragge 861.1Sragge%OBJS 871.1Sragge 881.1Sragge%CFILES 891.1Sragge 901.16Smycroft%SFILES 911.16Smycroft 921.1Sragge%LOAD 931.1Sragge 941.63Satatat%RULES 951.1Sragge 961.63Satatat## 971.63Satatat## (9) port independent kernel machinery 981.63Satatat## 991.63Satatat.include "$S/conf/Makefile.kern.inc" 100