Added SILC Thread Queue API
[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 noinst_LTLIBRARIES = libsilcmath.la
21
22 if SILC_MP_SILCMATH
23 MP_SOURCE = \
24 #ifdef SILC_DIST_TMA
25         mp_tma.c \
26         tma.c
27 #endif SILC_DIST_TMA
28 #ifdef SILC_DIST_TFM
29         mp_tfm.c \
30         tfm.c
31 #endif SILC_DIST_TFM
32
33 MP_HEADER = \
34 #ifdef SILC_DIST_TMA
35         mp_tma.h \
36         tma.h \
37         tma_class.h \
38         tma_superclass.h
39 #endif SILC_DIST_TMA
40 #ifdef SILC_DIST_TFM
41         mp_tfm.h \
42         tfm.h
43 #endif SILC_DIST_TFM
44
45 AM_CFLAGS = @MATH_CFLAGS@
46 else
47 MP_SOURCE = mp_gmp.c
48 MP_HEADER =
49 endif
50
51 libsilcmath_la_SOURCES = \
52         silcprimegen.c \
53         modinv.c \
54         mpbin.c \
55         $(MP_SOURCE)
56
57 #ifdef SILC_DIST_TOOLKIT
58 include_HEADERS =       \
59         mp_gmp.h        \
60         $(MP_HEADER)    \
61         silcmath.h      \
62         silcmp.h
63 #endif SILC_DIST_TOOLKIT
64
65 EXTRA_DIST = silcmp.h silcmath.h $(MP_SOURCE) $(MP_HEADER) mp_gmp.c mp_gmp.h
66
67 include $(top_srcdir)/Makefile.defines.in