2003-12-10 07:59:35 +03:00
|
|
|
# $NetBSD: Makefile.vax,v 1.72 2003/12/10 04:59:35 simonb Exp $
|
1994-10-26 11:01:33 +03:00
|
|
|
|
1996-02-02 23:08:17 +03:00
|
|
|
# Makefile for NetBSD
|
1994-08-03 00:18:46 +04:00
|
|
|
#
|
|
|
|
# This makefile is constructed from a machine description:
|
|
|
|
# config machineid
|
|
|
|
# Most changes should be made in the machine description
|
1996-02-02 23:08:17 +03:00
|
|
|
# /sys/arch/vax/conf/``machineid''
|
1994-08-03 00:18:46 +04:00
|
|
|
# after which you should do
|
1996-02-02 23:08:17 +03:00
|
|
|
# config machineid
|
1994-08-03 00:18:46 +04:00
|
|
|
# Machine generic makefile changes should be made in
|
1996-02-02 23:08:17 +03:00
|
|
|
# /sys/arch/vax/conf/Makefile.vax
|
1994-08-03 00:18:46 +04:00
|
|
|
# after which config should be rerun for all machines of that type.
|
2001-11-16 03:23:02 +03:00
|
|
|
#
|
2001-11-20 15:56:17 +03:00
|
|
|
# To specify debugging, add the config line: makeoptions DEBUG="-g"
|
2001-11-16 03:23:02 +03:00
|
|
|
# A better way is to specify -g only for a few files.
|
|
|
|
#
|
|
|
|
# makeoptions DEBUGLIST="uvm* trap if_*"
|
1996-02-02 23:08:17 +03:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
MACHINE_ARCH= vax
|
2001-10-26 10:45:33 +04:00
|
|
|
USETOOLS?= no
|
2001-11-16 03:23:02 +03:00
|
|
|
NEED_OWN_INSTALL_TARGET?=no
|
2001-10-26 10:45:33 +04:00
|
|
|
.include <bsd.own.mk>
|
2001-10-23 23:26:41 +04:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
|
|
|
## (1) port identification
|
|
|
|
##
|
|
|
|
VAX= $S/arch/vax
|
|
|
|
GENASSYM= ${VAX}/vax/genassym.cf
|
1994-08-03 00:18:46 +04:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
|
|
|
## (2) compile settings
|
|
|
|
##
|
2001-11-23 08:18:59 +03:00
|
|
|
CPPFLAGS+= -D_VAX_INLINE_
|
|
|
|
AFLAGS+= -x assembler-with-cpp -traditional-cpp
|
2002-11-05 17:35:30 +03:00
|
|
|
.if ${OBJECT_FMT} == "ELF"
|
2003-12-08 12:28:36 +03:00
|
|
|
.if ${HAVE_GCC3} == "no"
|
2002-11-05 17:35:30 +03:00
|
|
|
CFLAGS+= -mno-asm-pic
|
|
|
|
AFLAGS+= -mno-asm-pic
|
2003-12-08 12:28:36 +03:00
|
|
|
.endif
|
2002-11-05 17:35:30 +03:00
|
|
|
.else
|
|
|
|
CFLAGS+= -fno-pic
|
2002-02-11 03:25:19 +03:00
|
|
|
.endif
|
1996-09-10 01:06:55 +04:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
2001-11-20 15:56:17 +03:00
|
|
|
## (3) libkern and compat
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
|
|
|
KERN_AS= obj
|
1999-07-09 13:52:55 +04:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
|
|
|
## (4) local objects, compile rules, and dependencies
|
|
|
|
##
|
|
|
|
MD_OBJS= intvec.o subr.o
|
|
|
|
MD_CFILES=
|
2002-02-24 02:48:00 +03:00
|
|
|
MD_SFILES= ${VAX}/vax/intvec.S ${VAX}/vax/subr.S
|
1994-08-03 00:18:46 +04:00
|
|
|
|
2002-02-24 02:48:00 +03:00
|
|
|
intvec.o: ${VAX}/vax/intvec.S assym.h
|
2001-11-16 03:23:02 +03:00
|
|
|
${NORMAL_S}
|
1994-08-03 00:18:46 +04:00
|
|
|
|
2002-02-24 02:48:00 +03:00
|
|
|
subr.o: ${VAX}/vax/subr.S assym.h
|
2001-11-16 03:23:02 +03:00
|
|
|
${NORMAL_S}
|
1995-07-24 22:58:32 +04:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
|
|
|
## (5) link settings
|
|
|
|
##
|
|
|
|
TEXTADDR?= 80000000
|
|
|
|
LINKFORMAT= -N
|
|
|
|
LINKFLAGS_DEBUG= -X
|
|
|
|
LINKFLAGS_NORMAL= -S
|
1996-02-02 23:08:17 +03:00
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
|
|
|
## (6) port specific target dependencies
|
|
|
|
##
|
1994-08-03 00:18:46 +04:00
|
|
|
|
2001-11-20 15:56:17 +03:00
|
|
|
# depend on CPU configuration
|
2001-11-16 03:23:02 +03:00
|
|
|
tmscp.o ts.o uba.o uda.o clock.o emulate.o intvec.o: Makefile
|
|
|
|
sbi.o subr.o: Makefile
|
|
|
|
|
2003-12-10 07:59:35 +03:00
|
|
|
unimpl_emul.o: assym.h
|
|
|
|
|
2001-11-16 03:23:02 +03:00
|
|
|
##
|
|
|
|
## (7) misc settings
|
|
|
|
##
|
|
|
|
|
|
|
|
##
|
|
|
|
## (8) config(8) generated machinery
|
|
|
|
##
|
|
|
|
%INCLUDES
|
1996-08-10 10:07:57 +04:00
|
|
|
|
1994-08-03 00:18:46 +04:00
|
|
|
%OBJS
|
|
|
|
|
|
|
|
%CFILES
|
|
|
|
|
1996-02-02 23:08:17 +03:00
|
|
|
%SFILES
|
|
|
|
|
|
|
|
%LOAD
|
1994-08-03 00:18:46 +04:00
|
|
|
|
|
|
|
%RULES
|
2001-11-16 03:23:02 +03:00
|
|
|
|
|
|
|
##
|
|
|
|
## (9) port independent kernel machinery
|
|
|
|
##
|
|
|
|
.include "$S/conf/Makefile.kern.inc"
|