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
|
|
|
|
|
|
|
|
########################################################
|
|
|
|
## Nothing more to do below this line!
|
|
|
|
|
|
|
|
## Release
|
|
|
|
CCR = cl.exe /MD /O2 /D "NDEBUG"
|
|
|
|
LINKR = link.exe /incremental:no /libpath:"../lib"
|
|
|
|
|
|
|
|
## Debug
|
|
|
|
CCD = cl.exe /MDd /Gm /ZI /Od /D "_DEBUG" /GZ
|
|
|
|
LINKD = link.exe /incremental:yes /debug /libpath:"../lib"
|
|
|
|
|
2003-08-01 03:53:27 -04:00
|
|
|
!IFNDEF ZLIB_PATH
|
|
|
|
ZLIB_PATH = ../../zlib-1.1.4
|
|
|
|
!ENDIF
|
|
|
|
|
|
|
|
CFLAGS = /I "../include" /I "$(ZLIB_PATH)" /nologo /W3 /GX /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
|
|
|
|
LFLAGS = /nologo /libpath:"$(ZLIB_PATH)" /out:$(PROGRAM_NAME) /subsystem:console /machine:I386
|
|
|
|
LINKLIBS = ws2_32.lib libcurl.lib winmm.lib zlib.lib
|
|
|
|
LINKLIBS_DEBUG = ws2_32.lib libcurld.lib winmm.lib zlib.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 \
|
2001-05-21 17:42:38 -04:00
|
|
|
mainr.obj
|
|
|
|
|
|
|
|
DEBUG_OBJS= \
|
|
|
|
hugehelpd.obj \
|
|
|
|
writeoutd.obj \
|
|
|
|
urlglobd.obj \
|
2003-11-04 01:59:25 -05:00
|
|
|
getpassd.obj \
|
2001-05-21 17:42:38 -04:00
|
|
|
maind.obj
|
|
|
|
|
|
|
|
LINK_OBJS= \
|
|
|
|
hugehelp.obj \
|
|
|
|
writeout.obj \
|
|
|
|
urlglob.obj \
|
2003-11-04 01:59:25 -05:00
|
|
|
getpass.obj \
|
2001-05-21 17:42:38 -04:00
|
|
|
main.obj
|
2002-03-23 10:41:17 -05:00
|
|
|
|
|
|
|
######################
|
|
|
|
# release-ssl
|
|
|
|
|
|
|
|
!IF "$(CFG)" == "release-ssl"
|
|
|
|
!IFNDEF OPENSSL_PATH
|
2003-08-01 03:53:27 -04:00
|
|
|
OPENSSL_PATH = ../../openssl-0.9.7a
|
2002-03-23 10:41:17 -05:00
|
|
|
!ENDIF
|
|
|
|
LFLAGSSSL = /LIBPATH:"$(OPENSSL_PATH)/out32"
|
2003-08-01 03:53:27 -04:00
|
|
|
SSLLIBS = libeay32.lib ssleay32.lib gdi32.lib
|
2002-03-23 10:41:17 -05:00
|
|
|
LINKLIBS = $(LINKLIBS) $(SSLLIBS)
|
|
|
|
LFLAGS = $(LFLAGS) $(LFLAGSSSL)
|
|
|
|
!ENDIF
|
|
|
|
|
2001-05-21 17:42:38 -04:00
|
|
|
all : release
|
|
|
|
|
|
|
|
release: $(RELEASE_OBJS)
|
|
|
|
$(LINKR) $(LFLAGS) $(LINKLIBS) $(LINK_OBJS)
|
|
|
|
|
|
|
|
debug: $(DEBUG_OBJS)
|
|
|
|
$(LINKD) $(LFLAGS) $(LINKLIBS_DEBUG) $(LINK_OBJS)
|
|
|
|
|
|
|
|
## Release
|
|
|
|
hugehelpr.obj: hugehelp.c
|
|
|
|
$(CCR) $(CFLAGS) /Zm200 hugehelp.c
|
|
|
|
writeoutr.obj: writeout.c
|
|
|
|
$(CCR) $(CFLAGS) writeout.c
|
|
|
|
urlglobr.obj: urlglob.c
|
|
|
|
$(CCR) $(CFLAGS) urlglob.c
|
2003-11-04 01:59:25 -05:00
|
|
|
getpassr.obj: getpass.c
|
|
|
|
$(CCR) $(CFLAGS) getpass.c
|
2001-05-21 17:42:38 -04:00
|
|
|
mainr.obj: main.c
|
|
|
|
$(CCR) $(CFLAGS) main.c
|
|
|
|
|
|
|
|
## Debug
|
|
|
|
hugehelpd.obj: hugehelp.c
|
|
|
|
$(CCD) $(CFLAGS) /Zm200 hugehelp.c
|
|
|
|
writeoutd.obj: writeout.c
|
|
|
|
$(CCD) $(CFLAGS) writeout.c
|
|
|
|
urlglobd.obj: urlglob.c
|
|
|
|
$(CCD) $(CFLAGS) urlglob.c
|
2003-11-04 01:59:25 -05:00
|
|
|
getpassd.obj: getpass.c
|
|
|
|
$(CCD) $(CFLAGS) getpass.c
|
2001-05-21 17:42:38 -04:00
|
|
|
maind.obj: main.c
|
|
|
|
$(CCD) $(CFLAGS) main.c
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-@erase hugehelp.obj
|
|
|
|
-@erase main.obj
|
|
|
|
-@erase vc60.idb
|
|
|
|
-@erase vc60.pdb
|
|
|
|
-@erase vc60.pch
|
|
|
|
-@erase curl.ilk
|
|
|
|
-@erase curl.pdb
|
|
|
|
|
|
|
|
distrib: clean
|
|
|
|
-@erase $(PROGRAM_NAME)
|