1998-06-10 10:57:29 +00:00
|
|
|
# Makefile.alpha -- with config changes.
|
|
|
|
# Copyright 1990 W. Jolitz
|
|
|
|
# from: @(#)Makefile.alpha 7.1 5/10/91
|
1999-08-28 01:08:13 +00:00
|
|
|
# $FreeBSD$
|
1998-06-10 10:57:29 +00:00
|
|
|
#
|
|
|
|
# Makefile for FreeBSD
|
|
|
|
#
|
|
|
|
# This makefile is constructed from a machine description:
|
|
|
|
# config machineid
|
|
|
|
# Most changes should be made in the machine description
|
|
|
|
# /sys/alpha/conf/``machineid''
|
|
|
|
# after which you should do
|
|
|
|
# config machineid
|
|
|
|
# Generic makefile changes should be made in
|
2001-10-26 10:33:45 +00:00
|
|
|
# /sys/conf/Makefile.alpha
|
1998-06-10 10:57:29 +00:00
|
|
|
# after which config should be rerun for all machines.
|
|
|
|
#
|
|
|
|
|
|
|
|
# Which version of config(8) is required.
|
2002-02-20 23:35:56 +00:00
|
|
|
%VERSREQ= 500010
|
1998-06-10 10:57:29 +00:00
|
|
|
|
1999-10-30 09:28:27 +00:00
|
|
|
.if !defined(S)
|
1998-06-10 10:57:29 +00:00
|
|
|
.if exists(./@/.)
|
|
|
|
S= ./@
|
|
|
|
.else
|
2001-06-30 06:29:47 +00:00
|
|
|
S= ../../..
|
1998-06-10 10:57:29 +00:00
|
|
|
.endif
|
1999-10-30 09:28:27 +00:00
|
|
|
.endif
|
2001-11-02 21:34:20 +00:00
|
|
|
.include "$S/conf/kern.pre.mk"
|
2000-04-05 10:33:55 +00:00
|
|
|
|
2000-01-09 15:29:10 +00:00
|
|
|
SYSTEM_LD= @${LD} ${FMT} -Bdynamic -T $S/conf/ldscript.$M \
|
2001-09-10 14:47:34 +00:00
|
|
|
-e locorestart \
|
1999-11-22 15:39:13 +00:00
|
|
|
-export-dynamic -dynamic-linker /red/herring \
|
|
|
|
-o ${.TARGET} -X ${SYSTEM_OBJS} vers.o
|
1999-04-13 18:35:28 +00:00
|
|
|
|
1998-06-10 10:57:29 +00:00
|
|
|
%BEFORE_DEPEND
|
|
|
|
|
|
|
|
%OBJS
|
|
|
|
|
2000-11-25 03:25:34 +00:00
|
|
|
%FILES.c
|
1998-06-10 10:57:29 +00:00
|
|
|
|
2000-11-25 03:25:34 +00:00
|
|
|
%FILES.s
|
1998-06-10 10:57:29 +00:00
|
|
|
|
2000-11-25 03:25:34 +00:00
|
|
|
%FILES.m
|
1998-09-07 07:29:30 +00:00
|
|
|
|
1998-06-10 10:57:29 +00:00
|
|
|
%CLEAN
|
|
|
|
|
|
|
|
SYSTEM_OBJS+= __divqu.o __divq.o __divlu.o __divl.o
|
|
|
|
SYSTEM_OBJS+= __remqu.o __remq.o __remlu.o __reml.o
|
|
|
|
CLEAN+= __divqu.S __divq.S __divlu.S __divl.S
|
|
|
|
CLEAN+= __remqu.S __remq.S __remlu.S __reml.S
|
|
|
|
|
2000-01-07 05:12:12 +00:00
|
|
|
__divqu.S: $S/$M/$M/divrem.m4
|
1998-06-10 10:57:29 +00:00
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__divqu')define(OP,\`div')define(S,\`false')"; \
|
|
|
|
echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
2000-01-07 05:12:12 +00:00
|
|
|
__divq.S: $S/$M/$M/divrem.m4
|
1998-06-10 10:57:29 +00:00
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__divq')define(OP,\`div')define(S,\`true')"; \
|
|
|
|
echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
2000-01-07 05:12:12 +00:00
|
|
|
__divlu.S: $S/$M/$M/divrem.m4
|
1998-06-10 10:57:29 +00:00
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__divlu')define(OP,\`div')define(S,\`false')"; \
|
|
|
|
echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
2000-01-07 05:12:12 +00:00
|
|
|
__divl.S: $S/$M/$M/divrem.m4
|
1998-06-10 10:57:29 +00:00
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__divl')define(OP,\`div')define(S,\`true')"; \
|
|
|
|
echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
2000-01-07 05:12:12 +00:00
|
|
|
__remqu.S: $S/$M/$M/divrem.m4
|
1998-06-10 10:57:29 +00:00
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__remqu')define(OP,\`rem')define(S,\`false')"; \
|
|
|
|
echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
2000-01-07 05:12:12 +00:00
|
|
|
__remq.S: $S/$M/$M/divrem.m4
|
1998-06-10 10:57:29 +00:00
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__remq')define(OP,\`rem')define(S,\`true')"; \
|
|
|
|
echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
2000-01-07 05:12:12 +00:00
|
|
|
__remlu.S: $S/$M/$M/divrem.m4
|
1998-06-10 10:57:29 +00:00
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__remlu')define(OP,\`rem')define(S,\`false')"; \
|
|
|
|
echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
2000-01-07 05:12:12 +00:00
|
|
|
__reml.S: $S/$M/$M/divrem.m4
|
1998-06-10 10:57:29 +00:00
|
|
|
@echo 'building ${.TARGET} from ${.ALLSRC}'
|
|
|
|
@(echo "define(NAME,\`__reml')define(OP,\`rem')define(S,\`true')"; \
|
|
|
|
echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
|
|
|
|
|
|
|
|
%RULES
|
2001-11-11 20:33:02 +00:00
|
|
|
|
|
|
|
.include "$S/conf/kern.post.mk"
|