New release
[gnupg.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
48 tiger: $(srcdir)/tiger.c
49         $(COMPILE) -shared  -fPIC -O1 -o tiger $(srcdir)/tiger.c
50
51 twofish: $(srcdir)/twofish.c
52         $(COMPILE) -shared  -fPIC -o twofish $(srcdir)/twofish.c
53
54
55 install-exec-hook:
56         @list='$(pkglib_PROGRAMS)'; for p in $$list; do \
57           if test -f $(pkglibdir)/$$p; then \
58             echo "chmod 644 $(pkglibdir)/$$p"; \
59             chmod 644 $(pkglibdir)/$$p; \
60           fi; \
61         done
62