]> sjero.net Git - wget/blobdiff - src/Makefile.in
[svn] Also depend on config.h.
[wget] / src / Makefile.in
index bfe9868d4c422a95a82a2458c3918ad92b7bc405..6a4a3e356cb9423562566c9c2053948e8f7b20be 100644 (file)
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
+# In addition, as a special exception, the Free Software Foundation
+# gives permission to link the code of its release of Wget with the
+# OpenSSL project's "OpenSSL" library (or with modified versions of it
+# that use the same license as the "OpenSSL" library), and distribute
+# the linked executables.  You must obey the GNU General Public License
+# in all respects for all of the code used other than "OpenSSL".  If you
+# modify this file, you may extend this exception to your version of the
+# file, but you are not obligated to do so.  If you do not wish to do
+# so, delete this exception statement from your version.
+
 #
 # Version: @VERSION@
 #
 
 SHELL = /bin/sh
 
+top_builddir = ..
+
 top_srcdir = @top_srcdir@
 srcdir     = @srcdir@
 VPATH      = @srcdir@
-ANSI2KNR = @ANSI2KNR@
-o = .@U@o
 
 prefix       = @prefix@
 exec_prefix  = @exec_prefix@
@@ -33,6 +43,8 @@ bindir       = @bindir@
 sysconfdir   = @sysconfdir@
 localedir    = $(prefix)/share/locale
 
+DESTDIR      =
+
 CC       = @CC@
 CPPFLAGS = @CPPFLAGS@
 # The following line is losing on some versions of make!
@@ -42,55 +54,52 @@ LDFLAGS  = @LDFLAGS@
 LIBS     = @LIBS@
 exeext   = @exeext@
 
-INCLUDES = -I. -I$(srcdir)
+INCLUDES = -I. -I$(srcdir) @SSL_INCLUDES@
 
 COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS)  $(DEFS) $(CFLAGS)
-LINK    = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
+LINK    = @LIBTOOL@ --mode=link $(CC) $(CFLAGS) $(LDFLAGS) -o $@
 INSTALL = @INSTALL@
 INSTALL_PROGRAM = @INSTALL_PROGRAM@
 RM = rm -f
 ETAGS = etags
 
 # Conditional compiles
-ALLOCA = @ALLOCA@
-MD5_OBJ = @MD5_OBJ@
-OPIE_OBJ = @OPIE_OBJ@
-
-OBJ = $(ALLOCA) cmpt$o connect$o fnmatch$o ftp$o ftp-basic$o  \
-      ftp-ls$o $(OPIE_OBJ) getopt$o hash$o headers$o host$o   \
-      html-parse$o html-url$o http$o init$o log$o main$o      \
-      $(MD5_OBJ) netrc$o rbuf$o recur$o retr$o snprintf$o     \
-      url$o utils$o version$o
+ALLOCA     = @ALLOCA@
+MD5_OBJ    = @MD5_OBJ@
+OPIE_OBJ   = @OPIE_OBJ@
+NTLM_OBJ   = @NTLM_OBJ@
+SSL_OBJ    = @SSL_OBJ@
+GETOPT_OBJ = @GETOPT_OBJ@
+
+OBJ = $(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) url.o       \
+      utils.o version.o xmalloc.o
 
 .SUFFIXES:
-.SUFFIXES: .c .o ._c ._o
+.SUFFIXES: .c .o
 
 .c.o:
        $(COMPILE) -c $<
 
-.c._c: $(ANSI2KNR)
-       $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@
-
-._c._o:
-       @echo $(COMPILE) -c $<
-       @rm -f _$*.c
-       @ln $< _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
-
-.c._o: $(ANSI2KNR)
-       $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
-       @echo $(COMPILE) -c $*._c
-       @rm -f _$*.c
-       @ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
-
 # Dependencies for building
 
 wget$(exeext): $(OBJ)
        $(LINK) $(OBJ) $(LIBS)
 
-ansi2knr: ansi2knr.o
-       $(CC) -o ansi2knr ansi2knr.o $(LIBS)
+# We make object files depend on every header.  Rather than attempt to
+# track dependencies, everything gets recompiled when a header
+# changes.  With a program of Wget's size this doesn't waste much
+# time, and it's a lot safer than attempting to get all the
+# dependencies right.
 
-$(OBJ): $(ANSI2KNR)
+$(OBJ): 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 url.h utils.h wget.h xmalloc.h
 
 #
 # Dependencies for installing
@@ -101,24 +110,25 @@ install: install.bin
 uninstall: uninstall.bin
 
 install.bin: wget$(exeext)
-       $(top_srcdir)/mkinstalldirs $(bindir)
-       $(INSTALL_PROGRAM) wget$(exeext) $(bindir)/wget$(exeext)
+       $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
+       $(INSTALL_PROGRAM) wget$(exeext) $(DESTDIR)$(bindir)/wget$(exeext)
 
 uninstall.bin:
-       $(RM) $(bindir)/wget$(exeext)
+       $(RM) $(DESTDIR)$(bindir)/wget$(exeext)
 
 #
 # Dependencies for cleanup
 #
 
 clean:
-       $(RM) *.o wget$(exeext) *~ *.bak core $(ANSI2KNR) *._o *._c
+       $(RM) *.o wget$(exeext) *~ *.bak core core.[0-9]*
+       $(RM) -r .libs
 
 distclean: clean
        $(RM) Makefile config.h
 
 realclean: distclean
-       $(RM) TAGS
+       $(RM) TAGS config.h.in
 
 #
 # Dependencies for maintenance
@@ -131,34 +141,3 @@ Makefile: Makefile.in ../config.status
 
 TAGS: *.c *.h
        -$(ETAGS) *.c *.h
-
-# DO NOT DELETE THIS LINE -- make depend depends on it.
-
-cmpt$o: wget.h
-connect$o: wget.h connect.h host.h
-fnmatch$o: wget.h fnmatch.h
-ftp-basic$o: wget.h utils.h rbuf.h connect.h host.h
-ftp-ls$o: wget.h utils.h ftp.h url.h
-ftp-opie$o: wget.h md5.h
-ftp$o: wget.h utils.h url.h rbuf.h retr.h ftp.h connect.h host.h fnmatch.h netrc.h
-getopt$o: wget.h getopt.h
-hash$o: wget.h utils.h hash.h
-headers$o: wget.h connect.h rbuf.h headers.h
-host$o: wget.h utils.h host.h url.h hash.h
-html-parse$o: wget.h html-parse.h
-html-url$o: wget.h html-parse.h url.h utils.h
-html$o: wget.h url.h utils.h ftp.h
-http$o: wget.h utils.h url.h host.h rbuf.h retr.h headers.h connect.h fnmatch.h netrc.h md5.h
-init$o: wget.h utils.h init.h host.h recur.h netrc.h
-log$o: wget.h utils.h
-main$o: wget.h utils.h getopt.h init.h retr.h recur.h host.h
-md5$o: wget.h md5.h
-mswindows$o: wget.h url.h
-netrc$o: wget.h utils.h netrc.h init.h
-rbuf$o: wget.h rbuf.h connect.h
-recur$o: wget.h url.h recur.h utils.h retr.h ftp.h fnmatch.h host.h hash.h
-retr$o: wget.h utils.h retr.h url.h recur.h ftp.h host.h connect.h hash.h
-snprintf$o:
-url$o: wget.h utils.h url.h host.h
-utils$o: wget.h utils.h fnmatch.h hash.h
-version$o: