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
|
|
|
##
|
|
|
|
## Comments to: Troy Engel <tengel@sonic.net>
|
|
|
|
## Updated by: Craig Davison <cd@securityfocus.com>
|
2002-02-06 11:03:28 -05:00
|
|
|
## release-ssl added by Miklos Nemeth <mnemeth@kfkisystems.com>
|
2002-06-13 18:11:28 -04:00
|
|
|
## winmm.lib added by Miklos Nemeth <mnemeth@kfkisystems.com> to support
|
|
|
|
## timeGetTime() in timeval.c
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
PROGRAM_NAME = curl.exe
|
|
|
|
|
2004-07-05 21:18:35 -04:00
|
|
|
!IFNDEF ZLIB_PATH
|
2004-11-12 06:48:02 -05:00
|
|
|
ZLIB_PATH = ../../zlib-1.2.1
|
2004-07-05 21:18:35 -04:00
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
!IFNDEF OPENSSL_PATH
|
|
|
|
OPENSSL_PATH = ../../openssl-0.9.9d
|
|
|
|
!ENDIF
|
|
|
|
|
2001-05-21 17:42:38 -04:00
|
|
|
########################################################
|
|
|
|
## Nothing more to do below this line!
|
2004-07-11 08:28:07 -04:00
|
|
|
CFLAGSZLIB = /D "HAVE_ZLIB_H" /D "HAVE_ZLIB" /D "HAVE_LIBZ" /I "$(ZLIB_PATH)"
|
|
|
|
LFLAGSZLIB = "/LIBPATH:$(ZLIB_PATH)"
|
|
|
|
ZLIBLIBS = zlib.lib
|
|
|
|
SSLINC = /I "$(OPENSSL_PATH)/inc32" /I "$(OPENSSL_PATH)/inc32/openssl"
|
|
|
|
CFLAGSSSL = /D "USE_SSLEAY"
|
|
|
|
LFLAGSSSL = /LIBPATH:"$(OPENSSL_PATH)/out32"
|
2004-11-12 06:48:02 -05:00
|
|
|
SSLLIBS = libeay32.lib ssleay32.lib gdi32.lib
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
## Release
|
|
|
|
CCR = cl.exe /MD /O2 /D "NDEBUG"
|
|
|
|
LINKR = link.exe /incremental:no /libpath:"../lib"
|
2004-03-04 04:56:39 -05:00
|
|
|
RCR = rc.exe /dCURLDEBUG=0
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
## Debug
|
|
|
|
CCD = cl.exe /MDd /Gm /ZI /Od /D "_DEBUG" /GZ
|
|
|
|
LINKD = link.exe /incremental:yes /debug /libpath:"../lib"
|
2004-03-04 04:56:39 -05:00
|
|
|
RCD = rc.exe /dCURLDEBUG=1
|
2001-05-21 17:42:38 -04:00
|
|
|
|
2004-07-11 08:28:07 -04:00
|
|
|
CFLAGS = /I "../lib" /I "../include" /nologo /W3 /GX /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
|
|
|
LFLAGS = /nologo /out:$(PROGRAM_NAME) /subsystem:console /machine:I386
|
2004-03-04 04:56:39 -05:00
|
|
|
RESFLAGS = /i "../include"
|
2004-07-11 08:28:07 -04:00
|
|
|
LINKLIBS = wsock32.lib libcurl.lib winmm.lib
|
|
|
|
LINKLIBS_DEBUG = wsock32.lib libcurld.lib winmm.lib
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
RELEASE_OBJS= \
|
|
|
|
hugehelpr.obj \
|
|
|
|
writeoutr.obj \
|
|
|
|
urlglobr.obj \
|
2003-11-04 01:59:25 -05:00
|
|
|
getpassr.obj \
|
2003-11-23 17:26:40 -05:00
|
|
|
homedirr.obj \
|
2004-05-25 09:52:12 -04:00
|
|
|
timevalr.obj \
|
|
|
|
strtoofftr.obj \
|
2004-03-04 04:56:39 -05:00
|
|
|
mainr.obj \
|
|
|
|
curlr.res
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
DEBUG_OBJS= \
|
|
|
|
hugehelpd.obj \
|
|
|
|
writeoutd.obj \
|
|
|
|
urlglobd.obj \
|
2003-11-04 01:59:25 -05:00
|
|
|
getpassd.obj \
|
2003-11-23 17:26:40 -05:00
|
|
|
homedird.obj \
|
2004-05-25 09:52:12 -04:00
|
|
|
timevald.obj \
|
|
|
|
strtoofftd.obj \
|
2004-03-04 04:56:39 -05:00
|
|
|
maind.obj \
|
|
|
|
curld.res
|
2004-07-11 08:28:07 -04:00
|
|
|
|
|
|
|
######################
|
|
|
|
# release-zlib
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-zlib"
|
2004-11-12 06:48:02 -05:00
|
|
|
CFLAGS = $(CFLAGS) $(CFLAGSZLIB) /DCURL_STATICLIB
|
2004-07-11 08:28:07 -04:00
|
|
|
LINKLIBS = $(LINKLIBS) $(ZLIBLIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LINKLIBS_DEBUG) $(ZLIBLIBS)
|
|
|
|
LFLAGS = $(LFLAGS) $(LFLAGSZLIB)
|
|
|
|
!ENDIF
|
|
|
|
|
2002-03-23 10:41:17 -05:00
|
|
|
######################
|
|
|
|
# release-ssl
|
2004-11-12 06:48:02 -05:00
|
|
|
|
2002-03-23 10:41:17 -05:00
|
|
|
!IF "$(CFG)" == "release-ssl"
|
2004-11-12 06:48:02 -05:00
|
|
|
CFLAGS = $(CFLAGS) $(CFLAGSSSL) /DCURL_STATICLIB
|
2002-03-23 10:41:17 -05:00
|
|
|
LINKLIBS = $(LINKLIBS) $(SSLLIBS)
|
2004-02-26 11:23:28 -05:00
|
|
|
LINKLIBS_DEBUG = $(LINKLIBS_DEBUG) $(SSLLIBS)
|
2002-03-23 10:41:17 -05:00
|
|
|
LFLAGS = $(LFLAGS) $(LFLAGSSSL)
|
|
|
|
!ENDIF
|
2004-03-04 04:56:39 -05:00
|
|
|
|
2004-05-25 09:52:12 -04:00
|
|
|
######################
|
|
|
|
# release-libcurl-ssl-dll
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-libcurl-ssl-dll"
|
2004-07-11 08:28:07 -04:00
|
|
|
CFLAGS = $(CFLAGS) $(CFLAGSSSL)
|
2004-05-25 09:52:12 -04:00
|
|
|
LINKLIBS = $(LINKLIBS) $(SSLLIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LINKLIBS_DEBUG) $(SSLLIBS)
|
|
|
|
LFLAGS = $(LFLAGS) $(LFLAGSSSL)
|
|
|
|
!ENDIF
|
|
|
|
|
2004-07-11 08:28:07 -04:00
|
|
|
######################
|
|
|
|
# release-ssl-zlib
|
2004-11-12 06:48:02 -05:00
|
|
|
|
2004-07-11 08:28:07 -04:00
|
|
|
!IF "$(CFG)" == "release-ssl-zlib"
|
|
|
|
CFLAGS = $(CFLAGS) $(CFLAGSSSL) $(CFLAGSZLIB)
|
|
|
|
LINKLIBS = $(LINKLIBS) $(SSLLIBS) $(ZLIBLIBS)
|
|
|
|
LINKLIBS_DEBUG = $(LINKLIBS_DEBUG) $(SSLLIBS) $(ZLIBLIBS)
|
|
|
|
LFLAGS = $(LFLAGS) $(LFLAGSSSL) $(LFLAGSZLIB)
|
|
|
|
!ENDIF
|
|
|
|
|
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)
|
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)
|
2001-05-21 17:42:38 -04:00
|
|
|
|
|
|
|
## Release
|
|
|
|
hugehelpr.obj: hugehelp.c
|
2004-02-26 11:23:28 -05:00
|
|
|
$(CCR) $(CFLAGS) /Zm200 /Fo"$@" hugehelp.c
|
2001-05-21 17:42:38 -04:00
|
|
|
writeoutr.obj: writeout.c
|
2004-02-26 11:23:28 -05:00
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" writeout.c
|
2001-05-21 17:42:38 -04:00
|
|
|
urlglobr.obj: urlglob.c
|
2004-02-26 11:23:28 -05:00
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" urlglob.c
|
2003-11-04 01:59:25 -05:00
|
|
|
getpassr.obj: getpass.c
|
2004-02-26 11:23:28 -05:00
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" getpass.c
|
2003-11-23 17:26:40 -05:00
|
|
|
homedirr.obj: homedir.c
|
2004-02-26 11:23:28 -05:00
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" homedir.c
|
2004-05-25 09:52:12 -04:00
|
|
|
timevalr.obj: ../lib/timeval.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" ../lib/timeval.c
|
|
|
|
strtoofftr.obj: ../lib/strtoofft.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" ../lib/strtoofft.c
|
2001-05-21 17:42:38 -04:00
|
|
|
mainr.obj: main.c
|
2004-02-26 11:23:28 -05:00
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" main.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
|
|
|
|
hugehelpd.obj: hugehelp.c
|
2004-02-26 11:23:28 -05:00
|
|
|
$(CCD) $(CFLAGS) /Zm200 /Fo"$@" hugehelp.c
|
2001-05-21 17:42:38 -04:00
|
|
|
writeoutd.obj: writeout.c
|
2004-02-26 11:23:28 -05:00
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" writeout.c
|
2001-05-21 17:42:38 -04:00
|
|
|
urlglobd.obj: urlglob.c
|
2004-02-26 11:23:28 -05:00
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" urlglob.c
|
2003-11-04 01:59:25 -05:00
|
|
|
getpassd.obj: getpass.c
|
2004-02-26 11:23:28 -05:00
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" getpass.c
|
2003-11-23 17:26:40 -05:00
|
|
|
homedird.obj: homedir.c
|
2004-02-26 11:23:28 -05:00
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" homedir.c
|
2004-05-25 09:52:12 -04:00
|
|
|
timevald.obj: timeval.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" timeval.c
|
|
|
|
strtoofftd.obj: ../lib/strtoofft.c
|
|
|
|
$(CCR) $(CFLAGS) /Fo"$@" ../lib/strtoofft.c
|
2001-05-21 17:42:38 -04:00
|
|
|
maind.obj: main.c
|
2004-02-26 11:23:28 -05:00
|
|
|
$(CCD) $(CFLAGS) /Fo"$@" main.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:
|
2004-03-03 08:32:56 -05:00
|
|
|
-@erase $(RELEASE_OBJS)
|
|
|
|
-@erase $(DEBUG_OBJS)
|
2001-05-21 17:42:38 -04:00
|
|
|
-@erase vc60.idb
|
|
|
|
-@erase vc60.pdb
|
|
|
|
-@erase vc60.pch
|
2004-03-03 08:32:56 -05:00
|
|
|
-@erase vc70.idb
|
|
|
|
-@erase vc70.pch
|
2001-05-21 17:42:38 -04:00
|
|
|
-@erase curl.ilk
|
|
|
|
-@erase curl.pdb
|
|
|
|
|
|
|
|
distrib: clean
|
|
|
|
-@erase $(PROGRAM_NAME)
|