1
# Makefile for `wget' utility for MSVC 4.0
2
# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
1
# Makefile for `wget' utility for MSVC
2
# Copyright (C) 1995, 1996, 1997, 2004 Free Software Foundation, Inc.
4
4
# This program is free software; you can redistribute it and/or modify
5
5
# it under the terms of the GNU General Public License as published by
25
25
# file, but you are not obligated to do so. If you do not wish to do
26
26
# so, delete this exception statement from your version.
32
#Comment these if you don't have openssl available - however https
35
SSLLIBS = libeay32.lib ssleay32.lib
36
SSLSRC = gen_sslfunc.c
37
SSLOBJ = gen_sslfunc$o
48
CFLAGS = /nologo /MT /W0 /O2
49
#DEBUGCF = /DENABLE_DEBUG /Zi /Od #/Fd /FR
51
DEFS = /DWINDOWS /D_CONSOLE /DHAVE_CONFIG_H /DSYSTEM_WGETRC=\"wgetrc\"
52
LDFLAGS = /subsystem:console /incremental:no /warn:3
53
#DEBUGLF = /pdb:wget.pdb /debug /debugtype:cv /map:wget.map /opt:noref
54
LIBS = kernel32.lib advapi32.lib wsock32.lib user32.lib
58
COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS) $(DEBUGCF) $(DEFS) $(SSLDEFS) $(CFLAGS)
59
LINK = $(LD) $(LDFLAGS) $(DEBUGLF) /out:$@
62
#INSTALL_PROGRAM = @INSTALL_PROGRAM@
29
# SSL (https) support requires the OpenSSL library (see http://www.openssl.org/).
30
# If you do not have OpenSSL installed or wish to build Wget without SSL
31
# support, either comment-out the following lines or define NO_SSL.
34
SSLLIBS = libeay32.lib ssleay32.lib
35
SSLSRC = openssl.c http-ntlm.c
36
SSLOBJ = openssl$o http-ntlm$o
45
DEFS = /DWINDOWS /D_CONSOLE /DHAVE_CONFIG_H $(SSLDEFS)
46
LIBS = kernel32.lib advapi32.lib wsock32.lib user32.lib gdi32.lib $(SSLLIBS)
49
CFLAGS = /nologo /MTd /Od /Zi /I. $(DEFS)
52
CFLAGS = /nologo /MT /O2 /I. $(DEFS)
53
LDFLAGS = /opt:ref #/opt:nowin98
57
# The following enables security checks and is recommended if you are using
58
# MSVC 7.0 (or later) for 80x86.
59
!ifdef SECURITY_CHECKS
60
CFLAGS = $(CFLAGS) /GS
63
# The following enables link-time code generation (Cross-file
64
# interprocedural optimizations).
66
CFLAGS = $(CFLAGS) /GL
67
LDFLAGS = $(LDFLAGS) /ltcg:status
66
71
SRC = cmpt.c safe-ctype.c convert.c connect.c host.c http.c netrc.c \
67
ftp-basic.c ftp.c ftp-ls.c ftp-opie.c getopt.c hash.c headers.c \
72
ftp-basic.c ftp.c ftp-ls.c ftp-opie.c getopt.c hash.c \
68
73
html-parse.c html-url.c progress.c retr.c recur.c res.c url.c cookies.c \
69
init.c utils.c main.c version.c mswindows.c gen-md5.c \
70
gnu-md5.c rbuf.c log.c $(SSLSRC)
74
init.c utils.c main.c ptimer.c version.c xmalloc.c mswindows.c \
75
gen-md5.c gnu-md5.c log.c $(SSLSRC)
72
77
OBJ = cmpt$o safe-ctype$o convert$o connect$o host$o http$o netrc$o \
73
ftp-basic$o ftp$o ftp-ls$o ftp-opie$o getopt$o hash$o headers$o \
78
ftp-basic$o ftp$o ftp-ls$o ftp-opie$o getopt$o hash$o \
74
79
html-parse$o html-url$o progress$o retr$o recur$o res$o url$o cookies$o \
75
init$o utils$o main$o version$o mswindows$o gen-md5$o gnu-md5$o\
76
rbuf$o log$o $(SSLOBJ)
80
init$o utils$o main$o ptimer$o version$o xmalloc$o mswindows$o \
81
gen-md5$o gnu-md5$o log$o $(SSLOBJ)
85
# If this doesn't work for you, remove the second colon.
83
89
# Dependencies for building
88
$(LD) @<< $(LDFLAGS) $(DEBUGLF) /out:$@ $(LIBS) $(SSLLIBS) $(OBJ)
92
$(LD) @<< $(LDFLAGS) /out:$@ $(OBJ) $(LIBS)