1 # $NetBSD: Makefile.inc,v 1.2 2011/07/03 06:43:16 mrg Exp $
6 toom_interpolate_7pts.c \
32 toom_interpolate_6pts.c \
34 toom_eval_dgr3_pm2.c \
37 toom_couple_handling.c \
39 toom_interpolate_12pts.c \
44 toom_interpolate_16pts.c \
51 gcdext_subdiv_step.c \
54 toom_eval_dgr3_pm1.c \
60 toom_interpolate_5pts.c \
102 toom_interpolate_8pts.c \
113 toom_eval_pm2rexp.c \
133 popcount.c mpn/generic/popham.c \
134 hamdist.c mpn/generic/popham.c \
135 and_n.c mpn/generic/logops_n.c \
136 andn_n.c mpn/generic/logops_n.c \
137 nand_n.c mpn/generic/logops_n.c \
138 ior_n.c mpn/generic/logops_n.c \
139 iorn_n.c mpn/generic/logops_n.c \
140 nior_n.c mpn/generic/logops_n.c \
141 xor_n.c mpn/generic/logops_n.c \
142 xnor_n.c mpn/generic/logops_n.c \
146 sqr_diagonal.asm mpn/sparc64/sqr_diagonal.asm \
147 add_n.asm mpn/sparc64/add_n.asm \
148 addmul_2.asm mpn/sparc64/addmul_2.asm \
149 submul_1.asm mpn/sparc64/submul_1.asm \
150 lshift.asm mpn/sparc64/lshift.asm \
151 mul_1.asm mpn/sparc64/mul_1.asm \
152 copyd.asm mpn/sparc64/copyd.asm \
153 copyi.asm mpn/sparc64/copyi.asm \
154 rshift.asm mpn/sparc64/rshift.asm \
155 addmul_1.asm mpn/sparc64/addmul_1.asm \
156 sub_n.asm mpn/sparc64/sub_n.asm \
158 gen-trialdivtab: gen-trialdivtab.c
159 ${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
164 trialdiv.c: trialdivtab.h
165 trialdivtab.h: gen-trialdivtab
166 ${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h
168 CLEANFILES+= trialdivtab.h
170 # XXX stuff looks for "../config.m4"
173 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
174 cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
176 .for _build _src in ${ASM_SRCS_LIST}
177 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
178 ${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
181 CLEANFILES+= ${_build:R}.s
185 .for _build _src in ${C_SRCS_LIST}
186 mpn_${_build}: Makefile
187 echo '#include "${_src}"' > ${.TARGET}
189 CPPFLAGS.mpn_${_build}+= -DOPERATION_${_build:R}
192 CLEANFILES+= mpn_${_build}