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
43 $(libotp_la_OBJECTS): $(ndbm_wrap)
46 $(LN_S) $(srcdir)/../roken/ndbm_wrap.c .
48 (echo '#define dbm_rename(X) __otp_ ## X'; cat $(srcdir)/../roken/ndbm_wrap.h) > ndbm_wrap.h
52 $(LN_S) $(srcdir)/../roken/snprintf.c .
54 $(LN_S) $(srcdir)/../roken/strcasecmp.c .
56 $(LN_S) $(srcdir)/../roken/strncasecmp.c .
58 $(LN_S) $(srcdir)/../roken/strlwr.c .
60 $(LN_S) $(srcdir)/../roken/strlcpy.c .
62 $(LN_S) $(srcdir)/../roken/strlcat.c .