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