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