1 # $NetBSD: Makefile.inc,v 1.5 2011/07/07 17:55:26 drochner Exp $
5 toom_interpolate_7pts.c \
30 toom_interpolate_6pts.c \
32 toom_eval_dgr3_pm2.c \
35 toom_couple_handling.c \
37 toom_interpolate_12pts.c \
41 toom_interpolate_16pts.c \
48 gcdext_subdiv_step.c \
51 toom_eval_dgr3_pm1.c \
56 toom_interpolate_5pts.c \
96 toom_interpolate_8pts.c \
106 toom_eval_pm2rexp.c \
125 xor_n.c mpn/generic/logops_n.c \
126 nand_n.c mpn/generic/logops_n.c \
127 nior_n.c mpn/generic/logops_n.c \
128 hamdist.c mpn/generic/popham.c \
129 popcount.c mpn/generic/popham.c \
130 and_n.c mpn/generic/logops_n.c \
131 ior_n.c mpn/generic/logops_n.c \
132 xnor_n.c mpn/generic/logops_n.c \
133 iorn_n.c mpn/generic/logops_n.c \
134 andn_n.c mpn/generic/logops_n.c \
137 submul_1.asm mpn/x86/aorsmul_1.asm \
138 bdiv_dbm1c.asm mpn/x86/bdiv_dbm1c.asm \
139 addmul_1.asm mpn/x86/aorsmul_1.asm \
140 divrem_2.asm mpn/x86/divrem_2.asm \
142 # XXX using C versions
143 # add_n.asm mpn/x86/aors_n.asm \
144 # bdiv_q_1.asm mpn/x86_64/bdiv_q_1.asm \
145 # copyd.asm mpn/x86/copyd.asm \
146 # copyi.asm mpn/x86/copyi.asm \
147 # dive_1.asm mpn/x86/dive_1.asm \
148 # divrem_1.asm mpn/x86/divrem_1.asm \
149 # invert_limb.asm mpn/x86/invert_limb.asm \
150 # lshift.asm mpn/x86/lshift.asm \
151 # rshift.asm mpn/x86/rshift.asm \
152 # mod_34lsub1.asm mpn/x86/mod_34lsub1.asm \
153 # umul.asm mpn/x86/umul.asm \
154 # mul_1.asm mpn/x86/mul_1.asm \
155 # sqr_basecase.asm mpn/x86/sqr_basecase.asm \
156 # mul_basecase.asm mpn/x86/mul_basecase.asm \
157 # sub_n.asm mpn/x86/aors_n.asm \
159 # udiv.asm mpn/x86/udiv.asm \
161 SRCS+= add_n.c bdiv_q_1.c copyd.c copyi.c dive_1.c lshift.c rshift.c mod_34lsub1.c
162 SRCS+= mul_1.c sqr_basecase.c mul_basecase.c sub_n.c divrem_1.c
163 # XXX? put in C_SRCS_LIST?
166 gen-trialdivtab: gen-trialdivtab.c
167 ${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
173 trialdiv.c: trialdivtab.h
174 trialdivtab.h: gen-trialdivtab
175 ${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h
177 CLEANFILES+= trialdivtab.h
179 # XXX stuff looks for "../config.m4"
182 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
183 cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.OBJDIR}/config.m4
185 CLEANFILES+= config.m4
190 .for _build _src in ${ASM_SRCS_LIST}
191 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
192 ${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
195 CLEANFILES+= ${_build:R}.s
199 .for _build _src in ${C_SRCS_LIST}
200 mpn_${_build}: Makefile
201 echo '#include "${_src}"' > ${.TARGET}
203 CPPFLAGS.mpn_${_build}+= -DOPERATION_${_build:R}
206 CLEANFILES+= mpn_${_build}