1 ########################################################
\r
2 ## Makefile for building curl.exe with MSVC6
\r
3 ## Use: nmake -f makefile.vc6 [release | debug]
\r
4 ## (default is release)
\r
6 ## Comments to: Troy Engel <tengel@sonic.net>
\r
8 PROGRAM_NAME = curl.exe
\r
10 ########################################################
\r
11 ## Nothing more to do below this line!
\r
14 CCR = cl.exe /ML /O2 /D "NDEBUG"
\r
15 LINKR = link.exe /incremental:no /libpath:"../lib"
\r
18 CCD = cl.exe /MLd /Gm /ZI /Od /D "_DEBUG" /GZ
\r
19 LINKD = link.exe /incremental:yes /debug
\r
21 CFLAGS = /nologo /W3 /GX /D "WIN32" /D "_CONSOLE" /D "_MBCS" /YX /FD /c
\r
22 LFLAGS = /nologo /out:$(PROGRAM_NAME) /subsystem:console /machine:I386
\r
23 LINKLIBS = kernel32.lib wsock32.lib libcurl.lib
\r
39 release: $(RELEASE_OBJS)
\r
40 $(LINKR) $(LFLAGS) $(LINKLIBS) $(LINK_OBJS)
\r
42 debug: $(DEBUG_OBJS)
\r
43 $(LINKD) $(LFLAGS) $(LINKLIBS) $(LINK_OBJS)
\r
46 hugehelpr.obj: hugehelp.c
\r
47 $(CCR) $(CFLAGS) /Zm200 hugehelp.c
\r
49 $(CCR) $(CFLAGS) main.c
\r
52 hugehelpd.obj: hugehelp.c
\r
53 $(CCD) $(CFLAGS) /Zm200 hugehelp.c
\r
55 $(CCD) $(CFLAGS) main.c
\r
58 -@erase hugehelp.obj
\r
67 -@erase $(PROGRAM_NAME)
\r