]> sjero.net Git - wget/blobdiff - src/Makefile.in
[svn] Added basic support for unit testing
[wget] / src / Makefile.in
index de4058a663962ac52558f49ec50f09b9bdad618b..5a857ed502c6ab9fc7f7fd9a245649c6bdd9172f 100644 (file)
@@ -1,5 +1,5 @@
 # Makefile for `wget' utility
-# Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+# Copyright (C) 1995-2005 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -12,8 +12,8 @@
 # GNU General Public License for more details.
 
 # You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+# along with Wget; if not, write to the Free Software Foundation, Inc.,
+# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
 
 # In addition, as a special exception, the Free Software Foundation
 # gives permission to link the code of its release of Wget with the
@@ -41,7 +41,8 @@ prefix       = @prefix@
 exec_prefix  = @exec_prefix@
 bindir       = @bindir@
 sysconfdir   = @sysconfdir@
-localedir    = $(prefix)/share/locale
+datadir      = @datadir@
+localedir    = $(datadir)/locale
 
 DESTDIR      =
 
@@ -51,7 +52,7 @@ CPPFLAGS = @CPPFLAGS@
 DEFS     = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
 CFLAGS   = @CFLAGS@
 LDFLAGS  = @LDFLAGS@ 
-LIBS     = @LIBS@ @LIBSSL@
+LIBS     = @LIBS@ @LIBSSL@ @LIBGNUTLS@
 exeext   = @exeext@
 
 INCLUDES = -I. -I$(srcdir)
@@ -101,6 +102,26 @@ $(OBJ): config-post.h config.h connect.h convert.h cookies.h ftp.h   \
         progress.h ptimer.h recur.h res.h retr.h safe-ctype.h ssl.h  \
         sysdep.h url.h utils.h wget.h xmalloc.h
 
+#
+# Dependencies for test binary
+#
+
+TESTOBJ = $(ALLOCA) cmpt.o connect.o convert.o cookies.o              \
+          ftp.o ftp-basic.o ftp-ls.o $(OPIE_OBJ) $(GETOPT_OBJ) hash.o \
+          host.o html-parse.o html-url.o http.o $(NTLM_OBJ) init.o    \
+          log.o main.o $(MD5_OBJ) netrc.o progress.o ptimer.o recur.o \
+          res.o retr.o safe-ctype.o snprintf.o $(SSL_OBJ) test.o      \
+         url.o utils.o version.o xmalloc.o
+
+$(TESTOBJ): config-post.h config.h connect.h convert.h cookies.h ftp.h   \
+            gen-md5.h getopt.h gnu-md5.h hash.h host.h html-parse.h      \
+            http-ntlm.h init.h log.h mswindows.h netrc.h options.h       \
+            progress.h ptimer.h recur.h res.h retr.h safe-ctype.h ssl.h  \
+            sysdep.h test.h url.h utils.h wget.h xmalloc.h
+
+test$(exeext): $(TESTOBJ)
+       $(LINK) $(TESTOBJ) $(LIBS)
+
 #
 # Dependencies for installing
 #