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)
20 ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
21 libotp_la_LIBADD += $(LIB_db_create)
24 ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
25 libotp_la_LIBADD += $(LIB_db_create)
28 libotp_la_LIBADD += $(LIB_NDBM)
32 dist_libotp_la_SOURCES = \
44 nodist_libotp_la_SOURCES = $(ndbm_wrap) $(ROKEN_SRCS)
46 libotp_la_DEPENDENCIES = version-script.map
49 ROKEN_SRCS = snprintf.c strcasecmp.c strncasecmp.c strlwr.c strlcpy.c strlcat.c
53 libotp_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
56 $(libotp_la_OBJECTS): $(ndbm_wrap)
59 $(LN_S) $(srcdir)/../roken/ndbm_wrap.c .
61 (echo '#define dbm_rename(X) __otp_ ## X'; cat $(srcdir)/../roken/ndbm_wrap.h) > ndbm_wrap.h
65 $(LN_S) $(srcdir)/../roken/snprintf.c .
67 $(LN_S) $(srcdir)/../roken/strcasecmp.c .
69 $(LN_S) $(srcdir)/../roken/strncasecmp.c .
71 $(LN_S) $(srcdir)/../roken/strlwr.c .
73 $(LN_S) $(srcdir)/../roken/strlcpy.c .
75 $(LN_S) $(srcdir)/../roken/strlcat.c .
87 EXTRA_DIST = NTMakefile version-script.map