1 # $NetBSD: Makefile.inc,v 1.3 2011/07/03 06:43:17 mrg Exp $
5 toom_interpolate_7pts.c \
29 toom_interpolate_6pts.c \
31 toom_eval_dgr3_pm2.c \
33 toom_couple_handling.c \
35 toom_interpolate_12pts.c \
39 toom_interpolate_16pts.c \
46 gcdext_subdiv_step.c \
49 toom_eval_dgr3_pm1.c \
54 toom_interpolate_5pts.c \
90 toom_interpolate_8pts.c \
117 nand_n.asm mpn/x86_64/logops_n.asm \
118 rsh1sub_n.asm mpn/x86_64/rsh1aors_n.asm \
119 add_n.asm mpn/x86_64/aors_n.asm \
120 rsh1add_n.asm mpn/x86_64/rsh1aors_n.asm \
121 sqr_basecase.asm mpn/x86_64/sqr_basecase.asm \
122 rsblsh2_n.asm mpn/x86_64/aorrlsh2_n.asm \
123 sublsh1_n.asm mpn/x86_64/sublsh1_n.asm \
124 bdiv_q_1.asm mpn/x86_64/bdiv_q_1.asm \
125 addaddmul_1msb0.asm mpn/x86_64/addaddmul_1msb0.asm \
126 xor_n.asm mpn/x86_64/logops_n.asm \
127 rsblsh_n.asm mpn/x86_64/aorrlsh_n.asm \
128 addmul_2.asm mpn/x86_64/addmul_2.asm \
129 submul_1.asm mpn/x86_64/aorsmul_1.asm \
130 nior_n.asm mpn/x86_64/logops_n.asm \
131 mul_basecase.asm mpn/x86_64/mul_basecase.asm \
132 lshift.asm mpn/x86_64/lshift.asm \
133 and_n.asm mpn/x86_64/logops_n.asm \
134 hamdist.asm mpn/x86_64/popham.asm \
135 mul_1.asm mpn/x86_64/mul_1.asm \
136 addlsh2_n.asm mpn/x86_64/aorrlsh2_n.asm \
137 divrem_1.asm mpn/x86_64/divrem_1.asm \
138 copyd.asm mpn/x86_64/copyd.asm \
139 bdiv_dbm1c.asm mpn/x86_64/bdiv_dbm1c.asm \
140 rsblsh1_n.asm mpn/x86_64/aorrlsh1_n.asm \
141 dive_1.asm mpn/x86_64/dive_1.asm \
142 andn_n.asm mpn/x86_64/logops_n.asm \
143 com.asm mpn/x86_64/com.asm \
144 copyi.asm mpn/x86_64/copyi.asm \
145 rshift.asm mpn/x86_64/rshift.asm \
146 addlsh_n.asm mpn/x86_64/aorrlsh_n.asm \
147 iorn_n.asm mpn/x86_64/logops_n.asm \
148 ior_n.asm mpn/x86_64/logops_n.asm \
149 mod_34lsub1.asm mpn/x86_64/mod_34lsub1.asm \
150 popcount.asm mpn/x86_64/popham.asm \
151 xnor_n.asm mpn/x86_64/logops_n.asm \
152 lshiftc.asm mpn/x86_64/lshiftc.asm \
153 mode1o.asm mpn/x86_64/mode1o.asm \
154 addlsh1_n.asm mpn/x86_64/aorrlsh1_n.asm \
155 mul_2.asm mpn/x86_64/mul_2.asm \
156 invert_limb.asm mpn/x86_64/invert_limb.asm \
157 addmul_1.asm mpn/x86_64/aorsmul_1.asm \
158 divrem_2.asm mpn/x86_64/divrem_2.asm \
159 sub_n.asm mpn/x86_64/aors_n.asm \
161 # XXX using C versions
162 # redc_1.asm mpn/x86_64/redc_1.asm
163 # gcd_1.asm mpn/x86_64/gcd_1.asm
164 # mod_1_4.asm mpn/x86_64/mod_1_4.asm
165 SRCS+= redc_1.c gcd_1.c mod_1_4.c
167 gen-trialdivtab: gen-trialdivtab.c
168 ${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 ${.TARGET}
185 .for _build _src in ${ASM_SRCS_LIST}
186 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
187 ${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
190 CLEANFILES+= ${_build:R}.s