edit-key is now complete
[libgcrypt.git] / cipher / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 gnupg_extensions = tiger twofish
4
5 INCLUDES =  -I$(top_srcdir)/include -I$(top_srcdir)/intl -I../intl
6
7 noinst_LIBRARIES = libcipher.a
8 if ENABLE_GNUPG_EXTENSIONS
9 pkglib_PROGRAMS  = $(gnupg_extensions)
10 else
11 pkglib_PROGRAMS  =
12 endif
13
14
15 libcipher_a_SOURCES = cipher.c  \
16                  pubkey.c       \
17                  md.c           \
18                  dynload.c      \
19                  dynload.h      \
20                  blowfish.c     \
21                  blowfish.h     \
22                  cast5.c        \
23                  cast5.h        \
24                  elgamal.c      \
25                  elgamal.h      \
26                  md5.c          \
27                  md5.h          \
28                  primegen.c     \
29                  random.h       \
30                  random.c       \
31                  rand-internal.h \
32                  rand-unix.c    \
33                  rand-w32.c     \
34                  rand-dummy.c   \
35                  rmd.h          \
36                  rmd160.c       \
37                  sha1.h         \
38                  sha1.c         \
39                  dsa.h          \
40                  dsa.c          \
41                  g10c.c         \
42                  smallprime.c
43
44 EXTRA_tiger_SOURCES = tiger.c
45 EXTRA_twofish_SOURCES = twofish.c
46
47 tiger: tiger.c
48         $(COMPILE) -shared  -fPIC -o tiger tiger.c
49
50 twofish: twofish.c
51         $(COMPILE) -shared  -fPIC -o twofish twofish.c
52
53 install-exec-hook:
54         @list='$(pkglib_PROGRAMS)'; for p in $$list; do \
55           if test -f $(pkglibdir)/$$p; then \
56             echo "chmod 644 $(pkglibdir)/$$p"; \
57             chmod 644 $(pkglibdir)/$$p; \
58           fi; \
59         done
60