Added shared library compilation support.
[silc.git] / lib / silccrypt / Makefile.am
index 3b71bc0e215c7557a7683b2fe9cc698f925dc0e0..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 \
@@ -31,6 +31,7 @@ libsilccrypt_a_SOURCES = \
        sha1.c \
        twofish.c \
        blowfish.c \
+       cast.c \
        silccipher.c \
        silchash.c \
        silchmac.c \
@@ -38,8 +39,30 @@ libsilccrypt_a_SOURCES = \
        silcpkcs.c \
        pkcs1.c
 
+if SILC_DIST_TOOLKIT
+include_HEADERS =      \
+       aes.h           \
+       blowfish.h      \
+       cast.h          \
+       ciphers_def.h   \
+       ciphers.h       \
+       mars.h          \
+       md5.h           \
+       none.h          \
+       pkcs1.h         \
+       rc5.h           \
+       rc6.h           \
+       rsa.h           \
+       sha1.h          \
+       silccipher.h    \
+       silcdh.h        \
+       silchash.h      \
+       silchmac.h      \
+       silcpkcs.h      \
+       silcrng.h       \
+       twofish.h
+endif
+
 EXTRA_DIST = *.h
 
-INCLUDES = -I. -I.. -I../silccore -I../silcmath -I../silcske \
-       -I../silcsim -I../.. -I../silcutil -I../../includes \
-       -I../silcmath/gmp -I../trq
+include $(top_srcdir)/Makefile.defines.in