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.
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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)
|
2001-03-17 09:21:19 -05:00
|
|
|
LINK = @LIBTOOL@ $(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@
|
|
|
|
SSL_OBJ = @SSL_OBJ@
|
|
|
|
GETOPT_OBJ = @GETOPT_OBJ@
|
1999-12-02 02:42:23 -05:00
|
|
|
|
2001-04-08 18:25:24 -04:00
|
|
|
OBJ = $(ALLOCA) cmpt$o connect$o cookies$o fnmatch$o ftp$o \
|
2001-11-17 23:52:18 -05:00
|
|
|
ftp-basic$o ftp-ls$o $(OPIE_OBJ) $(GETOPT_OBJ) hash$o \
|
2001-04-08 18:25:24 -04:00
|
|
|
headers$o host$o html-parse$o html-url$o http$o init$o \
|
2001-11-22 23:59:52 -05:00
|
|
|
log$o main$o $(MD5_OBJ) netrc$o progress$o rbuf$o recur$o \
|
|
|
|
res$o retr$o safe-ctype$o snprintf$o $(SSL_OBJ) url$o \
|
2001-11-17 21:17:30 -05:00
|
|
|
utils$o version$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:
|
|
|
|
$(RM) *.o wget$(exeext) *~ *.bak core $(ANSI2KNR) *._o *._c
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
$(RM) Makefile config.h
|
|
|
|
|
|
|
|
realclean: distclean
|
|
|
|
$(RM) TAGS
|
|
|
|
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2000-11-19 15:50:10 -05:00
|
|
|
cmpt$o: wget.h
|
|
|
|
connect$o: wget.h connect.h host.h
|
2001-04-08 18:25:24 -04:00
|
|
|
cookies$o: wget.h cookies.h hash.h url.h utils.h
|
2000-11-19 15:50:10 -05:00
|
|
|
fnmatch$o: wget.h fnmatch.h
|
|
|
|
ftp-basic$o: wget.h utils.h rbuf.h connect.h host.h
|
2001-02-13 02:40:53 -05:00
|
|
|
ftp-ls$o: wget.h utils.h ftp.h url.h
|
2001-11-17 23:36:21 -05:00
|
|
|
ftp-opie$o: wget.h
|
2000-11-19 15:50:10 -05:00
|
|
|
ftp$o: wget.h utils.h url.h rbuf.h retr.h ftp.h connect.h host.h fnmatch.h netrc.h
|
|
|
|
hash$o: wget.h utils.h hash.h
|
|
|
|
headers$o: wget.h connect.h rbuf.h headers.h
|
|
|
|
host$o: wget.h utils.h host.h url.h hash.h
|
|
|
|
html-parse$o: wget.h html-parse.h
|
|
|
|
html-url$o: wget.h html-parse.h url.h utils.h
|
|
|
|
html$o: wget.h url.h utils.h ftp.h
|
2001-11-17 23:36:21 -05:00
|
|
|
http$o: wget.h utils.h url.h host.h rbuf.h retr.h headers.h cookies.h connect.h fnmatch.h netrc.h
|
2000-11-19 15:50:10 -05:00
|
|
|
init$o: wget.h utils.h init.h host.h recur.h netrc.h
|
|
|
|
log$o: wget.h utils.h
|
2001-11-17 23:52:18 -05:00
|
|
|
main$o: wget.h utils.h init.h retr.h recur.h host.h cookies.h
|
2001-11-17 23:36:21 -05:00
|
|
|
gnu-md5$o: wget.h gnu-md5.h
|
2000-11-19 15:50:10 -05:00
|
|
|
mswindows$o: wget.h url.h
|
|
|
|
netrc$o: wget.h utils.h netrc.h init.h
|
2001-11-24 22:10:34 -05:00
|
|
|
progress$o: wget.h progress.h utils.h retr.h
|
2000-11-19 15:50:10 -05:00
|
|
|
rbuf$o: wget.h rbuf.h connect.h
|
|
|
|
recur$o: wget.h url.h recur.h utils.h retr.h ftp.h fnmatch.h host.h hash.h
|
2001-11-24 22:10:34 -05:00
|
|
|
res$o: wget.h utils.h hash.h url.h retr.h res.h
|
2000-11-19 15:50:10 -05:00
|
|
|
retr$o: wget.h utils.h retr.h url.h recur.h ftp.h host.h connect.h hash.h
|
|
|
|
snprintf$o:
|
2001-03-30 17:36:59 -05:00
|
|
|
safe-ctype$o: safe-ctype.h
|
2000-11-19 15:50:10 -05:00
|
|
|
url$o: wget.h utils.h url.h host.h
|
|
|
|
utils$o: wget.h utils.h fnmatch.h hash.h
|
|
|
|
version$o:
|