1# Makefile for cipher modules 2# Copyright (C) 1998, 1999, 2000, 2001, 2002, 3# 2003, 2009 Free Software Foundation, Inc. 4# 5# This file is part of Libgcrypt. 6# 7# Libgcrypt is free software; you can redistribute it and/or modify 8# it under the terms of the GNU Lesser General Public License as 9# published by the Free Software Foundation; either version 2.1 of 10# the License, or (at your option) any later version. 11# 12# Libgcrypt is distributed in the hope that it will be useful, 13# but WITHOUT ANY WARRANTY; without even the implied warranty of 14# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15# GNU Lesser General Public License for more details. 16# 17# You should have received a copy of the GNU Lesser General Public 18# License along with this program; if not, see <http://www.gnu.org/licenses/>. 19 20# Process this file with automake to produce Makefile.in 21 22EXTRA_DIST = Manifest 23 24# Need to include ../src in addition to top_srcdir because gcrypt.h is 25# a built header. 26AM_CPPFLAGS = -I../src -I$(top_srcdir)/src 27AM_CFLAGS = $(GPG_ERROR_CFLAGS) 28 29 30noinst_LTLIBRARIES = libcipher.la 31 32GCRYPT_MODULES = @GCRYPT_CIPHERS@ @GCRYPT_PUBKEY_CIPHERS@ @GCRYPT_DIGESTS@ 33 34libcipher_la_DEPENDENCIES = $(GCRYPT_MODULES) 35libcipher_la_LIBADD = $(GCRYPT_MODULES) 36 37libcipher_la_SOURCES = \ 38cipher.c pubkey.c ac.c md.c kdf.c \ 39hmac-tests.c \ 40bithelp.h \ 41primegen.c \ 42hash-common.c hash-common.h \ 43rmd.h 44 45EXTRA_libcipher_la_SOURCES = \ 46arcfour.c \ 47blowfish.c \ 48cast5.c \ 49crc.c \ 50des.c \ 51dsa.c \ 52elgamal.c \ 53ecc.c \ 54md4.c \ 55md5.c \ 56rijndael.c rijndael-tables.h \ 57rmd160.c \ 58rsa.c \ 59seed.c \ 60serpent.c \ 61sha1.c \ 62sha256.c \ 63sha512.c \ 64tiger.c \ 65whirlpool.c \ 66twofish.c \ 67rfc2268.c \ 68camellia.c camellia.h camellia-glue.c 69 70if ENABLE_O_FLAG_MUNGING 71o_flag_munging = sed -e 's/-O[2-9s]*/-O1/g' 72else 73o_flag_munging = cat 74endif 75 76 77# We need to lower the optimization for this module. 78tiger.o: $(srcdir)/tiger.c 79 `echo $(COMPILE) -c $(srcdir)/tiger.c | $(o_flag_munging) ` 80 81tiger.lo: $(srcdir)/tiger.c 82 `echo $(LTCOMPILE) -c $(srcdir)/tiger.c | $(o_flag_munging) ` 83