2001-05-22 01:42:38 +04:00
|
|
|
#############################################################
|
2007-07-15 17:00:39 +04:00
|
|
|
# $Id: Makefile.vc6,v 1.19 2004/11/14 13:48:15 giva Exp $
|
2001-08-09 13:10:13 +04:00
|
|
|
#
|
2001-11-05 14:56:26 +03:00
|
|
|
# Makefile for building libcurl with MSVC6
|
|
|
|
#
|
|
|
|
# Usage: see usage message below
|
|
|
|
# Should be invoked from \lib directory
|
|
|
|
# Edit the paths and desired library name
|
2002-01-05 02:47:07 +03:00
|
|
|
# SSL path is only required if you intend compiling
|
2001-11-05 14:56:26 +03:00
|
|
|
# with SSL.
|
|
|
|
#
|
|
|
|
# This make file leaves the result either a .lib or .dll file
|
|
|
|
# in the \lib directory. It should be called from the \lib
|
|
|
|
# directory.
|
|
|
|
#
|
|
|
|
# An option would have been to allow the source directory to
|
|
|
|
# be specified, but I saw no requirement.
|
|
|
|
#
|
|
|
|
# Another option would have been to leave the .lib and .dll
|
|
|
|
# files in the "cfg" directory, but then the make file
|
2002-01-05 02:47:07 +03:00
|
|
|
# in \src would need to be changed.
|
|
|
|
#
|
2001-11-05 14:56:26 +03:00
|
|
|
##############################################################
|
2001-05-22 01:42:38 +04:00
|
|
|
|
2004-11-13 17:17:41 +03:00
|
|
|
#
|
|
|
|
# Stem for static libs and DLLs
|
|
|
|
#
|
2001-11-05 14:56:26 +03:00
|
|
|
LIB_NAME = libcurl
|
2001-12-02 15:09:00 +03:00
|
|
|
LIB_NAME_DEBUG = libcurld
|
2004-11-13 17:17:41 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Stem for DLL import libs
|
|
|
|
#
|
2005-01-03 00:15:29 +03:00
|
|
|
IMPLIB_NAME = libcurl_imp
|
|
|
|
IMPLIB_NAME_DEBUG = libcurld_imp
|
2004-11-13 17:17:41 +03:00
|
|
|
|
2002-02-06 19:00:55 +03:00
|
|
|
!IFNDEF OPENSSL_PATH
|
2007-07-15 17:00:39 +04:00
|
|
|
OPENSSL_PATH = ../../openssl-0.9.8e
|
2002-02-06 19:00:55 +03:00
|
|
|
!ENDIF
|
2001-05-22 01:42:38 +04:00
|
|
|
|
2004-04-12 00:25:10 +04:00
|
|
|
!IFNDEF ZLIB_PATH
|
2007-07-15 17:00:39 +04:00
|
|
|
ZLIB_PATH = ../../zlib-1.2.3
|
2004-04-12 00:25:10 +04:00
|
|
|
!ENDIF
|
|
|
|
|
2007-03-10 01:26:59 +03:00
|
|
|
!IFNDEF MACHINE
|
|
|
|
MACHINE = X86
|
|
|
|
!ENDIF
|
|
|
|
|
2005-03-11 02:15:29 +03:00
|
|
|
# USE_WINDOWS_SSPI uses windows libraries to allow NTLM authentication
|
|
|
|
# without an openssl installation and offers the ability to authenticate
|
2007-07-15 17: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-11 02:15:29 +03: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:
|
|
|
|
# http://www.microsoft.com/msdownload/platformsdk/sdkupdate/
|
|
|
|
|
|
|
|
# USE_WINDOWS_SSPI = 1
|
|
|
|
|
|
|
|
!IFDEF WINDOWS_SSPI
|
|
|
|
!IFNDEF WINDOWS_SDK_PATH
|
|
|
|
WINDOWS_SDK_PATH = "C:\Program Files\Microsoft SDK"
|
|
|
|
!ENDIF
|
|
|
|
!ENDIF
|
|
|
|
|
2005-04-01 00:34:24 +04:00
|
|
|
# Use the high resolution time by default. Comment this out to use low
|
2004-06-01 12:09:43 +04:00
|
|
|
# resolution time and not require winmm.lib
|
|
|
|
USEMM_LIBS = YES
|
|
|
|
|
2001-11-05 14:56:26 +03:00
|
|
|
#############################################################
|
|
|
|
## Nothing more to do below this line!
|
2001-05-22 01:42:38 +04:00
|
|
|
|
2005-10-20 23:07:33 +04:00
|
|
|
CCNODBG = cl.exe /O2 /DNDEBUG
|
|
|
|
CCDEBUG = cl.exe /Od /Gm /Zi /D_DEBUG /GZ
|
2004-11-09 17:00:56 +03:00
|
|
|
CFLAGSSSL = /DUSE_SSLEAY /I "$(OPENSSL_PATH)/inc32" /I "$(OPENSSL_PATH)/inc32/openssl"
|
|
|
|
CFLAGSZLIB = /DHAVE_ZLIB_H /DHAVE_ZLIB /DHAVE_LIBZ /I "$(ZLIB_PATH)"
|
2004-11-13 17:17:41 +03:00
|
|
|
CFLAGS = /I. /I../include /nologo /W3 /GX /DWIN32 /YX /FD /c /DBUILDING_LIBCURL
|
2005-04-23 01:16:22 +04:00
|
|
|
CFLAGSLIB = /DCURL_STATICLIB
|
2004-11-09 17:00:56 +03:00
|
|
|
LNKDLL = link.exe /DLL
|
2004-07-11 17:49:18 +04:00
|
|
|
LNKLIB = link.exe /lib
|
2007-03-10 01:26:59 +03:00
|
|
|
LFLAGS = /nologo /machine:$(MACHINE)
|
2004-07-11 17:49:18 +04:00
|
|
|
SSLLIBS = libeay32.lib ssleay32.lib
|
2005-01-18 13:17:34 +03:00
|
|
|
ZLIBLIBSDLL= zdll.lib
|
|
|
|
ZLIBLIBS = zlib.lib
|
2004-05-25 17:52:12 +04:00
|
|
|
!IFDEF USEMM_LIBS
|
2004-07-11 17:49:18 +04:00
|
|
|
WINLIBS = wsock32.lib winmm.lib
|
2004-05-25 17:52:12 +04:00
|
|
|
!ELSE
|
2004-11-09 17:00:56 +03:00
|
|
|
WINLIBS = wsock32.lib
|
|
|
|
CFLAGS = $(CFLAGS) /DWITHOUT_MM_LIB
|
2004-05-25 17:52:12 +04:00
|
|
|
!ENDIF
|
2003-04-25 19:08:46 +04:00
|
|
|
# RSAglue.lib was formerly needed in the SSLLIBS
|
2004-07-11 17:49:18 +04:00
|
|
|
CFGSET = FALSE
|
2001-11-05 14:56:26 +03:00
|
|
|
|
2005-03-11 02:15:29 +03:00
|
|
|
!IFDEF WINDOWS_SSPI
|
|
|
|
CFLAGS = $(CFLAGS) /DUSE_WINDOWS_SSPI /I$(WINDOWS_SDK_PATH)\include
|
|
|
|
!ENDIF
|
|
|
|
|
2005-10-20 23:07:33 +04:00
|
|
|
##############################################################
|
|
|
|
# Runtime library configuration
|
|
|
|
|
|
|
|
RTLIB = /MD
|
|
|
|
RTLIBD = /MDd
|
|
|
|
|
|
|
|
!IF "$(RTLIBCFG)" == "static"
|
|
|
|
RTLIB = /MT
|
|
|
|
RTLIBD = /MTd
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
|
2005-10-21 23:32:12 +04:00
|
|
|
######################
|
|
|
|
# release
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release"
|
|
|
|
TARGET = $(LIB_NAME).lib
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LNK = $(LNKLIB) /out:$(DIROBJ)\$(TARGET)
|
|
|
|
CC = $(CCNODBG) $(RTLIB) $(CFLAGSLIB)
|
|
|
|
CFGSET = TRUE
|
|
|
|
!ENDIF
|
|
|
|
|
2004-05-26 15:49:28 +04:00
|
|
|
######################
|
|
|
|
# release-zlib
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-zlib"
|
2004-11-13 17:17:41 +03:00
|
|
|
TARGET = $(LIB_NAME).lib
|
2005-01-18 13:17:34 +03:00
|
|
|
DIROBJ = $(CFG)
|
2004-05-26 15:49:28 +04:00
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
2005-01-18 13:17:34 +03:00
|
|
|
LNK = $(LNKLIB) $(ZLIBLIBS) $(LFLAGSZLIB) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCNODBG) $(RTLIB) $(CFLAGSZLIB) $(CFLAGSLIB)
|
2004-05-26 15:49:28 +04:00
|
|
|
CFGSET = TRUE
|
|
|
|
!ENDIF
|
|
|
|
|
2001-11-05 14:56:26 +03:00
|
|
|
######################
|
|
|
|
# release-dll
|
|
|
|
|
2002-01-05 02:47:07 +03:00
|
|
|
!IF "$(CFG)" == "release-dll"
|
2004-11-13 17:17:41 +03:00
|
|
|
TARGET = $(LIB_NAME).dll
|
2005-01-18 13:17:34 +03:00
|
|
|
DIROBJ = $(CFG)
|
2006-10-21 20:25:31 +04:00
|
|
|
LNK = $(LNKDLL) $(WINLIBS) /out:$(DIROBJ)\$(TARGET) /IMPLIB:$(DIROBJ)\$(IMPLIB_NAME).lib
|
|
|
|
CC = $(CCNODBG) $(RTLIB)
|
2001-11-05 14:56:26 +03:00
|
|
|
CFGSET = TRUE
|
2003-11-06 18:09:30 +03:00
|
|
|
RESOURCE = $(DIROBJ)\libcurl.res
|
2001-11-05 14:56:26 +03:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
######################
|
|
|
|
# release-ssl
|
2001-11-22 03:12:48 +03:00
|
|
|
|
2002-01-05 02:47:07 +03:00
|
|
|
!IF "$(CFG)" == "release-ssl"
|
2004-11-13 17:17:41 +03:00
|
|
|
TARGET = $(LIB_NAME).lib
|
2005-01-18 13:17:34 +03:00
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)\out32"
|
|
|
|
LNK = $(LNKLIB) $(LFLAGSSSL) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCNODBG) $(RTLIB) $(CFLAGSSSL) $(CFLAGSLIB)
|
2002-01-05 02:47:07 +03:00
|
|
|
CFGSET = TRUE
|
2001-11-05 14:56:26 +03:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
######################
|
|
|
|
# release-ssl-dll
|
|
|
|
|
2002-01-05 02:47:07 +03:00
|
|
|
!IF "$(CFG)" == "release-ssl-dll"
|
2005-12-24 02:40:40 +03:00
|
|
|
TARGET = $(LIB_NAME).lib
|
2005-01-18 13:17:34 +03:00
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)\out32dll"
|
2005-12-24 02:40:40 +03:00
|
|
|
LNK = $(LNKLIB) $(WINLIBS) $(SSLLIBS) $(LFLAGSSSL) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCNODBG) $(RTLIB) $(CFLAGSSSL)
|
2002-01-05 02:47:07 +03:00
|
|
|
CFGSET = TRUE
|
2001-11-05 14:56:26 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2004-04-12 00:25:10 +04:00
|
|
|
######################
|
|
|
|
# release-ssl-zlib
|
2005-01-18 13:17:34 +03:00
|
|
|
|
2004-04-12 00:25:10 +04:00
|
|
|
!IF "$(CFG)" == "release-ssl-zlib"
|
2004-11-13 17:17:41 +03:00
|
|
|
TARGET = $(LIB_NAME).lib
|
2005-01-18 13:17:34 +03:00
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)\out32"
|
2004-04-12 00:25:10 +04:00
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
2005-01-18 13:17:34 +03:00
|
|
|
LNK = $(LNKLIB) $(LFLAGSSSL) $(LFLAGSZLIB) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCNODBG) $(RTLIB) $(CFLAGSSSL) $(CFLAGSZLIB) $(CFLAGSLIB)
|
2004-04-12 00:25:10 +04:00
|
|
|
CFGSET = TRUE
|
|
|
|
!ENDIF
|
|
|
|
|
2003-10-22 15:26:41 +04:00
|
|
|
######################
|
2005-01-18 13:17:34 +03:00
|
|
|
# release-dll-ssl-dll
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-dll-ssl-dll"
|
|
|
|
TARGET = $(LIB_NAME).dll
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)\out32dll"
|
|
|
|
LNK = $(LNKDLL) $(WINLIBS) $(SSLLIBS) $(LFLAGSSSL) /out:$(DIROBJ)\$(TARGET) /IMPLIB:$(DIROBJ)\$(IMPLIB_NAME).lib
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCNODBG) $(RTLIB) $(CFLAGSSSL)
|
2003-10-22 15:26:41 +04:00
|
|
|
CFGSET = TRUE
|
2003-11-06 18:09:30 +03:00
|
|
|
RESOURCE = $(DIROBJ)\libcurl.res
|
2003-10-22 15:26:41 +04:00
|
|
|
!ENDIF
|
|
|
|
|
2005-01-18 13:17:34 +03:00
|
|
|
######################
|
|
|
|
# release-zlib-dll
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-zlib-dll"
|
|
|
|
TARGET = $(LIB_NAME).lib
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
|
|
|
LNK = $(LNKLIB) $(WINLIBS) $(ZLIBLIBSDLL) $(LFLAGSZLIB) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCNODBG) $(RTLIB) $(CFLAGSZLIB) $(CFLAGSLIB)
|
2005-01-18 13:17:34 +03:00
|
|
|
CFGSET = TRUE
|
|
|
|
!ENDIF
|
2003-10-22 15:26:41 +04:00
|
|
|
|
2001-11-05 14:56:26 +03:00
|
|
|
######################
|
2005-01-18 13:17:34 +03:00
|
|
|
# release-ssl-dll-zlib-dll
|
2001-11-05 14:56:26 +03:00
|
|
|
|
2005-01-18 13:17:34 +03:00
|
|
|
!IF "$(CFG)" == "release-ssl-dll-zlib-dll"
|
|
|
|
TARGET = $(LIB_NAME).lib
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
|
|
|
LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)\out32dll"
|
|
|
|
LNK = $(LNKLIB) $(WINLIBS) $(SSLLIBS) $(ZLIBLIBSDLL) $(LFLAGSSSL) $(LFLAGSZLIB) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCNODBG) $(RTLIB) $(CFLAGSSSL) $(CFLAGSZLIB) $(CFLAGSLIB)
|
2005-01-18 13:17:34 +03:00
|
|
|
CFGSET = TRUE
|
2001-11-05 14:56:26 +03:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
######################
|
2005-01-18 13:17:34 +03:00
|
|
|
# release-dll-zlib-dll
|
2001-11-05 14:56:26 +03:00
|
|
|
|
2005-01-18 13:17:34 +03:00
|
|
|
!IF "$(CFG)" == "release-dll-zlib-dll"
|
|
|
|
TARGET = $(LIB_NAME).dll
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
|
|
|
LNK = $(LNKDLL) $(WINLIBS) $(ZLIBLIBSDLL) $(LFLAGSZLIB) /out:$(DIROBJ)\$(TARGET) /IMPLIB:$(DIROBJ)\$(IMPLIB_NAME).lib
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCNODBG) $(RTLIB) $(CFLAGSZLIB)
|
2005-01-18 13:17:34 +03:00
|
|
|
CFGSET = TRUE
|
|
|
|
RESOURCE = $(DIROBJ)\libcurl.res
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
######################
|
|
|
|
# release-dll-ssl-dll-zlib-dll
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-dll-ssl-dll-zlib-dll"
|
|
|
|
TARGET = $(LIB_NAME).dll
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
|
|
|
LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)\out32dll"
|
|
|
|
LNK = $(LNKDLL) $(WINLIBS) $(SSLLIBS) $(ZLIBLIBSDLL) $(LFLAGSSSL) $(LFLAGSZLIB) /out:$(DIROBJ)\$(TARGET) /IMPLIB:$(DIROBJ)\$(IMPLIB_NAME).lib
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCNODBG) $(RTLIB) $(CFLAGSSSL) $(CFLAGSZLIB)
|
2005-01-18 13:17:34 +03:00
|
|
|
CFGSET = TRUE
|
|
|
|
RESOURCE = $(DIROBJ)\libcurl.res
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
######################
|
|
|
|
# debug
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "debug"
|
|
|
|
TARGET = $(LIB_NAME_DEBUG).lib
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LNK = $(LNKLIB) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCDEBUG) $(RTLIBD) $(CFLAGSLIB)
|
2001-11-05 14:56:26 +03:00
|
|
|
CFGSET = TRUE
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
######################
|
|
|
|
# debug-ssl
|
2005-01-18 13:17:34 +03:00
|
|
|
|
2002-01-05 02:47:07 +03:00
|
|
|
!IF "$(CFG)" == "debug-ssl"
|
2001-11-05 14:56:26 +03:00
|
|
|
TARGET = $(LIB_NAME_DEBUG).lib
|
2005-01-18 13:17:34 +03:00
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)\out32"
|
2005-10-21 23:32:12 +04:00
|
|
|
LNK = $(LNKLIB) $(LFLAGSSSL) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCDEBUG) $(RTLIBD) $(CFLAGSSSL) $(CFLAGSLIB)
|
2001-11-05 14:56:26 +03:00
|
|
|
CFGSET = TRUE
|
|
|
|
!ENDIF
|
|
|
|
|
2004-05-26 15:49:28 +04:00
|
|
|
######################
|
|
|
|
# debug-zlib
|
2005-01-18 13:17:34 +03:00
|
|
|
|
2004-05-26 15:49:28 +04:00
|
|
|
!IF "$(CFG)" == "debug-zlib"
|
|
|
|
TARGET = $(LIB_NAME_DEBUG).lib
|
2005-01-18 13:17:34 +03:00
|
|
|
DIROBJ = $(CFG)
|
2004-05-26 15:49:28 +04:00
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
2005-01-18 13:17:34 +03:00
|
|
|
LNK = $(LNKLIB) $(ZLIBLIBS) $(LFLAGSZLIB) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCDEBUG) $(RTLIBD) $(CFLAGSZLIB) $(CFLAGSLIB)
|
2004-05-26 15:49:28 +04:00
|
|
|
CFGSET = TRUE
|
|
|
|
!ENDIF
|
|
|
|
|
2001-11-05 14:56:26 +03:00
|
|
|
######################
|
|
|
|
# debug-ssl-dll
|
|
|
|
|
2002-01-05 02:47:07 +03:00
|
|
|
!IF "$(CFG)" == "debug-ssl-dll"
|
2005-01-18 13:17:34 +03:00
|
|
|
TARGET = $(LIB_NAME_DEBUG).lib
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSSSL = /LIBPATH:$(OPENSSL_PATH)\out32dll
|
|
|
|
LNK = $(LNKLIB) $(WINLIBS) $(SSLLIBS) $(LFLAGSSSL) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCDEBUG) $(RTLIBD) $(CFLAGSSSL) $(CFLAGSLIB)
|
2005-01-18 13:17:34 +03:00
|
|
|
CFGSET = TRUE
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
######################
|
|
|
|
# debug-ssl-zlib
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "debug-ssl-zlib"
|
|
|
|
TARGET = $(LIB_NAME_DEBUG).lib
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
|
|
|
LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)\out32"
|
2005-10-21 23:32:12 +04:00
|
|
|
LNK = $(LNKLIB) $(ZLIBLIBS) $(LFLAGSSSL) $(LFLAGSZLIB) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCDEBUG) $(RTLIBD) $(CFLAGSSSL) $(CFLAGSZLIB) $(CFLAGSLIB)
|
2005-01-18 13:17:34 +03:00
|
|
|
CFGSET = TRUE
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
######################
|
|
|
|
# debug-zlib-dll
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "debug-zlib-dll"
|
|
|
|
TARGET = $(LIB_NAME_DEBUG).lib
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
|
|
|
LNK = $(LNKLIB) $(WINLIBS) $(ZLIBLIBSDLL) $(LFLAGSZLIB) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCDEBUG) $(RTLIBD) $(CFLAGSZLIB) $(CFLAGSLIB)
|
2005-01-18 13:17:34 +03:00
|
|
|
CFGSET = TRUE
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
######################
|
|
|
|
# debug-ssl-dll-zlib-dll
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "debug-ssl-dll-zlib-dll"
|
|
|
|
TARGET = $(LIB_NAME_DEBUG).lib
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
|
|
|
LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)\out32dll"
|
|
|
|
LNK = $(LNKLIB) $(WINLIBS) $(SSLLIBS) $(ZLIBLIBSDLL) $(LFLAGSSSL) $(LFLAGSZLIB) /out:$(DIROBJ)\$(TARGET)
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCDEBUG) $(RTLIBD) $(CFLAGSSSL) $(CFLAGSZLIB) $(CFLAGSLIB)
|
2005-01-18 13:17:34 +03:00
|
|
|
CFGSET = TRUE
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
######################
|
|
|
|
# debug-dll
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "debug-dll"
|
|
|
|
TARGET = $(LIB_NAME_DEBUG).dll
|
|
|
|
DIROBJ = $(CFG)
|
2005-04-04 17:21:03 +04:00
|
|
|
LNK = $(LNKDLL) $(WINLIBS) /DEBUG /out:$(DIROBJ)\$(TARGET) /IMPLIB:$(DIROBJ)\$(IMPLIB_NAME_DEBUG).lib /PDB:$(DIROBJ)\$(IMPLIB_NAME_DEBUG).pdb
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCDEBUG) $(RTLIBD)
|
2005-01-18 13:17:34 +03:00
|
|
|
CFGSET = TRUE
|
|
|
|
RESOURCE = $(DIROBJ)\libcurl.res
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
######################
|
|
|
|
# debug-dll-ssl-dll
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "debug-dll-ssl-dll"
|
2004-11-13 17:17:41 +03:00
|
|
|
TARGET = $(LIB_NAME_DEBUG).dll
|
2005-01-18 13:17:34 +03:00
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)\out32dll"
|
2005-04-04 17:21:03 +04:00
|
|
|
LNK = $(LNKDLL) $(WINLIBS) $(SSLLIBS) $(LFLAGSSSL) /DEBUG /out:$(DIROBJ)\$(TARGET) /IMPLIB:$(DIROBJ)\$(IMPLIB_NAME_DEBUG).lib /PDB:$(DIROBJ)\$(IMPLIB_NAME_DEBUG).pdb
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCDEBUG) $(RTLIBD) $(CFLAGSSSL)
|
2001-11-05 14:56:26 +03:00
|
|
|
CFGSET = TRUE
|
2003-11-06 18:09:30 +03:00
|
|
|
RESOURCE = $(DIROBJ)\libcurl.res
|
2001-11-05 14:56:26 +03:00
|
|
|
!ENDIF
|
|
|
|
|
2005-01-18 13:17:34 +03:00
|
|
|
######################
|
|
|
|
# debug-dll-zlib-dll
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "debug-dll-zlib-dll"
|
|
|
|
TARGET = $(LIB_NAME_DEBUG).dll
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
2005-04-04 17:21:03 +04:00
|
|
|
LNK = $(LNKDLL) $(WINLIBS) $(ZLIBLIBSDLL) $(LFLAGSZLIB) /DEBUG /out:$(DIROBJ)\$(TARGET) /IMPLIB:$(DIROBJ)\$(IMPLIB_NAME_DEBUG).lib /PDB:$(DIROBJ)\$(IMPLIB_NAME_DEBUG).pdb
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCDEBUG) $(RTLIBD) $(CFLAGSZLIB)
|
2005-01-18 13:17:34 +03:00
|
|
|
CFGSET = TRUE
|
|
|
|
RESOURCE = $(DIROBJ)\libcurl.res
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
######################
|
|
|
|
# debug-dll-ssl-dll-zlib-dll
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "debug-dll-ssl-dll-zlib-dll"
|
|
|
|
TARGET = $(LIB_NAME_DEBUG).dll
|
|
|
|
DIROBJ = $(CFG)
|
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
|
|
|
LFLAGSSSL = "/LIBPATH:$(OPENSSL_PATH)\out32dll"
|
2005-04-04 17:21:03 +04:00
|
|
|
LNK = $(LNKDLL) $(WINLIBS) $(SSLLIBS) $(ZLIBLIBSDLL) $(LFLAGSSSL) $(LFLAGSZLIB) /DEBUG /out:$(DIROBJ)\$(TARGET) /IMPLIB:$(DIROBJ)\$(IMPLIB_NAME_DEBUG).lib /PDB:$(DIROBJ)\$(IMPLIB_NAME_DEBUG).pdb
|
2005-10-20 23:07:33 +04:00
|
|
|
CC = $(CCDEBUG) $(RTLIBD) $(CFLAGSSSL) $(CFLAGSZLIB)
|
2005-01-18 13:17:34 +03:00
|
|
|
CFGSET = TRUE
|
|
|
|
RESOURCE = $(DIROBJ)\libcurl.res
|
|
|
|
!ENDIF
|
|
|
|
|
2001-11-05 14:56:26 +03:00
|
|
|
#######################
|
|
|
|
# Usage
|
|
|
|
#
|
2005-01-18 13:17:34 +03:00
|
|
|
!IF "$(CFGSET)" == "FALSE" && "$(CFG)" != ""
|
2004-02-26 19:23:28 +03:00
|
|
|
!MESSAGE Usage: nmake /f makefile.vc6 CFG=<config> <target>
|
2001-11-05 14:56:26 +03:00
|
|
|
!MESSAGE where <config> is one of:
|
2005-01-18 13:17:34 +03:00
|
|
|
!MESSAGE release - release static library
|
|
|
|
!MESSAGE release-ssl - release static library with ssl
|
|
|
|
!MESSAGE release-zlib - release static library with zlib
|
|
|
|
!MESSAGE release-ssl-zlib - release static library with ssl and zlib
|
|
|
|
!MESSAGE release-ssl-dll - release static library with dynamic ssl
|
|
|
|
!MESSAGE release-zlib-dll - release static library with dynamic zlib
|
|
|
|
!MESSAGE release-ssl-dll-zlib-dll - release static library with dynamic ssl and dynamic zlib
|
|
|
|
!MESSAGE release-dll - release dynamic library
|
|
|
|
!MESSAGE release-dll-ssl-dll - release dynamic library with dynamic ssl
|
|
|
|
!MESSAGE release-dll-zlib-dll - release dynamic library with dynamic zlib
|
|
|
|
!MESSAGE release-dll-ssl-dll-zlib-dll - release dynamic library with dynamic ssl and dynamic zlib
|
|
|
|
!MESSAGE debug - debug static library
|
|
|
|
!MESSAGE debug-ssl - debug static library with ssl
|
|
|
|
!MESSAGE debug-zlib - debug static library with zlib
|
|
|
|
!MESSAGE debug-ssl-zlib - debug static library with ssl and zlib
|
|
|
|
!MESSAGE debug-ssl-dll - debug static library with dynamic ssl
|
|
|
|
!MESSAGE debug-zlib-dll - debug static library with dynamic zlib
|
|
|
|
!MESSAGE debug-ssl-dll-zlib-dll - debug static library with dynamic ssl and dynamic zlib
|
|
|
|
!MESSAGE debug-dll - debug dynamic library
|
|
|
|
!MESSAGE debug-dll-ssl-dll - debug dynamic library with dynamic ssl
|
|
|
|
!MESSAGE debug-dll-zlib-dll - debug dynamic library with dynamic zlib1
|
|
|
|
!MESSAGE debug-dll-ssl-dll-zlib-dll - debug dynamic library with dynamic ssl and dynamic zlib
|
2001-11-05 14:56:26 +03:00
|
|
|
!MESSAGE <target> can be left blank in which case all is assumed
|
|
|
|
!ERROR please choose a valid configuration "$(CFG)"
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
#######################
|
2005-01-18 13:17:34 +03:00
|
|
|
# Only the clean target can be used if a config was not provided.
|
|
|
|
#
|
|
|
|
!IF "$(CFGSET)" == "FALSE"
|
|
|
|
clean:
|
|
|
|
@-erase /s *.dll 2> NUL
|
|
|
|
@-erase /s *.exp 2> NUL
|
|
|
|
@-erase /s *.idb 2> NUL
|
|
|
|
@-erase /s *.lib 2> NUL
|
|
|
|
@-erase /s *.obj 2> NUL
|
|
|
|
@-erase /s *.pch 2> NUL
|
|
|
|
@-erase /s *.pdb 2> NUL
|
|
|
|
@-erase /s *.res 2> NUL
|
|
|
|
!ELSE
|
|
|
|
# A config was provided, so the library can be built.
|
2001-11-05 14:56:26 +03:00
|
|
|
#
|
|
|
|
X_OBJS= \
|
|
|
|
$(DIROBJ)\base64.obj \
|
|
|
|
$(DIROBJ)\cookie.obj \
|
|
|
|
$(DIROBJ)\transfer.obj \
|
|
|
|
$(DIROBJ)\escape.obj \
|
|
|
|
$(DIROBJ)\formdata.obj \
|
|
|
|
$(DIROBJ)\ftp.obj \
|
|
|
|
$(DIROBJ)\http.obj \
|
|
|
|
$(DIROBJ)\http_chunks.obj \
|
|
|
|
$(DIROBJ)\ldap.obj \
|
|
|
|
$(DIROBJ)\dict.obj \
|
|
|
|
$(DIROBJ)\telnet.obj \
|
2004-09-15 12:05:53 +04:00
|
|
|
$(DIROBJ)\parsedate.obj \
|
2001-11-05 14:56:26 +03:00
|
|
|
$(DIROBJ)\getenv.obj \
|
2005-04-08 00:36:48 +04:00
|
|
|
$(DIROBJ)\gtls.obj \
|
2003-11-04 09:59:25 +03:00
|
|
|
$(DIROBJ)\inet_pton.obj \
|
2001-11-05 14:56:26 +03:00
|
|
|
$(DIROBJ)\hostip.obj \
|
2004-04-26 16:33:14 +04:00
|
|
|
$(DIROBJ)\hostasyn.obj \
|
|
|
|
$(DIROBJ)\hostsyn.obj \
|
|
|
|
$(DIROBJ)\hostares.obj \
|
|
|
|
$(DIROBJ)\hostthre.obj \
|
|
|
|
$(DIROBJ)\hostip4.obj \
|
|
|
|
$(DIROBJ)\hostip6.obj \
|
2004-04-27 00:41:33 +04:00
|
|
|
$(DIROBJ)\inet_ntop.obj \
|
2001-11-05 14:56:26 +03:00
|
|
|
$(DIROBJ)\if2ip.obj \
|
|
|
|
$(DIROBJ)\mprintf.obj \
|
|
|
|
$(DIROBJ)\netrc.obj \
|
|
|
|
$(DIROBJ)\progress.obj \
|
|
|
|
$(DIROBJ)\sendf.obj \
|
|
|
|
$(DIROBJ)\speedcheck.obj \
|
2005-04-08 00:36:48 +04:00
|
|
|
$(DIROBJ)\sslgen.obj \
|
2001-11-05 14:56:26 +03:00
|
|
|
$(DIROBJ)\ssluse.obj \
|
|
|
|
$(DIROBJ)\timeval.obj \
|
|
|
|
$(DIROBJ)\url.obj \
|
|
|
|
$(DIROBJ)\file.obj \
|
|
|
|
$(DIROBJ)\getinfo.obj \
|
|
|
|
$(DIROBJ)\version.obj \
|
|
|
|
$(DIROBJ)\easy.obj \
|
|
|
|
$(DIROBJ)\strequal.obj \
|
2001-11-22 02:10:55 +03:00
|
|
|
$(DIROBJ)\strtok.obj \
|
2004-01-06 01:29:29 +03:00
|
|
|
$(DIROBJ)\strtoofft.obj \
|
2002-01-05 02:47:07 +03:00
|
|
|
$(DIROBJ)\connect.obj \
|
|
|
|
$(DIROBJ)\hash.obj \
|
2002-06-11 15:11:06 +04:00
|
|
|
$(DIROBJ)\llist.obj \
|
2003-03-04 01:39:34 +03:00
|
|
|
$(DIROBJ)\share.obj \
|
2003-07-23 12:21:21 +04:00
|
|
|
$(DIROBJ)\multi.obj \
|
|
|
|
$(DIROBJ)\http_digest.obj \
|
2003-07-30 18:19:44 +04:00
|
|
|
$(DIROBJ)\http_negotiate.obj \
|
|
|
|
$(DIROBJ)\http_ntlm.obj \
|
2003-11-06 18:09:30 +03:00
|
|
|
$(DIROBJ)\md5.obj \
|
2004-11-09 17:00:56 +03:00
|
|
|
$(DIROBJ)\memdebug.obj \
|
2004-03-25 16:40:57 +03:00
|
|
|
$(DIROBJ)\strerror.obj \
|
2004-11-19 16:45:46 +03:00
|
|
|
$(DIROBJ)\select.obj \
|
2004-04-12 00:25:10 +04:00
|
|
|
$(DIROBJ)\content_encoding.obj \
|
2005-09-07 18:42:15 +04:00
|
|
|
$(DIROBJ)\tftp.obj \
|
2006-04-12 22:12:46 +04:00
|
|
|
$(DIROBJ)\splay.obj \
|
2006-09-23 23:07:20 +04:00
|
|
|
$(DIROBJ)\socks.obj \
|
2003-11-06 18:09:30 +03:00
|
|
|
$(RESOURCE)
|
2001-11-05 14:56:26 +03:00
|
|
|
|
|
|
|
all : $(TARGET)
|
|
|
|
|
|
|
|
$(TARGET): $(X_OBJS)
|
2004-03-03 16:32:56 +03:00
|
|
|
$(LNK) $(LFLAGS) $(X_OBJS)
|
2005-01-18 13:17:34 +03:00
|
|
|
-xcopy $(DIROBJ)\$(LIB_NAME).dll . /y
|
|
|
|
-xcopy $(DIROBJ)\$(LIB_NAME).lib . /y
|
|
|
|
-xcopy $(DIROBJ)\$(LIB_NAME_DEBUG).dll . /y
|
|
|
|
-xcopy $(DIROBJ)\$(LIB_NAME_DEBUG).lib . /y
|
|
|
|
-xcopy $(DIROBJ)\$(IMPLIB_NAME).lib . /y
|
2005-04-04 17:21:03 +04:00
|
|
|
-xcopy $(DIROBJ)\$(IMPLIB_NAME_DEBUG).lib . /y
|
2005-01-18 13:17:34 +03:00
|
|
|
-xcopy $(DIROBJ)\*.exp . /y
|
|
|
|
-xcopy $(DIROBJ)\*.pdb . /y
|
2001-11-05 14:56:26 +03:00
|
|
|
|
|
|
|
$(X_OBJS): $(DIROBJ)
|
|
|
|
|
|
|
|
$(DIROBJ):
|
|
|
|
@if not exist "$(DIROBJ)" mkdir $(DIROBJ)
|
|
|
|
|
2003-11-06 18:09:30 +03:00
|
|
|
.SUFFIXES: .c .obj .res
|
2001-11-05 14:56:26 +03:00
|
|
|
|
|
|
|
{.\}.c{$(DIROBJ)\}.obj:
|
|
|
|
$(CC) $(CFLAGS) /Fo"$@" $<
|
2001-05-22 01:42:38 +04:00
|
|
|
|
2003-11-06 18:09:30 +03:00
|
|
|
debug-dll\libcurl.res \
|
2005-01-18 13:17:34 +03:00
|
|
|
debug-dll-ssl-dll\libcurl.res \
|
|
|
|
debug-dll-zlib-dll\libcurl.res \
|
|
|
|
debug-dll-ssl-dll-zlib-dll\libcurl.res: libcurl.rc
|
2003-11-06 19:04:19 +03:00
|
|
|
rc /dCURLDEBUG=1 /Fo $@ libcurl.rc
|
2003-11-06 18:09:30 +03:00
|
|
|
|
|
|
|
release-dll\libcurl.res \
|
2005-01-18 13:17:34 +03:00
|
|
|
release-dll-ssl-dll\libcurl.res \
|
|
|
|
release-dll-zlib-dll\libcurl.res \
|
|
|
|
release-dll-ssl-dll-zlib-dll\libcurl.res: libcurl.rc
|
2003-11-06 19:04:19 +03:00
|
|
|
rc /dCURLDEBUG=0 /Fo $@ libcurl.rc
|
2005-01-18 13:17:34 +03:00
|
|
|
!ENDIF # End of case where a config was provided.
|