76892d57afb460f7d56c9af97549f7af29bd72e5
[crypto.git] / lib / silcmath / Makefile.ad
1 #
2 #  Makefile.ad
3 #
4 #  Author: Pekka Riikonen <priikone@silcnet.org>
5 #
6 #  Copyright (C) 2000 - 2008 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_HEADER =                     \
24 #ifdef SILC_DIST_TMA
25         mp_tma.h                \
26         tma.h                   \
27         tma_class.h             \
28         tma_superclass.h        \
29 #endif SILC_DIST_TMA
30 #ifdef SILC_DIST_TFM
31         mp_tfm.h                \
32         tfm.h
33 #endif SILC_DIST_TFM
34
35 MP_SOURCE =                     \
36         silcmp.h                \
37         silcmath.h              \
38         $(MP_HEADER)            \
39 #ifdef SILC_DIST_TMA
40         tma.c                   \
41         mp_tma.c                \
42 #endif SILC_DIST_TMA
43 #ifdef SILC_DIST_TFM
44         tfm.c                   \
45         mp_tfm.c
46 #endif SILC_DIST_TFM
47
48 AM_CFLAGS = @MATH_CFLAGS@
49 else
50 MP_SOURCE = mp_gmp.c
51 MP_HEADER =
52 endif
53
54 libsilcmath_la_SOURCES =        \
55         $(MP_SOURCE)            \
56         silcprimegen.c          \
57 #ifndef SILC_DIST_TFM
58         modinv.c                \
59 #endif SILC_DIST_TFM
60         mpbin.c
61
62 include_HEADERS =       \
63         mp_gmp.h        \
64         $(MP_HEADER)    \
65         silcmath.h      \
66         silcmp.h
67
68 EXTRA_DIST = $(MP_SOURCE) mp_gmp.c mp_gmp.h
69
70 include $(top_srcdir)/Makefile.defines.in