1 # $NetBSD: Makefile.inc,v 1.1 2011/07/03 11:41:30 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 \
104 toom_interpolate_8pts.c \
115 toom_eval_pm2rexp.c \
134 xor_n.c mpn/generic/logops_n.c \
135 nand_n.c mpn/generic/logops_n.c \
136 nior_n.c mpn/generic/logops_n.c \
137 hamdist.c mpn/generic/popham.c \
138 popcount.c mpn/generic/popham.c \
139 and_n.c mpn/generic/logops_n.c \
140 ior_n.c mpn/generic/logops_n.c \
141 xnor_n.c mpn/generic/logops_n.c \
142 iorn_n.c mpn/generic/logops_n.c \
143 andn_n.c mpn/generic/logops_n.c \
146 add_n.asm mpn/mips32/add_n.asm \
147 submul_1.asm mpn/mips32/submul_1.asm \
148 umul.asm mpn/mips32/umul.asm \
149 lshift.asm mpn/mips32/lshift.asm \
150 mul_1.asm mpn/mips32/mul_1.asm \
151 rshift.asm mpn/mips32/rshift.asm \
152 addmul_1.asm mpn/mips32/addmul_1.asm \
153 sub_n.asm mpn/mips32/sub_n.asm \
155 gen-trialdivtab: gen-trialdivtab.c
156 ${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 .for _build _src in ${ASM_SRCS_LIST}
175 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
176 ${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
179 CLEANFILES+= ${_build:R}.s
183 .for _build _src in ${C_SRCS_LIST}
184 mpn_${_build}: Makefile
185 echo '#include "${_src}"' > ${.TARGET}
187 CPPFLAGS.mpn_${_build}+= -DOPERATION_${_build:R}
190 CLEANFILES+= mpn_${_build}