1 # $NetBSD: Makefile.inc,v 1.3 2011/07/03 06:43:17 mrg Exp $
6 toom_interpolate_7pts.c \
32 toom_interpolate_6pts.c \
35 toom_eval_dgr3_pm2.c \
39 toom_couple_handling.c \
41 toom_interpolate_12pts.c \
46 toom_interpolate_16pts.c \
53 gcdext_subdiv_step.c \
56 toom_eval_dgr3_pm1.c \
62 toom_interpolate_5pts.c \
105 toom_interpolate_8pts.c \
116 toom_eval_pm2rexp.c \
135 xor_n.c mpn/generic/logops_n.c \
136 nand_n.c mpn/generic/logops_n.c \
137 nior_n.c mpn/generic/logops_n.c \
138 hamdist.c mpn/generic/popham.c \
139 popcount.c mpn/generic/popham.c \
140 and_n.c mpn/generic/logops_n.c \
141 ior_n.c mpn/generic/logops_n.c \
142 xnor_n.c mpn/generic/logops_n.c \
143 iorn_n.c mpn/generic/logops_n.c \
144 andn_n.c mpn/generic/logops_n.c \
147 submul_1.s mpn/vax/submul_1.s \
148 addmul_1.s mpn/vax/addmul_1.s \
149 lshift.s mpn/vax/lshift.s \
150 mul_1.s mpn/vax/mul_1.s \
151 sub_n.s mpn/vax/sub_n.s \
152 add_n.s mpn/vax/add_n.s \
153 rshift.s mpn/vax/rshift.s \
155 # XXX can't build these asm sources yet
159 add_n.c mpn/generic/add_n.c \
160 addmul_1.c mpn/generic/addmul_1.c \
161 lshift.c mpn/generic/lshift.c \
162 mul_1.c mpn/generic/mul_1.c \
163 rshift.c mpn/generic/rshift.c \
164 sub_n.c mpn/generic/sub_n.c \
165 submul_1.c mpn/generic/submul_1.c \
167 gen-trialdivtab: gen-trialdivtab.c
168 ${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
172 DPSRCS+=trialdivtab.h
173 trialdivtab.h: gen-trialdivtab
174 ${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h
176 CLEANFILES+= trialdivtab.h
178 .for _build _src in ${ASM_SRCS_LIST}
179 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4 ${_src}
180 ${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
183 CLEANFILES+= ${_build:R}.s
187 # XXX stuff looks for "../config.m4"
190 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
191 cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
193 .for _build _src in ${C_SRCS_LIST}
194 mpn_${_build}: Makefile ${_src}
195 echo '#include "${_src}"' > ${.TARGET}
197 CPPFLAGS.mpn_${_build}+= -DOPERATION_${_build:R}
200 CLEANFILES+= mpn_${_build}