1#	$NetBSD: Makefile.inc,v 1.5 2013/11/29 08:03:42 mrg Exp $
2
3SRCS+= \
4	random.c \
5	toom_interpolate_7pts.c \
6	sbpi1_divappr_q.c \
7	random2.c \
8	mu_bdiv_q.c \
9	mulmid_basecase.c \
10	jacobi_2.c \
11	toom32_mul.c \
12	toom44_mul.c \
13	toom8h_mul.c \
14	toom2_sqr.c \
15	zero.c \
16	mod_1_4.c \
17	gcdext.c \
18	add_err3_n.c \
19	binvert.c \
20	mu_div_q.c \
21	invertappr.c \
22	add_n_sub_n.c \
23	dump.c \
24	mu_divappr_q.c \
25	dcpi1_div_qr.c \
26	hgcd_reduce.c \
27	matrix22_mul1_inverse_vector.c \
28	toom6_sqr.c \
29	divrem_1.c \
30	hgcd_step.c \
31	sub_err3_n.c \
32	mod_1.c \
33	toom42_mulmid.c \
34	divexact.c \
35	jacobi.c \
36	powlo.c \
37	mul.c \
38	set_str.c \
39	toom42_mul.c \
40	toom_interpolate_6pts.c \
41	toom54_mul.c \
42	dcpi1_divappr_q.c \
43	copyd.c \
44	toom_eval_dgr3_pm2.c \
45	mod_1_3.c \
46	com.c \
47	copyi.c \
48	toom_couple_handling.c \
49	add.c \
50	div_qr_2.c \
51	toom_interpolate_12pts.c \
52	perfsqr.c \
53	toom53_mul.c \
54	toom_eval_pm2exp.c \
55	mu_div_qr.c \
56	toom_interpolate_16pts.c \
57	bdiv_q.c \
58	toom22_mul.c \
59	bsqrtinv.c \
60	toom4_sqr.c \
61	div_q.c \
62	jacbase.c \
63	addcnd_n.c \
64	hgcd_matrix.c \
65	mullo_n.c \
66	toom33_mul.c \
67	toom_eval_dgr3_pm1.c \
68	mod_1_2.c \
69	sub_1.c \
70	add_err2_n.c \
71	trialdiv.c \
72	add_1.c \
73	sqr_basecase.c \
74	toom_interpolate_5pts.c \
75	sbpi1_bdiv_q.c \
76	pre_mod_1.c \
77	hgcd.c \
78	sqrtrem.c \
79	bdiv_q_1.c \
80	gcdext_1.c \
81	toom63_mul.c \
82	div_qr_2u_pi1.c \
83	mul_basecase.c \
84	toom8_sqr.c \
85	neg.c \
86	gcdext_lehmer.c \
87	divis.c \
88	dcpi1_div_q.c \
89	subcnd_n.c \
90	toom_eval_pm2.c \
91	hgcd2.c \
92	toom62_mul.c \
93	comb_tables.c \
94	sbpi1_bdiv_qr.c \
95	sub_err2_n.c \
96	scan1.c \
97	brootinv.c \
98	pre_divrem_1.c \
99	perfpow.c \
100	get_str.c \
101	mulmod_bnm1.c \
102	mullo_basecase.c \
103	tdiv_qr.c \
104	div_qr_2n_pi1.c \
105	toom43_mul.c \
106	mod_1_1.c \
107	matrix22_mul.c \
108	powm_sec.c \
109	divrem.c \
110	bsqrt.c \
111	gcd_1.c \
112	dcpi1_bdiv_qr.c \
113	mul_n.c \
114	redc_2.c \
115	toom6h_mul.c \
116	sqrmod_bnm1.c \
117	mul_fft.c \
118	mulmid.c \
119	powm.c \
120	rootrem.c \
121	toom_interpolate_8pts.c \
122	remove.c \
123	dive_1.c \
124	cmp.c \
125	toom_eval_pm1.c \
126	hgcd_appr.c \
127	scan0.c \
128	gcd_subdiv_step.c \
129	sbpi1_div_qr.c \
130	invert.c \
131	sub.c \
132	toom_eval_pm2rexp.c \
133	broot.c \
134	dcpi1_bdiv_q.c \
135	hgcd2_jacobi.c \
136	add_err1_n.c \
137	mulmid_n.c \
138	redc_1.c \
139	sqr.c \
140	nussbaumer_mul.c \
141	mu_bdiv_qr.c \
142	pow_1.c \
143	get_d.c \
144	toom52_mul.c \
145	sbpi1_div_q.c \
146	fib2_ui.c \
147	bdiv_qr.c \
148	hgcd_jacobi.c \
149	toom3_sqr.c \
150	gcd.c \
151	redc_n.c \
152	sub_err1_n.c \
153
154C_SRCS_LIST= \
155	xor_n.c			mpn/generic/logops_n.c \
156	sb_div_r_sec.c		mpn/generic/sb_div_sec.c \
157	nand_n.c		mpn/generic/logops_n.c \
158	nior_n.c		mpn/generic/logops_n.c \
159	hamdist.c		mpn/generic/popham.c \
160	popcount.c		mpn/generic/popham.c \
161	sbpi1_div_qr_sec.c	mpn/generic/sbpi1_div_sec.c \
162	and_n.c			mpn/generic/logops_n.c \
163	ior_n.c			mpn/generic/logops_n.c \
164	sb_div_qr_sec.c		mpn/generic/sb_div_sec.c \
165	xnor_n.c		mpn/generic/logops_n.c \
166	iorn_n.c		mpn/generic/logops_n.c \
167	sbpi1_div_r_sec.c	mpn/generic/sbpi1_div_sec.c \
168	andn_n.c		mpn/generic/logops_n.c \
169
170ASM_SRCS_LIST= \
171	sqr_diagonal.asm	mpn/powerpc32/sqr_diagonal.asm \
172	add_n.asm		mpn/powerpc32/aors_n.asm \
173	sublsh1_n.asm		mpn/powerpc32/sublsh1_n.asm \
174	submul_1.asm		mpn/powerpc32/submul_1.asm \
175	umul.asm		mpn/powerpc32/umul.asm \
176	tabselect.asm		mpn/powerpc32/tabselect.asm \
177	lshift.asm		mpn/powerpc32/lshift.asm \
178	mul_1.asm		mpn/powerpc32/mul_1.asm \
179	bdiv_dbm1c.asm		mpn/powerpc32/bdiv_dbm1c.asm \
180	rshift.asm		mpn/powerpc32/rshift.asm \
181	mod_34lsub1.asm		mpn/powerpc32/mod_34lsub1.asm \
182	lshiftc.asm		mpn/powerpc32/lshiftc.asm \
183	mode1o.asm		mpn/powerpc32/mode1o.asm \
184	addlsh1_n.asm		mpn/powerpc32/addlsh1_n.asm \
185	diveby3.asm		mpn/powerpc32/diveby3.asm \
186	invert_limb.asm		mpn/powerpc32/invert_limb.asm \
187	addmul_1.asm		mpn/powerpc32/addmul_1.asm \
188	divrem_2.asm		mpn/powerpc32/divrem_2.asm \
189	sub_n.asm		mpn/powerpc32/aors_n.asm \
190
191gen-trialdivtab: gen-trialdivtab.c
192	${HOST_CC} -o ${.OBJDIR}/gen-trialdivtab ${.ALLSRC} -lm
193
194# XXX
195GMP_LIMB_BITS=32
196
197trialdiv.c: trialdivtab.h
198trialdivtab.h: gen-trialdivtab
199	${.OBJDIR}/gen-trialdivtab $(GMP_LIMB_BITS) 8000 > ${.OBJDIR}/trialdivtab.h
200
201CLEANFILES+=	trialdivtab.h
202
203M4FLAGS= -DPIC
204