1 # $NetBSD: Makefile.inc,v 1.1 2011/10/29 09:16:54 mrg Exp $
6 toom_interpolate_7pts.c \
32 toom_interpolate_6pts.c \
34 toom_eval_dgr3_pm2.c \
36 toom_couple_handling.c \
38 toom_interpolate_12pts.c \
43 toom_interpolate_16pts.c \
50 gcdext_subdiv_step.c \
53 toom_eval_dgr3_pm1.c \
59 toom_interpolate_5pts.c \
101 toom_interpolate_8pts.c \
112 toom_eval_pm2rexp.c \
131 hamdist.c mpn/generic/popham.c \
132 popcount.c mpn/generic/popham.c \
135 nand_n.asm mpn/powerpc64/logops_n.asm \
136 sqr_diagonal.asm mpn/powerpc64/sqr_diagonal.asm \
137 add_n.asm mpn/powerpc64/mode32/add_n.asm \
138 xor_n.asm mpn/powerpc64/logops_n.asm \
139 submul_1.asm mpn/powerpc64/mode32/submul_1.asm \
140 umul.asm mpn/powerpc64/umul.asm \
141 nior_n.asm mpn/powerpc64/logops_n.asm \
142 lshift.asm mpn/powerpc64/lshift.asm \
143 and_n.asm mpn/powerpc64/logops_n.asm \
144 mul_1.asm mpn/powerpc64/mode32/mul_1.asm \
145 copyd.asm mpn/powerpc64/copyd.asm \
146 andn_n.asm mpn/powerpc64/logops_n.asm \
147 com.asm mpn/powerpc64/com.asm \
148 copyi.asm mpn/powerpc64/copyi.asm \
149 rshift.asm mpn/powerpc64/rshift.asm \
150 iorn_n.asm mpn/powerpc64/logops_n.asm \
151 ior_n.asm mpn/powerpc64/logops_n.asm \
152 xnor_n.asm mpn/powerpc64/logops_n.asm \
153 addmul_1.asm mpn/powerpc64/mode32/addmul_1.asm \
154 sub_n.asm mpn/powerpc64/mode32/sub_n.asm \
156 gen-trialdivtab: gen-trialdivtab.c
157 ${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
162 trialdiv.c: trialdivtab.h
163 trialdivtab.h: gen-trialdivtab
164 ${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h
166 CLEANFILES+= trialdivtab.h
168 # XXX stuff looks for "../config.m4"
171 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
172 cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
174 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}