diff options
author | nectar <nectar@FreeBSD.org> | 2002-08-30 21:23:27 +0000 |
---|---|---|
committer | nectar <nectar@FreeBSD.org> | 2002-08-30 21:23:27 +0000 |
commit | a77dba08ca7d8ad2f2dcd653974ac66df78cfa49 (patch) | |
tree | 6015f89700252fb05eb8fa267c46dba41913e9d8 /crypto/heimdal/lib/otp/Makefile.am | |
parent | 69a91bec14ec3ad49d1c8a82c40a796755f9e4a3 (diff) | |
download | FreeBSD-src-a77dba08ca7d8ad2f2dcd653974ac66df78cfa49.zip FreeBSD-src-a77dba08ca7d8ad2f2dcd653974ac66df78cfa49.tar.gz |
Import of Heimdal Kerberos from KTH repository circa 2002/08/29.
Diffstat (limited to 'crypto/heimdal/lib/otp/Makefile.am')
-rw-r--r-- | crypto/heimdal/lib/otp/Makefile.am | 35 |
1 files changed, 32 insertions, 3 deletions
diff --git a/crypto/heimdal/lib/otp/Makefile.am b/crypto/heimdal/lib/otp/Makefile.am index 97182f5..8e24251 100644 --- a/crypto/heimdal/lib/otp/Makefile.am +++ b/crypto/heimdal/lib/otp/Makefile.am @@ -1,8 +1,8 @@ -# $Id: Makefile.am,v 1.20 2001/09/02 19:37:12 assar Exp $ +# $Id: Makefile.am,v 1.22 2002/08/13 14:02:54 joda Exp $ include $(top_srcdir)/Makefile.am.common -INCLUDES += $(INCLUDE_des) +INCLUDES += $(INCLUDE_des) $(ROKEN_RENAME) noinst_PROGRAMS = otptest @@ -16,6 +16,12 @@ lib_LTLIBRARIES = libotp.la libotp_la_LDFLAGS = -version-info 1:3:1 libotp_la_LIBADD = $(LIB_des) $(LIB_roken) $(LIB_NDBM) +if HAVE_DB3 +ndbm_wrap = ndbm_wrap.c ndbm_wrap.h +else +ndbm_wrap = +endif + libotp_la_SOURCES = \ otp.c \ otp_challenge.c \ @@ -26,4 +32,27 @@ libotp_la_SOURCES = \ otp_verify.c \ otp_locl.h \ otp_md.h \ - roken_rename.h + roken_rename.h \ + $(ndbm_wrap) \ + $(ROKEN_SRCS) + +if do_roken_rename +ROKEN_SRCS = snprintf.c strcasecmp.c strncasecmp.c strlwr.c +endif + +$(libotp_la_OBJECTS): $(ndbm_wrap) + +ndbm_wrap.c: + $(LN_S) $(srcdir)/../roken/ndbm_wrap.c . +ndbm_wrap.h: + (echo '#define dbm_rename(X) __otp_ ## X'; cat $(srcdir)/../roken/ndbm_wrap.h) > ndbm_wrap.h + + +snprintf.c: + $(LN_S) $(srcdir)/../roken/snprintf.c . +strcasecmp.c: + $(LN_S) $(srcdir)/../roken/strcasecmp.c . +strncasecmp.c: + $(LN_S) $(srcdir)/../roken/strncasecmp.c . +strlwr.c: + $(LN_S) $(srcdir)/../roken/strlwr.c . |