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 \
14 hcryptoincludedir = $(includedir)/hcrypto
15 buildhcryptoinclude = $(buildinclude)/hcrypto
17 hcryptoinclude_HEADERS = \
37 install-build-headers:: $(hcryptoinclude_HEADERS)
38 @foo='$(hcryptoinclude_HEADERS)'; \
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 \
45 echo "cp $$file $(buildhcryptoinclude)/$$f";\
46 cp $$file $(buildhcryptoinclude)/$$f; \
63 libhctest_la_SOURCES = \
71 test_imath_LDADD = libhctest.la $(LIB_roken)
72 destest_LDADD = libhctest.la $(LIB_roken)
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 = \
149 $(libhcrypto_la_OBJECTS): hcrypto-link
152 libhcrypto_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
154 $(libhcrypto_la_OBJECTS): $(srcdir)/version-script.map
158 $(LN_S) $(srcdir)/../hcrypto hcrypto
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