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