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