Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 1 | #*************************************************************************** |
| 2 | # _ _ ____ _ |
| 3 | # Project ___| | | | _ \| | |
| 4 | # / __| | | | |_) | | |
| 5 | # | (__| |_| | _ <| |___ |
| 6 | # \___|\___/|_| \_\_____| |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 7 | # |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 8 | # Copyright (C) 1999 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 9 | # |
| 10 | # This software is licensed as described in the file COPYING, which |
| 11 | # you should have received as part of this distribution. The terms |
| 12 | # are also available at https://curl.haxx.se/docs/copyright.html. |
| 13 | # |
| 14 | # You may opt to use, copy, modify, merge, publish, distribute and/or sell |
| 15 | # copies of the Software, and permit persons to whom the Software is |
| 16 | # furnished to do so, under the terms of the COPYING file. |
| 17 | # |
| 18 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 19 | # KIND, either express or implied. |
| 20 | # |
| 21 | #*************************************************************************** |
| 22 | |
| 23 | ########################################################################### |
| 24 | # |
| 25 | ## Makefile for building libcurl.a with MingW (GCC-3.2 or later) |
| 26 | ## and optionally OpenSSL (1.0.2a), libssh2 (1.5), zlib (1.2.8), librtmp (2.4) |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 27 | ## |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 28 | ## Usage: mingw32-make -f Makefile.m32 CFG=-feature1[-feature2][-feature3][...] |
| 29 | ## Example: mingw32-make -f Makefile.m32 CFG=-zlib-ssl-sspi-winidn |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 30 | ## |
| 31 | ## Hint: you can also set environment vars to control the build, f.e.: |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 32 | ## set ZLIB_PATH=c:/zlib-1.2.8 |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 33 | ## set ZLIB=1 |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 34 | # |
| 35 | ########################################################################### |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 36 | |
| 37 | # Edit the path below to point to the base of your Zlib sources. |
| 38 | ifndef ZLIB_PATH |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 39 | ZLIB_PATH = ../../zlib-1.2.8 |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 40 | endif |
| 41 | # Edit the path below to point to the base of your OpenSSL package. |
| 42 | ifndef OPENSSL_PATH |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 43 | OPENSSL_PATH = ../../openssl-1.0.2a |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 44 | endif |
| 45 | # Edit the path below to point to the base of your LibSSH2 package. |
| 46 | ifndef LIBSSH2_PATH |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 47 | LIBSSH2_PATH = ../../libssh2-1.5.0 |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 48 | endif |
| 49 | # Edit the path below to point to the base of your librtmp package. |
| 50 | ifndef LIBRTMP_PATH |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 51 | LIBRTMP_PATH = ../../librtmp-2.4 |
| 52 | endif |
| 53 | # Edit the path below to point to the base of your libidn package. |
| 54 | ifndef LIBIDN_PATH |
| 55 | LIBIDN_PATH = ../../libidn-1.32 |
| 56 | endif |
| 57 | # Edit the path below to point to the base of your MS IDN package. |
| 58 | # Microsoft Internationalized Domain Names (IDN) Mitigation APIs 1.1 |
| 59 | # https://www.microsoft.com/en-us/download/details.aspx?id=734 |
| 60 | ifndef WINIDN_PATH |
| 61 | WINIDN_PATH = ../../Microsoft IDN Mitigation APIs |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 62 | endif |
| 63 | # Edit the path below to point to the base of your Novell LDAP NDK. |
| 64 | ifndef LDAP_SDK |
| 65 | LDAP_SDK = c:/novell/ndk/cldapsdk/win32 |
| 66 | endif |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 67 | # Edit the path below to point to the base of your nghttp2 package. |
| 68 | ifndef NGHTTP2_PATH |
| 69 | NGHTTP2_PATH = ../../nghttp2-1.0.0 |
| 70 | endif |
| 71 | |
| 72 | PROOT = .. |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 73 | |
| 74 | # Edit the path below to point to the base of your c-ares package. |
| 75 | ifndef LIBCARES_PATH |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 76 | LIBCARES_PATH = $(PROOT)/ares |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 77 | endif |
| 78 | |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 79 | CC = $(CROSSPREFIX)gcc |
| 80 | CFLAGS = $(CURL_CFLAG_EXTRAS) -g -O2 -Wall |
| 81 | CFLAGS += -fno-strict-aliasing |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 82 | # comment LDFLAGS below to keep debug info |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 83 | LDFLAGS = $(CURL_LDFLAG_EXTRAS) $(CURL_LDFLAG_EXTRAS_DLL) -s |
| 84 | AR = $(CROSSPREFIX)ar |
| 85 | RANLIB = $(CROSSPREFIX)ranlib |
| 86 | RC = $(CROSSPREFIX)windres |
| 87 | RCFLAGS = --include-dir=$(PROOT)/include -DDEBUGBUILD=0 -O COFF |
| 88 | STRIP = $(CROSSPREFIX)strip -g |
| 89 | |
| 90 | # Set environment var ARCH to your architecture to override autodetection. |
| 91 | ifndef ARCH |
| 92 | ifeq ($(findstring x86_64,$(shell $(CC) -dumpmachine)),x86_64) |
| 93 | ARCH = w64 |
| 94 | else |
| 95 | ARCH = w32 |
| 96 | endif |
| 97 | endif |
| 98 | |
| 99 | ifeq ($(ARCH),w64) |
| 100 | CFLAGS += -m64 -D_AMD64_ |
| 101 | LDFLAGS += -m64 |
| 102 | RCFLAGS += -F pe-x86-64 |
| 103 | else |
| 104 | CFLAGS += -m32 |
| 105 | LDFLAGS += -m32 |
| 106 | RCFLAGS += -F pe-i386 |
| 107 | endif |
| 108 | |
| 109 | # Platform-dependent helper tool macros |
| 110 | ifeq ($(findstring /sh,$(SHELL)),/sh) |
| 111 | DEL = rm -f $1 |
| 112 | RMDIR = rm -fr $1 |
| 113 | MKDIR = mkdir -p $1 |
| 114 | COPY = -cp -afv $1 $2 |
| 115 | #COPYR = -cp -afr $1/* $2 |
| 116 | COPYR = -rsync -aC $1/* $2 |
| 117 | TOUCH = touch $1 |
| 118 | CAT = cat |
| 119 | ECHONL = echo "" |
| 120 | DL = ' |
| 121 | else |
| 122 | ifeq "$(OS)" "Windows_NT" |
| 123 | DEL = -del 2>NUL /q /f $(subst /,\,$1) |
| 124 | RMDIR = -rd 2>NUL /q /s $(subst /,\,$1) |
| 125 | else |
| 126 | DEL = -del 2>NUL $(subst /,\,$1) |
| 127 | RMDIR = -deltree 2>NUL /y $(subst /,\,$1) |
| 128 | endif |
| 129 | MKDIR = -md 2>NUL $(subst /,\,$1) |
| 130 | COPY = -copy 2>NUL /y $(subst /,\,$1) $(subst /,\,$2) |
| 131 | COPYR = -xcopy 2>NUL /q /y /e $(subst /,\,$1) $(subst /,\,$2) |
| 132 | TOUCH = copy 2>&1>NUL /b $(subst /,\,$1) +,, |
| 133 | CAT = type |
| 134 | ECHONL = $(ComSpec) /c echo. |
| 135 | endif |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 136 | |
| 137 | ######################################################## |
| 138 | ## Nothing more to do below this line! |
| 139 | |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 140 | ifeq ($(findstring -dyn,$(CFG)),-dyn) |
| 141 | DYN = 1 |
| 142 | endif |
| 143 | ifeq ($(findstring -ares,$(CFG)),-ares) |
| 144 | ARES = 1 |
| 145 | endif |
| 146 | ifeq ($(findstring -sync,$(CFG)),-sync) |
| 147 | SYNC = 1 |
| 148 | endif |
| 149 | ifeq ($(findstring -rtmp,$(CFG)),-rtmp) |
| 150 | RTMP = 1 |
| 151 | SSL = 1 |
| 152 | ZLIB = 1 |
| 153 | endif |
| 154 | ifeq ($(findstring -ssh2,$(CFG)),-ssh2) |
| 155 | SSH2 = 1 |
| 156 | ifneq ($(findstring -winssl,$(CFG)),-winssl) |
| 157 | SSL = 1 |
| 158 | endif |
| 159 | ZLIB = 1 |
| 160 | endif |
| 161 | ifeq ($(findstring -ssl,$(CFG)),-ssl) |
| 162 | SSL = 1 |
| 163 | endif |
| 164 | ifeq ($(findstring -srp,$(CFG)),-srp) |
| 165 | SRP = 1 |
| 166 | endif |
| 167 | ifeq ($(findstring -zlib,$(CFG)),-zlib) |
| 168 | ZLIB = 1 |
| 169 | endif |
| 170 | ifeq ($(findstring -idn,$(CFG)),-idn) |
| 171 | IDN = 1 |
| 172 | endif |
| 173 | ifeq ($(findstring -winidn,$(CFG)),-winidn) |
| 174 | WINIDN = 1 |
| 175 | endif |
| 176 | ifeq ($(findstring -sspi,$(CFG)),-sspi) |
| 177 | SSPI = 1 |
| 178 | endif |
| 179 | ifeq ($(findstring -ldaps,$(CFG)),-ldaps) |
| 180 | LDAPS = 1 |
| 181 | endif |
| 182 | ifeq ($(findstring -ipv6,$(CFG)),-ipv6) |
| 183 | IPV6 = 1 |
| 184 | endif |
| 185 | ifeq ($(findstring -winssl,$(CFG)),-winssl) |
| 186 | WINSSL = 1 |
| 187 | SSPI = 1 |
| 188 | endif |
| 189 | ifeq ($(findstring -nghttp2,$(CFG)),-nghttp2) |
| 190 | NGHTTP2 = 1 |
| 191 | endif |
| 192 | |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 193 | INCLUDES = -I. -I../include |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 194 | CFLAGS += -DBUILDING_LIBCURL |
| 195 | |
| 196 | ifdef SYNC |
| 197 | CFLAGS += -DUSE_SYNC_DNS |
| 198 | else |
| 199 | ifdef ARES |
| 200 | INCLUDES += -I"$(LIBCARES_PATH)" |
| 201 | CFLAGS += -DUSE_ARES -DCARES_STATICLIB |
| 202 | DLL_LIBS += -L"$(LIBCARES_PATH)" -lcares |
| 203 | libcurl_dll_DEPENDENCIES = $(LIBCARES_PATH)/libcares.a |
| 204 | endif |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 205 | endif |
| 206 | ifdef RTMP |
| 207 | INCLUDES += -I"$(LIBRTMP_PATH)" |
| 208 | CFLAGS += -DUSE_LIBRTMP |
| 209 | DLL_LIBS += -L"$(LIBRTMP_PATH)/librtmp" -lrtmp -lwinmm |
| 210 | endif |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 211 | ifdef NGHTTP2 |
| 212 | INCLUDES += -I"$(NGHTTP2_PATH)/include" |
| 213 | CFLAGS += -DUSE_NGHTTP2 |
| 214 | DLL_LIBS += -L"$(NGHTTP2_PATH)/lib" -lnghttp2 |
| 215 | endif |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 216 | ifdef SSH2 |
| 217 | INCLUDES += -I"$(LIBSSH2_PATH)/include" -I"$(LIBSSH2_PATH)/win32" |
| 218 | CFLAGS += -DUSE_LIBSSH2 -DHAVE_LIBSSH2_H |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 219 | DLL_LIBS += -L"$(LIBSSH2_PATH)/win32" -lssh2 |
| 220 | ifdef WINSSL |
| 221 | ifndef DYN |
| 222 | DLL_LIBS += -lbcrypt -lcrypt32 |
| 223 | endif |
| 224 | endif |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 225 | endif |
| 226 | ifdef SSL |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 227 | ifndef OPENSSL_INCLUDE |
| 228 | ifeq "$(wildcard $(OPENSSL_PATH)/outinc)" "$(OPENSSL_PATH)/outinc" |
| 229 | OPENSSL_INCLUDE = $(OPENSSL_PATH)/outinc |
| 230 | endif |
| 231 | ifeq "$(wildcard $(OPENSSL_PATH)/include)" "$(OPENSSL_PATH)/include" |
| 232 | OPENSSL_INCLUDE = $(OPENSSL_PATH)/include |
| 233 | endif |
| 234 | endif |
| 235 | ifneq "$(wildcard $(OPENSSL_INCLUDE)/openssl/opensslv.h)" "$(OPENSSL_INCLUDE)/openssl/opensslv.h" |
| 236 | $(error Invalid path to OpenSSL package: $(OPENSSL_PATH)) |
| 237 | endif |
| 238 | ifndef OPENSSL_LIBPATH |
| 239 | ifeq "$(wildcard $(OPENSSL_PATH)/out)" "$(OPENSSL_PATH)/out" |
| 240 | OPENSSL_LIBPATH = $(OPENSSL_PATH)/out |
| 241 | OPENSSL_LIBS = -leay32 -lssl32 |
| 242 | endif |
| 243 | ifeq "$(wildcard $(OPENSSL_PATH)/lib)" "$(OPENSSL_PATH)/lib" |
| 244 | OPENSSL_LIBPATH = $(OPENSSL_PATH)/lib |
| 245 | OPENSSL_LIBS = -lcrypto -lssl |
| 246 | endif |
| 247 | endif |
| 248 | ifndef DYN |
| 249 | OPENSSL_LIBS += -lgdi32 -lcrypt32 |
| 250 | endif |
| 251 | INCLUDES += -I"$(OPENSSL_INCLUDE)" |
| 252 | CFLAGS += -DUSE_OPENSSL -DHAVE_OPENSSL_ENGINE_H -DHAVE_OPENSSL_PKCS12_H \ |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 253 | -DHAVE_ENGINE_LOAD_BUILTIN_ENGINES -DOPENSSL_NO_KRB5 \ |
| 254 | -DCURL_WANTS_CA_BUNDLE_ENV |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 255 | DLL_LIBS += -L"$(OPENSSL_LIBPATH)" $(OPENSSL_LIBS) |
| 256 | ifdef SRP |
| 257 | ifeq "$(wildcard $(OPENSSL_INCLUDE)/openssl/srp.h)" "$(OPENSSL_INCLUDE)/openssl/srp.h" |
| 258 | CFLAGS += -DHAVE_OPENSSL_SRP -DUSE_TLS_SRP |
| 259 | endif |
| 260 | endif |
| 261 | else |
| 262 | ifdef WINSSL |
| 263 | DLL_LIBS += -lcrypt32 |
| 264 | endif |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 265 | endif |
| 266 | ifdef ZLIB |
| 267 | INCLUDES += -I"$(ZLIB_PATH)" |
| 268 | CFLAGS += -DHAVE_LIBZ -DHAVE_ZLIB_H |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 269 | DLL_LIBS += -L"$(ZLIB_PATH)" -lz |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 270 | endif |
| 271 | ifdef IDN |
| 272 | INCLUDES += -I"$(LIBIDN_PATH)/include" |
| 273 | CFLAGS += -DUSE_LIBIDN |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 274 | DLL_LIBS += -L"$(LIBIDN_PATH)/lib" -lidn |
| 275 | else |
| 276 | ifdef WINIDN |
| 277 | CFLAGS += -DUSE_WIN32_IDN |
| 278 | CFLAGS += -DWANT_IDN_PROTOTYPES |
| 279 | DLL_LIBS += -L"$(WINIDN_PATH)" -lnormaliz |
| 280 | endif |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 281 | endif |
| 282 | ifdef SSPI |
| 283 | CFLAGS += -DUSE_WINDOWS_SSPI |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 284 | ifdef WINSSL |
| 285 | CFLAGS += -DUSE_SCHANNEL |
| 286 | endif |
| 287 | endif |
| 288 | ifdef SPNEGO |
| 289 | CFLAGS += -DHAVE_SPNEGO |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 290 | endif |
| 291 | ifdef IPV6 |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 292 | CFLAGS += -DENABLE_IPV6 -D_WIN32_WINNT=0x0501 |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 293 | endif |
| 294 | ifdef LDAPS |
| 295 | CFLAGS += -DHAVE_LDAP_SSL |
| 296 | endif |
| 297 | ifdef USE_LDAP_NOVELL |
| 298 | INCLUDES += -I"$(LDAP_SDK)/inc" |
| 299 | CFLAGS += -DCURL_HAS_NOVELL_LDAPSDK |
| 300 | DLL_LIBS += -L"$(LDAP_SDK)/lib/mscvc" -lldapsdk -lldapssl -lldapx |
| 301 | endif |
| 302 | ifdef USE_LDAP_OPENLDAP |
| 303 | INCLUDES += -I"$(LDAP_SDK)/include" |
| 304 | CFLAGS += -DCURL_HAS_OPENLDAP_LDAPSDK |
| 305 | DLL_LIBS += -L"$(LDAP_SDK)/lib" -lldap -llber |
| 306 | endif |
| 307 | ifndef USE_LDAP_NOVELL |
| 308 | ifndef USE_LDAP_OPENLDAP |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 309 | DLL_LIBS += -lwldap32 |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 310 | endif |
| 311 | endif |
| 312 | DLL_LIBS += -lws2_32 |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 313 | |
| 314 | # Makefile.inc provides the CSOURCES and HHEADERS defines |
| 315 | include Makefile.inc |
| 316 | |
| 317 | libcurl_dll_LIBRARY = libcurl.dll |
| 318 | libcurl_dll_a_LIBRARY = libcurldll.a |
| 319 | libcurl_a_LIBRARY = libcurl.a |
| 320 | |
| 321 | libcurl_a_OBJECTS := $(patsubst %.c,%.o,$(strip $(CSOURCES))) |
| 322 | libcurl_a_DEPENDENCIES := $(strip $(CSOURCES) $(HHEADERS)) |
| 323 | |
| 324 | RESOURCE = libcurl.res |
| 325 | |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 326 | |
| 327 | all: $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY) |
| 328 | |
| 329 | $(libcurl_a_LIBRARY): $(libcurl_a_OBJECTS) $(libcurl_a_DEPENDENCIES) |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 330 | @$(call DEL, $@) |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 331 | $(AR) cru $@ $(libcurl_a_OBJECTS) |
| 332 | $(RANLIB) $@ |
| 333 | $(STRIP) $@ |
| 334 | |
| 335 | # remove the last line above to keep debug info |
| 336 | |
| 337 | $(libcurl_dll_LIBRARY): $(libcurl_a_OBJECTS) $(RESOURCE) $(libcurl_dll_DEPENDENCIES) |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 338 | @$(call DEL, $@) |
| 339 | $(CC) $(LDFLAGS) -shared -o $@ \ |
| 340 | -Wl,--output-def,$(@:.dll=.def),--out-implib,$(libcurl_dll_a_LIBRARY) \ |
| 341 | $(libcurl_a_OBJECTS) $(RESOURCE) $(DLL_LIBS) |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 342 | |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 343 | %.o: %.c $(PROOT)/include/curl/curlbuild.h |
| 344 | $(CC) $(INCLUDES) $(CFLAGS) -c $< -o $@ |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 345 | |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 346 | %.res: %.rc |
| 347 | $(RC) $(RCFLAGS) -i $< -o $@ |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 348 | |
| 349 | clean: |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 350 | ifeq "$(wildcard $(PROOT)/include/curl/curlbuild.h.dist)" "$(PROOT)/include/curl/curlbuild.h.dist" |
| 351 | @$(call DEL, $(PROOT)/include/curl/curlbuild.h) |
| 352 | endif |
| 353 | @$(call DEL, $(libcurl_a_OBJECTS) $(RESOURCE)) |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 354 | |
| 355 | distclean vclean: clean |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 356 | @$(call DEL, $(libcurl_a_LIBRARY) $(libcurl_dll_LIBRARY) $(libcurl_dll_LIBRARY:.dll=.def) $(libcurl_dll_a_LIBRARY)) |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 357 | |
Dirk Vogt | a7d7f96 | 2016-12-01 10:50:48 +0100 | [diff] [blame] | 358 | $(PROOT)/include/curl/curlbuild.h: |
| 359 | @echo Creating $@ |
| 360 | @$(call COPY, $@.dist, $@) |
| 9487f7f | 2011-08-03 07:05:30 -0700 | [diff] [blame] | 361 | |
| 362 | $(LIBCARES_PATH)/libcares.a: |
| 363 | $(MAKE) -C $(LIBCARES_PATH) -f Makefile.m32 |