2010-12-20 15:51:09 -05:00
|
|
|
#***************************************************************************
|
|
|
|
# _ _ ____ _
|
|
|
|
# Project ___| | | | _ \| |
|
|
|
|
# / __| | | | |_) | |
|
|
|
|
# | (__| |_| | _ <| |___
|
|
|
|
# \___|\___/|_| \_\_____|
|
|
|
|
#
|
2015-03-05 04:57:52 -05:00
|
|
|
# Copyright (C) 1999 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al.
|
2010-12-20 15:51:09 -05:00
|
|
|
#
|
|
|
|
# This software is licensed as described in the file COPYING, which
|
|
|
|
# you should have received as part of this distribution. The terms
|
|
|
|
# are also available at http://curl.haxx.se/docs/copyright.html.
|
|
|
|
#
|
|
|
|
# You may opt to use, copy, modify, merge, publish, distribute and/or sell
|
|
|
|
# copies of the Software, and permit persons to whom the Software is
|
|
|
|
# furnished to do so, under the terms of the COPYING file.
|
|
|
|
#
|
|
|
|
# This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
# KIND, either express or implied.
|
|
|
|
#
|
|
|
|
#***************************************************************************
|
|
|
|
|
2011-08-13 16:30:56 -04:00
|
|
|
# All files in the Makefile.vc* series are generated automatically from the
|
|
|
|
# one made for MSVC version 6. Alas, if you want to do changes to any of the
|
2012-06-11 13:04:16 -04:00
|
|
|
# files and send back to the project, edit the version six, make your diff and
|
2011-08-13 16:30:56 -04:00
|
|
|
# mail curl-users.
|
|
|
|
|
2007-07-15 09:00:39 -04:00
|
|
|
#############################################################
|
2004-11-16 12:15:07 -05:00
|
|
|
#
|
2001-05-21 17:42:38 -04:00
|
|
|
## Makefile for building curl.exe with MSVC6
|
2002-02-06 11:03:28 -05:00
|
|
|
## Use: nmake -f makefile.vc6 [release | debug] [CFG=release-ssl]
|
2001-05-21 17:42:38 -04:00
|
|
|
## (default is release)
|
2002-02-06 11:03:28 -05:00
|
|
|
## "nmake -f makefile.vc6 CFG=release-ssl" statically links OpenSSL
|
|
|
|
## into curl.exe producing a standalone SSL-enabled executable.
|
2001-05-21 17:42:38 -04:00
|
|
|
##
|
2007-07-15 09:00:39 -04:00
|
|
|
#
|
|
|
|
#############################################################
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
PROGRAM_NAME = curl.exe
|
|
|
|
|
2010-12-20 15:51:09 -05:00
|
|
|
# -------------------------------------------
|
|
|
|
# Verify that current subdir is curl's 'src'
|
|
|
|
# -------------------------------------------
|
|
|
|
|
2011-10-04 18:03:20 -04:00
|
|
|
!IF ! EXIST(.\tool_main.c)
|
2010-12-20 15:51:09 -05:00
|
|
|
! MESSAGE Can not process this makefile from outside of curl's 'src' subdirectory.
|
|
|
|
! MESSAGE Change to curl's 'src' subdirectory, and try again.
|
|
|
|
! ERROR See previous message.
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
# ------------------------------------------------
|
|
|
|
# Makefile.msvc.names provides libcurl file names
|
|
|
|
# ------------------------------------------------
|
|
|
|
|
2013-02-06 17:14:11 -05:00
|
|
|
!INCLUDE ..\winbuild\Makefile.msvc.names
|
2010-12-20 15:51:09 -05:00
|
|
|
|
|
|
|
|
2010-08-09 23:51:38 -04:00
|
|
|
!IFNDEF OPENSSL_PATH
|
2015-04-30 02:29:00 -04:00
|
|
|
OPENSSL_PATH = ../../openssl-1.0.2a
|
2004-07-05 21:18:35 -04:00
|
|
|
!ENDIF
|
|
|
|
|
2010-08-09 23:51:38 -04:00
|
|
|
!IFNDEF ZLIB_PATH
|
2013-05-11 11:08:00 -04:00
|
|
|
ZLIB_PATH = ../../zlib-1.2.8
|
2004-07-05 21:18:35 -04:00
|
|
|
!ENDIF
|
|
|
|
|
2007-03-09 17:26:59 -05:00
|
|
|
!IFNDEF MACHINE
|
|
|
|
MACHINE = X86
|
|
|
|
!ENDIF
|
|
|
|
|
2005-03-10 18:15:29 -05:00
|
|
|
# USE_WINDOWS_SSPI uses windows libraries to allow NTLM authentication
|
|
|
|
# without an openssl installation and offers the ability to authenticate
|
2007-07-15 09:00:39 -04:00
|
|
|
# using the "current logged in user". Since at least with MSVC6 the sspi.h
|
|
|
|
# header is broken it is either required to install the Windows SDK,
|
|
|
|
# or to fix sspi.h with adding this define at the beginning of sspi.h:
|
|
|
|
# #define FreeCredentialHandle FreeCredentialsHandle
|
2005-03-10 18:15:29 -05:00
|
|
|
#
|
|
|
|
# If, for some reason the Windows SDK is installed but not installed
|
|
|
|
# in the default location, you can specify WINDOWS_SDK_PATH.
|
|
|
|
# It can be downloaded from:
|
2015-04-30 02:29:00 -04:00
|
|
|
# https://msdn.microsoft.com/windows/bb980924.aspx
|
2005-03-10 18:15:29 -05:00
|
|
|
|
2008-02-28 06:34:08 -05:00
|
|
|
# WINDOWS_SSPI = 1
|
2005-03-10 18:15:29 -05:00
|
|
|
|
|
|
|
!IFDEF WINDOWS_SSPI
|
|
|
|
!IFNDEF WINDOWS_SDK_PATH
|
2011-01-12 23:55:09 -05:00
|
|
|
WINDOWS_SDK_PATH = "$(PROGRAMFILES)\Microsoft SDK"
|
2005-03-10 18:15:29 -05:00
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2001-05-21 17:42:38 -04:00
|
|
|
########################################################
|
|
|
|
## Nothing more to do below this line!
|
2012-06-11 13:04:16 -04:00
|
|
|
|
2014-11-08 12:47:08 -05:00
|
|
|
ZLIB_CFLAGS = /DHAVE_ZLIB_H /DHAVE_ZLIB /DHAVE_LIBZ /I "$(ZLIB_PATH)"
|
|
|
|
ZLIB_LFLAGS = "/LIBPATH:$(ZLIB_PATH)"
|
|
|
|
ZLIB_LIBS = zlib.lib
|
|
|
|
ZLIB_IMP_LIBS = zdll.lib
|
2005-01-18 05:17:34 -05:00
|
|
|
|
2015-03-05 04:57:52 -05:00
|
|
|
SSL_CFLAGS = /DUSE_OPENSSL
|
2005-01-18 05:17:34 -05:00
|
|
|
SSL_LFLAGS = /LIBPATH:"$(OPENSSL_PATH)/out32"
|
|
|
|
SSL_IMP_LFLAGS = /LIBPATH:"$(OPENSSL_PATH)/out32dll"
|
2012-09-24 04:26:15 -04:00
|
|
|
SSL_LIBS = libeay32.lib ssleay32.lib gdi32.lib user32.lib
|
2014-11-08 12:47:08 -05:00
|
|
|
WINLIBS = ws2_32.lib wldap32.lib advapi32.lib
|
2001-05-21 17:42:38 -04:00
|
|
|
|
2013-07-08 11:46:15 -04:00
|
|
|
WINSSL_CFLAGS = /DUSE_SCHANNEL
|
|
|
|
#WINSSL_LIBS = gdi32.lib user32.lib
|
|
|
|
|
2014-11-08 12:47:08 -05:00
|
|
|
!IFDEF USE_IDN
|
|
|
|
WINLIBS = $(WINLIBS) normaliz.lib
|
|
|
|
!ENDIF
|
|
|
|
|
2008-02-22 17:53:01 -05:00
|
|
|
# Runtime library configuration
|
|
|
|
RTLIB = /MD
|
|
|
|
RTLIBD = /MDd
|
|
|
|
|
|
|
|
!IF "$(RTLIBCFG)" == "static"
|
|
|
|
RTLIB = /MT
|
|
|
|
RTLIBD = /MTd
|
|
|
|
!ENDIF
|
|
|
|
|
2001-05-21 17:42:38 -04:00
|
|
|
## Release
|
2008-02-22 17:53:01 -05:00
|
|
|
CCR = cl.exe $(RTLIB) /O2 /DNDEBUG
|
2005-01-02 14:19:32 -05:00
|
|
|
LINKR = link.exe /incremental:no /libpath:"../lib"
|
2009-06-14 22:30:22 -04:00
|
|
|
RCR = rc.exe /dDEBUGBUILD=0
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
## Debug
|
2008-02-22 17:53:01 -05:00
|
|
|
CCD = cl.exe $(RTLIBD) /Gm /ZI /Od /D_DEBUG /GZ
|
2005-01-02 14:19:32 -05:00
|
|
|
LINKD = link.exe /incremental:yes /debug /libpath:"../lib"
|
2009-06-14 22:30:22 -04:00
|
|
|
RCD = rc.exe /dDEBUGBUILD=1
|
2004-11-13 09:17:24 -05:00
|
|
|
|
2011-06-21 14:05:06 -04:00
|
|
|
CFLAGS = /I../lib /I../include /nologo /W3 /GX /DWIN32 /YX /FD /c /D_BIND_TO_CURRENT_VCLIBS_VERSION=1
|
2007-03-09 17:26:59 -05:00
|
|
|
LFLAGS = /nologo /out:$(PROGRAM_NAME) /subsystem:console /machine:$(MACHINE)
|
2011-09-20 09:58:35 -04:00
|
|
|
RESFLAGS = /i../include
|
2001-05-21 17:42:38 -04:00
|
|
|
|
2007-10-24 05:28:36 -04:00
|
|
|
# This manifest thing is for VC8, enabled by the maketgz script that
|
|
|
|
# builds the VC8 version of this makefile. Left commented out in the VC6
|
|
|
|
# version!
|
|
|
|
#MANIFESTTOOL = mt -manifest $(PROGRAM_NAME).manifest -outputresource:$(PROGRAM_NAME);1
|
|
|
|
|
2005-03-10 18:15:29 -05:00
|
|
|
!IFDEF WINDOWS_SSPI
|
|
|
|
CFLAGS = $(CFLAGS) /DUSE_WINDOWS_SSPI /I$(WINDOWS_SDK_PATH)\include
|
|
|
|
!ENDIF
|
|
|
|
|
2001-05-21 17:42:38 -04:00
|
|
|
RELEASE_OBJS= \
|
2013-01-03 20:50:28 -05:00
|
|
|
nonblockr.obj \
|
|
|
|
rawstrr.obj \
|
|
|
|
strtoofftr.obj \
|
2014-04-05 15:45:39 -04:00
|
|
|
warnless.obj \
|
2011-10-03 16:59:38 -04:00
|
|
|
tool_binmoder.obj \
|
2011-09-19 12:18:17 -04:00
|
|
|
tool_bnamer.obj \
|
2011-09-24 11:38:16 -04:00
|
|
|
tool_cb_dbgr.obj \
|
|
|
|
tool_cb_hdrr.obj \
|
|
|
|
tool_cb_prgr.obj \
|
|
|
|
tool_cb_rear.obj \
|
|
|
|
tool_cb_seer.obj \
|
|
|
|
tool_cb_wrtr.obj \
|
2011-09-16 15:44:45 -04:00
|
|
|
tool_cfgabler.obj \
|
2011-09-16 09:31:29 -04:00
|
|
|
tool_convertr.obj \
|
2011-09-19 12:18:17 -04:00
|
|
|
tool_dirhier.obj \
|
|
|
|
tool_doswinr.obj \
|
2011-09-20 19:54:14 -04:00
|
|
|
tool_easysrcr.obj \
|
2011-10-03 16:59:38 -04:00
|
|
|
tool_formparser.obj \
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_getparamr.obj \
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_getpassr.obj \
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_helpr.obj \
|
|
|
|
tool_helpersr.obj \
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_homedirr.obj \
|
2012-12-26 17:30:54 -05:00
|
|
|
tool_hugehelpr.obj \
|
2011-09-22 05:16:34 -04:00
|
|
|
tool_libinfor.obj \
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_mainr.obj \
|
2012-06-07 17:49:27 -04:00
|
|
|
tool_metalinkr.obj \
|
2011-09-16 13:46:01 -04:00
|
|
|
tool_mfilesr.obj \
|
2011-09-20 09:58:35 -04:00
|
|
|
tool_msgsr.obj \
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_operater.obj \
|
|
|
|
tool_operhlpr.obj \
|
|
|
|
tool_panykeyr.obj \
|
|
|
|
tool_paramhlpr.obj \
|
|
|
|
tool_parsecfgr.obj \
|
2011-09-20 19:54:14 -04:00
|
|
|
tool_setoptr.obj \
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_sleepr.obj \
|
2011-10-05 14:16:16 -04:00
|
|
|
tool_urlglobr.obj \
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_utilr.obj \
|
2011-09-19 12:18:17 -04:00
|
|
|
tool_vmsr.obj \
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_writeenvr.obj \
|
|
|
|
tool_writeoutr.obj \
|
|
|
|
tool_xattrr.obj \
|
2004-03-04 04:56:39 -05:00
|
|
|
curlr.res
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
DEBUG_OBJS= \
|
2013-01-03 20:50:28 -05:00
|
|
|
nonblockd.obj \
|
|
|
|
rawstrd.obj \
|
|
|
|
strtoofftd.obj \
|
2014-04-05 19:53:47 -04:00
|
|
|
warnlessd.obj \
|
2011-10-03 16:59:38 -04:00
|
|
|
tool_binmoded.obj \
|
2011-09-19 12:18:17 -04:00
|
|
|
tool_bnamed.obj \
|
2011-09-24 11:38:16 -04:00
|
|
|
tool_cb_dbgd.obj \
|
|
|
|
tool_cb_hdrd.obj \
|
|
|
|
tool_cb_prgd.obj \
|
|
|
|
tool_cb_read.obj \
|
|
|
|
tool_cb_seed.obj \
|
|
|
|
tool_cb_wrtd.obj \
|
2011-09-16 15:44:45 -04:00
|
|
|
tool_cfgabled.obj \
|
2011-09-16 09:31:29 -04:00
|
|
|
tool_convertd.obj \
|
2011-09-19 12:18:17 -04:00
|
|
|
tool_dirhied.obj \
|
|
|
|
tool_doswind.obj \
|
2011-09-20 19:54:14 -04:00
|
|
|
tool_easysrcd.obj \
|
2011-10-03 16:59:38 -04:00
|
|
|
tool_formparsed.obj \
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_getparamd.obj \
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_getpassd.obj \
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_helpd.obj \
|
|
|
|
tool_helpersd.obj \
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_homedird.obj \
|
2012-12-26 17:30:54 -05:00
|
|
|
tool_hugehelpd.obj \
|
2011-09-22 05:16:34 -04:00
|
|
|
tool_libinfod.obj \
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_maind.obj \
|
2012-06-07 17:49:27 -04:00
|
|
|
tool_metalinkd.obj \
|
2011-09-16 13:46:01 -04:00
|
|
|
tool_mfilesd.obj \
|
2011-09-20 09:58:35 -04:00
|
|
|
tool_msgsd.obj \
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_operated.obj \
|
|
|
|
tool_operhlpd.obj \
|
|
|
|
tool_panykeyd.obj \
|
|
|
|
tool_paramhlpd.obj \
|
|
|
|
tool_parsecfgd.obj \
|
2011-09-20 19:54:14 -04:00
|
|
|
tool_setoptd.obj \
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_sleepd.obj \
|
2011-10-05 14:16:16 -04:00
|
|
|
tool_urlglobd.obj \
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_utild.obj \
|
2011-09-19 12:18:17 -04:00
|
|
|
tool_vmsd.obj \
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_writeenvd.obj \
|
|
|
|
tool_writeoutd.obj \
|
|
|
|
tool_xattrd.obj \
|
2004-03-04 04:56:39 -05:00
|
|
|
curld.res
|
2004-07-11 08:28:07 -04:00
|
|
|
|
2004-11-13 09:17:24 -05:00
|
|
|
#################################################
|
2005-01-18 05:17:34 -05:00
|
|
|
# If CFG not specified, use static libs
|
|
|
|
|
|
|
|
CFLAGS = $(CFLAGS) /DCURL_STATICLIB
|
2010-12-20 15:51:09 -05:00
|
|
|
LINKLIBS = $(LIBCURL_STA_LIB_REL)
|
|
|
|
LINKLIBS_DEBUG = $(LIBCURL_STA_LIB_DBG)
|
2005-01-18 05:17:34 -05:00
|
|
|
|
|
|
|
#################################################
|
|
|
|
# release dynamic library
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-dll"
|
2010-12-20 15:51:09 -05:00
|
|
|
LINKLIBS = $(LIBCURL_IMP_LIB_REL)
|
|
|
|
LINKLIBS_DEBUG = $(LIBCURL_IMP_LIB_DBG)
|
2005-01-18 05:17:34 -05:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
#################################################
|
|
|
|
# release static library with zlib
|
2004-07-11 08:28:07 -04:00
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-zlib"
|
2005-01-18 05:17:34 -05:00
|
|
|
CFLAGS = $(CFLAGS) $(ZLIB_CFLAGS) /DCURL_STATICLIB
|
2010-12-20 15:51:09 -05:00
|
|
|
LINKLIBS = $(LIBCURL_STA_LIB_REL) $(ZLIB_LIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LIBCURL_STA_LIB_DBG) $(ZLIB_LIBS)
|
2005-01-18 05:17:34 -05:00
|
|
|
LFLAGS = $(LFLAGS) $(ZLIB_LFLAGS)
|
2004-07-11 08:28:07 -04:00
|
|
|
!ENDIF
|
|
|
|
|
2004-11-13 09:17:24 -05:00
|
|
|
#################################################
|
2005-01-18 05:17:34 -05:00
|
|
|
# release static library with ssl
|
2004-11-12 06:48:02 -05:00
|
|
|
|
2002-03-23 10:41:17 -05:00
|
|
|
!IF "$(CFG)" == "release-ssl"
|
2005-01-18 05:17:34 -05:00
|
|
|
CFLAGS = $(CFLAGS) $(SSL_CFLAGS) /DCURL_STATICLIB
|
2010-12-20 15:51:09 -05:00
|
|
|
LINKLIBS = $(LIBCURL_STA_LIB_REL) $(SSL_LIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LIBCURL_STA_LIB_DBG) $(SSL_LIBS)
|
2005-01-18 05:17:34 -05:00
|
|
|
LFLAGS = $(LFLAGS) $(SSL_LFLAGS)
|
2002-03-23 10:41:17 -05:00
|
|
|
!ENDIF
|
2004-03-04 04:56:39 -05:00
|
|
|
|
2004-11-13 09:17:24 -05:00
|
|
|
#################################################
|
2005-01-18 05:17:34 -05:00
|
|
|
# release dynamic library with dynamic ssl
|
2004-05-25 09:52:12 -04:00
|
|
|
|
2005-01-18 05:17:34 -05:00
|
|
|
!IF "$(CFG)" == "release-dll-ssl-dll"
|
|
|
|
CFLAGS = $(CFLAGS) $(SSL_CFLAGS)
|
2010-12-20 15:51:09 -05:00
|
|
|
LINKLIBS = $(LIBCURL_IMP_LIB_REL) $(SSL_LIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LIBCURL_IMP_LIB_DBG) $(SSL_LIBS)
|
2005-01-18 05:17:34 -05:00
|
|
|
LFLAGS = $(LFLAGS) $(SSL_IMP_LFLAGS)
|
2004-05-25 09:52:12 -04:00
|
|
|
!ENDIF
|
|
|
|
|
2004-11-13 09:17:24 -05:00
|
|
|
#################################################
|
2005-01-18 05:17:34 -05:00
|
|
|
# release static library with ssl and zlib
|
2004-11-12 06:48:02 -05:00
|
|
|
|
2004-07-11 08:28:07 -04:00
|
|
|
!IF "$(CFG)" == "release-ssl-zlib"
|
2005-01-18 05:17:34 -05:00
|
|
|
CFLAGS = $(CFLAGS) $(SSL_CFLAGS) $(ZLIB_CFLAGS) /DCURL_STATICLIB
|
2010-12-20 15:51:09 -05:00
|
|
|
LINKLIBS = $(LIBCURL_STA_LIB_REL) $(SSL_LIBS) $(ZLIB_LIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LIBCURL_STA_LIB_DBG) $(SSL_LIBS) $(ZLIB_LIBS)
|
2005-01-18 05:17:34 -05:00
|
|
|
LFLAGS = $(LFLAGS) $(SSL_LFLAGS) $(ZLIB_LFLAGS)
|
2004-07-11 08:28:07 -04:00
|
|
|
!ENDIF
|
|
|
|
|
2013-07-08 11:46:15 -04:00
|
|
|
#################################################
|
|
|
|
# release static library with winssl and zlib
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-winssl-zlib"
|
|
|
|
CFLAGS = $(CFLAGS) $(WINSSL_CFLAGS) $(ZLIB_CFLAGS) /DCURL_STATICLIB
|
|
|
|
LINKLIBS = $(LIBCURL_STA_LIB_REL) $(WINSSL_LIBS) $(ZLIB_LIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LIBCURL_STA_LIB_DBG) $(WINSSL_LIBS) $(ZLIB_LIBS)
|
|
|
|
LFLAGS = $(LFLAGS) $(WINSSL_LFLAGS) $(ZLIB_LFLAGS)
|
|
|
|
!ENDIF
|
|
|
|
|
2004-11-13 09:17:24 -05:00
|
|
|
#################################################
|
2005-01-18 05:17:34 -05:00
|
|
|
# release static library with dynamic ssl
|
2004-11-13 09:17:24 -05:00
|
|
|
|
2005-01-18 05:17:34 -05:00
|
|
|
!IF "$(CFG)" == "release-ssl-dll"
|
|
|
|
CFLAGS = $(CFLAGS) $(SSL_CFLAGS) /DCURL_STATICLIB
|
2010-12-20 15:51:09 -05:00
|
|
|
LINKLIBS = $(LIBCURL_STA_LIB_REL) $(SSL_LIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LIBCURL_STA_LIB_DBG) $(SSL_LIBS)
|
2005-01-18 05:17:34 -05:00
|
|
|
LFLAGS = $(LFLAGS) $(SSL_IMP_LFLAGS)
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
#################################################
|
|
|
|
# release static library with dynamic zlib
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-zlib-dll"
|
|
|
|
CFLAGS = $(CFLAGS) $(ZLIB_CFLAGS) /DCURL_STATICLIB
|
2010-12-20 15:51:09 -05:00
|
|
|
LINKLIBS = $(LIBCURL_STA_LIB_REL) $(ZLIB_IMP_LIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LIBCURL_STA_LIB_DBG) $(ZLIB_IMP_LIBS)
|
2005-01-18 05:17:34 -05:00
|
|
|
LFLAGS = $(LFLAGS) $(ZLIB_LFLAGS)
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
#################################################
|
|
|
|
# release dynamic library with dynamic zlib
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-dll-zlib-dll"
|
|
|
|
CFLAGS = $(CFLAGS) $(ZLIB_CFLAGS)
|
2010-12-20 15:51:09 -05:00
|
|
|
LINKLIBS = $(LIBCURL_IMP_LIB_REL) $(ZLIB_IMP_LIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LIBCURL_IMP_LIB_DBG) $(ZLIB_IMP_LIBS)
|
2005-01-18 05:17:34 -05:00
|
|
|
LFLAGS = $(LFLAGS) $(ZLIB_LFLAGS)
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
#################################################
|
|
|
|
# release static library with dynamic ssl and dynamic zlib
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-ssl-dll-zlib-dll"
|
|
|
|
CFLAGS = $(CFLAGS) $(SSL_CFLAGS) $(ZLIB_CFLAGS) /DCURL_STATICLIB
|
2010-12-20 15:51:09 -05:00
|
|
|
LINKLIBS = $(LIBCURL_STA_LIB_REL) $(SSL_LIBS) $(ZLIB_IMP_LIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LIBCURL_STA_LIB_DBG) $(SSL_LIBS) $(ZLIB_IMP_LIBS)
|
2005-01-18 05:17:34 -05:00
|
|
|
LFLAGS = $(LFLAGS) $(SSL_IMP_LFLAGS) $(ZLIB_LFLAGS)
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
#################################################
|
|
|
|
# release dynamic library with dynamic ssl and dynamic zlib
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-dll-ssl-dll-zlib-dll"
|
|
|
|
CFLAGS = $(CFLAGS) $(SSL_CFLAGS) $(ZLIB_CFLAGS)
|
2010-12-20 15:51:09 -05:00
|
|
|
LINKLIBS = $(LIBCURL_IMP_LIB_REL) $(SSL_LIBS) $(ZLIB_IMP_LIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LIBCURL_IMP_LIB_DBG) $(SSL_LIBS) $(ZLIB_IMP_LIBS)
|
2005-01-18 05:17:34 -05:00
|
|
|
LFLAGS = $(LFLAGS) $(SSL_IMP_LFLAGS) $(ZLIB_LFLAGS)
|
2004-11-13 09:17:24 -05:00
|
|
|
!ENDIF
|
|
|
|
|
2014-11-08 12:47:08 -05:00
|
|
|
LINKLIBS = $(LINKLIBS) $(WINLIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LINKLIBS_DEBUG) $(WINLIBS)
|
2004-05-25 09:52:12 -04:00
|
|
|
|
2001-05-21 17:42:38 -04:00
|
|
|
all : release
|
|
|
|
|
|
|
|
release: $(RELEASE_OBJS)
|
2004-02-26 11:23:28 -05:00
|
|
|
$(LINKR) $(LFLAGS) $(LINKLIBS) $(RELEASE_OBJS)
|
2007-10-24 05:28:36 -04:00
|
|
|
$(MANIFESTTOOL)
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
debug: $(DEBUG_OBJS)
|
2004-02-26 11:23:28 -05:00
|
|
|
$(LINKD) $(LFLAGS) $(LINKLIBS_DEBUG) $(DEBUG_OBJS)
|
2007-10-24 05:28:36 -04:00
|
|
|
$(MANIFESTTOOL)
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
## Release
|
2013-01-03 20:50:28 -05:00
|
|
|
nonblockr.obj: ../lib/nonblock.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" ../lib/nonblock.c
|
|
|
|
rawstrr.obj: ../lib/rawstr.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" ../lib/rawstr.c
|
|
|
|
strtoofftr.obj: ../lib/strtoofft.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" ../lib/strtoofft.c
|
2014-04-05 19:53:47 -04:00
|
|
|
warnless.obj: ../lib/warnless.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" ../lib/warnless.c
|
2011-10-03 16:59:38 -04:00
|
|
|
tool_binmoder.obj: tool_binmode.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_binmode.c
|
2011-09-19 12:18:17 -04:00
|
|
|
tool_bnamer.obj: tool_bname.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_bname.c
|
2011-09-24 11:38:16 -04:00
|
|
|
tool_cb_dbgr.obj: tool_cb_dbg.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_cb_dbg.c
|
|
|
|
tool_cb_hdrr.obj: tool_cb_hdr.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_cb_hdr.c
|
|
|
|
tool_cb_prgr.obj: tool_cb_prg.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_cb_prg.c
|
|
|
|
tool_cb_rear.obj: tool_cb_rea.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_cb_rea.c
|
|
|
|
tool_cb_seer.obj: tool_cb_see.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_cb_see.c
|
|
|
|
tool_cb_wrtr.obj: tool_cb_wrt.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_cb_wrt.c
|
2011-09-16 15:44:45 -04:00
|
|
|
tool_cfgabler.obj: tool_cfgable.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_cfgable.c
|
2011-09-16 09:31:29 -04:00
|
|
|
tool_convertr.obj: tool_convert.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_convert.c
|
2011-09-19 12:18:17 -04:00
|
|
|
tool_dirhier.obj: tool_dirhie.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_dirhie.c
|
|
|
|
tool_doswinr.obj: tool_doswin.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_doswin.c
|
2011-09-20 19:54:14 -04:00
|
|
|
tool_easysrcr.obj: tool_easysrc.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_easysrc.c
|
2011-10-03 16:59:38 -04:00
|
|
|
tool_formparser.obj: tool_formparse.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_formparse.c
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_getparamr.obj: tool_getparam.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_getparam.c
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_getpassr.obj: tool_getpass.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_getpass.c
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_helpr.obj: tool_help.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_help.c
|
|
|
|
tool_helpersr.obj: tool_helpers.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_helpers.c
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_homedirr.obj: tool_homedir.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_homedir.c
|
2012-12-26 17:30:54 -05:00
|
|
|
tool_hugehelpr.obj: tool_hugehelp.c
|
|
|
|
$(CCR) $(CFLAGS) /Zm200 /Fo"$@" tool_hugehelp.c
|
2011-09-22 05:16:34 -04:00
|
|
|
tool_libinfor.obj: tool_libinfo.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_libinfo.c
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_mainr.obj: tool_main.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_main.c
|
2012-06-07 17:49:27 -04:00
|
|
|
tool_metalinkr.obj: tool_metalink.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_metalink.c
|
2011-09-16 13:46:01 -04:00
|
|
|
tool_mfilesr.obj: tool_mfiles.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_mfiles.c
|
2011-09-20 09:58:35 -04:00
|
|
|
tool_msgsr.obj: tool_msgs.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_msgs.c
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_operater.obj: tool_operate.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_operate.c
|
|
|
|
tool_operhlpr.obj: tool_operhlp.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_operhlp.c
|
|
|
|
tool_panykeyr.obj: tool_panykey.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_panykey.c
|
|
|
|
tool_paramhlpr.obj: tool_paramhlp.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_paramhlp.c
|
|
|
|
tool_parsecfgr.obj: tool_parsecfg.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_parsecfg.c
|
2011-09-20 19:54:14 -04:00
|
|
|
tool_setoptr.obj: tool_setopt.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_setopt.c
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_sleepr.obj: tool_sleep.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_sleep.c
|
2011-10-05 14:16:16 -04:00
|
|
|
tool_urlglobr.obj: tool_urlglob.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_urlglob.c
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_utilr.obj: tool_util.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_util.c
|
2011-09-19 12:18:17 -04:00
|
|
|
tool_vmsr.obj: tool_vms.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_vms.c
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_writeenvr.obj: tool_writeenv.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_writeenv.c
|
|
|
|
tool_writeoutr.obj: tool_writeout.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_writeout.c
|
|
|
|
tool_xattrr.obj: tool_xattr.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" tool_xattr.c
|
2004-03-04 04:56:39 -05:00
|
|
|
curlr.res : curl.rc
|
|
|
|
$(RCR) $(RESFLAGS) /Fo"$@" curl.rc
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
## Debug
|
2013-01-03 20:50:28 -05:00
|
|
|
nonblockd.obj: ../lib/nonblock.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" ../lib/nonblock.c
|
|
|
|
rawstrd.obj: ../lib/rawstr.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" ../lib/rawstr.c
|
|
|
|
strtoofftd.obj: ../lib/strtoofft.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" ../lib/strtoofft.c
|
2014-04-05 19:53:47 -04:00
|
|
|
warnlessd.obj: ../lib/warnless.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" ../lib/warnless.c
|
2011-10-03 16:59:38 -04:00
|
|
|
tool_binmoded.obj: tool_binmode.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_binmode.c
|
2011-09-19 12:18:17 -04:00
|
|
|
tool_bnamed.obj: tool_bname.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_bname.c
|
2011-09-24 11:38:16 -04:00
|
|
|
tool_cb_dbgd.obj: tool_cb_dbg.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_cb_dbg.c
|
|
|
|
tool_cb_hdrd.obj: tool_cb_hdr.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_cb_hdr.c
|
|
|
|
tool_cb_prgd.obj: tool_cb_prg.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_cb_prg.c
|
|
|
|
tool_cb_read.obj: tool_cb_rea.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_cb_rea.c
|
|
|
|
tool_cb_seed.obj: tool_cb_see.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_cb_see.c
|
|
|
|
tool_cb_wrtd.obj: tool_cb_wrt.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_cb_wrt.c
|
2011-09-16 15:44:45 -04:00
|
|
|
tool_cfgabled.obj: tool_cfgable.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_cfgable.c
|
2011-09-16 09:31:29 -04:00
|
|
|
tool_convertd.obj: tool_convert.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_convert.c
|
2011-09-19 12:18:17 -04:00
|
|
|
tool_dirhied.obj: tool_dirhie.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_dirhie.c
|
|
|
|
tool_doswind.obj: tool_doswin.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_doswin.c
|
2011-09-20 19:54:14 -04:00
|
|
|
tool_easysrcd.obj: tool_easysrc.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_easysrc.c
|
2011-10-03 16:59:38 -04:00
|
|
|
tool_formparsed.obj: tool_formparse.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_formparse.c
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_getparamd.obj: tool_getparam.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_getparam.c
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_getpassd.obj: tool_getpass.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_getpass.c
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_helpd.obj: tool_help.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_help.c
|
|
|
|
tool_helpersd.obj: tool_helpers.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_helpers.c
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_homedird.obj: tool_homedir.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_homedir.c
|
2012-12-26 17:30:54 -05:00
|
|
|
tool_hugehelpd.obj: tool_hugehelp.c
|
|
|
|
$(CCD) $(CFLAGS) /Zm200 /Fo"$@" tool_hugehelp.c
|
2011-09-22 05:16:34 -04:00
|
|
|
tool_libinfod.obj: tool_libinfo.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_libinfo.c
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_maind.obj: tool_main.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_main.c
|
2012-06-07 17:49:27 -04:00
|
|
|
tool_metalinkd.obj: tool_metalink.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_metalink.c
|
2011-09-16 13:46:01 -04:00
|
|
|
tool_mfilesd.obj: tool_mfiles.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_mfiles.c
|
2011-09-20 09:58:35 -04:00
|
|
|
tool_msgsd.obj: tool_msgs.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_msgs.c
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_operated.obj: tool_operate.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_operate.c
|
|
|
|
tool_operhlpd.obj: tool_operhlp.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_operhlp.c
|
|
|
|
tool_panykeyd.obj: tool_panykey.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_panykey.c
|
|
|
|
tool_paramhlpd.obj: tool_paramhlp.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_paramhlp.c
|
|
|
|
tool_parsecfgd.obj: tool_parsecfg.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_parsecfg.c
|
2011-09-20 19:54:14 -04:00
|
|
|
tool_setoptd.obj: tool_setopt.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_setopt.c
|
2011-10-04 18:03:20 -04:00
|
|
|
tool_sleepd.obj: tool_sleep.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_sleep.c
|
2011-10-05 14:16:16 -04:00
|
|
|
tool_urlglobd.obj: tool_urlglob.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_urlglob.c
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_utild.obj: tool_util.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_util.c
|
2011-09-19 12:18:17 -04:00
|
|
|
tool_vmsd.obj: tool_vms.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_vms.c
|
2011-10-06 11:39:00 -04:00
|
|
|
tool_writeenvd.obj: tool_writeenv.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_writeenv.c
|
|
|
|
tool_writeoutd.obj: tool_writeout.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_writeout.c
|
|
|
|
tool_xattrd.obj: tool_xattr.c
|
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" tool_xattr.c
|
2004-03-04 04:56:39 -05:00
|
|
|
curld.res : curl.rc
|
|
|
|
$(RCD) $(RESFLAGS) /Fo"$@" curl.rc
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
clean:
|
2005-01-18 05:17:34 -05:00
|
|
|
@-erase $(PROGRAM_NAME) 2> NUL
|
|
|
|
@-erase $(RELEASE_OBJS) 2> NUL
|
|
|
|
@-erase $(DEBUG_OBJS) 2> NUL
|
|
|
|
@-erase *.idb 2> NUL
|
|
|
|
@-erase *.pdb 2> NUL
|
|
|
|
@-erase *.pch 2> NUL
|
|
|
|
@-erase *.ilk 2> NUL
|