1 # Makefile.in generated by automake 1.11.6 from Makefile.am.
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software
7 # This Makefile.in is free software; the Free Software Foundation
8 # gives unlimited permission to copy and/or distribute it,
9 # with or without modifications, as long as this notice is preserved.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
18 # Copyright 2000, 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009,
19 # 2010, 2011 Free Software Foundation, Inc.
21 # This file is part of the GNU MP Library.
23 # The GNU MP Library is free software; you can redistribute it and/or modify
24 # it under the terms of the GNU Lesser General Public License as published by
25 # the Free Software Foundation; either version 3 of the License, or (at your
26 # option) any later version.
28 # The GNU MP Library is distributed in the hope that it will be useful, but
29 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
30 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
31 # License for more details.
33 # You should have received a copy of the GNU Lesser General Public License
34 # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
36 # Copyright 1996, 1998, 1999, 2000, 2001, 2002 Free Software Foundation,
39 # This file is part of the GNU MP Library.
41 # The GNU MP Library is free software; you can redistribute it and/or modify
42 # it under the terms of the GNU Lesser General Public License as published by
43 # the Free Software Foundation; either version 3 of the License, or (at your
44 # option) any later version.
46 # The GNU MP Library is distributed in the hope that it will be useful, but
47 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
48 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
49 # License for more details.
51 # You should have received a copy of the GNU Lesser General Public License
52 # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
60 echo 'am--echo: ; @echo "AM" OK' | $(MAKE) -f - 2>/dev/null \
61 | grep '^AM OK$$' >/dev/null || am__dry=yes;; \
63 for am__flg in $$MAKEFLAGS; do \
66 *n*) am__dry=yes; break;; \
70 test $$am__dry = yes; \
72 pkgdatadir = $(datadir)/@PACKAGE@
73 pkgincludedir = $(includedir)/@PACKAGE@
74 pkglibdir = $(libdir)/@PACKAGE@
75 pkglibexecdir = $(libexecdir)/@PACKAGE@
76 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
77 install_sh_DATA = $(install_sh) -c -m 644
78 install_sh_PROGRAM = $(install_sh) -c
79 install_sh_SCRIPT = $(install_sh) -c
80 INSTALL_HEADER = $(INSTALL_DATA)
81 transform = $(program_transform_name)
88 build_triplet = @build@
90 EXTRA_PROGRAMS = speed$(EXEEXT) speed-dynamic$(EXEEXT) \
91 speed-ext$(EXEEXT) tuneup$(EXEEXT) tune-gcd-p$(EXEEXT)
92 DIST_COMMON = README $(noinst_HEADERS) $(srcdir)/../mpn/Makeasm.am \
93 $(srcdir)/Makefile.am $(srcdir)/Makefile.in
95 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
96 am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \
97 $(top_srcdir)/configure.ac
98 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
100 mkinstalldirs = $(install_sh) -d
101 CONFIG_HEADER = $(top_builddir)/config.h
103 CONFIG_CLEAN_VPATH_FILES =
105 am__DEPENDENCIES_2 = $(am__DEPENDENCIES_1) \
106 $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la
107 am_libspeed_la_OBJECTS = common.lo divrem1div.lo divrem1inv.lo \
108 divrem2div.lo divrem2inv.lo freq.lo gcdext_single.lo \
109 gcdext_double.lo gcdextod.lo gcdextos.lo hgcd_lehmer.lo \
110 hgcd_appr_lehmer.lo hgcd_reduce_1.lo hgcd_reduce_2.lo \
111 jacbase1.lo jacbase2.lo jacbase3.lo jacbase4.lo mod_1_div.lo \
112 mod_1_inv.lo mod_1_1-1.lo mod_1_1-2.lo modlinv.lo noop.lo \
113 powm_mod.lo powm_redc.lo pre_divrem_1.lo set_strb.lo \
114 set_strs.lo set_strp.lo time.lo
115 libspeed_la_OBJECTS = $(am_libspeed_la_OBJECTS)
116 libspeed_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
117 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
118 $(libspeed_la_LDFLAGS) $(LDFLAGS) -o $@
119 am_speed_OBJECTS = speed.$(OBJEXT)
120 speed_OBJECTS = $(am_speed_OBJECTS)
121 speed_LDADD = $(LDADD)
122 speed_DEPENDENCIES = $(DEPENDENCIES) $(am__DEPENDENCIES_1)
123 speed_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
124 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(speed_LDFLAGS) \
126 am_speed_dynamic_OBJECTS = speed.$(OBJEXT)
127 speed_dynamic_OBJECTS = $(am_speed_dynamic_OBJECTS)
128 speed_dynamic_LDADD = $(LDADD)
129 speed_dynamic_DEPENDENCIES = $(DEPENDENCIES) $(am__DEPENDENCIES_1)
130 am_speed_ext_OBJECTS = speed-ext.$(OBJEXT)
131 speed_ext_OBJECTS = $(am_speed_ext_OBJECTS)
132 speed_ext_LDADD = $(LDADD)
133 speed_ext_DEPENDENCIES = $(DEPENDENCIES) $(am__DEPENDENCIES_1)
134 speed_ext_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
135 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
136 $(speed_ext_LDFLAGS) $(LDFLAGS) -o $@
137 am_tune_gcd_p_OBJECTS = tune-gcd-p.$(OBJEXT)
138 tune_gcd_p_OBJECTS = $(am_tune_gcd_p_OBJECTS)
139 tune_gcd_p_LDADD = $(LDADD)
140 tune_gcd_p_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
141 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
142 $(tune_gcd_p_LDFLAGS) $(LDFLAGS) -o $@
143 am_tuneup_OBJECTS = tuneup.$(OBJEXT)
144 am__objects_1 = div_qr_2.$(OBJEXT) bdiv_q.$(OBJEXT) bdiv_qr.$(OBJEXT) \
145 dcpi1_div_qr.$(OBJEXT) dcpi1_divappr_q.$(OBJEXT) \
146 dcpi1_bdiv_qr.$(OBJEXT) dcpi1_bdiv_q.$(OBJEXT) \
147 invertappr.$(OBJEXT) invert.$(OBJEXT) binvert.$(OBJEXT) \
148 divrem_2.$(OBJEXT) gcd.$(OBJEXT) gcdext.$(OBJEXT) \
149 get_str.$(OBJEXT) set_str.$(OBJEXT) matrix22_mul.$(OBJEXT) \
150 hgcd.$(OBJEXT) hgcd_appr.$(OBJEXT) hgcd_reduce.$(OBJEXT) \
151 mul_n.$(OBJEXT) sqr.$(OBJEXT) powm_sec.$(OBJEXT) \
152 mullo_n.$(OBJEXT) mul_fft.$(OBJEXT) mul.$(OBJEXT) \
153 tdiv_qr.$(OBJEXT) mulmod_bnm1.$(OBJEXT) sqrmod_bnm1.$(OBJEXT) \
154 mulmid.$(OBJEXT) mulmid_n.$(OBJEXT) toom42_mulmid.$(OBJEXT) \
155 nussbaumer_mul.$(OBJEXT) toom6h_mul.$(OBJEXT) \
156 toom8h_mul.$(OBJEXT) toom6_sqr.$(OBJEXT) toom8_sqr.$(OBJEXT) \
157 toom22_mul.$(OBJEXT) toom2_sqr.$(OBJEXT) toom33_mul.$(OBJEXT) \
158 toom3_sqr.$(OBJEXT) toom44_mul.$(OBJEXT) toom4_sqr.$(OBJEXT)
159 am__objects_2 = $(am__objects_1) divrem_1.$(OBJEXT) mod_1.$(OBJEXT)
160 nodist_tuneup_OBJECTS = sqr_basecase.$(OBJEXT) fac_ui.$(OBJEXT) \
162 tuneup_OBJECTS = $(am_tuneup_OBJECTS) $(nodist_tuneup_OBJECTS)
163 am__DEPENDENCIES_3 = $(am__DEPENDENCIES_1) libspeed.la
164 tuneup_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
165 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(tuneup_LDFLAGS) \
167 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
170 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
171 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
172 LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
173 --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
174 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
176 LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
177 --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
179 SOURCES = $(libspeed_la_SOURCES) $(speed_SOURCES) \
180 $(speed_dynamic_SOURCES) $(speed_ext_SOURCES) \
181 $(tune_gcd_p_SOURCES) $(tuneup_SOURCES) \
182 $(nodist_tuneup_SOURCES)
183 DIST_SOURCES = $(libspeed_la_SOURCES) $(speed_SOURCES) \
184 $(speed_dynamic_SOURCES) $(speed_ext_SOURCES) \
185 $(tune_gcd_p_SOURCES) $(tuneup_SOURCES)
186 am__can_run_installinfo = \
187 case $$AM_UPDATE_INFO_DIR in \
189 *) (install-info --version) >/dev/null 2>&1;; \
191 HEADERS = $(noinst_HEADERS)
194 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
200 ASMFLAGS = @ASMFLAGS@
201 AUTOCONF = @AUTOCONF@
202 AUTOHEADER = @AUTOHEADER@
203 AUTOMAKE = @AUTOMAKE@
205 CALLING_CONVENTIONS_OBJS = @CALLING_CONVENTIONS_OBJS@
208 CC_FOR_BUILD = @CC_FOR_BUILD@
211 CPPFLAGS = @CPPFLAGS@
212 CPP_FOR_BUILD = @CPP_FOR_BUILD@
215 CXXFLAGS = @CXXFLAGS@
216 CYGPATH_W = @CYGPATH_W@
217 DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
220 DSYMUTIL = @DSYMUTIL@
227 EXEEXT_FOR_BUILD = @EXEEXT_FOR_BUILD@
229 GMP_LDFLAGS = @GMP_LDFLAGS@
230 GMP_LIMB_BITS = @GMP_LIMB_BITS@
231 GMP_NAIL_BITS = @GMP_NAIL_BITS@
233 HAVE_CLOCK_01 = @HAVE_CLOCK_01@
234 HAVE_CPUTIME_01 = @HAVE_CPUTIME_01@
235 HAVE_GETRUSAGE_01 = @HAVE_GETRUSAGE_01@
236 HAVE_GETTIMEOFDAY_01 = @HAVE_GETTIMEOFDAY_01@
237 HAVE_HOST_CPU_FAMILY_power = @HAVE_HOST_CPU_FAMILY_power@
238 HAVE_HOST_CPU_FAMILY_powerpc = @HAVE_HOST_CPU_FAMILY_powerpc@
239 HAVE_SIGACTION_01 = @HAVE_SIGACTION_01@
240 HAVE_SIGALTSTACK_01 = @HAVE_SIGALTSTACK_01@
241 HAVE_SIGSTACK_01 = @HAVE_SIGSTACK_01@
242 HAVE_STACK_T_01 = @HAVE_STACK_T_01@
243 HAVE_SYS_RESOURCE_H_01 = @HAVE_SYS_RESOURCE_H_01@
245 INSTALL_DATA = @INSTALL_DATA@
246 INSTALL_PROGRAM = @INSTALL_PROGRAM@
247 INSTALL_SCRIPT = @INSTALL_SCRIPT@
248 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
253 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
254 LIBCURSES = @LIBCURSES@
255 LIBGMPXX_LDFLAGS = @LIBGMPXX_LDFLAGS@
256 LIBGMP_DLL = @LIBGMP_DLL@
257 LIBGMP_LDFLAGS = @LIBGMP_LDFLAGS@
259 LIBM_FOR_BUILD = @LIBM_FOR_BUILD@
261 LIBREADLINE = @LIBREADLINE@
266 LTLIBOBJS = @LTLIBOBJS@
269 MAKEINFO = @MAKEINFO@
270 MANIFEST_TOOL = @MANIFEST_TOOL@
279 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
280 PACKAGE_NAME = @PACKAGE_NAME@
281 PACKAGE_STRING = @PACKAGE_STRING@
282 PACKAGE_TARNAME = @PACKAGE_TARNAME@
283 PACKAGE_URL = @PACKAGE_URL@
284 PACKAGE_VERSION = @PACKAGE_VERSION@
285 PATH_SEPARATOR = @PATH_SEPARATOR@
288 SET_MAKE = @SET_MAKE@
290 SPEED_CYCLECOUNTER_OBJ = @SPEED_CYCLECOUNTER_OBJ@
292 TAL_OBJECT = @TAL_OBJECT@
293 TUNE_LIBS = @TUNE_LIBS@
294 TUNE_SQR_OBJ = @TUNE_SQR_OBJ@
295 U_FOR_BUILD = @U_FOR_BUILD@
297 WITH_READLINE_01 = @WITH_READLINE_01@
300 abs_builddir = @abs_builddir@
301 abs_srcdir = @abs_srcdir@
302 abs_top_builddir = @abs_top_builddir@
303 abs_top_srcdir = @abs_top_srcdir@
304 ac_ct_AR = @ac_ct_AR@
305 ac_ct_CC = @ac_ct_CC@
306 ac_ct_CXX = @ac_ct_CXX@
307 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
308 am__leading_dot = @am__leading_dot@
310 am__untar = @am__untar@
313 build_alias = @build_alias@
314 build_cpu = @build_cpu@
315 build_os = @build_os@
316 build_vendor = @build_vendor@
317 builddir = @builddir@
319 datarootdir = @datarootdir@
322 exec_prefix = @exec_prefix@
323 gmp_srclinks = @gmp_srclinks@
325 host_alias = @host_alias@
326 host_cpu = @host_cpu@
328 host_vendor = @host_vendor@
330 includedir = @includedir@
332 install_sh = @install_sh@
334 libexecdir = @libexecdir@
335 localedir = @localedir@
336 localstatedir = @localstatedir@
339 mpn_objects = @mpn_objects@
340 mpn_objs_in_libgmp = @mpn_objs_in_libgmp@
341 oldincludedir = @oldincludedir@
344 program_transform_name = @program_transform_name@
347 sharedstatedir = @sharedstatedir@
349 sysconfdir = @sysconfdir@
350 target_alias = @target_alias@
351 top_build_prefix = @top_build_prefix@
352 top_builddir = @top_builddir@
353 top_srcdir = @top_srcdir@
354 INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/tests
355 EXTRA_DIST = alpha.asm pentium.asm sparcv9.asm hppa.asm hppa2.asm hppa2w.asm \
356 ia64.asm powerpc.asm powerpc64.asm x86_64.asm many.pl
358 noinst_HEADERS = speed.h
359 @ENABLE_STATIC_FALSE@STATIC =
361 # Prefer -static on the speed and tune programs, since that can avoid
362 # overheads of shared library linkages on some systems. Libtool tends to
363 # botch -static if configured with --disable-static, perhaps reasonably
364 # enough. In any event under --disable-static the only choice is a dynamic
365 # link so there's no point in -static.
367 @ENABLE_STATIC_TRUE@STATIC = -static
368 EXTRA_LTLIBRARIES = libspeed.la
369 libspeed_la_SOURCES = \
370 common.c divrem1div.c divrem1inv.c divrem2div.c divrem2inv.c \
372 gcdext_single.c gcdext_double.c gcdextod.c gcdextos.c \
373 hgcd_lehmer.c hgcd_appr_lehmer.c hgcd_reduce_1.c hgcd_reduce_2.c \
374 jacbase1.c jacbase2.c jacbase3.c jacbase4.c \
375 mod_1_div.c mod_1_inv.c mod_1_1-1.c mod_1_1-2.c modlinv.c \
376 noop.c powm_mod.c powm_redc.c pre_divrem_1.c \
377 set_strb.c set_strs.c set_strp.c time.c
379 libspeed_la_DEPENDENCIES = $(SPEED_CYCLECOUNTER_OBJ) \
380 $(top_builddir)/tests/libtests.la $(top_builddir)/libgmp.la
382 libspeed_la_LIBADD = $(libspeed_la_DEPENDENCIES) $(LIBM)
383 libspeed_la_LDFLAGS = $(STATIC)
384 DEPENDENCIES = libspeed.la
385 LDADD = $(DEPENDENCIES) $(TUNE_LIBS)
386 speed_SOURCES = speed.c
387 speed_LDFLAGS = $(STATIC)
388 speed_dynamic_SOURCES = speed.c
389 speed_ext_SOURCES = speed-ext.c
390 speed_ext_LDFLAGS = $(STATIC)
391 tuneup_SOURCES = tuneup.c
392 nodist_tuneup_SOURCES = sqr_basecase.c fac_ui.c $(TUNE_MPN_SRCS)
393 tuneup_DEPENDENCIES = $(TUNE_SQR_OBJ) libspeed.la
394 tuneup_LDADD = $(tuneup_DEPENDENCIES) $(TUNE_LIBS)
395 tuneup_LDFLAGS = $(STATIC)
396 tune_gcd_p_SOURCES = tune-gcd-p.c
397 tune_gcd_p_DEPENDENCIES = ../mpn/gcd.c
398 tune_gcd_p_LDFLAGS = $(STATIC)
400 # $(MANY_CLEAN) and $(MANY_DISTCLEAN) are hooks for many.pl
401 CLEANFILES = $(EXTRA_PROGRAMS) $(EXTRA_LTLIBRARIES) \
402 $(TUNE_MPN_SRCS) fac_ui.c sqr_asm.asm \
403 stg.gnuplot stg.data \
404 mtg.gnuplot mtg.data \
405 fibg.gnuplot fibg.data \
406 graph.gnuplot graph.data \
409 DISTCLEANFILES = sqr_basecase.c $(MANY_DISTCLEAN)
411 # Generating these little files at build time seems better than including
412 # them in the distribution, since the list can be changed more easily.
414 # mpn/generic/tdiv_qr.c uses mpn_divrem_1 and mpn_divrem_2, but only for 1
415 # and 2 limb divisors, which are never used during tuning, so it doesn't
416 # matter whether it picks up a tuned or untuned version of those.
418 # divrem_1 and mod_1 are recompiled renamed to "_tune" to avoid a linking
419 # problem. If a native divrem_1 provides an mpn_divrem_1c entrypoint then
420 # common.c will want that, but the generic divrem_1 doesn't provide it,
421 # likewise for mod_1. The simplest way around this is to have the tune
422 # build versions renamed suitably.
424 # FIXME: Would like say mul_n.c to depend on $(top_builddir)/mul_n.c so the
425 # recompiled object will be rebuilt if that file changes.
426 TUNE_MPN_SRCS = $(TUNE_MPN_SRCS_BASIC) divrem_1.c mod_1.c
427 TUNE_MPN_SRCS_BASIC = div_qr_2.c bdiv_q.c bdiv_qr.c \
428 dcpi1_div_qr.c dcpi1_divappr_q.c dcpi1_bdiv_qr.c dcpi1_bdiv_q.c \
429 invertappr.c invert.c binvert.c divrem_2.c gcd.c gcdext.c \
430 get_str.c set_str.c matrix22_mul.c \
431 hgcd.c hgcd_appr.c hgcd_reduce.c \
432 mul_n.c sqr.c powm_sec.c \
433 mullo_n.c mul_fft.c mul.c tdiv_qr.c mulmod_bnm1.c sqrmod_bnm1.c \
434 mulmid.c mulmid_n.c toom42_mulmid.c \
435 nussbaumer_mul.c toom6h_mul.c toom8h_mul.c toom6_sqr.c toom8_sqr.c \
436 toom22_mul.c toom2_sqr.c toom33_mul.c toom3_sqr.c toom44_mul.c toom4_sqr.c
441 COMPILE_FLAGS = $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
442 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) $(ASMFLAGS)
445 # Flags used for preprocessing (in ansi2knr rules).
447 PREPROCESS_FLAGS = $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
451 # Recent versions of automake (1.5 and up for instance) append automake
452 # generated suffixes to this $(SUFFIXES) list. This is essential for us,
453 # since .c must come after .s, .S and .asm. If .c is before .s, for
454 # instance, then in the mpn directory "make" will see add_n.c mentioned in
455 # an explicit rule (the ansi2knr stuff) and decide it must have add_n.c,
456 # even if add_n.c doesn't exist but add_n.s does. See GNU make
457 # documentation "(make)Implicit Rule Search", part 5c.
459 # On IRIX 6 native make this doesn't work properly though. Somehow .c
460 # remains ahead of .s, perhaps because .c.s is a builtin rule. .asm works
461 # fine though, and mpn/mips3 uses this.
463 SUFFIXES = .s .S .asm
465 # can be overridden during development, eg. "make RM_TMP=: mul_1.lo"
470 .SUFFIXES: .s .S .asm .c .lo .o .obj
471 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(srcdir)/../mpn/Makeasm.am $(am__configure_deps)
473 case '$(am__configure_deps)' in \
475 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
476 && { if test -f $@; then exit 0; else break; fi; }; \
480 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu --ignore-deps tune/Makefile'; \
481 $(am__cd) $(top_srcdir) && \
482 $(AUTOMAKE) --gnu --ignore-deps tune/Makefile
484 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
487 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
489 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
490 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
492 $(srcdir)/../mpn/Makeasm.am:
494 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
495 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
497 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
498 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
499 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
500 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
501 $(am__aclocal_m4_deps):
502 libspeed.la: $(libspeed_la_OBJECTS) $(libspeed_la_DEPENDENCIES) $(EXTRA_libspeed_la_DEPENDENCIES)
503 $(libspeed_la_LINK) $(libspeed_la_OBJECTS) $(libspeed_la_LIBADD) $(LIBS)
504 speed$(EXEEXT): $(speed_OBJECTS) $(speed_DEPENDENCIES) $(EXTRA_speed_DEPENDENCIES)
505 @rm -f speed$(EXEEXT)
506 $(speed_LINK) $(speed_OBJECTS) $(speed_LDADD) $(LIBS)
507 speed-dynamic$(EXEEXT): $(speed_dynamic_OBJECTS) $(speed_dynamic_DEPENDENCIES) $(EXTRA_speed_dynamic_DEPENDENCIES)
508 @rm -f speed-dynamic$(EXEEXT)
509 $(LINK) $(speed_dynamic_OBJECTS) $(speed_dynamic_LDADD) $(LIBS)
510 speed-ext$(EXEEXT): $(speed_ext_OBJECTS) $(speed_ext_DEPENDENCIES) $(EXTRA_speed_ext_DEPENDENCIES)
511 @rm -f speed-ext$(EXEEXT)
512 $(speed_ext_LINK) $(speed_ext_OBJECTS) $(speed_ext_LDADD) $(LIBS)
513 tune-gcd-p$(EXEEXT): $(tune_gcd_p_OBJECTS) $(tune_gcd_p_DEPENDENCIES) $(EXTRA_tune_gcd_p_DEPENDENCIES)
514 @rm -f tune-gcd-p$(EXEEXT)
515 $(tune_gcd_p_LINK) $(tune_gcd_p_OBJECTS) $(tune_gcd_p_LDADD) $(LIBS)
516 tuneup$(EXEEXT): $(tuneup_OBJECTS) $(tuneup_DEPENDENCIES) $(EXTRA_tuneup_DEPENDENCIES)
517 @rm -f tuneup$(EXEEXT)
518 $(tuneup_LINK) $(tuneup_OBJECTS) $(tuneup_LDADD) $(LIBS)
530 $(COMPILE) -c `$(CYGPATH_W) '$<'`
533 $(LTCOMPILE) -c -o $@ $<
541 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
542 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
543 unique=`for i in $$list; do \
544 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
546 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
547 END { if (nonempty) { for (i in files) print i; }; }'`; \
551 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
552 $(TAGS_FILES) $(LISP)
555 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
556 unique=`for i in $$list; do \
557 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
559 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
560 END { if (nonempty) { for (i in files) print i; }; }'`; \
562 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
563 test -n "$$unique" || unique=$$empty_fix; \
564 if test $$# -gt 0; then \
565 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
568 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
573 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
574 $(TAGS_FILES) $(LISP)
575 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
576 unique=`for i in $$list; do \
577 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
579 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
580 END { if (nonempty) { for (i in files) print i; }; }'`; \
581 test -z "$(CTAGS_ARGS)$$unique" \
582 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
586 here=`$(am__cd) $(top_builddir) && pwd` \
587 && $(am__cd) $(top_srcdir) \
588 && gtags -i $(GTAGS_ARGS) "$$here"
591 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
593 distdir: $(DISTFILES)
594 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
595 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
596 list='$(DISTFILES)'; \
597 dist_files=`for file in $$list; do echo $$file; done | \
598 sed -e "s|^$$srcdirstrip/||;t" \
599 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
600 case $$dist_files in \
601 */*) $(MKDIR_P) `echo "$$dist_files" | \
602 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
605 for file in $$dist_files; do \
606 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
607 if test -d $$d/$$file; then \
608 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
609 if test -d "$(distdir)/$$file"; then \
610 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
612 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
613 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
614 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
616 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
618 test -f "$(distdir)/$$file" \
619 || cp -p $$d/$$file "$(distdir)/$$file" \
625 all-am: Makefile $(HEADERS)
628 install-exec: install-exec-am
629 install-data: install-data-am
630 uninstall: uninstall-am
633 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
635 installcheck: installcheck-am
637 if test -z '$(STRIP)'; then \
638 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
639 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
642 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
643 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
644 "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
649 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
652 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
653 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
654 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
656 maintainer-clean-generic:
657 @echo "This command is intended for maintainers to use"
658 @echo "it deletes files that may require special tools to rebuild."
661 clean-am: clean-generic clean-libtool mostlyclean-am
663 distclean: distclean-am
665 distclean-am: clean-am distclean-compile distclean-generic \
682 install-dvi: install-dvi-am
688 install-html: install-html-am
692 install-info: install-info-am
698 install-pdf: install-pdf-am
702 install-ps: install-ps-am
708 maintainer-clean: maintainer-clean-am
710 maintainer-clean-am: distclean-am maintainer-clean-generic
712 mostlyclean: mostlyclean-am
714 mostlyclean-am: mostlyclean-compile mostlyclean-generic \
727 .MAKE: install-am install-strip
729 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
730 clean-libtool ctags distclean distclean-compile \
731 distclean-generic distclean-libtool distclean-tags distdir dvi \
732 dvi-am html html-am info info-am install install-am \
733 install-data install-data-am install-dvi install-dvi-am \
734 install-exec install-exec-am install-html install-html-am \
735 install-info install-info-am install-man install-pdf \
736 install-pdf-am install-ps install-ps-am install-strip \
737 installcheck installcheck-am installdirs maintainer-clean \
738 maintainer-clean-generic mostlyclean mostlyclean-compile \
739 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
740 tags uninstall uninstall-am
743 $(top_builddir)/tests/libtests.la:
744 cd $(top_builddir)/tests; $(MAKE) $(AM_MAKEFLAGS) libtests.la
747 $(MAKE) $(AM_MAKEFLAGS) tuneup$(EXEEXT)
750 allprogs: $(EXTRA_PROGRAMS)
752 $(TUNE_MPN_SRCS_BASIC):
753 for i in $(TUNE_MPN_SRCS_BASIC); do \
754 echo "#define TUNE_PROGRAM_BUILD 1" >$$i; \
755 echo "#include \"mpn/generic/$$i\"" >>$$i; \
759 echo "#define TUNE_PROGRAM_BUILD 1" >divrem_1.c
760 echo "#define __gmpn_divrem_1 mpn_divrem_1_tune" >>divrem_1.c
761 echo "#include \"mpn/generic/divrem_1.c\"" >>divrem_1.c
764 echo "#define TUNE_PROGRAM_BUILD 1" >mod_1.c
765 echo "#define __gmpn_mod_1 mpn_mod_1_tune" >>mod_1.c
766 echo "#include \"mpn/generic/mod_1.c\"" >>mod_1.c
768 sqr_asm.asm: $(top_builddir)/mpn/sqr_basecase.asm
769 echo 'define(SQR_TOOM2_THRESHOLD_OVERRIDE,SQR_TOOM2_THRESHOLD_MAX)' >sqr_asm.asm
770 echo 'include(../mpn/sqr_basecase.asm)' >>sqr_asm.asm
772 # FIXME: Should it depend on $(top_builddir)/fac_ui.h too?
773 fac_ui.c: $(top_builddir)/mpz/fac_ui.c
774 echo "#define TUNE_PROGRAM_BUILD 1" >fac_ui.c
775 echo "#define __gmpz_fac_ui mpz_fac_ui_tune" >>fac_ui.c
776 echo "#define __gmpz_oddfac_1 mpz_oddfac_1_tune" >>fac_ui.c
777 echo "#include \"mpz/oddfac_1.c\"" >>fac_ui.c
778 echo "#include \"mpz/fac_ui.c\"" >>fac_ui.c
780 # .s assembler, no preprocessing.
783 $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$<
785 $(CCAS) $(COMPILE_FLAGS) `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi`
787 $(LIBTOOL) --mode=compile --tag=CC $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$<
789 # .S assembler, preprocessed with cpp.
791 # It's necessary to run $(CPP) separately, since it seems not all compilers
792 # recognise .S files, in particular "cc" on HP-UX 10 and 11 doesn't (and
793 # will silently do nothing if given a .S).
795 # For .lo we need a helper script, as described below for .asm.lo.
798 $(CPP) $(PREPROCESS_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$< | grep -v '^#' >tmp-$*.s
799 $(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
802 $(CPP) $(PREPROCESS_FLAGS) `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` | grep -v '^#' >tmp-$*.s
803 $(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
806 $(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/cpp-ccas --cpp="$(CPP) $(PREPROCESS_FLAGS)" $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$<
808 # .asm assembler, preprocessed with m4.
810 # .o and .obj are non-PIC and just need m4 followed by a compile.
812 # .lo is a bit tricky. Libtool (as of version 1.5) has foo.lo as a little
813 # text file, and .libs/foo.o and foo.o as the PIC and non-PIC objects,
814 # respectively. It'd be asking for lots of trouble to try to create foo.lo
815 # ourselves, so instead arrange to invoke libtool like a --mode=compile, but
816 # with a special m4-ccas script which first m4 preprocesses, then compiles.
817 # --tag=CC is necessary since foo.asm is otherwise unknown to libtool.
819 # Libtool adds -DPIC when building a shared object and the .asm files look
820 # for that. But it should be noted that the other PIC flags are on occasion
821 # important too, in particular FreeBSD 2.2.8 gas 1.92.3 requires -k before
822 # it accepts PIC constructs like @GOT, and gcc adds that flag only under
823 # -fPIC. (Later versions of gas are happy to accept PIC stuff any time.)
826 $(M4) -DOPERATION_$* `test -f '$<' || echo '$(srcdir)/'`$< >tmp-$*.s
827 $(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
830 $(M4) -DOPERATION_$* `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` >tmp-$*.s
831 $(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
834 $(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/m4-ccas --m4="$(M4)" $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$<
836 # Tell versions [3.59,3.63) of GNU make to not export all variables.
837 # Otherwise a system limit (for SysV at least) may be exceeded.