1 # Makefile.alpha -- with config changes.
2 # Copyright 1990 W. Jolitz
3 # from: @(#)Makefile.alpha 7.1 5/10/91
8 # This makefile is constructed from a machine description:
10 # Most changes should be made in the machine description
11 # /sys/alpha/conf/``machineid''
12 # after which you should do
14 # Generic makefile changes should be made in
15 # /sys/conf/Makefile.alpha
16 # after which config should be rerun for all machines.
19 # Which version of config(8) is required.
29 .include "$S/conf/kern.pre.mk"
31 SYSTEM_LD= @${LD} ${FMT} -Bdynamic -T $S/conf/ldscript.$M \
33 -export-dynamic -dynamic-linker /red/herring \
34 -o ${.TARGET} -X ${SYSTEM_OBJS} vers.o
48 SYSTEM_OBJS+= __divqu.o __divq.o __divlu.o __divl.o
49 SYSTEM_OBJS+= __remqu.o __remq.o __remlu.o __reml.o
50 CLEAN+= __divqu.S __divq.S __divlu.S __divl.S
51 CLEAN+= __remqu.S __remq.S __remlu.S __reml.S
53 __divqu.S: $S/$M/$M/divrem.m4
54 @echo 'building ${.TARGET} from ${.ALLSRC}'
55 @(echo "define(NAME,\`__divqu')define(OP,\`div')define(S,\`false')"; \
56 echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
58 __divq.S: $S/$M/$M/divrem.m4
59 @echo 'building ${.TARGET} from ${.ALLSRC}'
60 @(echo "define(NAME,\`__divq')define(OP,\`div')define(S,\`true')"; \
61 echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
63 __divlu.S: $S/$M/$M/divrem.m4
64 @echo 'building ${.TARGET} from ${.ALLSRC}'
65 @(echo "define(NAME,\`__divlu')define(OP,\`div')define(S,\`false')"; \
66 echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
68 __divl.S: $S/$M/$M/divrem.m4
69 @echo 'building ${.TARGET} from ${.ALLSRC}'
70 @(echo "define(NAME,\`__divl')define(OP,\`div')define(S,\`true')"; \
71 echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
73 __remqu.S: $S/$M/$M/divrem.m4
74 @echo 'building ${.TARGET} from ${.ALLSRC}'
75 @(echo "define(NAME,\`__remqu')define(OP,\`rem')define(S,\`false')"; \
76 echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
78 __remq.S: $S/$M/$M/divrem.m4
79 @echo 'building ${.TARGET} from ${.ALLSRC}'
80 @(echo "define(NAME,\`__remq')define(OP,\`rem')define(S,\`true')"; \
81 echo "define(WORDSIZE,64)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
83 __remlu.S: $S/$M/$M/divrem.m4
84 @echo 'building ${.TARGET} from ${.ALLSRC}'
85 @(echo "define(NAME,\`__remlu')define(OP,\`rem')define(S,\`false')"; \
86 echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
88 __reml.S: $S/$M/$M/divrem.m4
89 @echo 'building ${.TARGET} from ${.ALLSRC}'
90 @(echo "define(NAME,\`__reml')define(OP,\`rem')define(S,\`true')"; \
91 echo "define(WORDSIZE,32)"; cat ${.ALLSRC}) | m4 > ${.TARGET}
93 locore.o: $S/$M/$M/locore.s assym.s
98 .include "$S/conf/kern.post.mk"