X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=windows%2FMakefile.src;h=e9e3d2d3faf7d206abff6dfd40c501b8cce46c07;hp=588beae68cc94d84edb911bc5cff73a5c543f709;hb=edc9055768fed952b30629a9e8fa38ef68761882;hpb=d0c434771038a294962bcf704d9cee88e35be133 diff --git a/windows/Makefile.src b/windows/Makefile.src index 588beae6..e9e3d2d3 100644 --- a/windows/Makefile.src +++ b/windows/Makefile.src @@ -1,9 +1,10 @@ -# Makefile for `wget' utility for MSVC 4.0 -# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. +# Makefile for `wget' utility for MSVC +# Copyright (C) 1995, 1996, 1997, 2004, 2006, 2007, +# 2008 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, @@ -12,102 +13,98 @@ # GNU General Public License for more details. # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - -# In addition, as a special exception, the Free Software Foundation -# gives permission to link the code of its release of Wget with the -# OpenSSL project's "OpenSSL" library (or with modified versions of it -# that use the same license as the "OpenSSL" library), and distribute -# the linked executables. You must obey the GNU General Public License -# in all respects for all of the code used other than "OpenSSL". If you -# modify this file, you may extend this exception to your version of the -# file, but you are not obligated to do so. If you do not wish to do -# so, delete this exception statement from your version. - -# -# Version: 1.4.4 -# - -#Comment these if you don't have openssl available - however https -#won't work. -SSLDEFS = /DHAVE_SSL -SSLLIBS = libeay32.lib ssleay32.lib -SSLSRC = gen_sslfunc.c -SSLOBJ = gen_sslfunc$o - -SHELL = command - -VPATH = . -o = .obj -OUTDIR = . - -CC = cl -LD = link - -CFLAGS = /nologo /MT /W0 /O2 -#DEBUGCF = /DDEBUG /Zi /Od #/Fd /FR -CPPFLAGS = -DEFS = /DWINDOWS /D_CONSOLE /DHAVE_CONFIG_H /DSYSTEM_WGETRC=\"wgetrc\" -LDFLAGS = /subsystem:console /incremental:no /warn:3 -#DEBUGLF = /pdb:wget.pdb /debug /debugtype:cv /map:wget.map /opt:noref -LIBS = kernel32.lib advapi32.lib wsock32.lib user32.lib - -INCLUDES = /I. - -COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS) $(DEBUGCF) $(DEFS) $(SSLDEFS) $(CFLAGS) -LINK = $(LD) $(LDFLAGS) $(DEBUGLF) /out:$@ - -#INSTALL = @INSTALL@ -#INSTALL_PROGRAM = @INSTALL_PROGRAM@ - -RM = del - -SRC = cmpt.c safe-ctype.c convert.c connect.c host.c http.c netrc.c \ - ftp-basic.c ftp.c ftp-ls.c ftp-opie.c getopt.c hash.c headers.c \ - html-parse.c html-url.c progress.c retr.c recur.c res.c url.c cookies.c \ - init.c utils.c main.c version.c mswindows.c fnmatch.c gen-md5.c \ - gnu-md5.c rbuf.c log.c $(SSLSRC) +# along with this program. If not, see . + +# Additional permission under GNU GPL version 3 section 7 + +# If you modify this program, or any covered work, by linking or +# combining it with the OpenSSL project's OpenSSL library (or a +# modified version of that library), containing parts covered by the +# terms of the OpenSSL or SSLeay licenses, the Free Software Foundation +# grants you additional permission to convey the resulting work. +# Corresponding Source for a non-source form of such a combination +# shall include the source code for the parts of OpenSSL used as well +# as that of the covered work. + +# SSL (https) support requires the OpenSSL library (see http://www.openssl.org/). +# If you do not have OpenSSL installed or wish to build Wget without SSL +# support, either comment-out the following lines or define NO_SSL. +!ifndef NO_SSL +SSLDEFS = /DHAVE_SSL +SSLLIBS = libeay32.lib ssleay32.lib +SSLOBJ = openssl$o http-ntlm$o +!endif + +o = .obj + +CC = cl +LD = link +RM = -del + +DEFS = /DWINDOWS /D_CONSOLE /DHAVE_CONFIG_H $(SSLDEFS) +LIBS = kernel32.lib advapi32.lib wsock32.lib user32.lib gdi32.lib $(SSLLIBS) + +!ifdef DEBUG +CFLAGS = /nologo /MTd /Od /Zi /I. $(DEFS) +LDFLAGS = /debug +!else +CFLAGS = /nologo /MT /O2 /I. $(DEFS) +LDFLAGS = /opt:ref #/opt:nowin98 +!endif + + +# The following enables security checks and is recommended if you are using +# MSVC 7.0 (or later) for 80x86. +!ifdef SECURITY_CHECKS +CFLAGS = $(CFLAGS) /GS +!endif + +# The following enables link-time code generation (Cross-file +# interprocedural optimizations). +!ifdef LTCG +CFLAGS = $(CFLAGS) /GL +LDFLAGS = $(LDFLAGS) /ltcg:status +!endif OBJ = cmpt$o safe-ctype$o convert$o connect$o host$o http$o netrc$o \ - ftp-basic$o ftp$o ftp-ls$o ftp-opie$o getopt$o hash$o headers$o \ - html-parse$o html-url$o progress$o retr$o recur$o res$o url$o cookies$o \ - init$o utils$o main$oversion$o mswindows$o fnmatch$o gen-md5$o gnu-md5$o\ - rbuf$o log$o $(SSLOBJ) + ftp-basic$o ftp$o ftp-ls$o ftp-opie$o getopt$o hash$o \ + html-parse$o html-url$o progress$o retr$o recur$o res$o url$o \ + cookies$o init$o utils$o main$o ptimer$o version$o xmalloc$o \ + mswindows$o gen-md5$o gnu-md5$o log$o $(SSLOBJ) spider$o .SUFFIXES: .c .obj -.c.obj: - $(COMPILE) /c $< +# If this doesn't work for you, remove the second colon. +.c.obj:: + $(CC) $(CFLAGS) /c $< # Dependencies for building -wget: wget.exe - wget.exe: $(OBJ) - $(LD) @<< $(LDFLAGS) $(DEBUGLF) /out:$@ $(LIBS) $(SSLLIBS) $(OBJ) + $(LD) @<< $(LDFLAGS) /out:$@ $(OBJ) $(LIBS) << - ren wget.exe WGET.EXE +$(OBJ): config-post.h config.h connect.h convert.h cookies.h ftp.h \ + gen-md5.h getopt.h gnu-md5.h hash.h host.h html-parse.h \ + http-ntlm.h init.h log.h mswindows.h netrc.h options.h \ + progress.h ptimer.h recur.h res.h retr.h safe-ctype.h \ + spider.h ssl.h sysdep.h url.h utils.h wget.h xmalloc.h # # Dependencies for cleanup # clean: - $(RM) *.obj - $(RM) *.exe - $(RM) *.bak - $(RM) *.pdb - $(RM) *.map - $(RM) config.h + $(RM) *.bak + $(RM) *.obj + $(RM) *.exe + $(RM) *.pdb + $(RM) *.map + $(RM) *.ilk distclean: clean $(RM) Makefile + $(RM) config.h realclean: distclean $(RM) TAGS - -# Dependencies: - -!include "..\windows\wget.dep"