head	1.8;
access;
symbols
	perseant-exfatfs-base-20250801:1.8
	perseant-exfatfs-base-20240630:1.8
	perseant-exfatfs:1.8.0.8
	perseant-exfatfs-base:1.8
	netbsd-8-3-RELEASE:1.7
	cjep_sun2x:1.8.0.6
	cjep_sun2x-base:1.8
	cjep_staticlib_x-base1:1.8
	cjep_staticlib_x:1.8.0.4
	cjep_staticlib_x-base:1.8
	phil-wifi-20200421:1.8
	phil-wifi-20200411:1.8
	phil-wifi-20200406:1.8
	netbsd-8-2-RELEASE:1.7
	netbsd-8-1-RELEASE:1.7
	netbsd-8-1-RC1:1.7
	pgoyette-compat-merge-20190127:1.8
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.8
	pgoyette-compat-1126:1.8
	pgoyette-compat-1020:1.8
	pgoyette-compat-0930:1.8
	pgoyette-compat-0906:1.8
	netbsd-7-2-RELEASE:1.7
	pgoyette-compat-0728:1.8
	netbsd-8-0-RELEASE:1.7
	pgoyette-compat-0625:1.8
	netbsd-8-0-RC2:1.7
	pgoyette-compat-0521:1.8
	pgoyette-compat-0502:1.8
	pgoyette-compat-0422:1.8
	netbsd-8-0-RC1:1.7
	pgoyette-compat-0415:1.8
	pgoyette-compat-0407:1.8
	pgoyette-compat-0330:1.8
	pgoyette-compat-0322:1.8
	pgoyette-compat-0315:1.8
	netbsd-7-1-2-RELEASE:1.7
	pgoyette-compat:1.8.0.2
	pgoyette-compat-base:1.8
	netbsd-7-1-1-RELEASE:1.7
	matt-nb8-mediatek:1.7.0.22
	matt-nb8-mediatek-base:1.7
	perseant-stdc-iso10646:1.7.0.20
	perseant-stdc-iso10646-base:1.7
	netbsd-8:1.7.0.18
	netbsd-8-base:1.7
	prg-localcount2-base3:1.7
	prg-localcount2-base2:1.7
	prg-localcount2-base1:1.7
	prg-localcount2:1.7.0.16
	prg-localcount2-base:1.7
	pgoyette-localcount-20170426:1.7
	bouyer-socketcan-base1:1.7
	pgoyette-localcount-20170320:1.7
	netbsd-7-1:1.7.0.14
	netbsd-7-1-RELEASE:1.7
	netbsd-7-1-RC2:1.7
	netbsd-7-nhusb-base-20170116:1.7
	bouyer-socketcan:1.7.0.12
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	netbsd-7-1-RC1:1.7
	pgoyette-localcount-20161104:1.7
	netbsd-7-0-2-RELEASE:1.7
	localcount-20160914:1.7
	netbsd-7-nhusb:1.7.0.10
	netbsd-7-nhusb-base:1.7
	pgoyette-localcount-20160806:1.7
	pgoyette-localcount-20160726:1.7
	pgoyette-localcount:1.7.0.8
	pgoyette-localcount-base:1.7
	netbsd-7-0-1-RELEASE:1.7
	netbsd-7-0:1.7.0.6
	netbsd-7-0-RELEASE:1.7
	netbsd-7-0-RC3:1.7
	netbsd-7-0-RC2:1.7
	netbsd-7-0-RC1:1.7
	netbsd-7:1.7.0.4
	netbsd-7-base:1.7
	yamt-pagecache-base9:1.7
	yamt-pagecache-tag8:1.1.4.3
	tls-earlyentropy:1.7.0.2
	tls-earlyentropy-base:1.7
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.7
	riastradh-drm2-base3:1.7
	riastradh-drm2-base2:1.2
	riastradh-drm2-base1:1.2
	riastradh-drm2:1.2.0.2
	riastradh-drm2-base:1.2
	agc-symver:1.2.0.4
	agc-symver-base:1.2
	yamt-pagecache-base8:1.2
	yamt-pagecache-base7:1.2
	yamt-pagecache:1.1.0.4
	yamt-pagecache-base6:1.1
	tls-maxphys:1.1.0.2
	tls-maxphys-base:1.7;
locks; strict;
comment	@# @;


1.8
date	2017.08.22.09.59.38;	author mrg;	state dead;
branches;
next	1.7;
commitid	H9HFyQz0W7BD0c4A;

1.7
date	2014.01.15.22.23.14;	author joerg;	state Exp;
branches;
next	1.6;
commitid	5DRIyRhs1o2Toglx;

1.6
date	2013.12.25.22.54.24;	author joerg;	state Exp;
branches;
next	1.5;
commitid	Z8k5Jymbeubwfzix;

1.5
date	2013.12.25.22.06.11;	author joerg;	state Exp;
branches;
next	1.4;
commitid	BFRH4JdYrzoQYyix;

1.4
date	2013.12.04.00.49.17;	author mrg;	state Exp;
branches;
next	1.3;
commitid	tOU2KELhQkDHAKfx;

1.3
date	2013.11.29.08.03.41;	author mrg;	state Exp;
branches;
next	1.2;
commitid	AEwwBnUtwLxB99fx;

1.2
date	2012.11.26.18.57.34;	author drochner;	state Exp;
branches;
next	1.1;

1.1
date	2012.08.05.18.27.13;	author matt;	state Exp;
branches
	1.1.2.1
	1.1.4.1;
next	;

1.1.2.1
date	2013.02.25.00.27.35;	author tls;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2014.08.19.23.59.59;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.1.4.1
date	2012.08.05.18.27.13;	author yamt;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2012.10.30.18.58.07;	author yamt;	state Exp;
branches;
next	1.1.4.3;

1.1.4.3
date	2013.01.16.05.28.06;	author yamt;	state Exp;
branches;
next	1.1.4.4;

1.1.4.4
date	2014.05.22.14.09.11;	author yamt;	state Exp;
branches;
next	;
commitid	nx2BSsHy0NPeAxBx;


desc
@@


1.8
log
@updates for GMP 6.1.2 and most platforms.  run tested on i386, amd64,
sparc sparc64, earm, ofppc and mips64eb.  build tested on most.

remove the earm* variants as they're now the same as the arm* ones.
@
text
@#	$NetBSD: Makefile.inc,v 1.7 2014/01/15 22:23:14 joerg Exp $

SRCS+= \
	random.c \
	toom_interpolate_7pts.c \
	divrem_2.c \
	sbpi1_divappr_q.c \
	random2.c \
	mu_bdiv_q.c \
	mulmid_basecase.c \
	jacobi_2.c \
	toom32_mul.c \
	toom44_mul.c \
	toom8h_mul.c \
	toom2_sqr.c \
	zero.c \
	mod_1_4.c \
	gcdext.c \
	add_err3_n.c \
	binvert.c \
	mu_div_q.c \
	invertappr.c \
	add_n_sub_n.c \
	dump.c \
	mu_divappr_q.c \
	dcpi1_div_qr.c \
	hgcd_reduce.c \
	matrix22_mul1_inverse_vector.c \
	tabselect.c \
	toom6_sqr.c \
	divrem_1.c \
	hgcd_step.c \
	sub_err3_n.c \
	mod_1.c \
	toom42_mulmid.c \
	divexact.c \
	jacobi.c \
	powlo.c \
	mul.c \
	set_str.c \
	toom42_mul.c \
	toom54_mul.c \
	toom_interpolate_6pts.c \
	dcpi1_divappr_q.c \
	toom_eval_dgr3_pm2.c \
	mod_1_3.c \
	toom_couple_handling.c \
	add.c \
	div_qr_2.c \
	toom_interpolate_12pts.c \
	perfsqr.c \
	toom53_mul.c \
	toom_eval_pm2exp.c \
	mu_div_qr.c \
	toom_interpolate_16pts.c \
	bdiv_q.c \
	toom22_mul.c \
	bsqrtinv.c \
	toom4_sqr.c \
	div_q.c \
	jacbase.c \
	hgcd_matrix.c \
	mullo_n.c \
	toom33_mul.c \
	toom_eval_dgr3_pm1.c \
	mod_1_2.c \
	sub_1.c \
	add_err2_n.c \
	trialdiv.c \
	add_1.c \
	sqr_basecase.c \
	toom_interpolate_5pts.c \
	sbpi1_bdiv_q.c \
	pre_mod_1.c \
	hgcd.c \
	sqrtrem.c \
	bdiv_q_1.c \
	gcdext_1.c \
	toom63_mul.c \
	div_qr_2u_pi1.c \
	mul_basecase.c \
	toom8_sqr.c \
	neg.c \
	gcdext_lehmer.c \
	divis.c \
	dcpi1_div_q.c \
	toom_eval_pm2.c \
	hgcd2.c \
	toom62_mul.c \
	comb_tables.c \
	sbpi1_bdiv_qr.c \
	sub_err2_n.c \
	scan1.c \
	brootinv.c \
	pre_divrem_1.c \
	perfpow.c \
	get_str.c \
	mulmod_bnm1.c \
	mullo_basecase.c \
	tdiv_qr.c \
	div_qr_2n_pi1.c \
	toom43_mul.c \
	mod_1_1.c \
	matrix22_mul.c \
	powm_sec.c \
	divrem.c \
	bsqrt.c \
	gcd_1.c \
	dcpi1_bdiv_qr.c \
	mul_n.c \
	redc_2.c \
	toom6h_mul.c \
	sqrmod_bnm1.c \
	mul_fft.c \
	mulmid.c \
	powm.c \
	rootrem.c \
	toom_interpolate_8pts.c \
	remove.c \
	dive_1.c \
	cmp.c \
	toom_eval_pm1.c \
	hgcd_appr.c \
	scan0.c \
	gcd_subdiv_step.c \
	sbpi1_div_qr.c \
	invert.c \
	sub.c \
	toom_eval_pm2rexp.c \
	broot.c \
	dcpi1_bdiv_q.c \
	hgcd2_jacobi.c \
	add_err1_n.c \
	mulmid_n.c \
	redc_1.c \
	sqr.c \
	nussbaumer_mul.c \
	mu_bdiv_qr.c \
	pow_1.c \
	get_d.c \
	toom52_mul.c \
	sbpi1_div_q.c \
	diveby3.c \
	fib2_ui.c \
	bdiv_qr.c \
	hgcd_jacobi.c \
	toom3_sqr.c \
	gcd.c \
	redc_n.c \
	sub_err1_n.c \

C_SRCS_LIST= \
	sb_div_r_sec.c		mpn/generic/sb_div_sec.c \
	hamdist.c		mpn/generic/popham.c \
	popcount.c		mpn/generic/popham.c \
	sbpi1_div_qr_sec.c	mpn/generic/sbpi1_div_sec.c \
	sb_div_qr_sec.c		mpn/generic/sb_div_sec.c \
	sbpi1_div_r_sec.c	mpn/generic/sbpi1_div_sec.c \

ASM_SRCS_LIST= \
	nand_n.asm		mpn/arm/logops_n.asm \
	rsh1sub_n.asm		mpn/arm/rsh1aors_n.asm \
	add_n.asm		mpn/arm/aors_n.asm \
	rsh1add_n.asm		mpn/arm/rsh1aors_n.asm \
	sublsh1_n.asm		mpn/arm/aorslsh1_n.asm \
	addcnd_n.asm		mpn/arm/aorscnd_n.asm \
	xor_n.asm		mpn/arm/logops_n.asm \
	submul_1.asm		mpn/arm/aorsmul_1.asm \
	nior_n.asm		mpn/arm/logops_n.asm \
	lshift.asm		mpn/arm/lshift.asm \
	and_n.asm		mpn/arm/logops_n.asm \
	mul_1.asm		mpn/arm/mul_1.asm \
	copyd.asm		mpn/arm/copyd.asm \
	bdiv_dbm1c.asm		mpn/arm/bdiv_dbm1c.asm \
	udiv.asm		mpn/arm/udiv.asm \
	andn_n.asm		mpn/arm/logops_n.asm \
	com.asm			mpn/arm/com.asm \
	copyi.asm		mpn/arm/copyi.asm \
	subcnd_n.asm		mpn/arm/aorscnd_n.asm \
	rshift.asm		mpn/arm/rshift.asm \
	iorn_n.asm		mpn/arm/logops_n.asm \
	ior_n.asm		mpn/arm/logops_n.asm \
	mod_34lsub1.asm		mpn/arm/mod_34lsub1.asm \
	xnor_n.asm		mpn/arm/logops_n.asm \
	lshiftc.asm		mpn/arm/lshiftc.asm \
	mode1o.asm		mpn/arm/mode1o.asm \
	addlsh1_n.asm		mpn/arm/aorslsh1_n.asm \
	invert_limb.asm		mpn/arm/invert_limb.asm \
	addmul_1.asm		mpn/arm/aorsmul_1.asm \
	sub_n.asm		mpn/arm/aors_n.asm \

GMP_LIMB_BITS=32

M4FLAGS= -DPIC
COPTS+= -fPIC
@


1.7
log
@-march=armv6 is no longer needed here, the multiplication instructions
are now parsed correctly for all ARM variants in LLVM.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 2013/12/25 22:54:24 joerg Exp $
@


1.6
log
@Should be ARMv6.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2013/12/25 22:06:11 joerg Exp $
a195 6

AFLAGS.addmul_1.s=	-march=armv6
AFLAGS.invert_limb.s=	-march=armv6
AFLAGS.mode1o.s=	-march=armv6
AFLAGS.mul_1.s=		-march=armv6
AFLAGS.submul_1.s=	-march=armv6
@


1.5
log
@Tag files using "more" advanced instructions than ARMv4 ISA with the
necessary support.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2013/12/04 00:49:17 mrg Exp $
d197 5
a201 5
AFLAGS.addmul_1.s=	-march=armv5
AFLAGS.invert_limb.s=	-march=armv5
AFLAGS.mode1o.s=	-march=armv5
AFLAGS.mul_1.s=		-march=armv5
AFLAGS.submul_1.s=	-march=armv5
@


1.4
log
@consolidate the trialdivtab.h generation code.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2013/11/29 08:03:41 mrg Exp $
d196 6
@


1.3
log
@updates for GMP 5.1.3, and new build files for most platforms.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2012/11/26 18:57:34 drochner Exp $
a191 3
gen-trialdivtab: gen-trialdivtab.c
	${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm

a193 6
trialdiv.c: trialdivtab.h
trialdivtab.h: gen-trialdivtab
	${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h

CLEANFILES+=	trialdivtab.h

@


1.2
log
@collect common rules in the shared Makefile, this propagates the .OBJDIR
fix done for i386 last year to all other ports
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 2012/08/05 18:27:13 matt Exp $
d5 1
a6 1
	toom_interpolate_7pts.c \
d10 2
d19 1
d23 1
d27 3
a29 1
	redc_1_sec.c \
d32 2
d35 1
d37 1
d42 1
a46 2
	com.c \
	lshift.c \
d49 1
a55 1
	mod_34lsub1.c \
d58 1
a58 1
	rshift.c \
d62 1
a62 1
	gcdext_subdiv_step.c \
d68 1
a75 1
	bdiv_dbm1c.c \
d80 1
a86 1
	subcnd_n.c \
d90 1
d92 1
d94 1
d98 1
a99 1
	mulmod_bnm1.c \
d101 1
d107 1
d113 1
d115 1
a115 1
	sqrmod_bnm1.c \
a117 1
	mode1o.c \
a119 1
	lshiftc.c \
d123 1
d130 1
d132 3
a139 1
	gcd_lehmer.c \
d146 1
d150 1
d153 1
a153 3
	xor_n.c			mpn/generic/logops_n.c \
	nand_n.c		mpn/generic/logops_n.c \
	nior_n.c		mpn/generic/logops_n.c \
d156 3
a158 5
	and_n.c			mpn/generic/logops_n.c \
	ior_n.c			mpn/generic/logops_n.c \
	xnor_n.c		mpn/generic/logops_n.c \
	iorn_n.c		mpn/generic/logops_n.c \
	andn_n.c		mpn/generic/logops_n.c \
d161 11
a171 2
	add_n.asm		mpn/arm/add_n.asm \
	submul_1.asm		mpn/arm/submul_1.asm \
d174 1
d176 2
d179 9
d189 2
a190 2
	addmul_1.asm		mpn/arm/addmul_1.asm \
	sub_n.asm		mpn/arm/sub_n.asm \
@


1.1
log
@Add gmp configury from earm (copied from arm)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2011/07/10 02:41:50 mrg Exp $
a166 8
# XXX stuff looks for "../config.m4"
dummy:
	mkdir dummy
${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
	cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}

BUILD_S_INCS=	-I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn

a168 20
.for _build _src in ${ASM_SRCS_LIST}
${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
		${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
		-DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}

SRCS+=		${_build:R}.s
CLEANFILES+=	${_build:R}.s

.endfor

.for _build _src in ${C_SRCS_LIST}
mpn_${_build}: Makefile
	echo '#include "${_src}"' > ${.TARGET}

CPPFLAGS.mpn_${_build}+= -DOPERATION_${_build:R}

SRCS+=		mpn_${_build}
CLEANFILES+=	mpn_${_build}
.endfor
@


1.1.2.1
log
@resync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 2012/08/05 18:27:13 matt Exp $
d167 8
d177 20
@


1.1.2.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d5 1
a6 1
	divrem_2.c \
a9 2
	mulmid_basecase.c \
	jacobi_2.c \
a16 1
	add_err3_n.c \
a19 1
	add_n_sub_n.c \
d23 1
a23 3
	hgcd_reduce.c \
	matrix22_mul1_inverse_vector.c \
	tabselect.c \
a25 2
	hgcd_step.c \
	sub_err3_n.c \
a26 1
	toom42_mulmid.c \
a27 1
	jacobi.c \
a31 1
	toom54_mul.c \
d36 2
a39 1
	div_qr_2.c \
d46 1
d49 1
a49 1
	bsqrtinv.c \
d53 1
a53 1
	hgcd_matrix.c \
a58 1
	add_err2_n.c \
d66 1
a70 1
	div_qr_2u_pi1.c \
d77 1
a80 1
	comb_tables.c \
a81 1
	sub_err2_n.c \
a82 1
	brootinv.c \
d86 1
a87 1
	mullo_basecase.c \
a88 1
	div_qr_2n_pi1.c \
a93 1
	bsqrt.c \
d99 1
a100 2
	mul_fft.c \
	mulmid.c \
d103 1
d106 1
a109 1
	hgcd_appr.c \
a115 1
	broot.c \
a116 3
	hgcd2_jacobi.c \
	add_err1_n.c \
	mulmid_n.c \
d122 1
a128 1
	hgcd_jacobi.c \
a131 1
	sub_err1_n.c \
d134 3
a136 1
	sb_div_r_sec.c		mpn/generic/sb_div_sec.c \
d139 5
a143 3
	sbpi1_div_qr_sec.c	mpn/generic/sbpi1_div_sec.c \
	sb_div_qr_sec.c		mpn/generic/sb_div_sec.c \
	sbpi1_div_r_sec.c	mpn/generic/sbpi1_div_sec.c \
d146 2
a147 11
	nand_n.asm		mpn/arm/logops_n.asm \
	rsh1sub_n.asm		mpn/arm/rsh1aors_n.asm \
	add_n.asm		mpn/arm/aors_n.asm \
	rsh1add_n.asm		mpn/arm/rsh1aors_n.asm \
	sublsh1_n.asm		mpn/arm/aorslsh1_n.asm \
	addcnd_n.asm		mpn/arm/aorscnd_n.asm \
	xor_n.asm		mpn/arm/logops_n.asm \
	submul_1.asm		mpn/arm/aorsmul_1.asm \
	nior_n.asm		mpn/arm/logops_n.asm \
	lshift.asm		mpn/arm/lshift.asm \
	and_n.asm		mpn/arm/logops_n.asm \
a149 1
	bdiv_dbm1c.asm		mpn/arm/bdiv_dbm1c.asm \
a150 2
	andn_n.asm		mpn/arm/logops_n.asm \
	com.asm			mpn/arm/com.asm \
a151 9
	subcnd_n.asm		mpn/arm/aorscnd_n.asm \
	rshift.asm		mpn/arm/rshift.asm \
	iorn_n.asm		mpn/arm/logops_n.asm \
	ior_n.asm		mpn/arm/logops_n.asm \
	mod_34lsub1.asm		mpn/arm/mod_34lsub1.asm \
	xnor_n.asm		mpn/arm/logops_n.asm \
	lshiftc.asm		mpn/arm/lshiftc.asm \
	mode1o.asm		mpn/arm/mode1o.asm \
	addlsh1_n.asm		mpn/arm/aorslsh1_n.asm \
d153 5
a157 2
	addmul_1.asm		mpn/arm/aorsmul_1.asm \
	sub_n.asm		mpn/arm/aors_n.asm \
d161 6
@


1.1.4.1
log
@file Makefile.inc was added on branch yamt-pagecache on 2012-10-30 18:58:07 +0000
@
text
@d1 196
@


1.1.4.2
log
@sync with head
@
text
@a0 196
#	$NetBSD$

SRCS+= \
	random.c \
	divrem_2.c \
	toom_interpolate_7pts.c \
	sbpi1_divappr_q.c \
	random2.c \
	mu_bdiv_q.c \
	toom32_mul.c \
	toom44_mul.c \
	toom8h_mul.c \
	toom2_sqr.c \
	zero.c \
	mod_1_4.c \
	gcdext.c \
	binvert.c \
	mu_div_q.c \
	invertappr.c \
	dump.c \
	mu_divappr_q.c \
	dcpi1_div_qr.c \
	redc_1_sec.c \
	toom6_sqr.c \
	divrem_1.c \
	mod_1.c \
	divexact.c \
	powlo.c \
	mul.c \
	set_str.c \
	toom42_mul.c \
	toom_interpolate_6pts.c \
	dcpi1_divappr_q.c \
	toom_eval_dgr3_pm2.c \
	mod_1_3.c \
	com.c \
	lshift.c \
	toom_couple_handling.c \
	add.c \
	toom_interpolate_12pts.c \
	perfsqr.c \
	toom53_mul.c \
	toom_eval_pm2exp.c \
	mu_div_qr.c \
	toom_interpolate_16pts.c \
	mod_34lsub1.c \
	bdiv_q.c \
	toom22_mul.c \
	rshift.c \
	toom4_sqr.c \
	div_q.c \
	jacbase.c \
	gcdext_subdiv_step.c \
	mullo_n.c \
	toom33_mul.c \
	toom_eval_dgr3_pm1.c \
	mod_1_2.c \
	sub_1.c \
	trialdiv.c \
	add_1.c \
	sqr_basecase.c \
	toom_interpolate_5pts.c \
	sbpi1_bdiv_q.c \
	pre_mod_1.c \
	hgcd.c \
	bdiv_dbm1c.c \
	sqrtrem.c \
	bdiv_q_1.c \
	gcdext_1.c \
	toom63_mul.c \
	mul_basecase.c \
	toom8_sqr.c \
	neg.c \
	gcdext_lehmer.c \
	divis.c \
	dcpi1_div_q.c \
	subcnd_n.c \
	toom_eval_pm2.c \
	hgcd2.c \
	toom62_mul.c \
	sbpi1_bdiv_qr.c \
	scan1.c \
	pre_divrem_1.c \
	perfpow.c \
	get_str.c \
	mullo_basecase.c \
	mulmod_bnm1.c \
	tdiv_qr.c \
	toom43_mul.c \
	mod_1_1.c \
	matrix22_mul.c \
	powm_sec.c \
	divrem.c \
	gcd_1.c \
	dcpi1_bdiv_qr.c \
	mul_n.c \
	redc_2.c \
	toom6h_mul.c \
	mul_fft.c \
	sqrmod_bnm1.c \
	powm.c \
	rootrem.c \
	mode1o.c \
	toom_interpolate_8pts.c \
	remove.c \
	lshiftc.c \
	dive_1.c \
	cmp.c \
	toom_eval_pm1.c \
	scan0.c \
	gcd_subdiv_step.c \
	sbpi1_div_qr.c \
	invert.c \
	sub.c \
	toom_eval_pm2rexp.c \
	dcpi1_bdiv_q.c \
	redc_1.c \
	sqr.c \
	nussbaumer_mul.c \
	mu_bdiv_qr.c \
	pow_1.c \
	gcd_lehmer.c \
	get_d.c \
	toom52_mul.c \
	sbpi1_div_q.c \
	diveby3.c \
	fib2_ui.c \
	bdiv_qr.c \
	toom3_sqr.c \
	gcd.c \
	redc_n.c \

C_SRCS_LIST= \
	xor_n.c			mpn/generic/logops_n.c \
	nand_n.c		mpn/generic/logops_n.c \
	nior_n.c		mpn/generic/logops_n.c \
	hamdist.c		mpn/generic/popham.c \
	popcount.c		mpn/generic/popham.c \
	and_n.c			mpn/generic/logops_n.c \
	ior_n.c			mpn/generic/logops_n.c \
	xnor_n.c		mpn/generic/logops_n.c \
	iorn_n.c		mpn/generic/logops_n.c \
	andn_n.c		mpn/generic/logops_n.c \

ASM_SRCS_LIST= \
	add_n.asm		mpn/arm/add_n.asm \
	submul_1.asm		mpn/arm/submul_1.asm \
	mul_1.asm		mpn/arm/mul_1.asm \
	copyd.asm		mpn/arm/copyd.asm \
	udiv.asm		mpn/arm/udiv.asm \
	copyi.asm		mpn/arm/copyi.asm \
	invert_limb.asm		mpn/arm/invert_limb.asm \
	addmul_1.asm		mpn/arm/addmul_1.asm \
	sub_n.asm		mpn/arm/sub_n.asm \

gen-trialdivtab: gen-trialdivtab.c
	${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm

GMP_LIMB_BITS=32

trialdiv.c: trialdivtab.h
trialdivtab.h: gen-trialdivtab
	${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h

CLEANFILES+=	trialdivtab.h

# XXX stuff looks for "../config.m4"
dummy:
	mkdir dummy
${.OBJDIR}/config.m4: ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4
	cp ${.CURDIR}/arch/${MACHINE_ARCH}/config.m4 ${.TARGET}

BUILD_S_INCS=	-I${.CURDIR} -I${.OBJDIR}/dummy -I${DIST}/ -I${DIST}/mpn

M4FLAGS= -DPIC
COPTS+= -fPIC
.for _build _src in ${ASM_SRCS_LIST}
${_build:R}.s: Makefile dummy ${.OBJDIR}/config.m4
	${TOOL_M4} -DCONFIG_TOP_SRCDIR=${DIST} ${BUILD_S_INCS} \
		${M4FLAGS} ${M4FLAGS.${.TARGET:R}} \
		-DOPERATION_${.TARGET:R} ${DIST}/${_src} > ${.TARGET}

SRCS+=		${_build:R}.s
CLEANFILES+=	${_build:R}.s

.endfor

.for _build _src in ${C_SRCS_LIST}
mpn_${_build}: Makefile
	echo '#include "${_src}"' > ${.TARGET}

CPPFLAGS.mpn_${_build}+= -DOPERATION_${_build:R}

SRCS+=		mpn_${_build}
CLEANFILES+=	mpn_${_build}
.endfor
@


1.1.4.3
log
@sync with (a bit old) head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.4.2 2012/10/30 18:58:07 yamt Exp $
d167 8
d177 20
@


1.1.4.4
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1.4.3 2013/01/16 05:28:06 yamt Exp $
d5 1
a6 1
	divrem_2.c \
a9 2
	mulmid_basecase.c \
	jacobi_2.c \
a16 1
	add_err3_n.c \
a19 1
	add_n_sub_n.c \
d23 1
a23 3
	hgcd_reduce.c \
	matrix22_mul1_inverse_vector.c \
	tabselect.c \
a25 2
	hgcd_step.c \
	sub_err3_n.c \
a26 1
	toom42_mulmid.c \
a27 1
	jacobi.c \
a31 1
	toom54_mul.c \
d36 2
a39 1
	div_qr_2.c \
d46 1
d49 1
a49 1
	bsqrtinv.c \
d53 1
a53 1
	hgcd_matrix.c \
a58 1
	add_err2_n.c \
d66 1
a70 1
	div_qr_2u_pi1.c \
d77 1
a80 1
	comb_tables.c \
a81 1
	sub_err2_n.c \
a82 1
	brootinv.c \
d86 1
a87 1
	mullo_basecase.c \
a88 1
	div_qr_2n_pi1.c \
a93 1
	bsqrt.c \
d99 1
a100 2
	mul_fft.c \
	mulmid.c \
d103 1
d106 1
a109 1
	hgcd_appr.c \
a115 1
	broot.c \
a116 3
	hgcd2_jacobi.c \
	add_err1_n.c \
	mulmid_n.c \
d122 1
a128 1
	hgcd_jacobi.c \
a131 1
	sub_err1_n.c \
d134 3
a136 1
	sb_div_r_sec.c		mpn/generic/sb_div_sec.c \
d139 5
a143 3
	sbpi1_div_qr_sec.c	mpn/generic/sbpi1_div_sec.c \
	sb_div_qr_sec.c		mpn/generic/sb_div_sec.c \
	sbpi1_div_r_sec.c	mpn/generic/sbpi1_div_sec.c \
d146 2
a147 11
	nand_n.asm		mpn/arm/logops_n.asm \
	rsh1sub_n.asm		mpn/arm/rsh1aors_n.asm \
	add_n.asm		mpn/arm/aors_n.asm \
	rsh1add_n.asm		mpn/arm/rsh1aors_n.asm \
	sublsh1_n.asm		mpn/arm/aorslsh1_n.asm \
	addcnd_n.asm		mpn/arm/aorscnd_n.asm \
	xor_n.asm		mpn/arm/logops_n.asm \
	submul_1.asm		mpn/arm/aorsmul_1.asm \
	nior_n.asm		mpn/arm/logops_n.asm \
	lshift.asm		mpn/arm/lshift.asm \
	and_n.asm		mpn/arm/logops_n.asm \
a149 1
	bdiv_dbm1c.asm		mpn/arm/bdiv_dbm1c.asm \
a150 2
	andn_n.asm		mpn/arm/logops_n.asm \
	com.asm			mpn/arm/com.asm \
a151 9
	subcnd_n.asm		mpn/arm/aorscnd_n.asm \
	rshift.asm		mpn/arm/rshift.asm \
	iorn_n.asm		mpn/arm/logops_n.asm \
	ior_n.asm		mpn/arm/logops_n.asm \
	mod_34lsub1.asm		mpn/arm/mod_34lsub1.asm \
	xnor_n.asm		mpn/arm/logops_n.asm \
	lshiftc.asm		mpn/arm/lshiftc.asm \
	mode1o.asm		mpn/arm/mode1o.asm \
	addlsh1_n.asm		mpn/arm/aorslsh1_n.asm \
d153 5
a157 2
	addmul_1.asm		mpn/arm/aorsmul_1.asm \
	sub_n.asm		mpn/arm/aors_n.asm \
d161 6
@


