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 \
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 \
107 toom_interpolate_8pts.c \
118 toom_eval_pm2rexp.c \
137 xor_n.c mpn/generic/logops_n.c \
138 nand_n.c mpn/generic/logops_n.c \
139 nior_n.c mpn/generic/logops_n.c \
140 hamdist.c mpn/generic/popham.c \
141 popcount.c mpn/generic/popham.c \
142 and_n.c mpn/generic/logops_n.c \
143 ior_n.c mpn/generic/logops_n.c \
144 xnor_n.c mpn/generic/logops_n.c \
145 iorn_n.c mpn/generic/logops_n.c \
146 andn_n.c mpn/generic/logops_n.c \
149 add_n.asm mpn/m68k/aors_n.asm \
150 lshift.asm mpn/m68k/lshift.asm \
151 rshift.asm mpn/m68k/rshift.asm \
152 sub_n.asm mpn/m68k/aors_n.asm \
154 gen-trialdivtab: gen-trialdivtab.c
155 ${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
159 trialdiv.c: trialdivtab.h
160 trialdivtab.h: gen-trialdivtab
161 ${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h
163 CLEANFILES+= trialdivtab.h
165 # XXX stuff looks for "../config.m4"
168 ${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
169 cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}
171 .for _build _src in ${ASM_SRCS_LIST}
172 ${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
173 ${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} -I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn -DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}
176 CLEANFILES+= ${_build:R}.s
180 .for _build _src in ${C_SRCS_LIST}
181 mpn_${_build}: Makefile
182 echo '#include "${_src}"' > ${.TARGET}
184 CPPFLAGS.mpn_${_build}+= -DOPERATION_${_build:R}
187 CLEANFILES+= mpn_${_build}