]> sjero.net Git - wget/blob - src/Makefile.in
Ted Mielczarek's CSS wonder-patch, applied against the source from around the time...
[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 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 LEX      = @LEX@
58
59 INCLUDES = -I. -I$(srcdir)
60
61 COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS)  $(DEFS) $(CFLAGS)
62 LINK    = $(CC) $(CFLAGS) $(LDFLAGS) -o $@
63 INSTALL = @INSTALL@
64 INSTALL_PROGRAM = @INSTALL_PROGRAM@
65 RM = rm -f
66 ETAGS = etags
67
68 # Conditional compiles
69 ALLOCA     = @ALLOCA@
70 MD5_OBJ    = @MD5_OBJ@
71 OPIE_OBJ   = @OPIE_OBJ@
72 NTLM_OBJ   = @NTLM_OBJ@
73 SSL_OBJ    = @SSL_OBJ@
74 GETOPT_OBJ = @GETOPT_OBJ@
75
76 OBJ = $(ALLOCA) cmpt.o connect.o convert.o cookies.o css-url.o     \
77       ftp.o ftp-basic.o ftp-ls.o $(OPIE_OBJ) $(GETOPT_OBJ) hash.o  \
78       host.o html-parse.o html-url.o http.o $(NTLM_OBJ) init.o     \
79       lex.yy.o log.o main.o $(MD5_OBJ) netrc.o progress.o ptimer.o \
80       recur.o res.o retr.o safe-ctype.o snprintf.o spider.o        \
81       $(SSL_OBJ) url.o utils.o version.o xmalloc.o
82
83 .SUFFIXES:
84 .SUFFIXES: .c .o
85
86 .c.o:
87         $(COMPILE) -c $<
88
89 # Dependencies for building
90
91 wget$(exeext): $(OBJ)
92         $(LINK) $(OBJ) $(LIBS)
93
94 lex.yy.c: css.lex
95         $(LEX) $<
96
97 # We make object files depend on every header.  Rather than attempt to
98 # track dependencies, everything gets recompiled when a header
99 # changes.  With a program of Wget's size this doesn't waste much
100 # time, and it's a lot safer than attempting to get all the
101 # dependencies right.
102
103 $(OBJ): config-post.h config.h connect.h convert.h cookies.h css-url.h \
104         ftp.h gen-md5.h getopt.h gnu-md5.h hash.h host.h html-parse.h  \
105         http-ntlm.h init.h log.h mswindows.h netrc.h options.h         \
106         progress.h ptimer.h recur.h res.h retr.h safe-ctype.h          \
107         spider.h ssl.h sysdep.h url.h utils.h wget.h xmalloc.h
108
109 #
110 # Dependencies for installing
111 #
112
113 install: install.bin
114
115 uninstall: uninstall.bin
116
117 install.bin: wget$(exeext)
118         $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
119         $(INSTALL_PROGRAM) wget$(exeext) $(DESTDIR)$(bindir)/wget$(exeext)
120
121 uninstall.bin:
122         $(RM) $(DESTDIR)$(bindir)/wget$(exeext)
123
124 #
125 # Dependencies for cleanup
126 #
127
128 clean:
129         $(RM) *.o wget$(exeext) *~ *.bak core core.[0-9]* lex.yy.c
130
131 distclean: clean
132         $(RM) Makefile config.h
133
134 realclean: distclean
135         $(RM) TAGS config.h.in
136
137 #
138 # Dependencies for maintenance
139 #
140
141 subdir = src
142
143 Makefile: Makefile.in ../config.status
144         cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
145
146 TAGS: *.c *.h
147         -$(ETAGS) *.c *.h