summaryrefslogtreecommitdiff
path: root/src/Makefile.m32
diff options
context:
space:
mode:
authorGuenter Knauf <lists@gknw.net>2012-06-08 14:11:36 +0200
committerGuenter Knauf <lists@gknw.net>2012-06-08 14:16:43 +0200
commit186b101deb1e1b46b4f2797e8aed9ce6c774fcae (patch)
tree219e9b29ad4b6e2c2600fc97d4ccccddbaf3bf39 /src/Makefile.m32
parentd2fc8b4a5f53ce638cacae56375b120c0a687978 (diff)
downloadcurl-186b101deb1e1b46b4f2797e8aed9ce6c774fcae.tar.gz
Added metalink support to MinGW builds.
Diffstat (limited to 'src/Makefile.m32')
-rw-r--r--src/Makefile.m3212
1 files changed, 12 insertions, 0 deletions
diff --git a/src/Makefile.m32 b/src/Makefile.m32
index decfaa2ba..5aea90829 100644
--- a/src/Makefile.m32
+++ b/src/Makefile.m32
@@ -28,6 +28,10 @@ endif
ifndef LIBRTMP_PATH
LIBRTMP_PATH = ../../librtmp-2.3
endif
+# Edit the path below to point to the base of your libmetalink package.
+ifndef LIBMETALINK_PATH
+LIBMETALINK_PATH = ../../libmetalink-0.0.3
+endif
# Edit the path below to point to the base of your libidn package.
ifndef LIBIDN_PATH
LIBIDN_PATH = ../../libidn-1.18
@@ -116,6 +120,9 @@ endif
ifeq ($(findstring -ipv6,$(CFG)),-ipv6)
IPV6 = 1
endif
+ifeq ($(findstring -metalink,$(CFG)),-metalink)
+METALINK = 1
+endif
INCLUDES = -I. -I.. -I../include -I../lib
@@ -176,6 +183,11 @@ ifdef WINIDN
curl_LDADD += -L"$(WINIDN_PATH)" -lnormaliz
endif
endif
+ifdef METALINK
+ INCLUDES += -I"$(LIBMETALINK_PATH)/include"
+ CFLAGS += -DUSE_METALINK
+ curl_LDADD += -L"$(LIBMETALINK_PATH)/lib" -lmetalink
+endif
ifdef SSPI
CFLAGS += -DUSE_WINDOWS_SSPI
endif