Makefile.am 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. # Process this file with automake to produce Makefile.in
  20. EXTRA_DIST = Manifest
  21. # Need to include ../src in addition to top_srcdir because gcrypt.h is
  22. # a built header.
  23. AM_CPPFLAGS = -I../src -I$(top_srcdir)/src
  24. AM_CFLAGS = $(GPG_ERROR_CFLAGS)
  25. noinst_LTLIBRARIES = libcipher.la
  26. GCRYPT_MODULES = @GCRYPT_CIPHERS@ @GCRYPT_PUBKEY_CIPHERS@ @GCRYPT_DIGESTS@
  27. libcipher_la_DEPENDENCIES = $(GCRYPT_MODULES)
  28. libcipher_la_LIBADD = $(GCRYPT_MODULES)
  29. libcipher_la_SOURCES = \
  30. cipher.c pubkey.c ac.c md.c kdf.c \
  31. hmac-tests.c \
  32. bithelp.h \
  33. primegen.c \
  34. hash-common.c hash-common.h \
  35. rmd.h
  36. EXTRA_libcipher_la_SOURCES = \
  37. arcfour.c \
  38. blowfish.c \
  39. cast5.c \
  40. crc.c \
  41. des.c \
  42. dsa.c \
  43. elgamal.c \
  44. ecc.c \
  45. idea.c \
  46. md4.c \
  47. md5.c \
  48. rijndael.c rijndael-tables.h \
  49. rmd160.c \
  50. rsa.c \
  51. seed.c \
  52. serpent.c \
  53. sha1.c \
  54. sha256.c \
  55. sha512.c \
  56. tiger.c \
  57. whirlpool.c \
  58. twofish.c \
  59. rfc2268.c \
  60. camellia.c camellia.h camellia-glue.c
  61. if ENABLE_O_FLAG_MUNGING
  62. o_flag_munging = sed -e 's/-O\([2-9s][2-9s]*\)/-O1/' -e 's/-Ofast/-O1/g'
  63. else
  64. o_flag_munging = cat
  65. endif
  66. # We need to lower the optimization for this module.
  67. tiger.o: $(srcdir)/tiger.c
  68. `echo $(COMPILE) -c $(srcdir)/tiger.c | $(o_flag_munging) `
  69. tiger.lo: $(srcdir)/tiger.c
  70. `echo $(LTCOMPILE) -c $(srcdir)/tiger.c | $(o_flag_munging) `