* Makefile.am, md.c (load_digest_module): Only build in SHA384/512 and
[gnupg.git] / cipher / Makefile.am
index b994cbe..0c87c51 100644 (file)
@@ -1,25 +1,63 @@
-## Process this file with automake to produce Makefile.in
+# Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+#
+# This file is part of GnuPG.
+#
+# GnuPG is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+# 
+# GnuPG is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 
-INCLUDES = -I$(top_srcdir)/include
+## Process this file with automake to produce Makefile.in
 
-noinst_LIBRARIES = cipher
+INCLUDES = -I.. -I$(top_srcdir)/include -I$(top_srcdir)/intl
 
+noinst_LIBRARIES = libcipher.a
 
-# please add "rsa.c" and "rsa.h" manually in Makefile.am
-cipher_SOURCES = blowfish.c    \
-                blowfish.h     \
+libcipher_a_SOURCES = cipher.c \
+                pubkey.c       \
+                md.c           \
+                dynload.c      \
+                bithelp.h      \
+                des.c          \
+                twofish.c      \
+                blowfish.c     \
+                cast5.c        \
+                rijndael.c     \
                 elgamal.c      \
                 elgamal.h      \
-                gost.c         \
-                gost.h         \
-                md5.c          \
-                md5.h          \
+                rsa.c rsa.h    \
                 primegen.c     \
+                random.h       \
                 random.c       \
+                rand-internal.h \
                 rmd.h          \
-                rmd160.c       \
-                smallprime.c
+                dsa.h          \
+                dsa.c          \
+                g10c.c         \
+                smallprime.c   \
+                algorithms.h   \
+                rndlinux.c     \
+                rndunix.c      \
+                rndegd.c       \
+                rndw32.c       \
+                md5.c          \
+                rmd160.c       \
+                sha1.c         \
+                sha256.c
 
-cipher_LIBADD = rsa.o
+EXTRA_libcipher_a_SOURCES = idea-stub.c tiger.c sha512.c
 
+libcipher_a_DEPENDENCIES = @IDEA_O@ @TIGER_O@ @SHA512_O@
+libcipher_a_LIBADD = @IDEA_O@ @TIGER_O@ @SHA512_O@
 
+tiger.o: $(srcdir)/tiger.c
+       `echo $(COMPILE) -c $(srcdir)/tiger.c | sed -e 's/-O[2-9s]*/-O1/g' `