Added SILC Thread Queue API
[silc.git] / lib / silccrypt / Makefile.ad
1 #
2 #  Makefile.ad
3 #
4 #  Author: Pekka Riikonen <priikone@silcnet.org>
5 #
6 #  Copyright (C) 2000 - 2007 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 if SILC_AES_ASM
23 if SILC_I486
24 SILC_AES_S = aes_x86.asm aes.c
25 endif
26 if SILC_X86_64
27 SILC_AES_S = aes_x86_64.asm aes.c
28 endif
29 else
30 SILC_AES_S = aes.c
31 endif
32
33 libsilccrypt_la_SOURCES =       \
34         none.c                  \
35         md5.c                   \
36         $(SILC_AES_S)           \
37         rsa.c                   \
38         dsa.c                   \
39         sha1.c                  \
40         sha256.c                \
41         sha256_x86.S            \
42         sha512.c                \
43         twofish.c               \
44         blowfish.c              \
45         cast5.c                 \
46         des.c                   \
47         silccrypto.c            \
48         silccipher.c            \
49         silchash.c              \
50         silchmac.c              \
51         silcrng.c               \
52         silcpkcs.c              \
53         silcpkcs1.c             \
54         silcpk.c
55
56 if SILC_LIBTOOLFIX
57 # Tell libtool to compile silccrypt as shared since silcsim will need it.
58 LTFLAGS = --libtool-enable-shared
59 else
60 LTFLAGS =
61 endif
62
63 CFLAGS = $(LTFLAGS) @SILC_CRYPTO_CFLAGS@
64
65 #ifdef SILC_DIST_TOOLKIT
66 include_HEADERS =               \
67         silccrypto.h            \
68         silccipher.h            \
69         silccipher_i.h          \
70         silchash.h              \
71         silchmac.h              \
72         silcpkcs.h              \
73         silcpkcs_i.h            \
74         silcrng.h               \
75         silcpkcs1.h             \
76         silcpk.h
77
78 SILC_EXTRA_DIST = tests
79 #endif SILC_DIST_TOOLKIT
80
81 SUFFIXES = .asm
82
83 .asm.lo:
84         $(LIBTOOL) --tag=CC --mode=compile @SILC_ASSEMBLER@ $<
85
86 EXTRA_DIST = *.h *.asm $(SILC_EXTRA_DIST)
87
88 include $(top_srcdir)/Makefile.defines.in
89
90 # Workaround a bug in GCC 2.x which causes memory exhaustion
91 # when compiling sha1 with optimizations on UltraSPARC.
92 #
93 @FIX_SHA1@sha1.lo:
94 @FIX_SHA1@      $(LTCOMPILE) -O0 -c -o $@ `test -f 'sha1.c' || echo '$(srcdir)/'`sha1.c
95 @FIX_SHA1@