Added shared library compilation support.
[silc.git] / lib / silccrypt / Makefile.am
index e55cb151c4197e0f1ec814bc0df0885058e9b4ca..5bd1be0a21d6d274d3c33a0b0841a2e103a30117 100644 (file)
@@ -18,9 +18,9 @@
 
 AUTOMAKE_OPTIONS = 1.0 no-dependencies foreign
 
-noinst_LIBRARIES = libsilccrypt.a
+noinst_LTLIBRARIES = libsilccrypt.la
 
-libsilccrypt_a_SOURCES = \
+libsilccrypt_la_SOURCES = \
        none.c \
        rc5.c \
        rc6.c \
@@ -39,6 +39,7 @@ libsilccrypt_a_SOURCES = \
        silcpkcs.c \
        pkcs1.c
 
+if SILC_DIST_TOOLKIT
 include_HEADERS =      \
        aes.h           \
        blowfish.h      \
@@ -60,6 +61,7 @@ include_HEADERS =     \
        silcpkcs.h      \
        silcrng.h       \
        twofish.h
+endif
 
 EXTRA_DIST = *.h