1 # $Heimdal: Makefile.am 21617 2007-07-17 07:28:19Z lha $
4 include $(top_srcdir)/Makefile.am.common
6 AM_CPPFLAGS += $(INCLUDE_hcrypto) $(ROKEN_RENAME)
8 noinst_PROGRAMS = otptest
10 check_PROGRAMS = otptest
12 otptest_LDADD = libotp.la
14 include_HEADERS = otp.h
16 lib_LTLIBRARIES = libotp.la
17 libotp_la_LDFLAGS = -version-info 1:5:1
18 libotp_la_LIBADD = $(LIB_hcrypto) $(LIB_roken) $(LIB_NDBM)
21 ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
26 dist_libotp_la_SOURCES = \
38 nodist_libotp_la_SOURCES = $(ndbm_wrap) $(ROKEN_SRCS)
41 ROKEN_SRCS = snprintf.c strcasecmp.c strncasecmp.c strlwr.c strlcpy.c strlcat.c
44 $(libotp_la_OBJECTS): $(ndbm_wrap)
47 $(LN_S) $(srcdir)/../roken/ndbm_wrap.c .
49 (echo '#define dbm_rename(X) __otp_ ## X'; cat $(srcdir)/../roken/ndbm_wrap.h) > ndbm_wrap.h
53 $(LN_S) $(srcdir)/../roken/snprintf.c .
55 $(LN_S) $(srcdir)/../roken/strcasecmp.c .
57 $(LN_S) $(srcdir)/../roken/strncasecmp.c .
59 $(LN_S) $(srcdir)/../roken/strlwr.c .
61 $(LN_S) $(srcdir)/../roken/strlcpy.c .
63 $(LN_S) $(srcdir)/../roken/strlcat.c .