1 # Makefile for `wget' utility
2 # Copyright (C) 1995-2007 Free Software Foundation, Inc.
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 3 of the License, or
7 # (at your option) any later version.
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.
14 # You should have received a copy of the GNU General Public License
15 # along with Wget. If not, see <http://www.gnu.org/licenses/>.
17 # In addition, as a special exception, the Free Software Foundation
18 # gives permission to link the code of its release of Wget with the
19 # OpenSSL project's "OpenSSL" library (or with modified versions of it
20 # that use the same license as the "OpenSSL" library), and distribute
21 # the linked executables. You must obey the GNU General Public License
22 # in all respects for all of the code used other than "OpenSSL". If you
23 # modify this file, you may extend this exception to your version of the
24 # file, but you are not obligated to do so. If you do not wish to do
25 # so, delete this exception statement from your version.
31 # The following line is losing on some versions of make!
32 DEFS = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
33 LIBS = @LIBS@ @LIBSSL@ @LIBGNUTLS@
36 wget_SOURCES = cmpt.c connect.c convert.c cookies.c ftp.c ftp-basic.c \
37 ftp-ls.c hash.c host.c html-parse.c html-url.c http.c \
38 init.c log.c main.c netrc.c progress.c ptimer.c recur.c \
39 res.c retr.c safe-ctype.c snprintf.c spider.c url.c \
40 utils.c version.c xmalloc.c \
41 config-post.h connect.h convert.h cookies.h \
42 ftp.h gen-md5.h getopt.h gnu-md5.h hash.h host.h html-parse.h \
43 http.h http-ntlm.h init.h log.h mswindows.h netrc.h \
44 options.h progress.h ptimer.h recur.h res.h retr.h safe-ctype.h \
45 spider.h ssl.h sysdep.h url.h utils.h wget.h xmalloc.h
46 EXTRA_wget_SOURCES = mswindows.c
47 LDADD = $(ALLOCA) $(LIBOBJS)
49 check_LIBRARIES = libunittest.a
50 libunittest_a_SOURCES = $(wget_SOURCES) test.c test.h
51 libunittest_a_CPPFLAGS = -DTESTING
52 libunittest_a_LIBADD = $(ALLOCA) $(LIBOBJS)
54 CLEANFILES = *~ *.bak core core.[0-9]*