]> sjero.net Git - wget/blob - src/Makefile.in
[svn] Remove K&R support.
[wget] / src / Makefile.in
1 # Makefile for `wget' utility
2 # Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
3
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2 of the License, or
7 # (at your option) any later version.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13
14 # You should have received a copy of the GNU General Public License
15 # along with this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 # In addition, as a special exception, the Free Software Foundation
19 # gives permission to link the code of its release of Wget with the
20 # OpenSSL project's "OpenSSL" library (or with modified versions of it
21 # that use the same license as the "OpenSSL" library), and distribute
22 # the linked executables.  You must obey the GNU General Public License
23 # in all respects for all of the code used other than "OpenSSL".  If you
24 # modify this file, you may extend this exception to your version of the
25 # file, but you are not obligated to do so.  If you do not wish to do
26 # so, delete this exception statement from your version.
27
28 #
29 # Version: @VERSION@
30 #
31
32 SHELL = /bin/sh
33
34 top_builddir = ..
35
36 top_srcdir = @top_srcdir@
37 srcdir     = @srcdir@
38 VPATH      = @srcdir@
39
40 prefix       = @prefix@
41 exec_prefix  = @exec_prefix@
42 bindir       = @bindir@
43 sysconfdir   = @sysconfdir@
44 localedir    = $(prefix)/share/locale
45
46 DESTDIR      =
47
48 CC       = @CC@
49 CPPFLAGS = @CPPFLAGS@
50 # The following line is losing on some versions of make!
51 DEFS     = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
52 CFLAGS   = @CFLAGS@
53 LDFLAGS  = @LDFLAGS@
54 LIBS     = @LIBS@
55 exeext   = @exeext@
56
57 INCLUDES = -I. -I$(srcdir) @SSL_INCLUDES@
58
59 COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS)  $(DEFS) $(CFLAGS)
60 LINK    = @LIBTOOL@ --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
61 INSTALL = @INSTALL@
62 INSTALL_PROGRAM = @INSTALL_PROGRAM@
63 RM = rm -f
64 ETAGS = etags
65
66 # Conditional compiles
67 ALLOCA     = @ALLOCA@
68 MD5_OBJ    = @MD5_OBJ@
69 OPIE_OBJ   = @OPIE_OBJ@
70 NTLM_OBJ   = @NTLM_OBJ@
71 SSL_OBJ    = @SSL_OBJ@
72 GETOPT_OBJ = @GETOPT_OBJ@
73
74 OBJ = $(ALLOCA) cmpt.o connect.o convert.o cookies.o              \
75       ftp.o ftp-basic.o ftp-ls.o $(OPIE_OBJ) $(GETOPT_OBJ) hash.o \
76       host.o html-parse.o html-url.o http.o $(NTLM_OBJ) init.o    \
77       log.o main.o $(MD5_OBJ) netrc.o progress.o ptimer.o recur.o \
78       res.o retr.o safe-ctype.o snprintf.o $(SSL_OBJ) url.o       \
79       utils.o version.o xmalloc.o 
80
81 .SUFFIXES:
82 .SUFFIXES: .c .o
83
84 .c.o:
85         $(COMPILE) -c $<
86
87 # Dependencies for building
88
89 wget$(exeext): $(OBJ)
90         $(LINK) $(OBJ) $(LIBS)
91
92 #
93 # Dependencies for installing
94 #
95
96 install: install.bin
97
98 uninstall: uninstall.bin
99
100 install.bin: wget$(exeext)
101         $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
102         $(INSTALL_PROGRAM) wget$(exeext) $(DESTDIR)$(bindir)/wget$(exeext)
103
104 uninstall.bin:
105         $(RM) $(DESTDIR)$(bindir)/wget$(exeext)
106
107 #
108 # Dependencies for cleanup
109 #
110
111 clean:
112         $(RM) *.o wget$(exeext) *~ *.bak core core.[0-9]*
113         $(RM) -r .libs
114
115 distclean: clean
116         $(RM) Makefile config.h
117
118 realclean: distclean
119         $(RM) TAGS config.h.in
120
121 #
122 # Dependencies for maintenance
123 #
124
125 subdir = src
126
127 Makefile: Makefile.in ../config.status
128         cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
129
130 TAGS: *.c *.h
131         -$(ETAGS) *.c *.h
132
133 # DO NOT DELETE THIS LINE -- make depend depends on it.
134
135 alloca.o:
136 cmpt.o: wget.h sysdep.h options.h safe-ctype.h
137 connect.o: wget.h sysdep.h options.h safe-ctype.h utils.h connect.h host.h
138 convert.o: wget.h convert.h url.h recur.h utils.h hash.h
139 cookies.o: wget.h sysdep.h options.h safe-ctype.h cookies.h hash.h url.h utils.h
140 ftp-basic.o: wget.h sysdep.h options.h safe-ctype.h utils.h connect.h \
141         host.h ftp.h
142 ftp-ls.o: wget.h sysdep.h options.h safe-ctype.h utils.h ftp.h host.h \
143         url.h
144 ftp-opie.o: wget.h sysdep.h options.h safe-ctype.h gen-md5.h
145 ftp.o: wget.h sysdep.h options.h safe-ctype.h utils.h url.h retr.h \
146         ftp.h host.h connect.h netrc.h
147 gen-md5.o: wget.h sysdep.h options.h safe-ctype.h gen-md5.h
148 openssl.o: wget.h sysdep.h options.h safe-ctype.h utils.h connect.h host.h \
149         url.h
150 getopt.o: wget.h sysdep.h options.h safe-ctype.h getopt.h
151 gnu-md5.o: wget.h sysdep.h options.h safe-ctype.h gnu-md5.h
152 hash.o: wget.h sysdep.h options.h safe-ctype.h utils.h hash.h
153 host.o: wget.h sysdep.h options.h safe-ctype.h utils.h host.h url.h hash.h
154 html-parse.o: wget.h sysdep.h options.h safe-ctype.h html-parse.h
155 html-url.o: wget.h sysdep.h options.h safe-ctype.h html-parse.h url.h utils.h
156 http.o: wget.h sysdep.h options.h safe-ctype.h utils.h url.h host.h \
157         retr.h connect.h host.h netrc.h ssl.h \
158         cookies.h gen-md5.h
159 init.o: wget.h sysdep.h options.h safe-ctype.h utils.h init.h host.h recur.h \
160         netrc.h cookies.h progress.h
161 log.o: wget.h sysdep.h options.h safe-ctype.h utils.h
162 main.o: wget.h sysdep.h options.h safe-ctype.h utils.h init.h retr.h \
163         recur.h host.h cookies.h url.h progress.h ssl.h getopt.h
164 gnu-md5.o: wget.h sysdep.h options.h safe-ctype.h gnu-md5.h
165 mswindows.o: wget.h sysdep.h options.h safe-ctype.h utils.h url.h
166 netrc.o: wget.h sysdep.h options.h safe-ctype.h utils.h netrc.h init.h
167 progress.o: wget.h sysdep.h options.h safe-ctype.h progress.h utils.h retr.h
168 recur.o: wget.h sysdep.h options.h safe-ctype.h url.h recur.h utils.h retr.h \
169         ftp.h host.h hash.h
170 res.o: wget.h sysdep.h options.h safe-ctype.h utils.h hash.h url.h retr.h res.h
171 retr.o: wget.h sysdep.h options.h safe-ctype.h utils.h retr.h url.h \
172         recur.h ftp.h host.h connect.h hash.h
173 safe-ctype.o: safe-ctype.h
174 snprintf.o: safe-ctype.h
175 url.o: wget.h sysdep.h options.h safe-ctype.h utils.h url.h host.h hash.h
176 utils.o: wget.h sysdep.h options.h safe-ctype.h utils.h hash.h
177 version.o:
178 xmalloc.o: wget.h xmalloc.h