1 # $NetBSD: Makefile.inc,v 1.3 2011/07/10 02:41:50 mrg Exp $
6 toom_interpolate_7pts.c \
32 toom_interpolate_6pts.c \
34 toom_eval_dgr3_pm2.c \
38 toom_couple_handling.c \
40 toom_interpolate_12pts.c \
45 toom_interpolate_16pts.c \
53 gcdext_subdiv_step.c \
56 toom_eval_dgr3_pm1.c \
62 toom_interpolate_5pts.c \
104 toom_interpolate_8pts.c \
115 toom_eval_pm2rexp.c \
134 xor_n.c mpn/generic/logops_n.c \
135 nand_n.c mpn/generic/logops_n.c \
136 nior_n.c mpn/generic/logops_n.c \
137 hamdist.c mpn/generic/popham.c \
138 popcount.c mpn/generic/popham.c \
139 and_n.c mpn/generic/logops_n.c \
140 ior_n.c mpn/generic/logops_n.c \
141 xnor_n.c mpn/generic/logops_n.c \
142 iorn_n.c mpn/generic/logops_n.c \
143 andn_n.c mpn/generic/logops_n.c \
146 add_n.asm mpn/arm/add_n.asm \
147 submul_1.asm mpn/arm/submul_1.asm \
148 mul_1.asm mpn/arm/mul_1.asm \
149 copyd.asm mpn/arm/copyd.asm \
150 udiv.asm mpn/arm/udiv.asm \
151 copyi.asm mpn/arm/copyi.asm \
152 invert_limb.asm mpn/arm/invert_limb.asm \
153 addmul_1.asm mpn/arm/addmul_1.asm \
154 sub_n.asm mpn/arm/sub_n.asm \
156 gen-trialdivtab: gen-trialdivtab.c
157 ${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
161 trialdiv.c: trialdivtab.h
162 trialdivtab.h: gen-trialdivtab
163 ${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h
165 CLEANFILES+= trialdivtab.h
167 # XXX stuff looks for "../config.m4"
170 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
171 cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
173 BUILD_S_INCS= -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn
177 .for _build _src in ${ASM_SRCS_LIST}
178 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
179 ${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
180 ${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
181 -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
184 CLEANFILES+= ${_build:R}.s
188 .for _build _src in ${C_SRCS_LIST}
189 mpn_${_build}: Makefile
190 echo '#include "${_src}"' > ${.TARGET}
192 CPPFLAGS.mpn_${_build}+= -DOPERATION_${_build:R}
195 CLEANFILES+= mpn_${_build}