Mon Mar 5 23:27:32 CET 2007 Jochen Eisinger <coffee@silcnet.org>
[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         sha256.h                \
62         silccipher.h    \
63         silcdh.h        \
64         silchash.h      \
65         silchmac.h      \
66         silcpkcs.h      \
67         silcrng.h       \
68         silcpkcs1.h     \
69         twofish.h
70
71 SILC_EXTRA_DIST = tests
72 #endif SILC_DIST_TOOLKIT
73
74 EXTRA_DIST = *.h $(SILC_EXTRA_DIST)
75
76 include $(top_srcdir)/Makefile.defines.in
77
78 # Workaround a bug in GCC 2.x which causes memory exhaustion
79 # when compiling sha1 with optimizations on UltraSPARC.
80 #
81 @FIX_SHA1@sha1.lo:
82 @FIX_SHA1@      $(LTCOMPILE) -O0 -c -o $@ `test -f 'sha1.c' || echo '$(srcdir)/'`sha1.c
83 @FIX_SHA1@