Default to false(?), at least default to something.
[heimdal.git] / lib / otp / Makefile.am
blobe0d4c700d979cce59632ef6b1ff21b05a1dfc1ea
1 # $Id$
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)
19 if HAVE_DB1
20 ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
21 else
22 if HAVE_DB3
23 ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
24 else
25 ndbm_wrap =
26 endif
27 endif
29 dist_libotp_la_SOURCES = \
30         otp.c \
31         otp_challenge.c \
32         otp_db.c \
33         otp_md.c \
34         otp_parse.c \
35         otp_print.c \
36         otp_verify.c \
37         otp_locl.h \
38         otp_md.h \
39         roken_rename.h
41 nodist_libotp_la_SOURCES = $(ndbm_wrap) $(ROKEN_SRCS)
43 if do_roken_rename
44 ROKEN_SRCS = snprintf.c strcasecmp.c strncasecmp.c strlwr.c strlcpy.c strlcat.c
45 endif
47 if versionscript
48 libotp_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
49 endif
51 $(libotp_la_OBJECTS): $(ndbm_wrap)
53 ndbm_wrap.c:
54         $(LN_S) $(srcdir)/../roken/ndbm_wrap.c .
55 ndbm_wrap.h:
56         (echo '#define dbm_rename(X) __otp_ ## X'; cat $(srcdir)/../roken/ndbm_wrap.h) > ndbm_wrap.h
59 snprintf.c:
60         $(LN_S) $(srcdir)/../roken/snprintf.c .
61 strcasecmp.c:
62         $(LN_S) $(srcdir)/../roken/strcasecmp.c .
63 strncasecmp.c:
64         $(LN_S) $(srcdir)/../roken/strncasecmp.c .
65 strlwr.c:
66         $(LN_S) $(srcdir)/../roken/strlwr.c .
67 strlcpy.c:
68         $(LN_S) $(srcdir)/../roken/strlcpy.c .
69 strlcat.c:
70         $(LN_S) $(srcdir)/../roken/strlcat.c .
72 CLEANFILES = \
73         ndbm_wrap.c \
74         ndbm_wrap.h \
75         snprintf.c \
76         strcasecmp.c \
77         strlcat.c \
78         strlcpy.c \
79         strlwr.c \
80         strncasecmp.c
82 EXTRA_DIST = version-script.map