1 #############################################################
\r
2 ## Makefile for building libcurl.lib with MSVC6
\r
3 ## Use: nmake -f makefile.vc6 [release | release-ssl | debug]
\r
4 ## (default is release)
\r
6 ## Comments to: Troy Engel <tengel@sonic.net>
\r
8 PROGRAM_NAME = libcurl.lib
\r
9 OPENSSL_PATH = ../../openssl-0.9.3a
\r
11 ########################################################
\r
12 ## Nothing more to do below this line!
\r
15 CCR = cl.exe /ML /O2 /D "NDEBUG"
\r
16 LINKR = link.exe -lib
\r
19 CCD = cl.exe /MLd /Gm /ZI /Od /D "_DEBUG" /GZ
\r
20 LINKD = link.exe -lib
\r
23 CCRS = cl.exe /ML /O2 /D "NDEBUG" /D "USE_SSLEAY" /I "$(OPENSSL_PATH)/inc32" /I "$(OPENSSL_PATH)/inc32/openssl"
\r
24 LINKRS = link.exe -lib /LIBPATH:$(OPENSSL_PATH)/out32dll
\r
26 CFLAGS = /nologo /W3 /GX /D "WIN32" /D "_MBCS" /D "_LIB" /YX /FD /c
\r
27 LFLAGS = /nologo /out:$(PROGRAM_NAME)
\r
28 LINKLIBS = kernel32.lib wsock32.lib
\r
29 LINKSLIBS = libeay32.lib ssleay32.lib RSAglue.lib
\r
141 release: $(RELEASE_OBJS)
\r
142 $(LINKR) $(LFLAGS) $(LINKLIBS) $(LINK_OBJS)
\r
144 debug: $(DEBUG_OBJS)
\r
145 $(LINKD) $(LFLAGS) $(LINKLIBS) $(LINK_OBJS)
\r
147 release-ssl: $(RELEASE_SSL_OBJS)
\r
148 $(LINKRS) $(LFLAGS) $(LINKLIBS) $(LINKSLIBS) $(LINK_OBJS)
\r
152 base64r.obj: base64.c
\r
153 $(CCR) $(CFLAGS) base64.c
\r
154 cookier.obj: cookie.c
\r
155 $(CCR) $(CFLAGS) cookie.c
\r
156 downloadr.obj: download.c
\r
157 $(CCR) $(CFLAGS) download.c
\r
158 escaper.obj: escape.c
\r
159 $(CCR) $(CFLAGS) escape.c
\r
160 formdatar.obj: formdata.c
\r
161 $(CCR) $(CFLAGS) formdata.c
\r
163 $(CCR) $(CFLAGS) ftp.c
\r
165 $(CCR) $(CFLAGS) http.c
\r
167 $(CCR) $(CFLAGS) dict.c
\r
168 telnetr.obj: telnet.c
\r
169 $(CCR) $(CFLAGS) telnet.c
\r
170 getdater.obj: getdate.c
\r
171 $(CCR) $(CFLAGS) getdate.c
\r
172 getenvr.obj: getenv.c
\r
173 $(CCR) $(CFLAGS) getenv.c
\r
174 getpassr.obj: getpass.c
\r
175 $(CCR) $(CFLAGS) getpass.c
\r
176 hostipr.obj: hostip.c
\r
177 $(CCR) $(CFLAGS) hostip.c
\r
178 if2ipr.obj: if2ip.c
\r
179 $(CCR) $(CFLAGS) if2ip.c
\r
180 mprintfr.obj: mprintf.c
\r
181 $(CCR) $(CFLAGS) mprintf.c
\r
182 netrcr.obj: netrc.c
\r
183 $(CCR) $(CFLAGS) netrc.c
\r
184 progressr.obj: progress.c
\r
185 $(CCR) $(CFLAGS) progress.c
\r
186 sendfr.obj: sendf.c
\r
187 $(CCR) $(CFLAGS) sendf.c
\r
188 speedcheckr.obj: speedcheck.c
\r
189 $(CCR) $(CFLAGS) speedcheck.c
\r
190 ssluser.obj: ssluse.c
\r
191 $(CCR) $(CFLAGS) ssluse.c
\r
192 timevalr.obj: timeval.c
\r
193 $(CCR) $(CFLAGS) timeval.c
\r
194 uploadr.obj: upload.c
\r
195 $(CCR) $(CFLAGS) upload.c
\r
197 $(CCR) $(CFLAGS) url.c
\r
199 $(CCR) $(CFLAGS) file.c
\r
200 versionr.obj: version.c
\r
201 $(CCR) $(CFLAGS) version.c
\r
204 base64d.obj: base64.c
\r
205 $(CCD) $(CFLAGS) base64.c
\r
206 cookied.obj: cookie.c
\r
207 $(CCD) $(CFLAGS) cookie.c
\r
208 downloadd.obj: download.c
\r
209 $(CCD) $(CFLAGS) download.c
\r
210 escaped.obj: escape.c
\r
211 $(CCD) $(CFLAGS) escape.c
\r
212 formdatad.obj: formdata.c
\r
213 $(CCD) $(CFLAGS) formdata.c
\r
215 $(CCD) $(CFLAGS) ftp.c
\r
217 $(CCD) $(CFLAGS) http.c
\r
219 $(CCD) $(CFLAGS) dict.c
\r
220 telnetd.obj: telnet.c
\r
221 $(CCD) $(CFLAGS) telnet.c
\r
222 getdated.obj: getdate.c
\r
223 $(CCD) $(CFLAGS) getdate.c
\r
224 getenvd.obj: getenv.c
\r
225 $(CCD) $(CFLAGS) getenv.c
\r
226 getpassd.obj: getpass.c
\r
227 $(CCD) $(CFLAGS) getpass.c
\r
228 hostipd.obj: hostip.c
\r
229 $(CCD) $(CFLAGS) hostip.c
\r
230 if2ipd.obj: if2ip.c
\r
231 $(CCD) $(CFLAGS) if2ip.c
\r
232 mprintfd.obj: mprintf.c
\r
233 $(CCD) $(CFLAGS) mprintf.c
\r
234 netrcd.obj: netrc.c
\r
235 $(CCD) $(CFLAGS) netrc.c
\r
236 progressd.obj: progress.c
\r
237 $(CCD) $(CFLAGS) progress.c
\r
238 sendfd.obj: sendf.c
\r
239 $(CCD) $(CFLAGS) sendf.c
\r
240 speedcheckd.obj: speedcheck.c
\r
241 $(CCD) $(CFLAGS) speedcheck.c
\r
242 sslused.obj: ssluse.c
\r
243 $(CCD) $(CFLAGS) ssluse.c
\r
244 timevald.obj: timeval.c
\r
245 $(CCD) $(CFLAGS) timeval.c
\r
246 uploadd.obj: upload.c
\r
247 $(CCD) $(CFLAGS) upload.c
\r
249 $(CCD) $(CFLAGS) url.c
\r
251 $(CCD) $(CFLAGS) file.c
\r
252 versiond.obj: version.c
\r
253 $(CCD) $(CFLAGS) version.c
\r
257 base64rs.obj: base64.c
\r
258 $(CCRS) $(CFLAGS) base64.c
\r
259 cookiers.obj: cookie.c
\r
260 $(CCRS) $(CFLAGS) cookie.c
\r
261 downloadrs.obj: download.c
\r
262 $(CCRS) $(CFLAGS) download.c
\r
263 escapers.obj: escape.c
\r
264 $(CCRS) $(CFLAGS) escape.c
\r
265 formdatars.obj: formdata.c
\r
266 $(CCRS) $(CFLAGS) formdata.c
\r
268 $(CCRS) $(CFLAGS) ftp.c
\r
270 $(CCRS) $(CFLAGS) http.c
\r
272 $(CCRS) $(CFLAGS) dict.c
\r
273 telnetrs.obj: telnet.c
\r
274 $(CCRS) $(CFLAGS) telnet.c
\r
275 getdaters.obj: getdate.c
\r
276 $(CCRS) $(CFLAGS) getdate.c
\r
277 getenvrs.obj: getenv.c
\r
278 $(CCRS) $(CFLAGS) getenv.c
\r
279 getpassrs.obj: getpass.c
\r
280 $(CCRS) $(CFLAGS) getpass.c
\r
281 hostiprs.obj: hostip.c
\r
282 $(CCRS) $(CFLAGS) hostip.c
\r
283 if2iprs.obj: if2ip.c
\r
284 $(CCRS) $(CFLAGS) if2ip.c
\r
285 mprintfrs.obj: mprintf.c
\r
286 $(CCRS) $(CFLAGS) mprintf.c
\r
287 netrcrs.obj: netrc.c
\r
288 $(CCRS) $(CFLAGS) netrc.c
\r
289 progressrs.obj: progress.c
\r
290 $(CCRS) $(CFLAGS) progress.c
\r
291 sendfrs.obj: sendf.c
\r
292 $(CCRS) $(CFLAGS) sendf.c
\r
293 speedcheckrs.obj: speedcheck.c
\r
294 $(CCRS) $(CFLAGS) speedcheck.c
\r
295 sslusers.obj: ssluse.c
\r
296 $(CCRS) $(CFLAGS) ssluse.c
\r
297 timevalrs.obj: timeval.c
\r
298 $(CCRS) $(CFLAGS) timeval.c
\r
299 uploadrs.obj: upload.c
\r
300 $(CCRS) $(CFLAGS) upload.c
\r
302 $(CCRS) $(CFLAGS) url.c
\r
304 $(CCRS) $(CFLAGS) file.c
\r
305 versionrs.obj: version.c
\r
306 $(CCRS) $(CFLAGS) version.c
\r
314 -@erase $(PROGRAM_NAME)
\r