]> sjero.net Git - wget/blob - src/Makefile.in
[svn] Plug in new implementation of RES.
[wget] / src / Makefile.in
1 # Makefile for `wget' utility
2 # Copyright (C) 1995, 1996, 1997 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 this program; if not, write to the Free Software
16 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 #
19 # Version: @VERSION@
20 #
21
22 SHELL = /bin/sh
23
24 top_builddir = ..
25
26 top_srcdir = @top_srcdir@
27 srcdir     = @srcdir@
28 VPATH      = @srcdir@
29 ANSI2KNR = @ANSI2KNR@
30 o = .@U@o
31
32 prefix       = @prefix@
33 exec_prefix  = @exec_prefix@
34 bindir       = @bindir@
35 sysconfdir   = @sysconfdir@
36 localedir    = $(prefix)/share/locale
37
38 DESTDIR      =
39
40 CC       = @CC@
41 CPPFLAGS = @CPPFLAGS@
42 # The following line is losing on some versions of make!
43 DEFS     = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
44 CFLAGS   = @CFLAGS@
45 LDFLAGS  = @LDFLAGS@
46 LIBS     = @LIBS@
47 exeext   = @exeext@
48
49 INCLUDES = -I. -I$(srcdir) @SSL_INCLUDES@
50
51 COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS)  $(DEFS) $(CFLAGS)
52 LINK    = @LIBTOOL@ $(CC) $(CFLAGS) $(LDFLAGS) -o $@
53 INSTALL = @INSTALL@
54 INSTALL_PROGRAM = @INSTALL_PROGRAM@
55 RM = rm -f
56 ETAGS = etags
57
58 # Conditional compiles
59 ALLOCA = @ALLOCA@
60 MD5_OBJ = @MD5_OBJ@
61 OPIE_OBJ = @OPIE_OBJ@
62 SSL_OBJ = @SSL_OBJ@
63
64 OBJ = $(ALLOCA) cmpt$o connect$o cookies$o fnmatch$o ftp$o        \
65       ftp-basic$o ftp-ls$o $(OPIE_OBJ) getopt$o hash$o            \
66       headers$o host$o html-parse$o html-url$o http$o init$o      \
67       log$o main$o $(MD5_OBJ) netrc$o rbuf$o recur$o res$o        \
68       retr$o safe-ctype$o snprintf$o $(SSL_OBJ) url$o             \
69       utils$o version$o
70
71 .SUFFIXES:
72 .SUFFIXES: .c .o ._c ._o
73
74 .c.o:
75         $(COMPILE) -c $<
76
77 .c._c: $(ANSI2KNR)
78         $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@
79
80 ._c._o:
81         @echo $(COMPILE) -c $<
82         @rm -f _$*.c
83         @ln $< _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
84
85 .c._o: $(ANSI2KNR)
86         $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
87         @echo $(COMPILE) -c $*._c
88         @rm -f _$*.c
89         @ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
90
91 # Dependencies for building
92
93 wget$(exeext): $(OBJ)
94         $(LINK) $(OBJ) $(LIBS)
95
96 ansi2knr: ansi2knr.o
97         $(CC) -o ansi2knr ansi2knr.o $(LIBS)
98
99 $(OBJ): $(ANSI2KNR)
100
101 #
102 # Dependencies for installing
103 #
104
105 install: install.bin
106
107 uninstall: uninstall.bin
108
109 install.bin: wget$(exeext)
110         $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
111         $(INSTALL_PROGRAM) wget$(exeext) $(DESTDIR)$(bindir)/wget$(exeext)
112
113 uninstall.bin:
114         $(RM) $(DESTDIR)$(bindir)/wget$(exeext)
115
116 #
117 # Dependencies for cleanup
118 #
119
120 clean:
121         $(RM) *.o wget$(exeext) *~ *.bak core $(ANSI2KNR) *._o *._c
122
123 distclean: clean
124         $(RM) Makefile config.h
125
126 realclean: distclean
127         $(RM) TAGS
128
129 #
130 # Dependencies for maintenance
131 #
132
133 subdir = src
134
135 Makefile: Makefile.in ../config.status
136         cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
137
138 TAGS: *.c *.h
139         -$(ETAGS) *.c *.h
140
141 # DO NOT DELETE THIS LINE -- make depend depends on it.
142
143 cmpt$o: wget.h
144 connect$o: wget.h connect.h host.h
145 cookies$o: wget.h cookies.h hash.h url.h utils.h
146 fnmatch$o: wget.h fnmatch.h
147 ftp-basic$o: wget.h utils.h rbuf.h connect.h host.h
148 ftp-ls$o: wget.h utils.h ftp.h url.h
149 ftp-opie$o: wget.h md5.h
150 ftp$o: wget.h utils.h url.h rbuf.h retr.h ftp.h connect.h host.h fnmatch.h netrc.h
151 getopt$o: wget.h getopt.h
152 hash$o: wget.h utils.h hash.h
153 headers$o: wget.h connect.h rbuf.h headers.h
154 host$o: wget.h utils.h host.h url.h hash.h
155 html-parse$o: wget.h html-parse.h
156 html-url$o: wget.h html-parse.h url.h utils.h
157 html$o: wget.h url.h utils.h ftp.h
158 http$o: wget.h utils.h url.h host.h rbuf.h retr.h headers.h cookies.h connect.h fnmatch.h netrc.h md5.h
159 init$o: wget.h utils.h init.h host.h recur.h netrc.h
160 log$o: wget.h utils.h
161 main$o: wget.h utils.h getopt.h init.h retr.h recur.h host.h cookies.h
162 md5$o: wget.h md5.h
163 mswindows$o: wget.h url.h
164 netrc$o: wget.h utils.h netrc.h init.h
165 rbuf$o: wget.h rbuf.h connect.h
166 recur$o: wget.h url.h recur.h utils.h retr.h ftp.h fnmatch.h host.h hash.h
167 retr$o: wget.h utils.h retr.h url.h recur.h ftp.h host.h connect.h hash.h
168 snprintf$o:
169 safe-ctype$o: safe-ctype.h
170 url$o: wget.h utils.h url.h host.h
171 utils$o: wget.h utils.h fnmatch.h hash.h
172 version$o: