xref: /netbsd-src/external/lgpl3/gmp/dist/mpn/Makefile.am (revision 0a3071956a3a9fdebdbf7f338cf2d439b45fc728)
1## Process this file with automake to generate Makefile.in
2
3# Copyright 1996, 1998-2002, 2005, 2011, 2013 Free Software Foundation, Inc.
4#
5#  This file is part of the GNU MP Library.
6#
7#  The GNU MP Library is free software; you can redistribute it and/or modify
8#  it under the terms of either:
9#
10#    * the GNU Lesser General Public License as published by the Free
11#      Software Foundation; either version 3 of the License, or (at your
12#      option) any later version.
13#
14#  or
15#
16#    * the GNU General Public License as published by the Free Software
17#      Foundation; either version 2 of the License, or (at your option) any
18#      later version.
19#
20#  or both in parallel, as here.
21#
22#  The GNU MP Library is distributed in the hope that it will be useful, but
23#  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
24#  or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
25#  for more details.
26#
27#  You should have received copies of the GNU General Public License and the
28#  GNU Lesser General Public License along with the GNU MP Library.  If not,
29#  see https://www.gnu.org/licenses/.
30
31
32AM_CPPFLAGS = -D__GMP_WITHIN_GMP -I$(top_srcdir) \
33  -DOPERATION_`echo $* | sed 's/_$$//'`
34
35OFILES = @mpn_objects@
36
37noinst_LTLIBRARIES = libmpn.la
38nodist_libmpn_la_SOURCES = fib_table.c mp_bases.c
39libmpn_la_LIBADD = $(OFILES)
40libmpn_la_DEPENDENCIES = $(OFILES)
41
42TARG_DIST = alpha arm arm64 cray generic ia64 lisp m68k m88k \
43  minithres mips32 mips64 pa32 pa64 power powerpc32 powerpc64 \
44  riscv s390_32 s390_64 sh sparc32 sparc64 thumb vax x86 x86_64
45
46EXTRA_DIST = asm-defs.m4 cpp-ccas m4-ccas $(TARG_DIST)
47
48
49# These are BUILT_SOURCES at the top-level, so normally they're built before
50# recursing into this directory.
51#
52fib_table.c:
53	cd ..; $(MAKE) $(AM_MAKEFLAGS) mpn/fib_table.c
54mp_bases.c:
55	cd ..; $(MAKE) $(AM_MAKEFLAGS) mpn/mp_bases.c
56perfsqr.h:
57	cd ..; $(MAKE) $(AM_MAKEFLAGS) mpn/perfsqr.h
58
59include Makeasm.am
60