* Makefile.am, md.c (load_digest_module): Only build in SHA384/512 and
[gnupg.git] / cipher / Makefile.am
index a96694c..0c87c51 100644 (file)
@@ -1,62 +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
 
-gnupg_extensions = tiger twofish
+## Process this file with automake to produce Makefile.in
 
-INCLUDES =  -I$(top_srcdir)/include -I$(top_srcdir)/intl -I../intl
+INCLUDES = -I.. -I$(top_srcdir)/include -I$(top_srcdir)/intl
 
 noinst_LIBRARIES = libcipher.a
-if ENABLE_GNUPG_EXTENSIONS
-pkglib_PROGRAMS  = $(gnupg_extensions)
-else
-pkglib_PROGRAMS  =
-endif
-
 
 libcipher_a_SOURCES = cipher.c \
                 pubkey.c       \
                 md.c           \
                 dynload.c      \
-                dynload.h      \
+                bithelp.h      \
+                des.c          \
+                twofish.c      \
                 blowfish.c     \
-                blowfish.h     \
                 cast5.c        \
-                cast5.h        \
+                rijndael.c     \
                 elgamal.c      \
                 elgamal.h      \
-                md5.c          \
-                md5.h          \
+                rsa.c rsa.h    \
                 primegen.c     \
                 random.h       \
                 random.c       \
                 rand-internal.h \
-                rand-unix.c    \
-                rand-w32.c     \
-                rand-dummy.c   \
                 rmd.h          \
-                rmd160.c       \
-                sha1.h         \
-                sha1.c         \
                 dsa.h          \
                 dsa.c          \
                 g10c.c         \
-                smallprime.c
-
-EXTRA_tiger_SOURCES = tiger.c
-EXTRA_twofish_SOURCES = twofish.c
-
-
-tiger: $(srcdir)/tiger.c
-       $(COMPILE) -shared  -fPIC -O1 -o tiger $(srcdir)/tiger.c
-
-twofish: $(srcdir)/twofish.c
-       $(COMPILE) -shared  -fPIC -o twofish $(srcdir)/twofish.c
-
-
-install-exec-hook:
-       @list='$(pkglib_PROGRAMS)'; for p in $$list; do \
-         if test -f $(pkglibdir)/$$p; then \
-           echo "chmod 644 $(pkglibdir)/$$p"; \
-           chmod 644 $(pkglibdir)/$$p; \
-         fi; \
-       done
-
+                smallprime.c   \
+                algorithms.h   \
+                rndlinux.c     \
+                rndunix.c      \
+                rndegd.c       \
+                rndw32.c       \
+                md5.c          \
+                rmd160.c       \
+                sha1.c         \
+                sha256.c
+
+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' `