1# $NetBSD: Makefile.vax,v 1.80 2008/03/01 13:59:56 joerg 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_CONF= ${VAX}/vax/genassym.cf 30 31## 32## (2) compile settings 33## 34CPPFLAGS+= -D_VAX_INLINE_ 35AFLAGS+= -x assembler-with-cpp -traditional-cpp -fno-pic 36CFLAGS+= -fno-pic 37 38## 39## (3) libkern and compat 40## 41KERN_AS= obj 42 43## 44## (4) local objects, compile rules, and dependencies 45## 46MD_OBJS= intvec.o subr.o 47MD_CFILES= 48MD_SFILES= ${VAX}/vax/intvec.S ${VAX}/vax/subr.S 49 50intvec.o: ${VAX}/vax/intvec.S assym.h 51 ${NORMAL_S} 52 53subr.o: ${VAX}/vax/subr.S assym.h 54 ${NORMAL_S} 55 56## 57## (5) link settings 58## 59TEXTADDR?= 80000000 60LINKFORMAT= -N 61LINKFLAGS_DEBUG= -X 62LINKFLAGS_NORMAL= -S 63 64## 65## (6) port specific target dependencies 66## 67 68# depend on CPU configuration 69tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile 70sbi.o subr.o: Makefile 71 72lock_stubs.o unimpl_emul.o: assym.h 73 74## 75## (7) misc settings 76## 77 78# XXX recent gcc4 gets ICE on this one 79COPTS.db_command.c+= -fno-tree-ter 80 81## 82## (8) config(8) generated machinery 83## 84%INCLUDES 85 86%OBJS 87 88%CFILES 89 90%SFILES 91 92%LOAD 93 94%RULES 95 96## 97## (9) port independent kernel machinery 98## 99.include "$S/conf/Makefile.kern.inc" 100 101## 102## (10) Appending make options. 103## 104%MAKEOPTIONSAPPEND 105