Enabled AES assembler support on x86-64 in shared libraries.
[crypto.git] / lib / silccrypt / Makefile.ad
index 190316627fa63646a9576df3de0a28c0819eb316..a6204ef7f38725a63ea5fce4ebf185f4b3d15e45 100644 (file)
@@ -3,7 +3,7 @@
 #
 #  Author: Pekka Riikonen <priikone@silcnet.org>
 #
-#  Copyright (C) 2000 - 2007 Pekka Riikonen
+#  Copyright (C) 2000 - 2008 Pekka Riikonen
 #
 #  This program is free software; you can redistribute it and/or modify
 #  it under the terms of the GNU General Public License as published by
@@ -35,10 +35,16 @@ libsilccrypt_la_SOURCES =   \
        md5.c                   \
        $(SILC_AES_S)           \
        rsa.c                   \
+       dsa.c                   \
        sha1.c                  \
        sha256.c                \
+       sha256_x86.S            \
+       sha512.c                \
        twofish.c               \
        blowfish.c              \
+       cast5.c                 \
+       des.c                   \
+       silccrypto.c            \
        silccipher.c            \
        silchash.c              \
        silchmac.c              \
@@ -47,32 +53,26 @@ libsilccrypt_la_SOURCES =   \
        silcpkcs1.c             \
        silcpk.c
 
-if SILC_LIBTOOLFIX
-# Tell libtool to compile silccrypt as shared since silcsim will need it.
-LTFLAGS = --libtool-enable-shared
-else
-LTFLAGS =
-endif
-
-CFLAGS = $(LTFLAGS) @SILC_CRYPTO_CFLAGS@
+CFLAGS = @SILC_CRYPTO_CFLAGS@
 
-#ifdef SILC_DIST_TOOLKIT
 include_HEADERS =              \
+       silccrypto.h            \
        silccipher.h            \
+       silccipher_i.h          \
        silchash.h              \
        silchmac.h              \
        silcpkcs.h              \
+       silcpkcs_i.h            \
        silcrng.h               \
        silcpkcs1.h             \
        silcpk.h
 
 SILC_EXTRA_DIST = tests
-#endif SILC_DIST_TOOLKIT
 
 SUFFIXES = .asm
 
 .asm.lo:
-       $(LIBTOOL) --tag=CC --mode=compile @SILC_ASSEMBLER@ $<
+       $(LIBTOOL) --tag=CC --mode=compile @SILC_ASSEMBLER@ $< @SILC_AES_ASM_FLAGS@
 
 EXTRA_DIST = *.h *.asm $(SILC_EXTRA_DIST)