add doxygen.c
[heimdal.git] / lib / hcrypto / Makefile.am
blob599dde6e6d0dd566bd30e5dd957ef525be3070b3
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 lib_LTLIBRARIES = libhcrypto.la
6 check_LTLIBRARIES = libhctest.la
8 libhcrypto_la_LDFLAGS = -version-info 5:0:1
9 libhcrypto_la_LIBADD = \
10         $(top_builddir)/lib/asn1/libasn1.la \
11         $(LIB_dlopen) \
12         $(LIBADD_roken)
14 hcryptoincludedir = $(includedir)/hcrypto
15 buildhcryptoinclude = $(buildinclude)/hcrypto
17 hcryptoinclude_HEADERS =        \
18         aes.h                   \
19         bn.h                    \
20         des.h                   \
21         dh.h                    \
22         dsa.h                   \
23         engine.h                \
24         evp.h                   \
25         hmac.h                  \
26         md2.h                   \
27         md4.h                   \
28         md5.h                   \
29         pkcs12.h                \
30         rand.h                  \
31         rc2.h                   \
32         rc4.h                   \
33         rsa.h                   \
34         sha.h                   \
35         ui.h
37 install-build-headers:: $(hcryptoinclude_HEADERS)
38         @foo='$(hcryptoinclude_HEADERS)'; \
39         for f in $$foo; do \
40                 f=`basename $$f`; \
41                 if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
42                 else file="$$f"; fi; \
43                 if cmp -s  $$file $(buildhcryptoinclude)/$$f 2> /dev/null ; then \
44                 : ; else \
45                         echo "cp $$file $(buildhcryptoinclude)/$$f";\
46                         cp $$file $(buildhcryptoinclude)/$$f; \
47                 fi ; \
48         done
50 PROGRAM_TESTS = \
51         destest \
52         mdtest \
53         rc2test  \
54         rctest \
55         test_bn \
56         test_cipher \
57         test_engine_dso \
58         test_hmac \
59         test_imath \
60         test_pkcs5 \
61         test_pkcs12
63 libhctest_la_SOURCES = \
64         imath/imath.c   \
65         des-tables.h    \
66         des.c           \
67         des.h           \
68         ui.c            \
69         ui.h
71 test_imath_LDADD = libhctest.la $(LIB_roken)
72 destest_LDADD = libhctest.la $(LIB_roken)
74 SCRIPT_TESTS = \
75         test_crypto
77 noinst_PROGRAMS = test_rand
79 check_PROGRAMS = $(PROGRAM_TESTS) test_rsa
80 check_SCRIPTS = $(SCRIPT_TESTS)
82 TESTS = $(PROGRAM_TESTS) $(SCRIPT_TESTS)
84 LDADD = $(lib_LTLIBRARIES) $(LIB_roken)
86 libhcrypto_la_SOURCES = \
87         $(imathsource)  \
88         aes.c           \
89         aes.h           \
90         bn.c            \
91         bn.h            \
92         camellia.h      \
93         camellia.c      \
94         camellia-ntt.c  \
95         camellia-ntt.h  \
96         des-tables.h    \
97         des.c           \
98         des.h           \
99         dh.c            \
100         dh.h            \
101         dh-imath.c      \
102         dsa.c           \
103         dsa.h           \
104         doxygen.c       \
105         evp.c           \
106         evp.h           \
107         engine.c        \
108         engine.h        \
109         hash.h          \
110         hmac.c          \
111         hmac.h          \
112         md2.c           \
113         md2.h           \
114         md4.c           \
115         md4.h           \
116         md5.c           \
117         md5.h           \
118         pkcs5.c         \
119         pkcs12.c        \
120         rand-egd.c      \
121         rand-fortuna.c  \
122         rand-timer.c    \
123         rand-unix.c     \
124         rand.c          \
125         rand.h          \
126         randi.h         \
127         rc2.c           \
128         rc2.h           \
129         rc4.c           \
130         rc4.h           \
131         rijndael-alg-fst.c \
132         rijndael-alg-fst.h \
133         rnd_keys.c      \
134         rsa.c           \
135         rsa-imath.c     \
136         rsa.h           \
137         sha.c           \
138         sha.h           \
139         sha256.c        \
140         ui.c            \
141         ui.h
143 imathsource =                   \
144         imath/imath.c           \
145         imath/imath.h           \
146         imath/iprime.c          \
147         imath/iprime.h
149 $(libhcrypto_la_OBJECTS): hcrypto-link
151 if versionscript
152 libhcrypto_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
153 endif
154 $(libhcrypto_la_OBJECTS): $(srcdir)/version-script.map
157 hcrypto-link:
158         $(LN_S) $(srcdir)/../hcrypto hcrypto
159         touch hcrypto-link
161 do_subst = sed -e 's,[@]srcdir[@],$(srcdir),g'
163 test_crypto: test_crypto.in Makefile
164         $(do_subst) < $(srcdir)/test_crypto.in > test_crypto.tmp
165         chmod +x test_crypto.tmp
166         mv test_crypto.tmp test_crypto
168 CLEANFILES = \
169         crypto-test \
170         crypto-test2 \
171         error \
172         hcrypto \
173         hcrypto-link \
174         test.file \
175         test_crypto \
176         test_crypto.tmp \
177         test_crypto.tmp
179 EXTRA_DIST = \
180         rsakey.der \
181         test_crypto.in \
182         version-script.map