New SILC PKCS API, enabling support for other public keys/certs.
[silc.git] / lib / silccrypt / 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 = libsilccrypt.la
21
22 libsilccrypt_la_SOURCES = \
23         none.c          \
24         rc5.c           \
25         md5.c           \
26         aes.c           \
27         rsa.c           \
28         sha1.c          \
29         sha256.c        \
30         twofish.c       \
31         blowfish.c      \
32         cast.c          \
33         silccipher.c    \
34         silchash.c      \
35         silchmac.c      \
36         silcrng.c       \
37         silcpkcs.c      \
38         silcpkcs1.c     \
39         silcpk.c
40
41 if SILC_LIBTOOLFIX
42 # Tell libtool to compile silccrypt as shared since silcsim will need it.
43 LTFLAGS = --libtool-enable-shared
44 else
45 LTFLAGS =
46 endif
47
48 CFLAGS = $(LTFLAGS)
49
50 #ifdef SILC_DIST_TOOLKIT
51 include_HEADERS =       \
52         aes.h           \
53         blowfish.h      \
54         cast.h          \
55         ciphers_def.h   \
56         ciphers.h       \
57         md5.h           \
58         none.h          \
59         rc5.h           \
60         rsa.h           \
61         sha1.h          \
62         sha1_internal.h \
63         sha256.h        \
64         sha256_internal.h \
65         silccipher.h    \
66         silcdh.h        \
67         silchash.h      \
68         silchmac.h      \
69         silcpkcs.h      \
70         silcrng.h       \
71         silcpkcs1.h     \
72         twofish.h       \
73         silcpk.h
74
75 SILC_EXTRA_DIST = tests
76 #endif SILC_DIST_TOOLKIT
77
78 EXTRA_DIST = *.h $(SILC_EXTRA_DIST)
79
80 include $(top_srcdir)/Makefile.defines.in
81
82 # Workaround a bug in GCC 2.x which causes memory exhaustion
83 # when compiling sha1 with optimizations on UltraSPARC.
84 #
85 @FIX_SHA1@sha1.lo:
86 @FIX_SHA1@      $(LTCOMPILE) -O0 -c -o $@ `test -f 'sha1.c' || echo '$(srcdir)/'`sha1.c
87 @FIX_SHA1@