1999-12-02 02:42:23 -05:00
|
|
|
# Makefile for `wget' utility for MSVC 4.0
|
|
|
|
# Copyright (C) 1995, 1996, 1997 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
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# 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.
|
|
|
|
|
2002-05-17 22:16:36 -04:00
|
|
|
# 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.
|
|
|
|
|
1999-12-02 02:42:23 -05:00
|
|
|
#
|
|
|
|
# Version: 1.4.4
|
|
|
|
#
|
|
|
|
|
2001-12-12 06:33:04 -05:00
|
|
|
#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
|
2001-05-14 11:29:55 -04:00
|
|
|
|
1999-12-02 02:42:23 -05:00
|
|
|
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.
|
|
|
|
|
2001-05-14 11:29:55 -04:00
|
|
|
COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS) $(DEBUGCF) $(DEFS) $(SSLDEFS) $(CFLAGS)
|
1999-12-02 02:42:23 -05:00
|
|
|
LINK = $(LD) $(LDFLAGS) $(DEBUGLF) /out:$@
|
|
|
|
|
|
|
|
#INSTALL = @INSTALL@
|
|
|
|
#INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
|
|
|
|
RM = del
|
|
|
|
|
2001-04-28 10:02:29 -04:00
|
|
|
SRC = cmpt.c safe-ctype.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 \
|
2001-11-29 09:15:11 -05:00
|
|
|
progress.c retr.c recur.c res.c url.c cookies.c init.c utils.c main.c \
|
2001-12-04 05:33:18 -05:00
|
|
|
version.c mswindows.c fnmatch.c gen-md5.c gnu-md5.c rbuf.c log.c $(SSLSRC)
|
2001-04-28 10:02:29 -04:00
|
|
|
|
|
|
|
OBJ = cmpt$o safe-ctype$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 \
|
2001-11-29 09:15:11 -05:00
|
|
|
progress$o retr$o recur$o res$o url$o cookies$o init$o utils$o main$o \
|
2001-12-04 05:33:18 -05:00
|
|
|
version$o mswindows$o fnmatch$o gen-md5$o gnu-md5$o rbuf$o log$o $(SSLOBJ)
|
1999-12-02 02:42:23 -05:00
|
|
|
|
|
|
|
.SUFFIXES: .c .obj
|
|
|
|
|
|
|
|
.c.obj:
|
|
|
|
$(COMPILE) /c $<
|
|
|
|
|
|
|
|
# Dependencies for building
|
|
|
|
|
|
|
|
wget: wget.exe
|
|
|
|
|
|
|
|
wget.exe: $(OBJ)
|
2001-05-14 11:29:55 -04:00
|
|
|
$(LD) @<< $(LDFLAGS) $(DEBUGLF) /out:$@ $(LIBS) $(SSLLIBS) $(OBJ)
|
1999-12-02 02:42:23 -05:00
|
|
|
<<
|
|
|
|
ren wget.exe WGET.EXE
|
|
|
|
|
|
|
|
|
|
|
|
#
|
|
|
|
# Dependencies for cleanup
|
|
|
|
#
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) *.obj
|
|
|
|
$(RM) *.exe
|
|
|
|
$(RM) *.bak
|
|
|
|
$(RM) *.pdb
|
|
|
|
$(RM) *.map
|
2001-11-22 12:22:19 -05:00
|
|
|
$(RM) config.h
|
1999-12-02 02:42:23 -05:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
$(RM) Makefile
|
|
|
|
|
|
|
|
realclean: distclean
|
|
|
|
$(RM) TAGS
|
|
|
|
|
|
|
|
# Dependencies:
|
|
|
|
|
|
|
|
!include "..\windows\wget.dep"
|