aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2008-11-11 17:43:02 +0000
committerGunter Knauf <gk@gknw.de>2008-11-11 17:43:02 +0000
commit87c4136bd4f67ad4dae26f1ac1ef0ff4d925cdcf (patch)
treed516b237c2f12bc23354cbf0c3b302e3d90375d1 /lib
parent09e027bc9dd4114dbf032aca8d896e821633c988 (diff)
added libidn build.
Diffstat (limited to 'lib')
-rw-r--r--lib/Makefile.m3211
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/Makefile.m32 b/lib/Makefile.m32
index 615d07805..6ed79bc7e 100644
--- a/lib/Makefile.m32
+++ b/lib/Makefile.m32
@@ -5,7 +5,7 @@
## and optionally OpenSSL (0.9.8), libssh2 (0.18), zlib (1.2.3)
##
## Usage:
-## mingw32-make -f Makefile.m32 [SSL=1] [SSH2=1] [ZLIB=1] [SSPI=1] [IPV6=1] [DYN=1]
+## mingw32-make -f Makefile.m32 [SSL=1] [SSH2=1] [ZLIB=1] [IDN=1] [SSPI=1] [IPV6=1] [DYN=1]
##
## Hint: you can also set environment vars to control the build, f.e.:
## set ZLIB_PATH=c:/zlib-1.2.3
@@ -27,6 +27,10 @@ endif
ifndef LIBSSH2_PATH
LIBSSH2_PATH = ../../libssh2-0.18
endif
+# Edit the path below to point to the base of your libidn package.
+ifndef LIBIDN_PATH
+LIBIDN_PATH = ../../libidn-1.9
+endif
# Edit the path below to point to the base of your Novell LDAP NDK.
ifndef LDAP_SDK
LDAP_SDK = c:/novell/ndk/cldapsdk/win32
@@ -72,6 +76,11 @@ ifdef ZLIB
CFLAGS += -DHAVE_LIBZ -DHAVE_ZLIB_H
DLL_LIBS += -L$(ZLIB_PATH) -lz
endif
+ifdef IDN
+ INCLUDES += -I"$(LIBIDN_PATH)/include"
+ CFLAGS += -DUSE_LIBIDN
+ DLL_LIBS += -L$(LIBIDN_PATH)/lib -lidn
+endif
ifdef SSPI
CFLAGS += -DUSE_WINDOWS_SSPI
endif