From 186b101deb1e1b46b4f2797e8aed9ce6c774fcae Mon Sep 17 00:00:00 2001 From: Guenter Knauf Date: Fri, 8 Jun 2012 14:11:36 +0200 Subject: Added metalink support to MinGW builds. --- src/Makefile.m32 | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/Makefile.m32') 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 -- cgit v1.2.3