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
23 ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
29 dist_libotp_la_SOURCES = \
41 nodist_libotp_la_SOURCES = $(ndbm_wrap) $(ROKEN_SRCS)
44 ROKEN_SRCS = snprintf.c strcasecmp.c strncasecmp.c strlwr.c strlcpy.c strlcat.c
48 libotp_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
51 $(libotp_la_OBJECTS): $(ndbm_wrap)
54 $(LN_S) $(srcdir)/../roken/ndbm_wrap.c .
56 (echo '#define dbm_rename(X) __otp_ ## X'; cat $(srcdir)/../roken/ndbm_wrap.h) > ndbm_wrap.h
60 $(LN_S) $(srcdir)/../roken/snprintf.c .
62 $(LN_S) $(srcdir)/../roken/strcasecmp.c .
64 $(LN_S) $(srcdir)/../roken/strncasecmp.c .
66 $(LN_S) $(srcdir)/../roken/strlwr.c .
68 $(LN_S) $(srcdir)/../roken/strlcpy.c .
70 $(LN_S) $(srcdir)/../roken/strlcat.c .
82 EXTRA_DIST = version-script.map