From 5d5f979c289bd1817eff8b68871b25cf5eebb239 Mon Sep 17 00:00:00 2001 From: nandika Date: Tue, 31 May 2011 18:41:24 +0000 Subject: makefile and configure.in file updated to include ntlm build git-svn-id: http://svn.apache.org/repos/asf/axis/axis2/c/core/trunk@1129839 13f79535-47bb-0310-9956-ffa450edef68 --- build/win32/makefile | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'build/win32/makefile') diff --git a/build/win32/makefile b/build/win32/makefile index 4139570..093376e 100644 --- a/build/win32/makefile +++ b/build/win32/makefile @@ -144,6 +144,11 @@ AXIS2_INCLUDE_PATH = $(AXIS2_INCLUDE_PATH) /I$(OPENSSL_BIN_DIR)\include AXIS2_INCLUDE_PATH = $(AXIS2_INCLUDE_PATH) /I$(LIBCURL_BIN_DIR)\include !endif + +!if "$(ENABLE_NTLM)" == "1" +AXIS2_INCLUDE_PATH = $(AXIS2_INCLUDE_PATH) /I$(OPENSSL_BIN_DIR)\include /I$(HEIMDAL_BIN_DIR)\inc +!endif + # Compiler Options ################### @@ -167,6 +172,8 @@ CFLAGS = $(CFLAGS) /D "AXIS2_LIBXML2_ENABLED" $(LIBXML2_INCLUDE_PATH) CFLAGS = $(CFLAGS) /D "AXIS2_GUTHTHILA_ENABLED" $(GUTHTHILA_INCLUDE_PATH) !endif + + # Linker Options #################### @@ -192,6 +199,11 @@ APACHE_LIBS = apr.lib xml.lib libhttpd.lib libaprutil.lib libapr.lib APACHE_LIBS = apr-1.lib xml.lib libhttpd.lib libapr-1.lib libaprutil-1.lib !endif +!if "$(ENABLE_NTLM)" == "1" +LDFLAGS = $(LDFLAGS) /LIBPATH:$(HEIMDAL_BIN_DIR)\lib /LIBPATH:$(OPENSSL_BIN_DIR)\lib\VC +LIBS = $(LIBS) libheimntlm.lib libeay32MD.lib ssleay32MD.lib +!endif + # Manifest Options #################### MT=mt.exe @@ -628,6 +640,9 @@ HTTP_SENDER_SRC = $(AXIS2_SOURCE_DIR)\src\core\transport\http\sender HTTP_SENDER_INTDIR = $(AXIS2_INTDIR)\http_sender HTTP_SENDER_INTDIR1 = $(AXIS2_INTDIR)\http_sender\ssl HTTP_SENDER_INTDIR2 = $(AXIS2_INTDIR)\http_sender\libcurl +HTTP_SENDER_INTDIR3 = $(AXIS2_INTDIR)\http_sender\ntlm +HTTP_SENDER_INTDIR4 = $(AXIS2_INTDIR)\http_sender\ntlm\heimdal + HTTP_SENDER_OBJS = $(HTTP_SENDER_INTDIR)\*.obj @@ -640,6 +655,12 @@ $(HTTP_SENDER_INTDIR1) : $(HTTP_SENDER_INTDIR2) : @if not exist $(HTTP_SENDER_INTDIR2) mkdir $(HTTP_SENDER_INTDIR2) +$(HTTP_SENDER_INTDIR3) : + @if not exist $(HTTP_SENDER_INTDIR3) mkdir $(HTTP_SENDER_INTDIR3) + +$(HTTP_SENDER_INTDIR4) : + @if not exist $(HTTP_SENDER_INTDIR4) mkdir $(HTTP_SENDER_INTDIR4) + {$(HTTP_SENDER_SRC)}.c{$(HTTP_SENDER_INTDIR)}.obj :: $(CC) $(CFLAGS) /Fo$(HTTP_SENDER_INTDIR)\ /c $< @@ -649,6 +670,13 @@ $(HTTP_SENDER_INTDIR2) : {$(HTTP_SENDER_SRC)\libcurl}.c{$(HTTP_SENDER_INTDIR2)}.obj :: $(CC) $(CFLAGS) /Fo$(HTTP_SENDER_INTDIR2)\ /c $< +{$(HTTP_SENDER_SRC)\ntlm}.c{$(HTTP_SENDER_INTDIR3)}.obj :: + $(CC) $(CFLAGS) /Fo$(HTTP_SENDER_INTDIR3)\ /c $< + + +{$(HTTP_SENDER_SRC)\ntlm\heimdal}.c{$(HTTP_SENDER_INTDIR4)}.obj :: + $(CC) $(CFLAGS) /Fo$(HTTP_SENDER_INTDIR4)\ /c $< + !if "$(ENABLE_SSL)" == "1" !if "$(ENABLE_LIBCURL)" == "1" HTTP_SENDER_OBJS = $(HTTP_SENDER_OBJS) \ @@ -671,6 +699,14 @@ $(HTTP_SENDER_OBJS) : $(HTTP_SENDER_INTDIR) $(HTTP_SENDER_INTDIR2) $(HTTP_SENDER_OBJS) : $(HTTP_SENDER_INTDIR) !endif +!if "$(ENABLE_NTLM)" == "1" +HTTP_SENDER_OBJS = $(HTTP_SENDER_OBJS) \ + $(HTTP_SENDER_INTDIR3)\*.obj \ + $(HTTP_SENDER_INTDIR4)\*.obj + +$(HTTP_SENDER_OBJS) : $(HTTP_SENDER_INTDIR3) $(HTTP_SENDER_INTDIR4) +!endif + $(AXIS2_LIBS)\$(AXIS2_HTTP_SENDER).dll : $(HTTP_SENDER_OBJS) $(LD) $(LDFLAGS) $(HTTP_SENDER_OBJS) $(AXUTIL).lib \ $(AXIOM).lib $(AXIS2_PARSER).lib $(LIBS) $(AXIS2_ENGINE).lib \ -- cgit v1.1-32-gdbae