1
# Makefile.in generated automatically by automake 1.5 from Makefile.am.
3
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4
# Free Software Foundation, Inc.
5
# This Makefile.in is free software; the Free Software Foundation
6
# gives unlimited permission to copy and/or distribute it,
7
# with or without modifications, as long as this notice is preserved.
9
# This program is distributed in the hope that it will be useful,
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
16
# Copyright 2000, 2001, 2002 Free Software Foundation, Inc.
18
# This file is part of the GNU MP Library.
20
# The GNU MP Library is free software; you can redistribute it and/or modify
21
# it under the terms of the GNU Lesser General Public License as published by
22
# the Free Software Foundation; either version 2.1 of the License, or (at your
23
# option) any later version.
25
# The GNU MP Library is distributed in the hope that it will be useful, but
26
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
27
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
28
# License for more details.
30
# You should have received a copy of the GNU Lesser General Public License
31
# along with the GNU MP Library; see the file COPYING.LIB. If not, write to
32
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
36
# Copyright 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
38
# This file is part of the GNU MP Library.
40
# The GNU MP Library is free software; you can redistribute it and/or modify
41
# it under the terms of the GNU Lesser General Public License as published by
42
# the Free Software Foundation; either version 2.1 of the License, or (at your
43
# option) any later version.
45
# The GNU MP Library is distributed in the hope that it will be useful, but
46
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
47
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
48
# License for more details.
50
# You should have received a copy of the GNU Lesser General Public License
51
# along with the GNU MP Library; see the file COPYING.LIB. If not, write to
52
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
61
top_srcdir = @top_srcdir@
64
exec_prefix = @exec_prefix@
68
libexecdir = @libexecdir@
70
sysconfdir = @sysconfdir@
71
sharedstatedir = @sharedstatedir@
72
localstatedir = @localstatedir@
76
includedir = @includedir@
77
oldincludedir = /usr/include
78
pkgdatadir = $(datadir)/@PACKAGE@
79
pkglibdir = $(libdir)/@PACKAGE@
80
pkgincludedir = $(includedir)/@PACKAGE@
86
AUTOHEADER = @AUTOHEADER@
89
INSTALL_PROGRAM = @INSTALL_PROGRAM@
90
INSTALL_DATA = @INSTALL_DATA@
91
INSTALL_SCRIPT = @INSTALL_SCRIPT@
92
INSTALL_HEADER = $(INSTALL_DATA)
93
transform = @program_transform_name@
100
host_alias = @host_alias@
101
host_triplet = @host@
106
BITS_PER_MP_LIMB = @BITS_PER_MP_LIMB@
107
CALLING_CONVENTIONS_OBJS = @CALLING_CONVENTIONS_OBJS@
113
DEFN_LONG_LONG_LIMB = @DEFN_LONG_LONG_LIMB@
119
GCJFLAGS = @GCJFLAGS@
120
GMP_LDFLAGS = @GMP_LDFLAGS@
121
GMP_NAIL_BITS = @GMP_NAIL_BITS@
122
HAVE_DECL_OPTARG = @HAVE_DECL_OPTARG@
123
HAVE_HOST_CPU_FAMILY_power = @HAVE_HOST_CPU_FAMILY_power@
124
HAVE_HOST_CPU_FAMILY_powerpc = @HAVE_HOST_CPU_FAMILY_powerpc@
125
HAVE_MPFR_01 = @HAVE_MPFR_01@
126
HAVE_STACK_T_01 = @HAVE_STACK_T_01@
127
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
129
LIBGMP_DLL = @LIBGMP_DLL@
131
LIBREADLINE = @LIBREADLINE@
136
MPFR_CFLAGS = @MPFR_CFLAGS@
137
MPFR_LIBS = @MPFR_LIBS@
143
REPL_VSNPRINTF_OBJ = @REPL_VSNPRINTF_OBJ@
144
REPL_VSNPRINTF_PRINTF_OBJ = @REPL_VSNPRINTF_PRINTF_OBJ@
145
SPEED_CYCLECOUNTER_OBJ = @SPEED_CYCLECOUNTER_OBJ@
147
TAL_OBJECT = @TAL_OBJECT@
148
TUNE_SQR_OBJ = @TUNE_SQR_OBJ@
151
WITH_READLINE_01 = @WITH_READLINE_01@
153
am__include = @am__include@
154
am__quote = @am__quote@
155
gmp_srclinks = @gmp_srclinks@
156
install_sh = @install_sh@
157
mpn_objects = @mpn_objects@
158
mpn_objs_in_libgmp = @mpn_objs_in_libgmp@
159
mpn_objs_in_libmp = @mpn_objs_in_libmp@
161
AUTOMAKE_OPTIONS = gnu no-dependencies $(top_builddir)/ansi2knr
162
SUBDIRS = . devel mpn mpz mpq mpf rand misc cxx mpbsd
164
COMPILE_FLAGS = $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
165
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
168
# Flags used for preprocessing (in ansi2knr rules).
170
PREPROCESS_FLAGS = $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
174
# Recent versions of automake (1.5 and up for instance) append automake
175
# generated suffixes to this $(SUFFIXES) list. This is essential for us,
176
# since .c must come after .s, .S and .asm. If .c is before .s, for
177
# instance, then in the mpn directory "make" will see add_n.c mentioned in
178
# an explicit rule (the ansi2knr stuff) and decide it must have add_n.c,
179
# even if add_n.c doesn't exist but add_n.s does. See GNU make
180
# documentation "(make)Implicit Rule Search", part 5c.
182
# On IRIX 6 native make this doesn't work properly though. Somehow .c
183
# remains ahead of .s, perhaps because .c.s is a builtin rule. .asm works
184
# fine though, and mpn/mips3 uses this.
186
SUFFIXES = .s .S .asm
188
# can be overridden during development, eg. "make RM_TMP=: mul_1.lo"
191
INCLUDES = -I$(top_srcdir)
192
LDADD = libtests.la $(top_builddir)/libgmp.la
194
EXTRA_DIST = x86call.asm
195
EXTRA_LTLIBRARIES = libdummy.la
196
check_LTLIBRARIES = libtests.la
198
libtests_la_SOURCES = tests.h \
199
memory.c misc.c refmpf.c refmpn.c refmpq.c refmpz.c spinner.c trace.c
201
libtests_la_DEPENDENCIES = @CALLING_CONVENTIONS_OBJS@
202
libtests_la_LIBADD = $(libtests_la_DEPENDENCIES) $(top_builddir)/libgmp.la
204
# Create ansi2knr rules for sources conditionally used
205
libdummy_la_SOURCES = x86check.c
207
check_PROGRAMS = t-bswap t-constants t-count_zeros t-gmpmax t-modlinv
208
TESTS = $(check_PROGRAMS)
210
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
211
CONFIG_HEADER = $(top_builddir)/config.h
213
libdummy_la_LDFLAGS =
215
am_libdummy_la_OBJECTS = x86check$U.lo
216
libdummy_la_OBJECTS = $(am_libdummy_la_OBJECTS)
217
libtests_la_LDFLAGS =
218
am_libtests_la_OBJECTS = memory$U.lo misc$U.lo refmpf$U.lo refmpn$U.lo \
219
refmpq$U.lo refmpz$U.lo spinner$U.lo trace$U.lo
220
libtests_la_OBJECTS = $(am_libtests_la_OBJECTS)
221
check_PROGRAMS = t-bswap$(EXEEXT) t-constants$(EXEEXT) \
222
t-count_zeros$(EXEEXT) t-gmpmax$(EXEEXT) t-modlinv$(EXEEXT)
223
t_bswap_SOURCES = t-bswap.c
224
t_bswap_OBJECTS = t-bswap$U.$(OBJEXT)
225
t_bswap_LDADD = $(LDADD)
226
t_bswap_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
228
t_constants_SOURCES = t-constants.c
229
t_constants_OBJECTS = t-constants$U.$(OBJEXT)
230
t_constants_LDADD = $(LDADD)
231
t_constants_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
232
t_constants_LDFLAGS =
233
t_count_zeros_SOURCES = t-count_zeros.c
234
t_count_zeros_OBJECTS = t-count_zeros$U.$(OBJEXT)
235
t_count_zeros_LDADD = $(LDADD)
236
t_count_zeros_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
237
t_count_zeros_LDFLAGS =
238
t_gmpmax_SOURCES = t-gmpmax.c
239
t_gmpmax_OBJECTS = t-gmpmax$U.$(OBJEXT)
240
t_gmpmax_LDADD = $(LDADD)
241
t_gmpmax_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
243
t_modlinv_SOURCES = t-modlinv.c
244
t_modlinv_OBJECTS = t-modlinv$U.$(OBJEXT)
245
t_modlinv_LDADD = $(LDADD)
246
t_modlinv_DEPENDENCIES = libtests.la $(top_builddir)/libgmp.la
250
DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
251
CPPFLAGS = @CPPFLAGS@
255
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
256
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
257
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) \
258
$(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
260
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
261
$(AM_LDFLAGS) $(LDFLAGS) -o $@
263
DIST_SOURCES = $(libdummy_la_SOURCES) $(libtests_la_SOURCES) t-bswap.c \
264
t-constants.c t-count_zeros.c t-gmpmax.c t-modlinv.c
266
RECURSIVE_TARGETS = info-recursive dvi-recursive install-info-recursive \
267
uninstall-info-recursive all-recursive install-data-recursive \
268
install-exec-recursive installdirs-recursive install-recursive \
269
uninstall-recursive check-recursive installcheck-recursive
270
DIST_COMMON = Makefile.am Makefile.in
271
DIST_SUBDIRS = $(SUBDIRS)
272
SOURCES = $(libdummy_la_SOURCES) $(libtests_la_SOURCES) t-bswap.c t-constants.c t-count_zeros.c t-gmpmax.c t-modlinv.c
277
.SUFFIXES: .s .S .asm .c .lo .o .obj
287
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(srcdir)/../mpn/Makeasm.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
288
cd $(top_srcdir) && \
289
$(AUTOMAKE) --gnu tests/Makefile
290
Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in $(top_builddir)/config.status
291
cd $(top_builddir) && \
292
CONFIG_HEADERS= CONFIG_LINKS= \
293
CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
295
clean-checkLTLIBRARIES:
296
-test -z "$(check_LTLIBRARIES)" || rm -f $(check_LTLIBRARIES)
297
libdummy.la: $(libdummy_la_OBJECTS) $(libdummy_la_DEPENDENCIES)
298
$(LINK) $(libdummy_la_LDFLAGS) $(libdummy_la_OBJECTS) $(libdummy_la_LIBADD) $(LIBS)
299
libtests.la: $(libtests_la_OBJECTS) $(libtests_la_DEPENDENCIES)
300
$(LINK) $(libtests_la_LDFLAGS) $(libtests_la_OBJECTS) $(libtests_la_LIBADD) $(LIBS)
303
-test -z "$(check_PROGRAMS)" || rm -f $(check_PROGRAMS)
304
t-bswap$(EXEEXT): $(t_bswap_OBJECTS) $(t_bswap_DEPENDENCIES)
305
@rm -f t-bswap$(EXEEXT)
306
$(LINK) $(t_bswap_LDFLAGS) $(t_bswap_OBJECTS) $(t_bswap_LDADD) $(LIBS)
307
t-constants$(EXEEXT): $(t_constants_OBJECTS) $(t_constants_DEPENDENCIES)
308
@rm -f t-constants$(EXEEXT)
309
$(LINK) $(t_constants_LDFLAGS) $(t_constants_OBJECTS) $(t_constants_LDADD) $(LIBS)
310
t-count_zeros$(EXEEXT): $(t_count_zeros_OBJECTS) $(t_count_zeros_DEPENDENCIES)
311
@rm -f t-count_zeros$(EXEEXT)
312
$(LINK) $(t_count_zeros_LDFLAGS) $(t_count_zeros_OBJECTS) $(t_count_zeros_LDADD) $(LIBS)
313
t-gmpmax$(EXEEXT): $(t_gmpmax_OBJECTS) $(t_gmpmax_DEPENDENCIES)
314
@rm -f t-gmpmax$(EXEEXT)
315
$(LINK) $(t_gmpmax_LDFLAGS) $(t_gmpmax_OBJECTS) $(t_gmpmax_LDADD) $(LIBS)
316
t-modlinv$(EXEEXT): $(t_modlinv_OBJECTS) $(t_modlinv_DEPENDENCIES)
317
@rm -f t-modlinv$(EXEEXT)
318
$(LINK) $(t_modlinv_LDFLAGS) $(t_modlinv_OBJECTS) $(t_modlinv_LDADD) $(LIBS)
321
-rm -f *.$(OBJEXT) core *.core
326
ANSI2KNR = $(top_builddir)/ansi2knr
327
$(top_builddir)/ansi2knr:
328
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) ansi2knr
331
-test "$U" = "" || rm -f *_.c
334
$(COMPILE) -c `test -f $< || echo '$(srcdir)/'`$<
337
$(COMPILE) -c `cygpath -w $<`
340
$(LTCOMPILE) -c -o $@ `test -f $< || echo '$(srcdir)/'`$<
341
memory_.c: memory.c $(ANSI2KNR)
342
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/memory.c; then echo $(srcdir)/memory.c; else echo memory.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > memory_.c || rm -f memory_.c
343
misc_.c: misc.c $(ANSI2KNR)
344
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/misc.c; then echo $(srcdir)/misc.c; else echo misc.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > misc_.c || rm -f misc_.c
345
refmpf_.c: refmpf.c $(ANSI2KNR)
346
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/refmpf.c; then echo $(srcdir)/refmpf.c; else echo refmpf.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > refmpf_.c || rm -f refmpf_.c
347
refmpn_.c: refmpn.c $(ANSI2KNR)
348
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/refmpn.c; then echo $(srcdir)/refmpn.c; else echo refmpn.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > refmpn_.c || rm -f refmpn_.c
349
refmpq_.c: refmpq.c $(ANSI2KNR)
350
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/refmpq.c; then echo $(srcdir)/refmpq.c; else echo refmpq.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > refmpq_.c || rm -f refmpq_.c
351
refmpz_.c: refmpz.c $(ANSI2KNR)
352
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/refmpz.c; then echo $(srcdir)/refmpz.c; else echo refmpz.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > refmpz_.c || rm -f refmpz_.c
353
spinner_.c: spinner.c $(ANSI2KNR)
354
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/spinner.c; then echo $(srcdir)/spinner.c; else echo spinner.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > spinner_.c || rm -f spinner_.c
355
t-bswap_.c: t-bswap.c $(ANSI2KNR)
356
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/t-bswap.c; then echo $(srcdir)/t-bswap.c; else echo t-bswap.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > t-bswap_.c || rm -f t-bswap_.c
357
t-constants_.c: t-constants.c $(ANSI2KNR)
358
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/t-constants.c; then echo $(srcdir)/t-constants.c; else echo t-constants.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > t-constants_.c || rm -f t-constants_.c
359
t-count_zeros_.c: t-count_zeros.c $(ANSI2KNR)
360
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/t-count_zeros.c; then echo $(srcdir)/t-count_zeros.c; else echo t-count_zeros.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > t-count_zeros_.c || rm -f t-count_zeros_.c
361
t-gmpmax_.c: t-gmpmax.c $(ANSI2KNR)
362
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/t-gmpmax.c; then echo $(srcdir)/t-gmpmax.c; else echo t-gmpmax.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > t-gmpmax_.c || rm -f t-gmpmax_.c
363
t-modlinv_.c: t-modlinv.c $(ANSI2KNR)
364
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/t-modlinv.c; then echo $(srcdir)/t-modlinv.c; else echo t-modlinv.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > t-modlinv_.c || rm -f t-modlinv_.c
365
trace_.c: trace.c $(ANSI2KNR)
366
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/trace.c; then echo $(srcdir)/trace.c; else echo trace.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > trace_.c || rm -f trace_.c
367
x86check_.c: x86check.c $(ANSI2KNR)
368
$(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) `if test -f $(srcdir)/x86check.c; then echo $(srcdir)/x86check.c; else echo x86check.c; fi` | sed 's/^# \([0-9]\)/#line \1/' | $(ANSI2KNR) > x86check_.c || rm -f x86check_.c
369
memory_.$(OBJEXT) memory_.lo misc_.$(OBJEXT) misc_.lo refmpf_.$(OBJEXT) \
370
refmpf_.lo refmpn_.$(OBJEXT) refmpn_.lo refmpq_.$(OBJEXT) refmpq_.lo \
371
refmpz_.$(OBJEXT) refmpz_.lo spinner_.$(OBJEXT) spinner_.lo \
372
t-bswap_.$(OBJEXT) t-bswap_.lo t-constants_.$(OBJEXT) t-constants_.lo \
373
t-count_zeros_.$(OBJEXT) t-count_zeros_.lo t-gmpmax_.$(OBJEXT) \
374
t-gmpmax_.lo t-modlinv_.$(OBJEXT) t-modlinv_.lo trace_.$(OBJEXT) \
375
trace_.lo x86check_.$(OBJEXT) x86check_.lo : $(ANSI2KNR)
378
# This directory's subdirectories are mostly independent; you can cd
379
# into them and run `make' without going through this Makefile.
380
# To change the values of `make' variables: instead of editing Makefiles,
381
# (1) if the variable is set in `config.status', edit `config.status'
382
# (which will cause the Makefiles to be regenerated when you run `make');
383
# (2) otherwise, pass the desired values on the `make' command line.
384
$(RECURSIVE_TARGETS):
385
@set fnord $(MAKEFLAGS); amf=$$2; \
387
target=`echo $@ | sed s/-recursive//`; \
388
list='$(SUBDIRS)'; for subdir in $$list; do \
389
echo "Making $$target in $$subdir"; \
390
if test "$$subdir" = "."; then \
392
local_target="$$target-am"; \
394
local_target="$$target"; \
396
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
397
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
399
if test "$$dot_seen" = "no"; then \
400
$(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
403
mostlyclean-recursive clean-recursive distclean-recursive \
404
maintainer-clean-recursive:
405
@set fnord $(MAKEFLAGS); amf=$$2; \
408
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
409
*) list='$(SUBDIRS)' ;; \
411
rev=''; for subdir in $$list; do \
412
if test "$$subdir" = "."; then :; else \
413
rev="$$subdir $$rev"; \
417
target=`echo $@ | sed s/-recursive//`; \
418
for subdir in $$rev; do \
419
echo "Making $$target in $$subdir"; \
420
if test "$$subdir" = "."; then \
421
local_target="$$target-am"; \
423
local_target="$$target"; \
425
(cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
426
|| case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
427
done && test -z "$$fail"
429
list='$(SUBDIRS)'; for subdir in $$list; do \
430
test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
435
ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
436
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
437
unique=`for i in $$list; do \
438
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
440
$(AWK) ' { files[$$0] = 1; } \
441
END { for (i in files) print i; }'`; \
442
mkid -fID $$unique $(LISP)
444
TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
445
$(TAGS_FILES) $(LISP)
448
list='$(SUBDIRS)'; for subdir in $$list; do \
449
if test "$$subdir" = .; then :; else \
450
test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
453
list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
454
unique=`for i in $$list; do \
455
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
457
$(AWK) ' { files[$$0] = 1; } \
458
END { for (i in files) print i; }'`; \
459
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
460
|| etags $(ETAGS_ARGS) $$tags $$unique $(LISP)
463
here=`CDPATH=: && cd $(top_builddir) && pwd` \
464
&& cd $(top_srcdir) \
465
&& gtags -i $(GTAGS_ARGS) $$here
468
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH
470
check-TESTS: $(TESTS)
471
@failed=0; all=0; xfail=0; xpass=0; \
472
srcdir=$(srcdir); export srcdir; \
474
if test -n "$$list"; then \
475
for tst in $$list; do \
476
if test -f ./$$tst; then dir=./; \
477
elif test -f $$tst; then dir=; \
478
else dir="$(srcdir)/"; fi; \
479
if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \
480
all=`expr $$all + 1`; \
481
case " $(XFAIL_TESTS) " in \
483
xpass=`expr $$xpass + 1`; \
484
failed=`expr $$failed + 1`; \
485
echo "XPASS: $$tst"; \
488
echo "PASS: $$tst"; \
491
elif test $$? -ne 77; then \
492
all=`expr $$all + 1`; \
493
case " $(XFAIL_TESTS) " in \
495
xfail=`expr $$xfail + 1`; \
496
echo "XFAIL: $$tst"; \
499
failed=`expr $$failed + 1`; \
500
echo "FAIL: $$tst"; \
505
if test "$$failed" -eq 0; then \
506
if test "$$xfail" -eq 0; then \
507
banner="All $$all tests passed"; \
509
banner="All $$all tests behaved as expected ($$xfail expected failures)"; \
512
if test "$$xpass" -eq 0; then \
513
banner="$$failed of $$all tests failed"; \
515
banner="$$failed of $$all tests did not behave as expected ($$xpass unexpected passes)"; \
518
dashes=`echo "$$banner" | sed s/./=/g`; \
522
test "$$failed" -eq 0; \
527
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
530
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
532
distdir: $(DISTFILES)
533
@for file in $(DISTFILES); do \
534
if test -f $$file; then d=.; else d=$(srcdir); fi; \
535
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
536
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
537
$(mkinstalldirs) "$(distdir)/$$dir"; \
539
if test -d $$d/$$file; then \
540
cp -pR $$d/$$file $(distdir) \
543
test -f $(distdir)/$$file \
544
|| cp -p $$d/$$file $(distdir)/$$file \
548
for subdir in $(SUBDIRS); do \
549
if test "$$subdir" = .; then :; else \
550
test -d $(distdir)/$$subdir \
551
|| mkdir $(distdir)/$$subdir \
554
$(MAKE) $(AM_MAKEFLAGS) \
555
top_distdir="$(top_distdir)" \
556
distdir=../$(distdir)/$$subdir \
562
$(MAKE) $(AM_MAKEFLAGS) $(check_LTLIBRARIES) $(check_PROGRAMS)
563
$(MAKE) $(AM_MAKEFLAGS) check-TESTS
564
check: check-recursive
566
installdirs: installdirs-recursive
569
install: install-recursive
570
install-exec: install-exec-recursive
571
install-data: install-data-recursive
572
uninstall: uninstall-recursive
575
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
577
installcheck: installcheck-recursive
579
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
580
`test -z '$(STRIP)' || \
581
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
587
-rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
589
maintainer-clean-generic:
590
@echo "This command is intended for maintainers to use"
591
@echo "it deletes files that may require special tools to rebuild."
592
clean: clean-recursive
594
clean-am: clean-checkLTLIBRARIES clean-checkPROGRAMS clean-generic \
595
clean-libtool mostlyclean-am
597
distclean: distclean-recursive
599
distclean-am: clean-am distclean-compile distclean-generic \
600
distclean-libtool distclean-tags
614
install-info: install-info-recursive
620
maintainer-clean: maintainer-clean-recursive
622
maintainer-clean-am: distclean-am maintainer-clean-generic
624
mostlyclean: mostlyclean-recursive
626
mostlyclean-am: mostlyclean-compile mostlyclean-generic mostlyclean-kr \
629
uninstall-am: uninstall-info-am
631
uninstall-info: uninstall-info-recursive
633
.PHONY: $(RECURSIVE_TARGETS) GTAGS all all-am check check-TESTS check-am \
634
clean clean-checkLTLIBRARIES clean-checkPROGRAMS clean-generic \
635
clean-libtool clean-recursive distclean distclean-compile \
636
distclean-generic distclean-libtool distclean-recursive \
637
distclean-tags distdir dvi dvi-am dvi-recursive info info-am \
638
info-recursive install install-am install-data install-data-am \
639
install-data-recursive install-exec install-exec-am \
640
install-exec-recursive install-info install-info-am \
641
install-info-recursive install-man install-recursive \
642
install-strip installcheck installcheck-am installdirs \
643
installdirs-am installdirs-recursive maintainer-clean \
644
maintainer-clean-generic maintainer-clean-recursive mostlyclean \
645
mostlyclean-compile mostlyclean-generic mostlyclean-kr \
646
mostlyclean-libtool mostlyclean-recursive tags tags-recursive \
647
uninstall uninstall-am uninstall-info-am \
648
uninstall-info-recursive uninstall-recursive
651
# .s assembler, no preprocessing.
654
$(CCAS) $(COMPILE_FLAGS) `test -f $< || echo '$(srcdir)/'`$<
656
$(CCAS) $(COMPILE_FLAGS) `cygpath -w $<`
658
$(LIBTOOL) --mode=compile $(CCAS) $(COMPILE_FLAGS) `test -f $< || echo '$(srcdir)/'`$<
660
# .S assembler, preprocessed with cpp.
662
# It's necessary to run $(CPP) separately, since it seems not all compilers
663
# recognise .S files, in particular "cc" on HP-UX 10 and 11 doesn't (and
664
# will silently do nothing if given a .S).
666
# For .lo we need a helper script, as described below for .asm.lo.
669
$(CPP) $(PREPROCESS_FLAGS) `test -f $< || echo '$(srcdir)/'`$< | grep -v '^#' >tmp-$*.s
670
$(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
673
$(CPP) $(PREPROCESS_FLAGS) `cygpath -w $<` | grep -v '^#' >tmp-$*.s
674
$(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
677
$(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/cpp-ccas --cpp="$(CPP) $(PREPROCESS_FLAGS)" $(CCAS) $(COMPILE_FLAGS) `test -f $< || echo '$(srcdir)/'`$<
679
# .asm assembler, preprocessed with m4.
681
# .o and .obj are non-PIC and just need m4 followed by a compile.
683
# .lo is a bit tricky. Libtool (as of version 1.5) has foo.lo as a little
684
# text file, and .libs/foo.o and foo.o as the PIC and non-PIC objects,
685
# respectively. It'd be asking for lots of trouble to try to create foo.lo
686
# ourselves, so instead arrange to invoke libtool like a --mode=compile, but
687
# with a special m4-ccas script which first m4 preprocesses, then compiles.
688
# --tag=CC is necessary since foo.asm is otherwise unknown to libtool.
690
# Libtool adds -DPIC when building a shared object and the .asm files look
691
# for that. But it should be noted that the other PIC flags are on occasion
692
# important too, in particular FreeBSD 2.2.8 gas 1.92.3 requires -k before
693
# it accepts PIC constructs like @GOT, and gcc adds that flag only under
694
# -fPIC. (Later versions of gas are happy to accept PIC stuff any time.)
697
$(M4) -DOPERATION_$* `test -f $< || echo '$(srcdir)/'`$< >tmp-$*.s
698
$(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
701
$(M4) -DOPERATION_$* `cygpath -w $<` >tmp-$*.s
702
$(CCAS) $(COMPILE_FLAGS) tmp-$*.s -o $@
705
$(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/m4-ccas --m4="$(M4)" $(CCAS) $(COMPILE_FLAGS) `test -f $< || echo '$(srcdir)/'`$<
706
# Tell versions [3.59,3.63) of GNU make to not export all variables.
707
# Otherwise a system limit (for SysV at least) may be exceeded.