PKCS type added for adding other PKCS supports.
[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
40 if SILC_LIBTOOLFIX
41 # Tell libtool to compile silccrypt as shared since silcsim will need it.
42 LTFLAGS = --libtool-enable-shared
43 else
44 LTFLAGS =
45 endif
46
47 CFLAGS = $(LTFLAGS)
48
49 #ifdef SILC_DIST_TOOLKIT
50 include_HEADERS =       \
51         aes.h           \
52         blowfish.h      \
53         cast.h          \
54         ciphers_def.h   \
55         ciphers.h       \
56         md5.h           \
57         none.h          \
58         rc5.h           \
59         rsa.h           \
60         sha1.h          \
61         sha1_internal.h \
62         sha256.h        \
63         sha256_internal.h \
64         silccipher.h    \
65         silcdh.h        \
66         silchash.h      \
67         silchmac.h      \
68         silcpkcs.h      \
69         silcrng.h       \
70         silcpkcs1.h     \
71         twofish.h
72
73 SILC_EXTRA_DIST = tests
74 #endif SILC_DIST_TOOLKIT
75
76 EXTRA_DIST = *.h $(SILC_EXTRA_DIST)
77
78 include $(top_srcdir)/Makefile.defines.in
79
80 # Workaround a bug in GCC 2.x which causes memory exhaustion
81 # when compiling sha1 with optimizations on UltraSPARC.
82 #
83 @FIX_SHA1@sha1.lo:
84 @FIX_SHA1@      $(LTCOMPILE) -O0 -c -o $@ `test -f 'sha1.c' || echo '$(srcdir)/'`sha1.c
85 @FIX_SHA1@