Remove building with NOCRYPTO option
[minix.git] / crypto / external / bsd / heimdal / dist / lib / otp / Makefile.am
blob99ed48c60cb3bf71d6d4a5bb4a8a9761c5d98a46
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)
19 if HAVE_DB1
20 ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
21 libotp_la_LIBADD += $(LIB_db_create)
22 else
23 if HAVE_DB3
24 ndbm_wrap = ndbm_wrap.c ndbm_wrap.h
25 libotp_la_LIBADD += $(LIB_db_create)
26 else
27 ndbm_wrap =
28 libotp_la_LIBADD += $(LIB_NDBM)
29 endif
30 endif
32 dist_libotp_la_SOURCES = \
33         otp.c \
34         otp_challenge.c \
35         otp_db.c \
36         otp_md.c \
37         otp_parse.c \
38         otp_print.c \
39         otp_verify.c \
40         otp_locl.h \
41         otp_md.h \
42         roken_rename.h
44 nodist_libotp_la_SOURCES = $(ndbm_wrap) $(ROKEN_SRCS)
46 libotp_la_DEPENDENCIES = version-script.map
48 if do_roken_rename
49 ROKEN_SRCS = snprintf.c strcasecmp.c strncasecmp.c strlwr.c strlcpy.c strlcat.c
50 endif
52 if versionscript
53 libotp_la_LDFLAGS += $(LDFLAGS_VERSION_SCRIPT)$(srcdir)/version-script.map
54 endif
56 $(libotp_la_OBJECTS): $(ndbm_wrap)
58 ndbm_wrap.c:
59         $(LN_S) $(srcdir)/../roken/ndbm_wrap.c .
60 ndbm_wrap.h:
61         (echo '#define dbm_rename(X) __otp_ ## X'; cat $(srcdir)/../roken/ndbm_wrap.h) > ndbm_wrap.h
64 snprintf.c:
65         $(LN_S) $(srcdir)/../roken/snprintf.c .
66 strcasecmp.c:
67         $(LN_S) $(srcdir)/../roken/strcasecmp.c .
68 strncasecmp.c:
69         $(LN_S) $(srcdir)/../roken/strncasecmp.c .
70 strlwr.c:
71         $(LN_S) $(srcdir)/../roken/strlwr.c .
72 strlcpy.c:
73         $(LN_S) $(srcdir)/../roken/strlcpy.c .
74 strlcat.c:
75         $(LN_S) $(srcdir)/../roken/strlcat.c .
77 CLEANFILES = \
78         ndbm_wrap.c \
79         ndbm_wrap.h \
80         snprintf.c \
81         strcasecmp.c \
82         strlcat.c \
83         strlcpy.c \
84         strlwr.c \
85         strncasecmp.c
87 EXTRA_DIST = NTMakefile version-script.map