3 include $(top_srcdir)/Makefile.am.common
5 AM_CPPFLAGS += $(INCLUDE_hcrypto) $(ROKEN_RENAME)
7 noinst_PROGRAMS = otptest
9 check_PROGRAMS = otptest
11 otptest_LDADD = libotp.la
13 include_HEADERS = otp.h
15 lib_LTLIBRARIES = libotp.la
16 libotp_la_LDFLAGS = -version-info 1:5:1
17 libotp_la_LIBADD = $(LIB_hcrypto) $(LIB_roken) $(LIB_NDBM)
20 ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
25 dist_libotp_la_SOURCES = \
37 nodist_libotp_la_SOURCES = $(ndbm_wrap) $(ROKEN_SRCS)
40 ROKEN_SRCS = snprintf.c strcasecmp.c strncasecmp.c strlwr.c strlcpy.c strlcat.c
44 libotp_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
47 $(libotp_la_OBJECTS): $(ndbm_wrap)
50 $(LN_S) $(srcdir)/../roken/ndbm_wrap.c .
52 (echo '#define dbm_rename(X) __otp_ ## X'; cat $(srcdir)/../roken/ndbm_wrap.h) > ndbm_wrap.h
56 $(LN_S) $(srcdir)/../roken/snprintf.c .
58 $(LN_S) $(srcdir)/../roken/strcasecmp.c .
60 $(LN_S) $(srcdir)/../roken/strncasecmp.c .
62 $(LN_S) $(srcdir)/../roken/strlwr.c .
64 $(LN_S) $(srcdir)/../roken/strlcpy.c .
66 $(LN_S) $(srcdir)/../roken/strlcat.c .