1 # $Heimdal: Makefile.am 22401 2008-01-11 14:32:11Z lha $
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 \
15 hcryptoincludedir = $(includedir)/hcrypto
16 buildhcryptoinclude = $(buildinclude)/hcrypto
18 hcryptoinclude_HEADERS = \
38 install-build-headers:: $(hcryptoinclude_HEADERS)
39 @foo='$(hcryptoinclude_HEADERS)'; \
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 \
46 echo "cp $$file $(buildhcryptoinclude)/$$f";\
47 cp $$file $(buildhcryptoinclude)/$$f; \
64 libhctest_la_SOURCES = \
72 test_imath_LDADD = libhctest.la $(LIB_roken)
73 destest_LDADD = libhctest.la $(LIB_roken)
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 = \
151 $(libhcrypto_la_OBJECTS): hcrypto-link
154 libhcrypto_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
156 $(libhcrypto_la_OBJECTS): $(srcdir)/version-script.map
160 $(LN_S) $(srcdir)/../hcrypto hcrypto
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