]> sjero.net Git - wget/blob - src/Makefile.in
[svn] Updated dependencies of connect$o to include utils.h
[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 #
19 # Version: @VERSION@
20 #
21
22 SHELL = /bin/sh
23
24 top_builddir = ..
25
26 top_srcdir = @top_srcdir@
27 srcdir     = @srcdir@
28 VPATH      = @srcdir@
29 ANSI2KNR = @ANSI2KNR@
30 o = .@U@o
31
32 prefix       = @prefix@
33 exec_prefix  = @exec_prefix@
34 bindir       = @bindir@
35 sysconfdir   = @sysconfdir@
36 localedir    = $(prefix)/share/locale
37
38 DESTDIR      =
39
40 CC       = @CC@
41 CPPFLAGS = @CPPFLAGS@
42 # The following line is losing on some versions of make!
43 DEFS     = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
44 CFLAGS   = @CFLAGS@
45 LDFLAGS  = @LDFLAGS@
46 LIBS     = @LIBS@
47 exeext   = @exeext@
48
49 INCLUDES = -I. -I$(srcdir) @SSL_INCLUDES@
50
51 COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS)  $(DEFS) $(CFLAGS)
52 LINK    = @LIBTOOL@ --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
53 INSTALL = @INSTALL@
54 INSTALL_PROGRAM = @INSTALL_PROGRAM@
55 RM = rm -f
56 ETAGS = etags
57
58 # Conditional compiles
59 ALLOCA     = @ALLOCA@
60 MD5_OBJ    = @MD5_OBJ@
61 OPIE_OBJ   = @OPIE_OBJ@
62 SSL_OBJ    = @SSL_OBJ@
63 GETOPT_OBJ = @GETOPT_OBJ@
64
65 OBJ = $(ALLOCA) cmpt$o connect$o cookies$o fnmatch$o ftp$o        \
66       ftp-basic$o ftp-ls$o $(OPIE_OBJ) $(GETOPT_OBJ) hash$o       \
67       headers$o host$o html-parse$o html-url$o http$o init$o      \
68       log$o main$o $(MD5_OBJ) netrc$o progress$o rbuf$o recur$o   \
69       res$o retr$o safe-ctype$o snprintf$o $(SSL_OBJ) url$o       \
70       utils$o version$o
71
72 .SUFFIXES:
73 .SUFFIXES: .c .o ._c ._o
74
75 .c.o:
76         $(COMPILE) -c $<
77
78 .c._c: $(ANSI2KNR)
79         $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@
80
81 ._c._o:
82         @echo $(COMPILE) -c $<
83         @rm -f _$*.c
84         @ln $< _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
85
86 .c._o: $(ANSI2KNR)
87         $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
88         @echo $(COMPILE) -c $*._c
89         @rm -f _$*.c
90         @ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
91
92 # Dependencies for building
93
94 wget$(exeext): $(OBJ)
95         $(LINK) $(OBJ) $(LIBS)
96
97 ansi2knr: ansi2knr.o
98         $(CC) -o ansi2knr ansi2knr.o $(LIBS)
99
100 $(OBJ): $(ANSI2KNR)
101
102 #
103 # Dependencies for installing
104 #
105
106 install: install.bin
107
108 uninstall: uninstall.bin
109
110 install.bin: wget$(exeext)
111         $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
112         $(INSTALL_PROGRAM) wget$(exeext) $(DESTDIR)$(bindir)/wget$(exeext)
113
114 uninstall.bin:
115         $(RM) $(DESTDIR)$(bindir)/wget$(exeext)
116
117 #
118 # Dependencies for cleanup
119 #
120
121 clean:
122         $(RM) *.o wget$(exeext) *~ *.bak core $(ANSI2KNR) *._o *._c
123
124 distclean: clean
125         $(RM) Makefile config.h
126
127 realclean: distclean
128         $(RM) TAGS
129
130 #
131 # Dependencies for maintenance
132 #
133
134 subdir = src
135
136 Makefile: Makefile.in ../config.status
137         cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
138
139 TAGS: *.c *.h
140         -$(ETAGS) *.c *.h
141
142 # DO NOT DELETE THIS LINE -- make depend depends on it.
143
144 alloca$o:
145 cmpt$o: wget.h
146 connect$o: wget.h utils.h connect.h host.h
147 cookies$o: wget.h cookies.h hash.h url.h utils.h
148 fnmatch$o: wget.h fnmatch.h
149 ftp-basic$o: wget.h utils.h rbuf.h connect.h host.h ftp.h
150 ftp-ls$o: wget.h utils.h ftp.h url.h
151 ftp-opie$o: wget.h gen-md5.h
152 ftp$o: wget.h utils.h url.h rbuf.h retr.h ftp.h connect.h host.h fnmatch.h netrc.h
153 gen-md5$o: wget.h gen-md5.h
154 gen_sslfunc$o: wget.h utils.h connect.h url.h
155 getopt$o: wget.h getopt.h
156 gnu-md5$o: wget.h gnu-md5.h
157 hash$o: wget.h utils.h hash.h
158 headers$o: wget.h connect.h rbuf.h headers.h
159 host$o: wget.h utils.h host.h url.h hash.h
160 html-parse$o: wget.h html-parse.h
161 html-url$o: wget.h html-parse.h url.h utils.h
162 http$o: wget.h utils.h url.h host.h rbuf.h retr.h headers.h connect.h fnmatch.h netrc.h gen_sslfunc.h cookies.h gen-md5.h
163 init$o: wget.h utils.h init.h host.h recur.h netrc.h cookies.h progress.h
164 log$o: wget.h utils.h
165 main$o: wget.h utils.h init.h retr.h recur.h host.h cookies.h url.h progress.h gen_sslfunc.h getopt.h
166 gnu-md5$o: wget.h gnu-md5.h
167 mswindows$o: wget.h utils.h url.h
168 netrc$o: wget.h utils.h netrc.h init.h
169 progress$o: wget.h progress.h utils.h retr.h
170 rbuf$o: wget.h rbuf.h connect.h gen_sslfunc.h
171 recur$o: wget.h url.h recur.h utils.h retr.h ftp.h fnmatch.h host.h hash.h
172 res$o: wget.h utils.h hash.h url.h retr.h res.h
173 retr$o: wget.h utils.h retr.h url.h recur.h ftp.h host.h connect.h hash.h
174 snprintf$o: safe-ctype.h
175 safe-ctype$o: safe-ctype.h
176 url$o: wget.h utils.h url.h host.h hash.h
177 utils$o: wget.h utils.h fnmatch.h hash.h
178 version$o: