]> sjero.net Git - wget/blob - src/Makefile.in
[svn] * {.,doc,src,util,windows}/Makefile.in: Moved top_builddir out of "User
[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 CC       = @CC@
39 CPPFLAGS = @CPPFLAGS@
40 # The following line is losing on some versions of make!
41 DEFS     = @DEFS@ -DSYSTEM_WGETRC=\"$(sysconfdir)/wgetrc\" -DLOCALEDIR=\"$(localedir)\"
42 CFLAGS   = @CFLAGS@
43 LDFLAGS  = @LDFLAGS@
44 LIBS     = @LIBS@
45 exeext   = @exeext@
46
47 INCLUDES = -I. -I$(srcdir) @SSL_INCLUDES@
48
49 COMPILE = $(CC) $(INCLUDES) $(CPPFLAGS)  $(DEFS) $(CFLAGS)
50 LINK    = @LIBTOOL@ $(CC) $(CFLAGS) $(LDFLAGS) -o $@
51 INSTALL = @INSTALL@
52 INSTALL_PROGRAM = @INSTALL_PROGRAM@
53 RM = rm -f
54 ETAGS = etags
55
56 # Conditional compiles
57 ALLOCA = @ALLOCA@
58 MD5_OBJ = @MD5_OBJ@
59 OPIE_OBJ = @OPIE_OBJ@
60 SSL_OBJ = @SSL_OBJ@
61
62 OBJ = $(ALLOCA) cmpt$o connect$o fnmatch$o ftp$o ftp-basic$o  \
63       ftp-ls$o $(OPIE_OBJ) getopt$o hash$o headers$o host$o   \
64       html-parse$o html-url$o http$o init$o log$o main$o      \
65       $(MD5_OBJ) netrc$o rbuf$o recur$o retr$o snprintf$o     \
66       $(SSL_OBJ) url$o utils$o version$o
67
68 .SUFFIXES:
69 .SUFFIXES: .c .o ._c ._o
70
71 .c.o:
72         $(COMPILE) -c $<
73
74 .c._c: $(ANSI2KNR)
75         $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $@
76
77 ._c._o:
78         @echo $(COMPILE) -c $<
79         @rm -f _$*.c
80         @ln $< _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
81
82 .c._o: $(ANSI2KNR)
83         $(ANSI2KNR) $< > $*.tmp && mv $*.tmp $*._c
84         @echo $(COMPILE) -c $*._c
85         @rm -f _$*.c
86         @ln $*._c _$*.c && $(COMPILE) -c _$*.c && mv _$*.o $@ && rm _$*.c
87
88 # Dependencies for building
89
90 wget$(exeext): $(OBJ)
91         $(LINK) $(OBJ) $(LIBS)
92
93 ansi2knr: ansi2knr.o
94         $(CC) -o ansi2knr ansi2knr.o $(LIBS)
95
96 $(OBJ): $(ANSI2KNR)
97
98 #
99 # Dependencies for installing
100 #
101
102 install: install.bin
103
104 uninstall: uninstall.bin
105
106 install.bin: wget$(exeext)
107         $(top_srcdir)/mkinstalldirs $(bindir)
108         $(INSTALL_PROGRAM) wget$(exeext) $(bindir)/wget$(exeext)
109
110 uninstall.bin:
111         $(RM) $(bindir)/wget$(exeext)
112
113 #
114 # Dependencies for cleanup
115 #
116
117 clean:
118         $(RM) *.o wget$(exeext) *~ *.bak core $(ANSI2KNR) *._o *._c
119
120 distclean: clean
121         $(RM) Makefile config.h
122
123 realclean: distclean
124         $(RM) TAGS
125
126 #
127 # Dependencies for maintenance
128 #
129
130 subdir = src
131
132 Makefile: Makefile.in ../config.status
133         cd .. && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= ./config.status
134
135 TAGS: *.c *.h
136         -$(ETAGS) *.c *.h
137
138 # DO NOT DELETE THIS LINE -- make depend depends on it.
139
140 cmpt$o: wget.h
141 connect$o: wget.h connect.h host.h
142 fnmatch$o: wget.h fnmatch.h
143 ftp-basic$o: wget.h utils.h rbuf.h connect.h host.h
144 ftp-ls$o: wget.h utils.h ftp.h url.h
145 ftp-opie$o: wget.h md5.h
146 ftp$o: wget.h utils.h url.h rbuf.h retr.h ftp.h connect.h host.h fnmatch.h netrc.h
147 getopt$o: wget.h getopt.h
148 hash$o: wget.h utils.h hash.h
149 headers$o: wget.h connect.h rbuf.h headers.h
150 host$o: wget.h utils.h host.h url.h hash.h
151 html-parse$o: wget.h html-parse.h
152 html-url$o: wget.h html-parse.h url.h utils.h
153 html$o: wget.h url.h utils.h ftp.h
154 http$o: wget.h utils.h url.h host.h rbuf.h retr.h headers.h connect.h fnmatch.h netrc.h md5.h
155 init$o: wget.h utils.h init.h host.h recur.h netrc.h
156 log$o: wget.h utils.h
157 main$o: wget.h utils.h getopt.h init.h retr.h recur.h host.h
158 md5$o: wget.h md5.h
159 mswindows$o: wget.h url.h
160 netrc$o: wget.h utils.h netrc.h init.h
161 rbuf$o: wget.h rbuf.h connect.h
162 recur$o: wget.h url.h recur.h utils.h retr.h ftp.h fnmatch.h host.h hash.h
163 retr$o: wget.h utils.h retr.h url.h recur.h ftp.h host.h connect.h hash.h
164 snprintf$o:
165 url$o: wget.h utils.h url.h host.h
166 utils$o: wget.h utils.h fnmatch.h hash.h
167 version$o: