See ChangeLog: Sat Jan 16 09:27:30 CET 1999 Werner Koch
[libgcrypt.git] / cipher / Makefile.am
1 ## Process this file with automake to produce Makefile.in
2
3 INCLUDES =  -I$(top_srcdir)/include -I$(top_srcdir)/intl
4
5 noinst_LIBRARIES = libcipher.a
6
7 EXTRA_PROGRAMS   = tiger twofish rndunix rndlinux
8 if ENABLE_GNUPG_EXTENSIONS
9 pkglib_PROGRAMS  = @DYNAMIC_CIPHER_MODS@ @DYNAMIC_RANDOM_MODS@
10 else
11 pkglib_PROGRAMS  =
12 endif
13
14
15 DYNLINK_MOD_CFLAGS = -DIS_MODULE @DYNLINK_MOD_CFLAGS@
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                  rmd.h          \
37                  rmd160.c       \
38                  sha1.h         \
39                  sha1.c         \
40                  dsa.h          \
41                  dsa.c          \
42                  g10c.c         \
43                  smallprime.c
44
45
46 EXTRA_libcipher_a_SOURCES = rndlinux.c rndunix.c
47 EXTRA_tiger_SOURCES = tiger.c
48 EXTRA_twofish_SOURCES = twofish.c
49
50 libcipher_a_DEPENDENCIES = @STATIC_RANDOM_OBJS@ @STATIC_CIPHER_OBJS@
51 libcipher_a_LIBADD =       @STATIC_RANDOM_OBJS@ @STATIC_CIPHER_OBJS@
52
53
54 tiger: $(srcdir)/tiger.c
55         `echo $(COMPILE) $(DYNLINK_MOD_CFLAGS) -o tiger $(srcdir)/tiger.c | \
56             sed -e 's/-O[2-9]*/-O1/' `
57
58 twofish: $(srcdir)/twofish.c
59         `echo $(COMPILE) $(DYNLINK_MOD_CFLAGS) -o twofish $(srcdir)/twofish.c | \
60             sed -e 's/-O[0-9]*/  /' `
61
62
63 rndunix: $(srcdir)/rndunix.c
64         $(COMPILE) $(DYNLINK_MOD_CFLAGS) -o rndunix $(srcdir)/rndunix.c
65
66 rndlinux: $(srcdir)/rndlinux.c
67         $(COMPILE) $(DYNLINK_MOD_CFLAGS) -o rndlinux $(srcdir)/rndlinux.c
68
69
70
71 install-exec-hook:
72         @list='$(pkglib_PROGRAMS)'; for p in $$list; do \
73           if test -f $(pkglibdir)/$$p; then \
74             echo "chmod 644 $(pkglibdir)/$$p"; \
75             chmod 644 $(pkglibdir)/$$p; \
76           fi; \
77         done
78