03aef4723c
options SPACE TAB makeoptions TAB psuedo-device TAB remove trailing whitespace replace multiple spaces -> tabs options "FOO" -> options FOO options "FOO=bar" -> options FOO=bar options "FOO=\"bar\"" -> options FOO="\"bar\""
100 lines
1.9 KiB
Makefile
100 lines
1.9 KiB
Makefile
# $NetBSD: Makefile.alpha,v 1.69 2001/11/20 12:56:19 lukem 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
|
|
MD_CPPFLAGS= -Dalpha
|
|
|
|
##
|
|
## (2) compile settings
|
|
##
|
|
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -D_KERNEL_OPT \
|
|
${MD_CPPFLAGS}
|
|
COPTS?= -O2
|
|
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS} -mno-fp-regs
|
|
AFLAGS= -traditional -D_LOCORE
|
|
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
|
|
EXTRA_LINKFLAGS= -G 4
|
|
LINKFLAGS_DEBUG= -X
|
|
LINKFLAGS_NORMAL= -S
|
|
STRIPFLAGS= -g -X
|
|
|
|
##
|
|
## (6) port specific target dependencies
|
|
##
|
|
|
|
# depend on CPU configuration
|
|
clock.o apecs.o cia.o lca.o ioasic.o scc.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"
|