xref: /netbsd-src/external/lgpl3/gmp/dist/mpn/Makefile.am (revision 212397c69a103ae7e5eafa8731ddfae671d2dee7)
1## Process this file with automake to generate Makefile.in
2
3# Copyright 1996, 1998, 1999, 2000, 2001, 2002, 2005, 2011 Free Software
4# Foundation, 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
22INCLUDES = -D__GMP_WITHIN_GMP -I$(top_srcdir) \
23  -DOPERATION_`echo $* | sed 's/_$$//'`
24
25OFILES = @mpn_objects@
26
27noinst_LTLIBRARIES = libmpn.la
28nodist_libmpn_la_SOURCES = fib_table.c mp_bases.c
29libmpn_la_LIBADD = $(OFILES)
30libmpn_la_DEPENDENCIES = $(OFILES)
31
32TARG_DIST = a29k alpha arm clipper cray generic i960 ia64 lisp m68k m88k \
33  minithres mips32 mips64 ns32k pa32 pa64 power powerpc32 powerpc64 pyr \
34  s390_32 s390_64 sh sparc32 sparc64 thumb vax x86 x86_64 z8000
35
36EXTRA_DIST = asm-defs.m4 cpp-ccas m4-ccas $(TARG_DIST)
37
38
39# These are BUILT_SOURCES at the top-level, so normally they're built before
40# recursing into this directory.
41#
42fib_table.c:
43	cd ..; $(MAKE) $(AM_MAKEFLAGS) mpn/fib_table.c
44mp_bases.c:
45	cd ..; $(MAKE) $(AM_MAKEFLAGS) mpn/mp_bases.c
46perfsqr.h:
47	cd ..; $(MAKE) $(AM_MAKEFLAGS) mpn/perfsqr.h
48
49include Makeasm.am
50