*** empty log message ***
[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                  des.c          \
21                  des.h          \
22                  blowfish.c     \
23                  blowfish.h     \
24                  cast5.c        \
25                  cast5.h        \
26                  elgamal.c      \
27                  elgamal.h      \
28                  md5.c          \
29                  md5.h          \
30                  primegen.c     \
31                  random.h       \
32                  random.c       \
33                  rand-internal.h \
34                  rand-unix.c    \
35                  rand-w32.c     \
36                  rand-dummy.c   \
37                  rmd.h          \
38                  rmd160.c       \
39                  sha1.h         \
40                  sha1.c         \
41                  dsa.h          \
42                  dsa.c          \
43                  g10c.c         \
44                  smallprime.c
45
46 EXTRA_tiger_SOURCES = tiger.c
47 EXTRA_twofish_SOURCES = twofish.c
48
49
50 tiger: $(srcdir)/tiger.c
51         `echo $(COMPILE) -shared  -fPIC -lc -o tiger $(srcdir)/tiger.c | \
52             sed -e 's/-O2/-O1/' `
53
54 twofish: $(srcdir)/twofish.c
55         `echo $(COMPILE) -shared  -fPIC -lc -o twofish $(srcdir)/twofish.c | \
56             sed -e 's/-O2/  /' `
57
58
59 install-exec-hook:
60         @list='$(pkglib_PROGRAMS)'; for p in $$list; do \
61           if test -f $(pkglibdir)/$$p; then \
62             echo "chmod 644 $(pkglibdir)/$$p"; \
63             chmod 644 $(pkglibdir)/$$p; \
64           fi; \
65         done
66