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