1999-12-02 02:42:23 -05:00
|
|
|
# Makefile for `wget' utility
|
|
|
|
# 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: @VERSION@
|
|
|
|
#
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
2001-03-27 06:23:59 -05:00
|
|
|
top_builddir = ..
|
|
|
|
|
1999-12-02 02:42:23 -05:00
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
srcdir = @srcdir@
|
|
|
|
VPATH = @srcdir@
|
|
|
|
ANSI2KNR = @ANSI2KNR@
|
|
|
|
o = .@U@o
|
|
|
|
|
|
|
|
prefix = @prefix@
|
|
|
|
exec_prefix = @exec_prefix@
|
|
|
|
bindir = @bindir@
|
|
|
|
sysconfdir = @sysconfdir@
|
|
|
|
localedir = $(prefix)/share/locale
|
|
|
|
|
2001-04-12 08:25:22 -04:00
|
|
|
DESTDIR =
|
|
|
|
|
1999-12-02 02:42:23 -05:00
|
|
|
CC = @CC@
|
|
|
|
CPPFLAGS = @CPPFLAGS@
|
|
|
|
# The following line is losing on some versions of make!
|
|
|
|
DEFS = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
|
|
|
|
CFLAGS = @CFLAGS@
|
|
|
|
LDFLAGS = @LDFLAGS@
|
|
|
|
LIBS = @LIBS@
|
|
|
|
exeext = @exeext@
|
|
|
|
|
2001-03-17 09:21:19 -05:00
|
|
|
INCLUDES = -I. -I$(srcdir) @SSL_INCLUDES@
|
1999-12-02 02:42:23 -05:00
|
|
|
|
|
|
|
COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS) $(DEFS) $(CFLAGS)
|
2002-04-12 09:47:02 -04:00
|
|
|
LINK = @LIBTOOL@ --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
|
1999-12-02 02:42:23 -05:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
RM = rm -f
|
|
|
|
ETAGS = etags
|
|
|
|
|
|
|
|
# Conditional compiles
|
2001-11-17 23:52:18 -05:00
|
|
|
ALLOCA = @ALLOCA@
|
|
|
|
MD5_OBJ = @MD5_OBJ@
|
|
|
|
OPIE_OBJ = @OPIE_OBJ@
|
2005-04-06 16:42:22 -04:00
|
|
|
NTLM_OBJ = @NTLM_OBJ@
|
2001-11-17 23:52:18 -05:00
|
|
|
SSL_OBJ = @SSL_OBJ@
|
|
|
|
GETOPT_OBJ = @GETOPT_OBJ@
|
1999-12-02 02:42:23 -05:00
|
|
|
|
2003-10-07 19:53:31 -04:00
|
|
|
OBJ = $(ALLOCA) cmpt$o connect$o convert$o cookies$o \
|
2003-09-21 18:47:14 -04:00
|
|
|
ftp$o ftp-basic$o ftp-ls$o $(OPIE_OBJ) $(GETOPT_OBJ) hash$o \
|
2005-04-06 16:42:22 -04:00
|
|
|
host$o html-parse$o html-url$o http$o $(NTLM_OBJ) init$o \
|
|
|
|
log$o main$o $(MD5_OBJ) netrc$o progress$o recur$o \
|
2001-11-22 23:59:52 -05:00
|
|
|
res$o retr$o safe-ctype$o snprintf$o $(SSL_OBJ) url$o \
|
2005-04-05 14:46:44 -04:00
|
|
|
utils$o version$o xmalloc$o
|
1999-12-02 02:42:23 -05:00
|
|
|
|
|
|
|
.SUFFIXES:
|
|
|
|
.SUFFIXES: .c .o ._c ._o
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(COMPILE) -c $<
|
|
|
|
|
|
|
|
.c._c: $(ANSI2KNR)
|
|
|
|
$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@
|
|
|
|
|
|
|
|
._c._o:
|
|
|
|
@echo $(COMPILE) -c $<
|
|
|
|
@rm -f _$*.c
|
|
|
|
@ln $< _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
|
|
|
|
|
|
|
|
.c._o: $(ANSI2KNR)
|
|
|
|
$(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
|
|
|
|
@echo $(COMPILE) -c $*._c
|
|
|
|
@rm -f _$*.c
|
|
|
|
@ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
|
|
|
|
|
|
|
|
# Dependencies for building
|
|
|
|
|
|
|
|
wget$(exeext): $(OBJ)
|
|
|
|
$(LINK) $(OBJ) $(LIBS)
|
|
|
|
|
|
|
|
ansi2knr: ansi2knr.o
|
|
|
|
$(CC) -o ansi2knr ansi2knr.o $(LIBS)
|
|
|
|
|
|
|
|
$(OBJ): $(ANSI2KNR)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Dependencies for installing
|
|
|
|
#
|
|
|
|
|
|
|
|
install: install.bin
|
|
|
|
|
|
|
|
uninstall: uninstall.bin
|
|
|
|
|
|
|
|
install.bin: wget$(exeext)
|
2001-04-12 08:25:22 -04:00
|
|
|
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
|
|
|
|
$(INSTALL_PROGRAM) wget$(exeext) $(DESTDIR)$(bindir)/wget$(exeext)
|
1999-12-02 02:42:23 -05:00
|
|
|
|
|
|
|
uninstall.bin:
|
2001-04-12 08:25:22 -04:00
|
|
|
$(RM) $(DESTDIR)$(bindir)/wget$(exeext)
|
1999-12-02 02:42:23 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Dependencies for cleanup
|
|
|
|
#
|
|
|
|
|
|
|
|
clean:
|
2003-09-15 19:42:59 -04:00
|
|
|
$(RM) *.o wget$(exeext) *~ *.bak core core.[0-9]* $(ANSI2KNR) *._o *._c
|
2003-09-23 16:10:59 -04:00
|
|
|
$(RM) -r .libs
|
1999-12-02 02:42:23 -05:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
$(RM) Makefile config.h
|
|
|
|
|
|
|
|
realclean: distclean
|
2003-11-04 11:06:25 -05:00
|
|
|
$(RM) TAGS config.h.in
|
1999-12-02 02:42:23 -05:00
|
|
|
|
|
|
|
#
|
|
|
|
# Dependencies for maintenance
|
|
|
|
#
|
|
|
|
|
|
|
|
subdir = src
|
|
|
|
|
|
|
|
Makefile: Makefile.in ../config.status
|
|
|
|
cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
|
|
|
|
|
|
|
|
TAGS: *.c *.h
|
|
|
|
-$(ETAGS) *.c *.h
|
|
|
|
|
|
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
|
|
|
2002-03-26 13:59:44 -05:00
|
|
|
alloca$o:
|
2002-04-15 16:15:43 -04:00
|
|
|
cmpt$o: wget.h sysdep.h options.h safe-ctype.h
|
|
|
|
connect$o: wget.h sysdep.h options.h safe-ctype.h utils.h connect.h host.h
|
2003-09-21 18:47:14 -04:00
|
|
|
convert$o: wget.h convert.h url.h recur.h utils.h hash.h
|
2002-04-15 16:15:43 -04:00
|
|
|
cookies$o: wget.h sysdep.h options.h safe-ctype.h cookies.h hash.h url.h utils.h
|
2003-11-20 20:48:11 -05:00
|
|
|
ftp-basic$o: wget.h sysdep.h options.h safe-ctype.h utils.h connect.h \
|
2002-04-15 16:15:43 -04:00
|
|
|
host.h ftp.h
|
2003-11-20 20:48:11 -05:00
|
|
|
ftp-ls$o: wget.h sysdep.h options.h safe-ctype.h utils.h ftp.h host.h \
|
2002-04-15 16:15:43 -04:00
|
|
|
url.h
|
|
|
|
ftp-opie$o: wget.h sysdep.h options.h safe-ctype.h gen-md5.h
|
2003-11-20 20:48:11 -05:00
|
|
|
ftp$o: wget.h sysdep.h options.h safe-ctype.h utils.h url.h retr.h \
|
2003-10-07 19:53:31 -04:00
|
|
|
ftp.h host.h connect.h netrc.h
|
2002-04-15 16:15:43 -04:00
|
|
|
gen-md5$o: wget.h sysdep.h options.h safe-ctype.h gen-md5.h
|
|
|
|
gen_sslfunc$o: wget.h sysdep.h options.h safe-ctype.h utils.h connect.h host.h \
|
|
|
|
url.h
|
|
|
|
getopt$o: wget.h sysdep.h options.h safe-ctype.h getopt.h
|
|
|
|
gnu-md5$o: wget.h sysdep.h options.h safe-ctype.h gnu-md5.h
|
|
|
|
hash$o: wget.h sysdep.h options.h safe-ctype.h utils.h hash.h
|
|
|
|
host$o: wget.h sysdep.h options.h safe-ctype.h utils.h host.h url.h hash.h
|
|
|
|
html-parse$o: wget.h sysdep.h options.h safe-ctype.h html-parse.h
|
|
|
|
html-url$o: wget.h sysdep.h options.h safe-ctype.h html-parse.h url.h utils.h
|
2003-11-20 20:48:11 -05:00
|
|
|
http$o: wget.h sysdep.h options.h safe-ctype.h utils.h url.h host.h \
|
2003-11-25 19:20:42 -05:00
|
|
|
retr.h connect.h host.h netrc.h gen_sslfunc.h \
|
2002-04-15 16:15:43 -04:00
|
|
|
cookies.h gen-md5.h
|
|
|
|
init$o: wget.h sysdep.h options.h safe-ctype.h utils.h init.h host.h recur.h \
|
|
|
|
netrc.h cookies.h progress.h
|
|
|
|
log$o: wget.h sysdep.h options.h safe-ctype.h utils.h
|
2003-11-20 20:48:11 -05:00
|
|
|
main$o: wget.h sysdep.h options.h safe-ctype.h utils.h init.h retr.h \
|
2002-04-15 16:15:43 -04:00
|
|
|
recur.h host.h cookies.h url.h progress.h gen_sslfunc.h getopt.h
|
|
|
|
gnu-md5$o: wget.h sysdep.h options.h safe-ctype.h gnu-md5.h
|
|
|
|
mswindows$o: wget.h sysdep.h options.h safe-ctype.h utils.h url.h
|
|
|
|
netrc$o: wget.h sysdep.h options.h safe-ctype.h utils.h netrc.h init.h
|
2003-11-20 20:48:11 -05:00
|
|
|
progress$o: wget.h sysdep.h options.h safe-ctype.h progress.h utils.h retr.h
|
2002-04-15 16:15:43 -04:00
|
|
|
recur$o: wget.h sysdep.h options.h safe-ctype.h url.h recur.h utils.h retr.h \
|
2003-11-20 20:48:11 -05:00
|
|
|
ftp.h host.h hash.h
|
2002-04-15 16:15:43 -04:00
|
|
|
res$o: wget.h sysdep.h options.h safe-ctype.h utils.h hash.h url.h retr.h res.h
|
2003-11-20 20:48:11 -05:00
|
|
|
retr$o: wget.h sysdep.h options.h safe-ctype.h utils.h retr.h url.h \
|
2002-04-15 16:15:43 -04:00
|
|
|
recur.h ftp.h host.h connect.h hash.h
|
2001-03-30 17:36:59 -05:00
|
|
|
safe-ctype$o: safe-ctype.h
|
2005-01-01 16:29:11 -05:00
|
|
|
snprintf$o: safe-ctype.h
|
2002-04-15 16:15:43 -04:00
|
|
|
url$o: wget.h sysdep.h options.h safe-ctype.h utils.h url.h host.h hash.h
|
2003-10-07 19:53:31 -04:00
|
|
|
utils$o: wget.h sysdep.h options.h safe-ctype.h utils.h hash.h
|
2000-11-19 15:50:10 -05:00
|
|
|
version$o:
|
2003-10-31 09:31:56 -05:00
|
|
|
xmalloc$o: wget.h xmalloc.h
|