See ChangeLog: Thu Dec 10 20:15:36 CET 1998 Werner Koch
[gnupg.git] / cipher / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 gnupg_extensions = tiger twofish rndunix
4
5 INCLUDES =  -I$(top_srcdir)/include -I$(top_srcdir)/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 = -DIS_MODULE @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                  rndlinux.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) $(DYNLINK_MOD_CFLAGS) -o tiger $(srcdir)/tiger.c | \
52             sed -e 's/-O[2-9]*/-O1/' `
53
54 twofish: $(srcdir)/twofish.c
55         `echo $(COMPILE) $(DYNLINK_MOD_CFLAGS) -o twofish $(srcdir)/twofish.c | \
56             sed -e 's/-O[0-9]*/  /' `
57
58
59 rndunix: $(srcdir)/rndunix.c
60         $(COMPILE) $(DYNLINK_MOD_CFLAGS) -o rndunix $(srcdir)/rndunix.c
61
62 rndlinux: $(srcdir)/rndlinux.c
63         $(COMPILE) $(DYNLINK_MOD_CFLAGS) -o rndlinux $(srcdir)/rndlinux.c
64
65
66
67 install-exec-hook:
68         @list='$(pkglib_PROGRAMS)'; for p in $$list; do \
69           if test -f $(pkglibdir)/$$p; then \
70             echo "chmod 644 $(pkglibdir)/$$p"; \
71             chmod 644 $(pkglibdir)/$$p; \
72           fi; \
73         done
74