NetBSD/sys/arch/alpha/conf/Makefile.alpha

98 lines
1.8 KiB
Makefile

# $NetBSD: Makefile.alpha,v 1.73 2002/09/24 13:30:41 ad Exp $
# Makefile for NetBSD
#
# This makefile is constructed from a machine description:
# config machineid
# Most changes should be made in the machine description
# /sys/arch/alpha/conf/``machineid''
# after which you should do
# config machineid
# Machine generic makefile changes should be made in
# /sys/arch/alpha/conf/Makefile.alpha
# after which config should be rerun for all machines of that type.
#
# To specify debugging, add the config line: makeoptions DEBUG="-g"
# A better way is to specify -g only for a few files.
#
# makeoptions DEBUGLIST="uvm* trap if_*"
MACHINE_ARCH= alpha
USETOOLS?= no
NEED_OWN_INSTALL_TARGET?=no
.include <bsd.own.mk>
##
## (1) port identification
##
ALPHA= $S/arch/alpha
GENASSYM= ${ALPHA}/alpha/genassym.cf
##
## (2) compile settings
##
CPPFLAGS+= -Dalpha
CFLAGS+= -mno-fp-regs
AFLAGS+= -traditional
NORMAL_S= ${CPP} ${AFLAGS} ${CPPFLAGS} $< | sed -e 's,^\#.*,,' | \
${AS} -o ${.TARGET}
##
## (3) libkern and compat
##
##
## (4) local objects, compile rules, and dependencies
##
MD_OBJS= locore.o transfer.o
MD_CFILES=
MD_SFILES= ${ALPHA}/alpha/locore.s ${ALPHA}/alpha/transfer.s
locore.o: ${ALPHA}/alpha/locore.s assym.h
${NORMAL_S}
transfer.o: ${ALPHA}/alpha/transfer.s
${NORMAL_S}
##
## (5) link settings
##
LINKFORMAT= -N
TEXTADDR?= fffffc0000300000
ENTRYPOINT= __transfer
EXTRA_LINKFLAGS= -G 4
STRIPFLAGS= -g -X
##
## (6) port specific target dependencies
##
# depend on CPU configuration
clock.o apecs.o cia.o lca.o ioasic.o icasic.o: Makefile
##
## (7) misc settings
##
MKDEP_AFLAGS= -x assembler-with-cpp ${AFLAGS}
##
## (8) config(8) generated machinery
##
%INCLUDES
%OBJS
%CFILES
%SFILES
%LOAD
%RULES
##
## (9) port independent kernel machinery
##
.include "$S/conf/Makefile.kern.inc"