Tue Jan 04 12:16:04 CET 2004 Jochen Eisinger <jochen@penguin-breeder.org>
[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 DIST_SUBDIRS = mpi
28
29 noinst_LTLIBRARIES = libsilcmath.la
30
31 if SILC_MP_NSS_MPI
32 MP_SOURCE = mp_mpi.c
33 if SILC_DIST_TOOLKIT
34 MP_HEADER = mpi/mpi.h mpi/mplogic.h mpi/mpi-config.h
35 else
36 MP_HEADER =
37 endif
38 else
39 MP_SOURCE = mp_gmp.c
40 MP_HEADER =
41 endif
42
43 libsilcmath_la_SOURCES = \
44         silcprimegen.c \
45         modinv.c \
46         mpbin.c \
47         $(MP_SOURCE)
48
49 if SILC_DIST_TOOLKIT
50 include_HEADERS =       \
51         mp_gmp.h        \
52         mp_mpi.h        \
53         silcmath.h      \
54         silcmp.h        \
55         $(MP_HEADER)
56 endif
57
58 EXTRA_DIST = mp_gmp.c mp_mpi.c *.h
59
60 include $(top_srcdir)/Makefile.defines.in