]> sjero.net Git - wget/blob - tests/Makefile.in
[svn] Added support for HTTP testing.
[wget] / tests / Makefile.in
1 # Makefile for `wget' utility
2 # Copyright (C) 1995-2005 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 Wget; if not, write to the Free Software Foundation, Inc.,
16 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 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 datadir      = @datadir@
45 localedir    = $(datadir)/locale
46
47 DESTDIR      =
48
49 CC       = @CC@
50 CPPFLAGS = @CPPFLAGS@
51 # The following line is losing on some versions of make!
52 DEFS     = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
53 CFLAGS   = @CFLAGS@
54 LDFLAGS  = @LDFLAGS@ 
55 LIBS     = @LIBS@ @LIBSSL@ @LIBGNUTLS@
56 exeext   = @exeext@
57
58 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../src
59
60 COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS) $(DEFS) $(CFLAGS)
61 LINK    = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
62 INSTALL = @INSTALL@
63 INSTALL_PROGRAM = @INSTALL_PROGRAM@
64 RM = rm -f
65 ETAGS = etags
66
67 # Conditional compiles
68 ALLOCA     = @ALLOCA@
69 MD5_OBJ    = @MD5_OBJ@
70 OPIE_OBJ   = @OPIE_OBJ@
71 NTLM_OBJ   = @NTLM_OBJ@
72 SSL_OBJ    = @SSL_OBJ@
73 GETOPT_OBJ = @GETOPT_OBJ@
74
75
76 all:
77
78 unittest: test$(exeext)
79
80 #
81 # Dependencies for test binary
82 #
83
84 TESTOBJ = $(ALLOCA) ccache.o cmpt.o connect.o convert.o cookies.o     \
85           ftp.o ftp-basic.o ftp-ls.o $(OPIE_OBJ) $(GETOPT_OBJ) hash.o \
86           host.o html-parse.o html-url.o http.o $(NTLM_OBJ) init.o    \
87           log.o main.o $(MD5_OBJ) netrc.o progress.o protocol.o       \
88           ptimer.o recur.o res.o retr.o safe-ctype.o snprintf.o       \
89           $(SSL_OBJ) test.o url.o utils.o version.o xmalloc.o
90
91 # We make object files depend on every header.  Rather than attempt to
92 # track dependencies, everything gets recompiled when a header
93 # changes.  With a program of Wget's size this doesn't waste much
94 # time, and it's a lot safer than attempting to get all the
95 # dependencies right.
96
97 HEADERS = ../src/ccache.h ../src/config-post.h ../src/config.h \
98           ../src/connect.h ../src/convert.h ../src/cookies.h   \
99           ../src/ftp.h ../src/gen-md5.h ../src/getopt.h        \
100           ../src/gnu-md5.h ../src/hash.h ../src/host.h         \
101           ../src/html-parse.h ../src/http-ntlm.h ../src/init.h \
102           ../src/log.h ../src/mswindows.h ../src/netrc.h       \
103           ../src/options.h ../src/progress.h ../src/protocol.h \
104           ../src/ptimer.h ../src/recur.h ../src/res.h          \
105           ../src/retr.h ../src/safe-ctype.h ../src/ssl.h       \
106           ../src/sysdep.h ../src/test.h ../src/url.h           \
107           ../src/utils.h ../src/wget.h ../src/xmalloc.h
108
109 alloca.o: ../src/alloca.c $(HEADERS)
110         $(COMPILE) -DTESTING -c $<
111
112 ccache.o: ../src/ccache.c $(HEADERS)
113         $(COMPILE) -DTESTING -c $<
114
115 cmpt.o: ../src/cmpt.c $(HEADERS)
116         $(COMPILE) -DTESTING -c $<
117
118 connect.o: ../src/connect.c $(HEADERS)
119         $(COMPILE) -DTESTING -c $<
120
121 convert.o: ../src/convert.c $(HEADERS)
122         $(COMPILE) -DTESTING -c $<
123
124 cookies.o: ../src/cookies.c $(HEADERS)
125         $(COMPILE) -DTESTING -c $<
126
127 ftp-basic.o: ../src/ftp-basic.c $(HEADERS)
128         $(COMPILE) -DTESTING -c $<
129
130 ftp.o: ../src/ftp.c $(HEADERS)
131         $(COMPILE) -DTESTING -c $<
132
133 ftp-ls.o: ../src/ftp-ls.c $(HEADERS)
134         $(COMPILE) -DTESTING -c $<
135
136 ftp-opie.o: ../src/ftp-opie.c $(HEADERS)
137         $(COMPILE) -DTESTING -c $<
138
139 gen-md5.o: ../src/gen-md5.c $(HEADERS)
140         $(COMPILE) -DTESTING -c $<
141
142 getopt.o: ../src/getopt.c $(HEADERS)
143         $(COMPILE) -DTESTING -c $<
144
145 gnu-md5.o: ../src/gnu-md5.c $(HEADERS)
146         $(COMPILE) -DTESTING -c $<
147
148 gnutls.o: ../src/gnutls.c $(HEADERS)
149         $(COMPILE) -DTESTING -c $<
150
151 hash.o: ../src/hash.c $(HEADERS)
152         $(COMPILE) -DTESTING -c $<
153
154 host.o: ../src/host.c $(HEADERS)
155         $(COMPILE) -DTESTING -c $<
156
157 html-parse.o: ../src/html-parse.c $(HEADERS)
158         $(COMPILE) -DTESTING -c $<
159
160 html-url.o: ../src/html-url.c $(HEADERS)
161         $(COMPILE) -DTESTING -c $<
162
163 http.o: ../src/http.c $(HEADERS)
164         $(COMPILE) -DTESTING -c $<
165
166 http-ntlm.o: ../src/http-ntlm.c $(HEADERS)
167         $(COMPILE) -DTESTING -c $<
168
169 init.o: ../src/init.c $(HEADERS)
170         $(COMPILE) -DTESTING -c $<
171
172 log.o: ../src/log.c $(HEADERS)
173         $(COMPILE) -DTESTING -c $<
174
175 main.o: ../src/main.c $(HEADERS)
176         $(COMPILE) -DTESTING -c $<
177
178 mswindows.o: ../src/mswindows.c $(HEADERS)
179         $(COMPILE) -DTESTING -c $<
180
181 netrc.o: ../src/netrc.c $(HEADERS)
182         $(COMPILE) -DTESTING -c $<
183
184 openssl.o: ../src/openssl.c $(HEADERS)
185         $(COMPILE) -DTESTING -c $<
186
187 progress.o: ../src/progress.c $(HEADERS)
188         $(COMPILE) -DTESTING -c $<
189
190 protocol.o: ../src/protocol.c $(HEADERS)
191         $(COMPILE) -DTESTING -c $<
192
193 ptimer.o: ../src/ptimer.c $(HEADERS)
194         $(COMPILE) -DTESTING -c $<
195
196 recur.o: ../src/recur.c $(HEADERS)
197         $(COMPILE) -DTESTING -c $<
198
199 res.o: ../src/res.c $(HEADERS)
200         $(COMPILE) -DTESTING -c $<
201
202 retr.o: ../src/retr.c $(HEADERS)
203         $(COMPILE) -DTESTING -c $<
204
205 safe-ctype.o: ../src/safe-ctype.c $(HEADERS)
206         $(COMPILE) -DTESTING -c $<
207
208 snprintf.o: ../src/snprintf.c $(HEADERS)
209         $(COMPILE) -DTESTING -c $<
210
211 test.o: ../src/test.c $(HEADERS)
212         $(COMPILE) -DTESTING -c $<
213
214 url.o: ../src/url.c $(HEADERS)
215         $(COMPILE) -DTESTING -c $<
216
217 utils.o: ../src/utils.c $(HEADERS)
218         $(COMPILE) -DTESTING -c $<
219
220 version.o: ../src/version.c $(HEADERS)
221         $(COMPILE) -DTESTING -c $<
222
223 xmalloc.o: ../src/xmalloc.c $(HEADERS)
224         $(COMPILE) -DTESTING -c $<
225
226         
227 test$(exeext): $(TESTOBJ)
228         $(LINK) $(TESTOBJ) $(LIBS)
229
230 #
231 # Dependencies for cleanup
232 #
233
234 clean:
235         $(RM) *.o test$(exeext) *~ *.bak core core.[0-9]*
236
237 distclean: clean
238         $(RM) Makefile
239
240 realclean: distclean
241
242 #
243 # Dependencies for maintenance
244 #
245
246 subdir = tests
247
248 Makefile: Makefile.in ../config.status
249         cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
250