No empty .Rs/.Re
[netbsd-mini2440.git] / crypto / dist / heimdal / lib / hcrypto / Makefile.am
blob688019b62b6e5cd17f4764e28bc4174023715f82
1 # $Heimdal: Makefile.am 22401 2008-01-11 14:32:11Z lha $
2 # $NetBSD$
4 include $(top_srcdir)/Makefile.am.common
6 lib_LTLIBRARIES = libhcrypto.la
7 check_LTLIBRARIES = libhctest.la
9 libhcrypto_la_LDFLAGS = -version-info 5:0:1
10 libhcrypto_la_LIBADD = \
11         $(top_builddir)/lib/asn1/libasn1.la \
12         $(LIB_dlopen) \
13         $(LIBADD_roken)
15 hcryptoincludedir = $(includedir)/hcrypto
16 buildhcryptoinclude = $(buildinclude)/hcrypto
18 hcryptoinclude_HEADERS =        \
19         aes.h                   \
20         bn.h                    \
21         des.h                   \
22         dh.h                    \
23         dsa.h                   \
24         engine.h                \
25         evp.h                   \
26         hmac.h                  \
27         md2.h                   \
28         md4.h                   \
29         md5.h                   \
30         pkcs12.h                \
31         rand.h                  \
32         rc2.h                   \
33         rc4.h                   \
34         rsa.h                   \
35         sha.h                   \
36         ui.h
38 install-build-headers:: $(hcryptoinclude_HEADERS)
39         @foo='$(hcryptoinclude_HEADERS)'; \
40         for f in $$foo; do \
41                 f=`basename $$f`; \
42                 if test -f "$(srcdir)/$$f"; then file="$(srcdir)/$$f"; \
43                 else file="$$f"; fi; \
44                 if cmp -s  $$file $(buildhcryptoinclude)/$$f 2> /dev/null ; then \
45                 : ; else \
46                         echo "cp $$file $(buildhcryptoinclude)/$$f";\
47                         cp $$file $(buildhcryptoinclude)/$$f; \
48                 fi ; \
49         done
51 PROGRAM_TESTS = \
52         destest \
53         mdtest \
54         rc2test  \
55         rctest \
56         test_bn \
57         test_cipher \
58         test_engine_dso \
59         test_hmac \
60         test_imath \
61         test_pkcs5 \
62         test_pkcs12
64 libhctest_la_SOURCES = \
65         imath/imath.c   \
66         des-tables.h    \
67         des.c           \
68         des.h           \
69         ui.c            \
70         ui.h
72 test_imath_LDADD = libhctest.la $(LIB_roken)
73 destest_LDADD = libhctest.la $(LIB_roken)
75 SCRIPT_TESTS = \
76         test_crypto
78 noinst_PROGRAMS = test_rand
80 check_PROGRAMS = $(PROGRAM_TESTS) test_rsa test_dh
81 check_SCRIPTS = $(SCRIPT_TESTS)
83 TESTS = $(PROGRAM_TESTS) $(SCRIPT_TESTS)
85 LDADD = $(lib_LTLIBRARIES) $(LIB_roken)
87 libhcrypto_la_SOURCES = \
88         $(imathsource)  \
89         aes.c           \
90         aes.h           \
91         bn.c            \
92         bn.h            \
93         camellia.h      \
94         camellia.c      \
95         camellia-ntt.c  \
96         camellia-ntt.h  \
97         des-tables.h    \
98         des.c           \
99         des.h           \
100         dh.c            \
101         dh.h            \
102         dh-imath.c      \
103         dsa.c           \
104         dsa.h           \
105         doxygen.c       \
106         evp.c           \
107         evp.h           \
108         engine.c        \
109         engine.h        \
110         hash.h          \
111         hmac.c          \
112         hmac.h          \
113         md2.c           \
114         md2.h           \
115         md4.c           \
116         md4.h           \
117         md5.c           \
118         md5.h           \
119         pkcs5.c         \
120         pkcs12.c        \
121         rand-egd.c      \
122         rand-fortuna.c  \
123         rand-timer.c    \
124         rand-unix.c     \
125         rand.c          \
126         rand.h          \
127         randi.h         \
128         rc2.c           \
129         rc2.h           \
130         rc4.c           \
131         rc4.h           \
132         rijndael-alg-fst.c \
133         rijndael-alg-fst.h \
134         rnd_keys.c      \
135         rsa.c           \
136         rsa-gmp.c       \
137         rsa-imath.c     \
138         rsa.h           \
139         sha.c           \
140         sha.h           \
141         sha256.c        \
142         ui.c            \
143         ui.h
145 imathsource =                   \
146         imath/imath.c           \
147         imath/imath.h           \
148         imath/iprime.c          \
149         imath/iprime.h
151 $(libhcrypto_la_OBJECTS): hcrypto-link
153 if versionscript
154 libhcrypto_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
155 endif
156 $(libhcrypto_la_OBJECTS): $(srcdir)/version-script.map
159 hcrypto-link:
160         $(LN_S) $(srcdir)/../hcrypto hcrypto
161         touch hcrypto-link
163 do_subst = sed -e 's,[@]srcdir[@],$(srcdir),g'
165 test_crypto: test_crypto.in Makefile
166         $(do_subst) < $(srcdir)/test_crypto.in > test_crypto.tmp
167         chmod +x test_crypto.tmp
168         mv test_crypto.tmp test_crypto
170 CLEANFILES = \
171         crypto-test \
172         crypto-test2 \
173         error \
174         hcrypto \
175         hcrypto-link \
176         test.file \
177         test_crypto \
178         test_crypto.tmp \
179         test_crypto.tmp
181 EXTRA_DIST = \
182         rsakey.der \
183         test_crypto.in \
184         version-script.map \
185         DESperate.txt \
186         dllmain.c \
187         gen-des.pl \
188         imath/import.sh \
189         imath/LICENSE \
190         md5crypt_test.c \
191         passwd_dialog.aps \
192         passwd_dialog.clw \
193         passwd_dialog.rc \
194         passwd_dialog.res \
195         passwd_dlg.c \
196         passwd_dlg.h \
197         resource.h