4 # Author: Pekka Riikonen <priikone@silcnet.org>
6 # Copyright (C) 2000 - 2007 Pekka Riikonen
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.
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.
18 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
20 noinst_LTLIBRARIES = libsilccrypt.la
24 SILC_AES_S = aes_x86.asm aes.c
27 SILC_AES_S = aes_x86_64.asm aes.c
33 libsilccrypt_la_SOURCES = \
52 # Tell libtool to compile silccrypt as shared since silcsim will need it.
53 LTFLAGS = --libtool-enable-shared
58 CFLAGS = $(LTFLAGS) @SILC_CRYPTO_CFLAGS@
60 #ifdef SILC_DIST_TOOLKIT
72 SILC_EXTRA_DIST = tests
73 #endif SILC_DIST_TOOLKIT
78 $(LIBTOOL) --tag=CC --mode=compile @SILC_ASSEMBLER@ $<
80 EXTRA_DIST = *.h *.asm $(SILC_EXTRA_DIST)
82 include $(top_srcdir)/Makefile.defines.in
84 # Workaround a bug in GCC 2.x which causes memory exhaustion
85 # when compiling sha1 with optimizations on UltraSPARC.
88 @FIX_SHA1@ $(LTCOMPILE) -O0 -c -o $@ `test -f 'sha1.c' || echo '$(srcdir)/'`sha1.c