Merged from silc_1_0_branch.
[silc.git] / lib / silcmath / Makefile.am
1 #
2 #  Makefile.am
3 #
4 #  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
5 #
6 #  Copyright (C) 2000 Pekka Riikonen
7 #
8 #  This program is free software; you can redistribute it and/or modify
9 #  it under the terms of the GNU General Public License as published by
10 #  the Free Software Foundation; either version 2 of the License, or
11 #  (at your option) any later version.
12 #
13 #  This program is distributed in the hope that it will be useful,
14 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #  GNU General Public License for more details.
17 #
18
19 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
20
21 if SILC_MP_NSS_MPI
22 SUBDIRS = mpi
23 else
24 SUBDIRS =
25 endif
26
27 noinst_LTLIBRARIES = libsilcmath.la
28
29 if SILC_MP_NSS_MPI
30 MP_SOURCE = mp_mpi.c
31 if SILC_DIST_TOOLKIT
32 MP_HEADER = mpi/mpi.h mpi/mplogic.h mpi/mpi-config.h
33 else
34 MP_HEADER =
35 endif
36 else
37 MP_SOURCE = mp_gmp.c
38 MP_HEADER =
39 endif
40
41 libsilcmath_la_SOURCES = \
42         silcprimegen.c \
43         modinv.c \
44         mpbin.c \
45         $(MP_SOURCE)
46
47 if SILC_DIST_TOOLKIT
48 include_HEADERS =       \
49         mp_gmp.h        \
50         mp_mpi.h        \
51         silcmath.h      \
52         silcmp.h        \
53         $(MP_HEADER)
54 endif
55
56 EXTRA_DIST = mp_gmp.c mp_mpi.c *.h
57
58 include $(top_srcdir)/Makefile.defines.in