From 56afc4da1ac9aa97aaf03d9e54781ea88a9afc9d Mon Sep 17 00:00:00 2001 From: Asanka Herath Date: Mon, 14 Sep 2009 15:06:11 -0400 Subject: [PATCH] Build libheimntlm as a .dll by default --- lib/ntlm/NTMakefile | 12 ++++++++++++ lib/ntlm/libheimntlm-exports.def | 21 +++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 lib/ntlm/libheimntlm-exports.def diff --git a/lib/ntlm/NTMakefile b/lib/ntlm/NTMakefile index 826b3e1cc..029c3ff0c 100644 --- a/lib/ntlm/NTMakefile +++ b/lib/ntlm/NTMakefile @@ -42,9 +42,21 @@ libheimntlm_la_SOURCES = ntlm.c heimntlm.h $(OBJ)\heimntlm-protos.h: $(libheimntlm_la_SOURCES) $(PERL) ../../cf/make-proto.pl -q -P remove -o $(OBJ)\heimntlm-protos.h $(libheimntlm_la_SOURCES) +!ifndef STATICLIBS + +$(LIBHEIMNTLM): $(BINDIR)\libheimntlm.dll + +$(BINDIR)\libheimntlm.dll: $(OBJ)\ntlm.obj $(LIBKRB5) $(LIBHCRYPTO) + $(DLLGUILINK) -def:libheimntlm-exports.def -implib:$(LIBHEIMNTLM) + $(DLLPREP) + +!else + $(LIBHEIMNTLM): $(OBJ)\ntlm.obj $(LIBCON) +!endif + all:: $(INCFILES) $(LIBHEIMNTLM) diff --git a/lib/ntlm/libheimntlm-exports.def b/lib/ntlm/libheimntlm-exports.def new file mode 100644 index 000000000..ce812e0e6 --- /dev/null +++ b/lib/ntlm/libheimntlm-exports.def @@ -0,0 +1,21 @@ +EXPORTS + heim_ntlm_build_ntlm1_master + heim_ntlm_calculate_ntlm1 + heim_ntlm_calculate_ntlm2 + heim_ntlm_calculate_ntlm2_sess + heim_ntlm_decode_targetinfo + heim_ntlm_decode_type1 + heim_ntlm_decode_type2 + heim_ntlm_decode_type3 + heim_ntlm_encode_targetinfo + heim_ntlm_encode_type1 + heim_ntlm_encode_type2 + heim_ntlm_encode_type3 + heim_ntlm_free_buf + heim_ntlm_free_targetinfo + heim_ntlm_free_type1 + heim_ntlm_free_type2 + heim_ntlm_free_type3 + heim_ntlm_nt_key + heim_ntlm_ntlmv2_key + heim_ntlm_verify_ntlm2