]> sjero.net Git - wget/blob - src/Makefile.in
[svn] Fix #20748: fix test usage wrt zero-termination of strings.
[wget] / src / Makefile.in
1 # Makefile for `wget' utility
2 # Copyright (C) 1995-2006 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 3 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, see <http://www.gnu.org/licenses/>.
16
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.
26
27 #
28 # Version: @VERSION@
29 #
30
31 SHELL = /bin/sh
32
33 top_builddir = ..
34
35 top_srcdir = @top_srcdir@
36 srcdir     = @srcdir@
37 VPATH      = @srcdir@
38
39 prefix       = @prefix@
40 exec_prefix  = @exec_prefix@
41 bindir       = @bindir@
42 sysconfdir   = @sysconfdir@
43 datadir      = @datadir@
44 localedir    = $(datadir)/locale
45
46 DESTDIR      =
47
48 CC       = @CC@
49 CPPFLAGS = @CPPFLAGS@
50 # The following line is losing on some versions of make!
51 DEFS     = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
52 CFLAGS   = @CFLAGS@
53 LDFLAGS  = @LDFLAGS@ 
54 LIBS     = @LIBS@ @LIBSSL@ @LIBGNUTLS@
55 exeext   = @exeext@
56
57 INCLUDES = -I. -I$(srcdir)
58
59 COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS)  $(DEFS) $(CFLAGS)
60 LINK    = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
61 INSTALL = @INSTALL@
62 INSTALL_PROGRAM = @INSTALL_PROGRAM@
63 RM = rm -f
64 ETAGS = etags
65
66 # Conditional compiles
67 ALLOCA     = @ALLOCA@
68 MD5_OBJ    = @MD5_OBJ@
69 OPIE_OBJ   = @OPIE_OBJ@
70 NTLM_OBJ   = @NTLM_OBJ@
71 SSL_OBJ    = @SSL_OBJ@
72 GETOPT_OBJ = @GETOPT_OBJ@
73
74 OBJ = $(ALLOCA) cmpt.o connect.o convert.o cookies.o              \
75       ftp.o ftp-basic.o ftp-ls.o $(OPIE_OBJ) $(GETOPT_OBJ) hash.o \
76       host.o html-parse.o html-url.o http.o $(NTLM_OBJ) init.o    \
77       log.o main.o $(MD5_OBJ) netrc.o progress.o ptimer.o recur.o \
78       res.o retr.o safe-ctype.o snprintf.o spider.o $(SSL_OBJ)    \
79       url.o utils.o version.o xmalloc.o
80
81 .SUFFIXES:
82 .SUFFIXES: .c .o
83
84 .c.o:
85         $(COMPILE) -c $<
86
87 # Dependencies for building
88
89 wget$(exeext): $(OBJ)
90         $(LINK) $(OBJ) $(LIBS)
91
92 # We make object files depend on every header.  Rather than attempt to
93 # track dependencies, everything gets recompiled when a header
94 # changes.  With a program of Wget's size this doesn't waste much
95 # time, and it's a lot safer than attempting to get all the
96 # dependencies right.
97
98 $(OBJ): config-post.h config.h connect.h convert.h cookies.h ftp.h \
99         gen-md5.h getopt.h gnu-md5.h hash.h host.h html-parse.h    \
100         http-ntlm.h init.h log.h mswindows.h netrc.h options.h     \
101         progress.h ptimer.h recur.h res.h retr.h safe-ctype.h      \
102         spider.h ssl.h sysdep.h url.h utils.h wget.h xmalloc.h
103
104 #
105 # Dependencies for installing
106 #
107
108 install: install.bin
109
110 uninstall: uninstall.bin
111
112 install.bin: wget$(exeext)
113         $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
114         $(INSTALL_PROGRAM) wget$(exeext) $(DESTDIR)$(bindir)/wget$(exeext)
115
116 uninstall.bin:
117         $(RM) $(DESTDIR)$(bindir)/wget$(exeext)
118
119 #
120 # Dependencies for cleanup
121 #
122
123 clean:
124         $(RM) *.o wget$(exeext) *~ *.bak core core.[0-9]*
125
126 distclean: clean
127         $(RM) Makefile config.h
128
129 realclean: distclean
130         $(RM) TAGS config.h.in
131
132 #
133 # Dependencies for maintenance
134 #
135
136 subdir = src
137
138 Makefile: Makefile.in ../config.status
139         cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
140
141 TAGS: *.c *.h
142         -$(ETAGS) *.c *.h