test4.
[silc.git] / lib / silcmath / Makefile.ad
1 #
2 #  Makefile.ad
3 #
4 #  Author: Pekka Riikonen <priikone@silcnet.org>
5 #
6 #  Copyright (C) 2000 - 2005 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; version 2 of the License.
11 #
12 #  This program is distributed in the hope that it will be useful,
13 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 #  GNU General Public License for more details.
16 #
17
18 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
19
20 if SILC_MP_NSS_MPI
21 SUBDIRS = mpi
22 else
23 SUBDIRS =
24 endif
25
26 DIST_SUBDIRS = mpi
27
28 noinst_LTLIBRARIES = libsilcmath.la
29
30 if SILC_MP_NSS_MPI
31 MP_SOURCE = mp_mpi.c
32 else
33 MP_SOURCE = mp_gmp.c
34 endif
35
36 libsilcmath_la_SOURCES = \
37         silcprimegen.c \
38         modinv.c \
39         mpbin.c \
40         $(MP_SOURCE)
41
42 #ifdef SILC_DIST_TOOLKIT
43 MP_HEADER = mpi/mpi.h mpi/mplogic.h mpi/mpi-config.h
44 include_HEADERS =       \
45         mp_gmp.h        \
46         mp_mpi.h        \
47         silcmath.h      \
48         silcmp.h        \
49         $(MP_HEADER)
50 #endif SILC_DIST_TOOLKIT
51
52 EXTRA_DIST = mp_gmp.c mp_mpi.c *.h
53
54 include $(top_srcdir)/Makefile.defines.in