Bring in a simple event tracing library and POC utility
[dragonfly.git] / contrib / gmp / mpn / Makefile.am
1 ## Process this file with automake to generate Makefile.in
2
3 # Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2005 Free Software Foundation,
4 # Inc.
5 #
6 # This file is part of the GNU MP Library.
7 #
8 # The GNU MP Library is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU Lesser General Public License as published by
10 # the Free Software Foundation; either version 3 of the License, or (at your
11 # option) any later version.
12 #
13 # The GNU MP Library is distributed in the hope that it will be useful, but
14 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 # or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
16 # License for more details.
17 #
18 # You should have received a copy of the GNU Lesser General Public License
19 # along with the GNU MP Library.  If not, see http://www.gnu.org/licenses/.
20
21
22 INCLUDES = -D__GMP_WITHIN_GMP -I$(top_srcdir) \
23   -DOPERATION_`echo $* | sed 's/_$$//'`
24
25 OFILES = @mpn_objects@
26
27
28 # All possible mpn normal and optional function files are listed here, to
29 # get automake to generate ansi2knr rules for each.  Such rules will be
30 # ignored for any that are instead implemented with a .asm (or whatever) for
31 # a particular target.
32 #
33 nodist_EXTRA_libmpn_la_SOURCES =                                            \
34   add.c add_1.c add_n.c                                                     \
35   addmul_1.c addmul_2.c addmul_3.c addmul_4.c addmul_5.c addmul_6.c         \
36   addmul_7.c addmul_8.c                                                     \
37   and_n.c andn_n.c bdivmod.c                                                \
38   cmp.c com_n.c copyd.c copyi.c                                             \
39   dc_divrem_n.c dive_1.c diveby3.c divis.c divrem.c divrem_1.c divrem_2.c   \
40   dump.c fib2_ui.c gcd.c                                                    \
41   gcd_1.c gcdext.c get_d.c get_str.c                                        \
42   hamdist.c hgcd2.c hgcd.c invert_limb.c                                    \
43   ior_n.c iorn_n.c jacbase.c lshift.c \
44   matrix22_mul.c mod_1.c mod_34lsub1.c mode1o.c     \
45   mod_1_1.c mod_1_2.c mod_1_3.c mod_1_4.c                                   \
46   mul.c mul_1.c mul_2.c mul_3.c mul_4.c mul_fft.c mul_n.c mul_basecase.c    \
47   mul_toom22.c mul_toom32.c mul_toom42.c                                    \
48   mullow_n.c mullow_basecase.c nand_n.c neg_n.c nior_n.c perfsqr.c          \
49   popcount.c pre_divrem_1.c pre_mod_1.c pow_1.c random.c random2.c rshift.c \
50   rootrem.c sb_divrem_mn.c scan0.c scan1.c set_str.c                        \
51   sqr_basecase.c sqr_diagonal.c                                             \
52   sqrtrem.c sub.c sub_1.c sub_n.c submul_1.c                                \
53   tdiv_qr.c udiv_qrnnd.c udiv_w_sdiv.c xor_n.c xnor_n.c
54
55 noinst_LTLIBRARIES = libmpn.la
56 nodist_libmpn_la_SOURCES = fib_table.c mp_bases.c
57 libmpn_la_LIBADD = $(OFILES)
58 libmpn_la_DEPENDENCIES = $(OFILES)
59
60 TARG_DIST = a29k alpha arm clipper cray generic i960 ia64 lisp m68k m88k \
61   minithres mips32 mips64 ns32k pa32 pa64 power powerpc32 powerpc64 pyr s390 \
62   sh sparc32 sparc64 thumb vax x86 x86_64 z8000 z8000x
63
64 EXTRA_DIST = asm-defs.m4 cpp-ccas m4-ccas $(TARG_DIST)
65
66
67 # These are BUILT_SOURCES at the top-level, so normally they're built before
68 # recursing into this directory.
69 #
70 fib_table.c:
71         cd ..; $(MAKE) $(AM_MAKEFLAGS) mpn/fib_table.c
72 mp_bases.c:
73         cd ..; $(MAKE) $(AM_MAKEFLAGS) mpn/mp_bases.c
74 perfsqr.h:
75         cd ..; $(MAKE) $(AM_MAKEFLAGS) mpn/perfsqr.h
76
77 tune-gcd-p: gcd.c
78         $(COMPILE) -g -O1 -I $(top_srcdir)/tune -DTUNE_GCD_P=1 gcd.c -o tune-gcd-p -L ../.libs -L../tune/.libs -lspeed -lgmp -lm
79
80 include Makeasm.am