Makefile.vax revision 1.64
1# $NetBSD: Makefile.vax,v 1.64 2001/11/20 12:56:42 lukem Exp $ 2 3# Makefile for NetBSD 4# 5# This makefile is constructed from a machine description: 6# config machineid 7# Most changes should be made in the machine description 8# /sys/arch/vax/conf/``machineid'' 9# after which you should do 10# config machineid 11# Machine generic makefile changes should be made in 12# /sys/arch/vax/conf/Makefile.vax 13# after which config should be rerun for all machines of that type. 14# 15# To specify debugging, add the config line: makeoptions DEBUG="-g" 16# A better way is to specify -g only for a few files. 17# 18# makeoptions DEBUGLIST="uvm* trap if_*" 19 20MACHINE_ARCH= vax 21USETOOLS?= no 22NEED_OWN_INSTALL_TARGET?=no 23.include <bsd.own.mk> 24 25## 26## (1) port identification 27## 28VAX= $S/arch/vax 29GENASSYM= ${VAX}/vax/genassym.cf 30MD_CPPFLAGS= -D_VAX_INLINE_ 31 32## 33## (2) compile settings 34## 35CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT \ 36 ${MD_CPPFLAGS} 37COPTS?= -O2 38CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} 39AFLAGS= -x assembler-with-cpp -traditional-cpp -D_LOCORE 40 41HAVE_EGCS!= ${CC} --version | egrep "^(2\.8|2\.9[0-4]|egcs)" ; echo 42.if (${HAVE_EGCS} != "") 43CFLAGS+= -mno-pic 44.endif 45 46## 47## (3) libkern and compat 48## 49KERN_AS= obj 50 51## 52## (4) local objects, compile rules, and dependencies 53## 54MD_OBJS= intvec.o subr.o 55MD_CFILES= 56MD_SFILES= ${VAX}/vax/intvec.s ${VAX}/vax/subr.s 57 58intvec.o: ${VAX}/vax/intvec.s assym.h 59 ${NORMAL_S} 60 61subr.o: ${VAX}/vax/subr.s assym.h 62 ${NORMAL_S} 63 64## 65## (5) link settings 66## 67TEXTADDR?= 80000000 68LINKFORMAT= -N 69LINKFLAGS_DEBUG= -X 70LINKFLAGS_NORMAL= -S 71 72## 73## (6) port specific target dependencies 74## 75 76# depend on CPU configuration 77tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile 78sbi.o subr.o: Makefile 79 80## 81## (7) misc settings 82## 83 84## 85## (8) config(8) generated machinery 86## 87%INCLUDES 88 89%OBJS 90 91%CFILES 92 93%SFILES 94 95%LOAD 96 97%RULES 98 99## 100## (9) port independent kernel machinery 101## 102.include "$S/conf/Makefile.kern.inc" 103