Debian Codegraph @

src/Makefile

raw
1 VERSION=0.6.7
2 PACKAGE=ftpcopy
3 CLASS=web
4
5
6 INCLUDES=-I.
7
8 CC=gcc
9 L=./auto-link.sh
10 C=./auto-compile.sh
11 W=./auto-compilew.sh
12 MYMAKE=make
13 PACKAGE_VERSION=$(PACKAGE)-$(VERSION)
14 PREMAKE_DEFS=-DPACKAGE_VERSION=\"$(PACKAGE)-$(VERSION)\" \
15 -DPACKAGE=\"$(PACKAGE)\" -DVERSION=\"$(VERSION)\" -DPACKAGE_CLASS=\"$(CLASS)\"
16
17 TARGETS=$(EXTRA_TARGETS) $(PREMAKE_TARGETS)
18 CLEANFILES=$(EXTRA_CLEANFILES) $(PREMAKE_CLEANFILES)
19 MAINTAINER_CLEANFILES=$(EXTRA_MAINTAINER_CLEANFILES) $(PREMAKE_MAINTAINER_CLEANFILES)
20 PREMAKE_DIST=$(PACKAGE_VERSION).tar.gz
21 #
22 #
23 # the dependency of socket_ux on ipv6 is here because premake2 can't
24 # handle it otherwise.
25
26
27 #!T:testsort:testsort.c ssort.c:libunix.a libbyte.a
28
29
30 PREMAKE_TARGETS = ftpcopy ftpls ftpcp.1 ftpcopy.1 ftpls.1 ftpcopy.html \
31 ftpls.html
32
33 PREMAKE_CLEANFILES = *.da *.bb *.bbg check.out conftest.c conftest \
34 conftest.o auto-socket.lib fsync.o auto-fsync.lib utimes.o \
35 auto-utimes.lib auto-gettimeofday.lib auto-version.tmac ftpcp.html.t \
36 install.html.t INSTALL.t ftpcp.1 ftpcp.1.t ftpcopy.1 ftpcopy.1.t \
37 ftpls.1 ftpls.1.t ftpcopy.html ftpcopy.html.t ftpls.html ftpls.html.t \
38 auto-typesize.h auto-typesize.stamp auto-socklen_t.h \
39 auto-socklen_t.stamp auto-socklen_t.h.t auto-have_futimes.h *.stamp
40
41 PREMAKE_MAINTAINER_CLEANFILES = ftpcp.html install.html INSTALL
42
43
44 libbyte_a_OBJECTS=byte_chr.o byte_copy.o byte_cr.o byte_diff.o \
45 byte_zero.o case_diffb.o case_lowerb.o case_lowers.o case_lwrtab.o \
46 case_startb.o case_starts.o fmt_uint0.o fmt_uint64.o fmt_ulong.o \
47 fmt_xlong.o ip4_constants.o ip4_fmt.o ip4_scan.o ip6_constants.o \
48 ip6_fmt.o ip6_scan.o scan_long.o scan_sign.o scan_ulong.o scan_xlong.o \
49 str_chr.o str_diff.o str_len.o str_rchr.o str_start.o uint16_pack.o \
50 uint16_unpack.o uint32_pack.o uint32_unpack.o
51
52 libdns_a_OBJECTS=dns_dfd.o dns_domain.o dns_ip.o dns_ip6.o dns_ip64.o \
53 dns_ipq.o dns_ipq6.o dns_ipq64.o dns_packet.o dns_random.o dns_rcip.o \
54 dns_rcrw.o dns_resolve.o dns_sortip.o dns_sortip6.o dns_transmit.o
55
56 libstrhash_a_OBJECTS=strhash_crea.o strhash_dest.o strhash_ente.o \
57 strhash_get.o strhash_hash.o strhash_look.o
58
59 libtai_a_OBJECTS=tai_add.o tai_now.o tai_pack.o tai_sub.o tai_uint.o \
60 taia_add.o taia_approx.o taia_frac.o taia_half.o taia_less.o \
61 taia_now.o taia_pack.o taia_sub.o taia_uint.o
62
63 libunix_a_OBJECTS=alloc.o alloc_re.o api_futimes.o api_utimes.o \
64 buffer.o buffer_0.o buffer_1.o buffer_2.o buffer_get.o buffer_put.o \
65 env_get.o error.o error_str.o gen_alloc_ady.o gen_alloc_end.o \
66 gen_alloc_lus.o get_cwd.o getln.o iopause.o ndelay_off.o ndelay_on.o \
67 open_append.o open_excl.o open_read.o openreadclose.o readclose.o \
68 readclose_app.o sig.o sig_catch.o socket_bind.o socket_bind6.o \
69 socket_bind64.o socket_conn.o socket_conn6.o socket_conn64.o \
70 socket_connt.o socket_family.o socket_flag.o socket_gifid.o \
71 socket_gifna.o socket_htons.o socket_ntohs.o socket_remote6.o \
72 socket_tcp.o socket_tcp6.o socket_tcp64.o socket_udp.o socket_udp6.o \
73 socket_udp64.o stralloc_cat.o stralloc_catb.o stralloc_cats.o \
74 stralloc_copy.o stralloc_eady.o stralloc_free.o stralloc_opyb.o \
75 stralloc_opys.o stralloc_pend.o stralloc_plus.o
76
77 libuomisc_a_OBJECTS=api_dir.o bailout.o bailout_name.o host_connect4.o \
78 host_connect64.o timeoutconn.o timeoutconn6.o toconn_common.o \
79 uo_wildmat.o uogetopt.o
80
81 libuotime_a_OBJECTS=uo_now.o uo_sec702dt.o yyyy_mm_dd.o
82
83 PREMAKE_EXTRA_SYSTYPE = auto-socket.lib auto-have_fsync.h \
84 auto-have_utimes.h auto-gettimeofday.lib auto-typesize.h \
85 auto-have_ipv6.h auto-socklen_t.h auto-iopause.h auto-have_futimes.h
86
87 all: auto-systype $(TARGETS) $(EXTRA_TARGETS)
88
89 auto-socket.lib: find_socket_func.sh auto-compile.sh auto-link.sh
90 sh find_socket_func.sh >auto-socket.t && mv auto-socket.t $@
91 auto-have_fsync.h: have_func.sh
92 sh have_func.sh fsync "#include <unistd.h>" "fsync(0)" "" "" >[email protected] && mv [email protected] $@
93 auto-fsync.lib: fsync.sh auto-compile.sh auto-link.sh auto-have_fsync.h
94 sh fsync.sh >fsync.t && mv fsync.t $@
95 auto-have_utimes.h: have_func.sh auto-compile.sh auto-link.sh
96 sh have_func.sh utimes "#include <sys/time.h>" "utimes(0,0)" "" "" >[email protected] && mv [email protected] $@
97 auto-utimes.lib: replace.sh auto-compile.sh auto-link.sh auto-have_utimes.h
98 sh replace.sh utimes utimes "" -lsocket >[email protected] && mv [email protected] $@
99 auto-gettimeofday.lib: gettimeofday.sh auto-compile.sh auto-link.sh
100 sh gettimeofday.sh >gettimeofday.t && mv gettimeofday.t $@
101 ftpcopy: ftpcopy.o ftpparse.o ftplib.o ftp_read_lis.o urlparse.o canon.o common.o mdtm.o mysleep.o warn_broken.o eof_or_error.o utcdate2tai.o sockrecbuf.o ssort.o inq_winsize.o libuotime.a libuomisc.a libdns.a libstrhash.a libunix.a libtai.a libbyte.a auto-socket.lib auto-fsync.lib auto-utimes.lib auto-gettimeofday.lib auto-link.sh
102 $L ftpcopy ftpcopy.o ftpparse.o ftplib.o ftp_read_lis.o urlparse.o canon.o common.o mdtm.o mysleep.o warn_broken.o eof_or_error.o utcdate2tai.o sockrecbuf.o ssort.o inq_winsize.o libuotime.a libuomisc.a libdns.a libstrhash.a libunix.a libtai.a libbyte.a `head -n 1 auto-socket.lib` `head -n 1 auto-fsync.lib` `head -n 1 auto-utimes.lib` `head -n 1 auto-gettimeofday.lib`
103 ftpls: ftpls.o ftpparse.o ftplib.o ftp_read_lis.o urlparse.o sort_it.o common.o mysleep.o warn_broken.o eof_or_error.o utcdate2tai.o ssort.o libuotime.a libdns.a libuomisc.a libstrhash.a libdns.a libunix.a libtai.a libbyte.a auto-socket.lib auto-gettimeofday.lib auto-link.sh
104 $L ftpls ftpls.o ftpparse.o ftplib.o ftp_read_lis.o urlparse.o sort_it.o common.o mysleep.o warn_broken.o eof_or_error.o utcdate2tai.o ssort.o libuotime.a libdns.a libuomisc.a libstrhash.a libdns.a libunix.a libtai.a libbyte.a `head -n 1 auto-socket.lib` `head -n 1 auto-gettimeofday.lib`
105 auto-typesize.h: auto-typesize.stamp
106 auto-typesize.stamp: typesize.sh auto-compile.sh auto-link.sh
107 sh typesize.sh >typesize.t
108 @if cmp typesize.t auto-typesize.h 2>/dev/null >/dev/null ; then : ; else mv typesize.t auto-typesize.h ; fi
109 rm -f typesize.t
110 touch $@
111 auto-socklen_t.h: auto-socklen_t.stamp
112 auto-socklen_t.stamp: checktype.sh auto-compile.sh auto-link.sh
113 sh checktype.sh socklen_t int sys/types.h "sys/types.h sys/socket.h" >auto-socklen_t.h.t
114 @if cmp auto-socklen_t.h.t auto-socklen_t.h 2>/dev/null >/dev/null ; then : ; else mv auto-socklen_t.h.t auto-socklen_t.h ; fi
115 @rm -f auto-socklen_t.h.t
116 @touch $@
117 auto-have_ipv6.h:auto-compile.sh have_ipv6.sh
118 sh have_ipv6.sh >[email protected]
119 mv [email protected] $@
120 auto-iopause.h: iopause.sh auto-compile.sh auto-link.sh
121 sh iopause.sh >iopause.t && mv iopause.t $@
122 auto-have_futimes.h: have_futimes.sh auto-compile.sh auto-link.sh have_func.sh
123 sh have_futimes.sh >[email protected] && mv [email protected] $@
124 libbyte.a: $(libbyte_a_OBJECTS) auto-makelib.sh
125 ./auto-makelib.sh $@ $(libbyte_a_OBJECTS)
126 libdns.a: $(libdns_a_OBJECTS) auto-makelib.sh
127 ./auto-makelib.sh $@ $(libdns_a_OBJECTS)
128 libstrhash.a: $(libstrhash_a_OBJECTS) \
129 auto-makelib.sh
130 ./auto-makelib.sh $@ $(libstrhash_a_OBJECTS)
131 libtai.a: $(libtai_a_OBJECTS) auto-makelib.sh
132 ./auto-makelib.sh $@ $(libtai_a_OBJECTS)
133 libunix.a: $(libunix_a_OBJECTS) auto-makelib.sh
134 ./auto-makelib.sh $@ $(libunix_a_OBJECTS)
135 libuomisc.a: $(libuomisc_a_OBJECTS) auto-makelib.sh
136 ./auto-makelib.sh $@ $(libuomisc_a_OBJECTS)
137 libuotime.a: $(libuotime_a_OBJECTS) auto-makelib.sh
138 ./auto-makelib.sh $@ $(libuotime_a_OBJECTS)
139 ftpcp.html: ftpcp.1.in groff.tmac auto-version.tmac
140 groff -mwww -Thtml -P-l groff.tmac auto-version.tmac ftpcp.1.in\
141 | sed -e 's%</head>%<link rel="SHORTCUT ICON" \
142 href="http://www.ohse.de/uwe/ftpcopy/ftpcopy.ico"></head>%' \
143 >ftpcp.html.t && mv ftpcp.html.t ftpcp.html
144 install.html: install.0.in groff.tmac auto-version.tmac
145 groff -mwww -Thtml -P-l groff.tmac auto-version.tmac install.0.in\
146 | sed -e 's%</head>%<link rel="SHORTCUT ICON" \
147 href="http://www.ohse.de/uwe/ftpcopy/ftpcopy.ico"></head>%' \
148 >install.html.t && mv install.html.t install.html
149 INSTALL: install.0.in groff.tmac auto-version.tmac
150 groff -man -Tascii groff.tmac auto-version.tmac install.0.in |sed \
151 's/\o33\[[0-9]*m//g ' |col -b >INSTALL.t && mv INSTALL.t \
152 INSTALL
153 ftpcp.1: ftpcp.1.in groff.tmac auto-version.tmac
154 cat groff.tmac auto-version.tmac ftpcp.1.in \
155 | sed 's/^.section/.SH/' >ftpcp.1.t \
156 && mv ftpcp.1.t ftpcp.1
157 ftpcopy.1: ftpcopy uogo2man
158 perl uogo2man ftpcopy ./ftpcopy 1 man "--include-exclude-help" \
159 "IN/EXCLUDE" >[email protected] &&mv [email protected] $@
160 ftpls.1: ftpls uogo2man
161 perl uogo2man ftpcopy ./ftpls 1 man >[email protected] &&mv [email protected] $@
162 ftpcopy.html: ftpcopy uogo2man doc-header.html
163 perl uogo2man ftpcopy ./ftpcopy - html "--include-exclude-help" \
164 "IN/EXCLUDE" >[email protected] &&mv [email protected] $@
165 ftpls.html: ftpls uogo2man doc-header.html
166 perl uogo2man ftpcopy ./ftpls - html >[email protected] &&mv [email protected] \
167 $@
168 auto-version.tmac: version.tmac.stamp
169 version.tmac.stamp: Makefile
170 (echo .ds PA $(PACKAGE) ;\
171 echo .ds VE $(VERSION) ;\
172 echo .ds CL $(CLASS) ;\
173 ) >auto-version.tmac.t
174 cmp auto-version.tmac auto-version.tmac.t \
175 || cp auto-version.tmac.t auto-version.tmac
176 touch $@ && rm auto-version.tmac.t
177 html: ftpcp.html install.html INSTALL ftpcopy.html ftpls.html
178
179
180 alloc.o: alloc.c alloc.h error.h auto-compilew.sh
181 $W -c alloc.c
182 alloc_re.o: alloc_re.c alloc.h byte.h auto-compilew.sh
183 $W -c alloc_re.c
184 api_dir.o: api_dir.c stralloc.h gen_alloc.h str.h api_dir.h auto-compilew.sh
185 $W -c api_dir.c
186 api_futimes.o: api_futimes.c auto-have_futimes.h api_futimes.h \
187 api_utimes.h auto-compilew.sh
188 $W -c api_futimes.c
189 api_utimes.o: api_utimes.c api_utimes.h auto-compilew.sh
190 $W -c api_utimes.c
191 bailout.o: bailout.c error.h buffer.h bailout.h fmt.h auto-compilew.sh
192 $W -c bailout.c
193 bailout_name.o: bailout_name.c bailout.h buffer.h auto-compilew.sh
194 $W -c bailout_name.c
195 buffer.o: buffer.c buffer.h auto-compile.sh
196 $C -c buffer.c
197 buffer_0.o: buffer_0.c readwrite.h buffer.h auto-compile.sh
198 $C -c buffer_0.c
199 buffer_1.o: buffer_1.c readwrite.h buffer.h auto-compile.sh
200 $C -c buffer_1.c
201 buffer_2.o: buffer_2.c readwrite.h buffer.h auto-compile.sh
202 $C -c buffer_2.c
203 buffer_get.o: buffer_get.c buffer.h byte.h error.h auto-compile.sh
204 $C -c buffer_get.c
205 buffer_put.o: buffer_put.c buffer.h str.h byte.h error.h auto-compile.sh
206 $C -c buffer_put.c
207 byte_chr.o: byte_chr.c byte.h auto-compilew.sh
208 $W -c byte_chr.c
209 byte_copy.o: byte_copy.c byte.h auto-compilew.sh
210 $W -c byte_copy.c
211 byte_cr.o: byte_cr.c byte.h auto-compilew.sh
212 $W -c byte_cr.c
213 byte_diff.o: byte_diff.c byte.h auto-compilew.sh
214 $W -c byte_diff.c
215 byte_zero.o: byte_zero.c byte.h auto-compilew.sh
216 $W -c byte_zero.c
217 canon.o: canon.c stralloc.h gen_alloc.h ftpcopy.h buffer.h \
218 attributes.h bailout.h auto-compilew.sh
219 $W -c canon.c
220 case_diffb.o: case_diffb.c case.h auto-compilew.sh
221 $W -c case_diffb.c
222 case_lowerb.o: case_lowerb.c case.h auto-compilew.sh
223 $W -c case_lowerb.c
224 case_lowers.o: case_lowers.c case.h auto-compilew.sh
225 $W -c case_lowers.c
226 case_lwrtab.o: case_lwrtab.c case.h auto-compilew.sh
227 $W -c case_lwrtab.c
228 case_startb.o: case_startb.c case.h auto-compilew.sh
229 $W -c case_startb.c
230 case_starts.o: case_starts.c case.h auto-compilew.sh
231 $W -c case_starts.c
232 common.o: common.c buffer.h attributes.h stralloc.h gen_alloc.h str.h \
233 ftplib.h bailout.h byte.h ftpcopy.h error.h timeoutio.h taia.h tai.h \
234 uint64.h typesize.h auto-typesize.h iopause.h auto-iopause.h \
235 host_connect.h readwrite.h close.h mysleep.h ip6.h socket.h uint16.h \
236 uint32.h auto-have_ipv6.h socket_if.h scan.h auto-compilew.sh
237 $W -c common.c
238 dns_dfd.o: dns_dfd.c error.h alloc.h byte.h dns.h stralloc.h \
239 gen_alloc.h iopause.h auto-iopause.h taia.h tai.h uint64.h typesize.h \
240 auto-typesize.h auto-compile.sh
241 $C -c dns_dfd.c
242 dns_domain.o: dns_domain.c error.h alloc.h case.h byte.h dns.h \
243 stralloc.h gen_alloc.h iopause.h auto-iopause.h taia.h tai.h uint64.h \
244 typesize.h auto-typesize.h auto-compile.sh
245 $C -c dns_domain.c
246 dns_ip.o: dns_ip.c stralloc.h gen_alloc.h uint16.h typesize.h \
247 auto-typesize.h byte.h dns.h iopause.h auto-iopause.h taia.h tai.h \
248 uint64.h auto-compile.sh
249 $C -c dns_ip.c
250 dns_ip6.o: dns_ip6.c stralloc.h gen_alloc.h uint16.h typesize.h \
251 auto-typesize.h byte.h dns.h iopause.h auto-iopause.h taia.h tai.h \
252 uint64.h ip4.h ip6.h auto-compile.sh
253 $C -c dns_ip6.c
254 dns_ip64.o: dns_ip64.c stralloc.h gen_alloc.h uint16.h typesize.h \
255 auto-typesize.h byte.h dns.h iopause.h auto-iopause.h taia.h tai.h \
256 uint64.h ip4.h ip6.h auto-compile.sh
257 $C -c dns_ip64.c
258 dns_ipq.o: dns_ipq.c stralloc.h gen_alloc.h case.h byte.h str.h dns.h \
259 iopause.h auto-iopause.h taia.h tai.h uint64.h typesize.h \
260 auto-typesize.h auto-compile.sh
261 $C -c dns_ipq.c
262 dns_ipq6.o: dns_ipq6.c stralloc.h gen_alloc.h case.h byte.h str.h \
263 dns.h iopause.h auto-iopause.h taia.h tai.h uint64.h typesize.h \
264 auto-typesize.h auto-compile.sh
265 $C -c dns_ipq6.c
266 dns_ipq64.o: dns_ipq64.c stralloc.h gen_alloc.h case.h byte.h str.h \
267 dns.h iopause.h auto-iopause.h taia.h tai.h uint64.h typesize.h \
268 auto-typesize.h auto-compile.sh
269 $C -c dns_ipq64.c
270 dns_packet.o: dns_packet.c error.h dns.h stralloc.h gen_alloc.h \
271 iopause.h auto-iopause.h taia.h tai.h uint64.h typesize.h \
272 auto-typesize.h auto-compile.sh
273 $C -c dns_packet.c
274 dns_random.o: dns_random.c dns.h stralloc.h gen_alloc.h iopause.h \
275 auto-iopause.h taia.h tai.h uint64.h typesize.h auto-typesize.h \
276 uint32.h auto-compile.sh
277 $C -c dns_random.c
278 dns_rcip.o: dns_rcip.c taia.h tai.h uint64.h typesize.h \
279 auto-typesize.h openreadclose.h stralloc.h gen_alloc.h byte.h ip4.h \
280 ip6.h env.h dns.h iopause.h auto-iopause.h auto-compile.sh
281 $C -c dns_rcip.c
282 dns_rcrw.o: dns_rcrw.c taia.h tai.h uint64.h typesize.h \
283 auto-typesize.h env.h byte.h str.h openreadclose.h stralloc.h \
284 gen_alloc.h dns.h iopause.h auto-iopause.h auto-compile.sh
285 $C -c dns_rcrw.c
286 dns_resolve.o: dns_resolve.c iopause.h auto-iopause.h taia.h tai.h \
287 uint64.h typesize.h auto-typesize.h byte.h dns.h stralloc.h \
288 gen_alloc.h ip6.h auto-compile.sh
289 $C -c dns_resolve.c
290 dns_sortip.o: dns_sortip.c byte.h dns.h stralloc.h gen_alloc.h \
291 iopause.h auto-iopause.h taia.h tai.h uint64.h typesize.h \
292 auto-typesize.h auto-compile.sh
293 $C -c dns_sortip.c
294 dns_sortip6.o: dns_sortip6.c byte.h dns.h stralloc.h gen_alloc.h \
295 iopause.h auto-iopause.h taia.h tai.h uint64.h typesize.h \
296 auto-typesize.h auto-compile.sh
297 $C -c dns_sortip6.c
298 dns_transmit.o: dns_transmit.c socket.h uint16.h typesize.h \
299 auto-typesize.h uint32.h auto-have_ipv6.h alloc.h error.h byte.h \
300 dns.h stralloc.h gen_alloc.h iopause.h auto-iopause.h taia.h tai.h \
301 uint64.h ip6.h auto-compile.sh
302 $C -c dns_transmit.c
303 env_get.o: env_get.c env.h auto-compilew.sh
304 $W -c env_get.c
305 eof_or_error.o: eof_or_error.c bailout.h buffer.h ftpcopy.h stralloc.h \
306 gen_alloc.h attributes.h auto-compilew.sh
307 $W -c eof_or_error.c
308 error.o: error.c error.h auto-compilew.sh
309 $W -c error.c
310 error_str.o: error_str.c error.h auto-compilew.sh
311 $W -c error_str.c
312 fmt_uint0.o: fmt_uint0.c gen_fmt.h fmt.h auto-compilew.sh
313 $W -c fmt_uint0.c
314 fmt_uint64.o: fmt_uint64.c gen_fmt.h fmt.h fs64.h uint64.h typesize.h \
315 auto-typesize.h auto-compilew.sh
316 $W -c fmt_uint64.c
317 fmt_ulong.o: fmt_ulong.c gen_fmt.h fmt.h auto-compilew.sh
318 $W -c fmt_ulong.c
319 fmt_xlong.o: fmt_xlong.c gen_fmt.h fmt.h auto-compilew.sh
320 $W -c fmt_xlong.c
321 ftp_read_lis.o: ftp_read_lis.c stralloc.h gen_alloc.h buffer.h getln.h \
322 timeoutio.h taia.h tai.h uint64.h typesize.h auto-typesize.h \
323 iopause.h auto-iopause.h error.h ftplib.h readwrite.h str.h case.h \
324 ftpcopy.h attributes.h auto-compilew.sh
325 $W -c ftp_read_lis.c
326 ftpcopy.o: ftpcopy.c attributes.h ftpparse.h tai.h uint64.h typesize.h \
327 auto-typesize.h buffer.h stralloc.h gen_alloc.h scan.h ip4.h alloc.h \
328 byte.h getln.h ftplib.h strhash.h uint32.h fmt.h fs64.h uogetopt.h \
329 uotime.h uo_wildmat.h urlparse.h timeoutio.h taia.h iopause.h \
330 auto-iopause.h error.h ftpcopy.h bailout.h str.h open.h readwrite.h \
331 close.h nowarn.h get_cwd.h api_futimes.h api_utimes.h case.h mdtm.h \
332 api_dir.h mysleep.h socket.h uint16.h auto-have_ipv6.h ssort.h env.h auto-compilew.sh
333 $W -c ftpcopy.c
334 ftplib.o: ftplib.c buffer.h stralloc.h gen_alloc.h ip4.h scan.h \
335 getln.h ftplib.h host_connect.h str.h fmt.h byte.h auto-compilew.sh
336 $W -c ftplib.c
337 ftpls.o: ftpls.c attributes.h stralloc.h gen_alloc.h ftpparse.h tai.h \
338 uint64.h typesize.h auto-typesize.h buffer.h ftplib.h alloc.h ip4.h \
339 uogetopt.h uotime.h urlparse.h iopause.h auto-iopause.h taia.h \
340 getln.h fmt.h str.h error.h ftpcopy.h bailout.h close.h readwrite.h \
341 sort_it.h strhash.h uint32.h socket.h uint16.h auto-have_ipv6.h env.h \
342 fs64.h auto-compilew.sh
343 $W -c ftpls.c
344 ftpparse.o: ftpparse.c ftpparse.h tai.h uint64.h typesize.h \
345 auto-typesize.h bailout.h buffer.h str.h case.h utcdate2tai.h auto-compilew.sh
346 $W -c ftpparse.c
347 gen_alloc_ady.o: gen_alloc_ady.c alloc.h gen_alloci.h auto-compilew.sh
348 $W -c gen_alloc_ady.c
349 gen_alloc_end.o: gen_alloc_end.c gen_alloci.h byte.h auto-compilew.sh
350 $W -c gen_alloc_end.c
351 gen_alloc_lus.o: gen_alloc_lus.c gen_alloci.h auto-compilew.sh
352 $W -c gen_alloc_lus.c
353 get_cwd.o: get_cwd.c alloc.h error.h stralloc.h gen_alloc.h byte.h \
354 str.h get_cwd.h auto-compilew.sh
355 $W -c get_cwd.c
356 getln.o: getln.c byte.h getln.h buffer.h stralloc.h gen_alloc.h auto-compilew.sh
357 $W -c getln.c
358 host_connect4.o: host_connect4.c stralloc.h gen_alloc.h scan.h ip4.h \
359 socket.h uint16.h typesize.h auto-typesize.h uint32.h \
360 auto-have_ipv6.h error.h host_connect.h timeoutconn.h str.h dns.h \
361 iopause.h auto-iopause.h taia.h tai.h uint64.h byte.h bailout.h \
362 buffer.h auto-compilew.sh
363 $W -c host_connect4.c
364 host_connect64.o: host_connect64.c stralloc.h gen_alloc.h scan.h ip6.h \
365 ip4.h socket.h uint16.h typesize.h auto-typesize.h uint32.h \
366 auto-have_ipv6.h error.h host_connect.h timeoutconn.h str.h dns.h \
367 iopause.h auto-iopause.h taia.h tai.h uint64.h byte.h bailout.h \
368 buffer.h close.h socket_if.h auto-compilew.sh
369 $W -c host_connect64.c
370 inq_winsize.o: inq_winsize.c sig.h ftpcopy.h buffer.h stralloc.h \
371 gen_alloc.h attributes.h auto-compilew.sh
372 $W -c inq_winsize.c
373 iopause.o: iopause.c taia.h tai.h uint64.h typesize.h auto-typesize.h \
374 iopause.h auto-iopause.h auto-compilew.sh
375 $W -c iopause.c
376 ip4_constants.o: ip4_constants.c ip4.h auto-compilew.sh
377 $W -c ip4_constants.c
378 ip4_fmt.o: ip4_fmt.c fmt.h ip4.h auto-compilew.sh
379 $W -c ip4_fmt.c
380 ip4_scan.o: ip4_scan.c ip4.h scan.h auto-compile.sh
381 $C -c ip4_scan.c
382 ip6_constants.o: ip6_constants.c ip6.h auto-compilew.sh
383 $W -c ip6_constants.c
384 ip6_fmt.o: ip6_fmt.c fmt.h byte.h ip4.h ip6.h auto-compilew.sh
385 $W -c ip6_fmt.c
386 ip6_scan.o: ip6_scan.c scan.h ip4.h ip6.h byte.h auto-compilew.sh
387 $W -c ip6_scan.c
388 mdtm.o: mdtm.c ftpparse.h tai.h uint64.h typesize.h auto-typesize.h \
389 buffer.h stralloc.h gen_alloc.h ftplib.h ftpcopy.h attributes.h \
390 mdtm.h bailout.h error.h utcdate2tai.h auto-compilew.sh
391 $W -c mdtm.c
392 mysleep.o: mysleep.c iopause.h auto-iopause.h taia.h tai.h uint64.h \
393 typesize.h auto-typesize.h mysleep.h auto-compilew.sh
394 $W -c mysleep.c
395 ndelay_off.o: ndelay_off.c ndelay.h auto-compilew.sh
396 $W -c ndelay_off.c
397 ndelay_on.o: ndelay_on.c ndelay.h auto-compilew.sh
398 $W -c ndelay_on.c
399 open_append.o: open_append.c open.h auto-compilew.sh
400 $W -c open_append.c
401 open_excl.o: open_excl.c open.h auto-compilew.sh
402 $W -c open_excl.c
403 open_read.o: open_read.c open.h auto-compilew.sh
404 $W -c open_read.c
405 openreadclose.o: openreadclose.c error.h open.h readclose.h stralloc.h \
406 gen_alloc.h openreadclose.h auto-compilew.sh
407 $W -c openreadclose.c
408 readclose.o: readclose.c readclose.h stralloc.h gen_alloc.h auto-compilew.sh
409 $W -c readclose.c
410 readclose_app.o: readclose_app.c readwrite.h error.h readclose.h \
411 stralloc.h gen_alloc.h close.h auto-compilew.sh
412 $W -c readclose_app.c
413 scan_long.o: scan_long.c gen_scan.h scan.h case.h auto-compilew.sh
414 $W -c scan_long.c
415 scan_sign.o: scan_sign.c scan.h auto-compilew.sh
416 $W -c scan_sign.c
417 scan_ulong.o: scan_ulong.c gen_scan.h scan.h case.h auto-compilew.sh
418 $W -c scan_ulong.c
419 scan_xlong.o: scan_xlong.c gen_scan.h scan.h case.h auto-compilew.sh
420 $W -c scan_xlong.c
421 sig.o: sig.c sig.h auto-compile.sh
422 $C -c sig.c
423 sig_catch.o: sig_catch.c sig.h auto-compile.sh
424 $C -c sig_catch.c
425 socket_bind.o: socket_bind.c byte.h socket.h uint16.h typesize.h \
426 auto-typesize.h uint32.h auto-have_ipv6.h auto-compilew.sh
427 $W -c socket_bind.c
428 socket_bind6.o: socket_bind6.c byte.h socket.h uint16.h typesize.h \
429 auto-typesize.h uint32.h auto-have_ipv6.h error.h auto-compilew.sh
430 $W -c socket_bind6.c
431 socket_bind64.o: socket_bind64.c socket.h uint16.h typesize.h \
432 auto-typesize.h uint32.h auto-have_ipv6.h error.h auto-compilew.sh
433 $W -c socket_bind64.c
434 socket_conn.o: socket_conn.c byte.h socket.h uint16.h typesize.h \
435 auto-typesize.h uint32.h auto-have_ipv6.h auto-compilew.sh
436 $W -c socket_conn.c
437 socket_conn6.o: socket_conn6.c byte.h socket.h uint16.h typesize.h \
438 auto-typesize.h uint32.h auto-have_ipv6.h error.h auto-compilew.sh
439 $W -c socket_conn6.c
440 socket_conn64.o: socket_conn64.c byte.h socket.h uint16.h typesize.h \
441 auto-typesize.h uint32.h auto-have_ipv6.h error.h ip6.h ip4.h auto-compilew.sh
442 $W -c socket_conn64.c
443 socket_connt.o: socket_connt.c readwrite.h byte.h socket.h uint16.h \
444 typesize.h auto-typesize.h uint32.h auto-have_ipv6.h auto-socklen_t.h auto-compilew.sh
445 $W -c socket_connt.c
446 socket_family.o: socket_family.c socket.h uint16.h typesize.h \
447 auto-typesize.h uint32.h auto-have_ipv6.h auto-compilew.sh
448 $W -c socket_family.c
449 socket_flag.o: socket_flag.c socket.h uint16.h typesize.h \
450 auto-typesize.h uint32.h auto-have_ipv6.h auto-compilew.sh
451 $W -c socket_flag.c
452 socket_gifid.o: socket_gifid.c socket.h uint16.h typesize.h \
453 auto-typesize.h uint32.h auto-have_ipv6.h socket_if.h stralloc.h \
454 gen_alloc.h auto-compilew.sh
455 $W -c socket_gifid.c
456 socket_gifna.o: socket_gifna.c socket_if.h stralloc.h gen_alloc.h \
457 uint32.h typesize.h auto-typesize.h auto-compilew.sh
458 $W -c socket_gifna.c
459 socket_htons.o: socket_htons.c socket.h uint16.h typesize.h \
460 auto-typesize.h uint32.h auto-have_ipv6.h auto-compilew.sh
461 $W -c socket_htons.c
462 socket_ntohs.o: socket_ntohs.c socket.h uint16.h typesize.h \
463 auto-typesize.h uint32.h auto-have_ipv6.h auto-compilew.sh
464 $W -c socket_ntohs.c
465 socket_remote6.o: socket_remote6.c byte.h socket.h uint16.h typesize.h \
466 auto-typesize.h uint32.h auto-have_ipv6.h ip6.h error.h auto-compilew.sh
467 $W -c socket_remote6.c
468 socket_tcp.o: socket_tcp.c ndelay.h socket.h uint16.h typesize.h \
469 auto-typesize.h uint32.h auto-have_ipv6.h auto-compilew.sh
470 $W -c socket_tcp.c
471 socket_tcp6.o: socket_tcp6.c ndelay.h socket.h uint16.h typesize.h \
472 auto-typesize.h uint32.h auto-have_ipv6.h error.h auto-compilew.sh
473 $W -c socket_tcp6.c
474 socket_tcp64.o: socket_tcp64.c socket.h uint16.h typesize.h \
475 auto-typesize.h uint32.h auto-have_ipv6.h error.h auto-compilew.sh
476 $W -c socket_tcp64.c
477 socket_udp.o: socket_udp.c ndelay.h socket.h uint16.h typesize.h \
478 auto-typesize.h uint32.h auto-have_ipv6.h auto-compilew.sh
479 $W -c socket_udp.c
480 socket_udp6.o: socket_udp6.c ndelay.h socket.h uint16.h typesize.h \
481 auto-typesize.h uint32.h auto-have_ipv6.h error.h auto-compilew.sh
482 $W -c socket_udp6.c
483 socket_udp64.o: socket_udp64.c socket.h uint16.h typesize.h \
484 auto-typesize.h uint32.h auto-have_ipv6.h error.h auto-compilew.sh
485 $W -c socket_udp64.c
486 sockrecbuf.o: sockrecbuf.c ftpcopy.h buffer.h stralloc.h gen_alloc.h \
487 attributes.h auto-compilew.sh
488 $W -c sockrecbuf.c
489 sort_it.o: sort_it.c ssort.h uint32.h typesize.h auto-typesize.h \
490 ftpparse.h tai.h uint64.h sort_it.h byte.h auto-compilew.sh
491 $W -c sort_it.c
492 ssort.o: ssort.c ssort.h uint32.h typesize.h auto-typesize.h alloc.h \
493 byte.h auto-compilew.sh
494 $W -c ssort.c
495 str_chr.o: str_chr.c str.h auto-compilew.sh
496 $W -c str_chr.c
497 str_diff.o: str_diff.c str.h auto-compilew.sh
498 $W -c str_diff.c
499 str_len.o: str_len.c str.h auto-compilew.sh
500 $W -c str_len.c
501 str_rchr.o: str_rchr.c str.h auto-compilew.sh
502 $W -c str_rchr.c
503 str_start.o: str_start.c str.h auto-compilew.sh
504 $W -c str_start.c
505 stralloc_cat.o: stralloc_cat.c stralloc.h gen_alloc.h auto-compilew.sh
506 $W -c stralloc_cat.c
507 stralloc_catb.o: stralloc_catb.c stralloc.h gen_alloc.h byte.h auto-compilew.sh
508 $W -c stralloc_catb.c
509 stralloc_cats.o: stralloc_cats.c str.h stralloc.h gen_alloc.h auto-compilew.sh
510 $W -c stralloc_cats.c
511 stralloc_copy.o: stralloc_copy.c stralloc.h gen_alloc.h auto-compilew.sh
512 $W -c stralloc_copy.c
513 stralloc_eady.o: stralloc_eady.c stralloc.h gen_alloc.h gen_alloci.h auto-compilew.sh
514 $W -c stralloc_eady.c
515 stralloc_free.o: stralloc_free.c stralloc.h gen_alloc.h alloc.h auto-compilew.sh
516 $W -c stralloc_free.c
517 stralloc_opyb.o: stralloc_opyb.c stralloc.h gen_alloc.h byte.h auto-compilew.sh
518 $W -c stralloc_opyb.c
519 stralloc_opys.o: stralloc_opys.c str.h stralloc.h gen_alloc.h auto-compilew.sh
520 $W -c stralloc_opys.c
521 stralloc_pend.o: stralloc_pend.c stralloc.h gen_alloc.h gen_alloci.h auto-compilew.sh
522 $W -c stralloc_pend.c
523 stralloc_plus.o: stralloc_plus.c stralloc.h gen_alloc.h gen_alloci.h auto-compilew.sh
524 $W -c stralloc_plus.c
525 strhash_crea.o: strhash_crea.c strhashi.h uint32.h typesize.h \
526 auto-typesize.h strhash.h auto-compilew.sh
527 $W -c strhash_crea.c
528 strhash_dest.o: strhash_dest.c strhashi.h uint32.h typesize.h \
529 auto-typesize.h strhash.h auto-compilew.sh
530 $W -c strhash_dest.c
531 strhash_ente.o: strhash_ente.c strhashi.h uint32.h typesize.h \
532 auto-typesize.h strhash.h auto-compilew.sh
533 $W -c strhash_ente.c
534 strhash_get.o: strhash_get.c strhashi.h uint32.h typesize.h \
535 auto-typesize.h auto-compilew.sh
536 $W -c strhash_get.c
537 strhash_hash.o: strhash_hash.c strhashi.h uint32.h typesize.h \
538 auto-typesize.h strhash.h auto-compilew.sh
539 $W -c strhash_hash.c
540 strhash_look.o: strhash_look.c strhashi.h uint32.h typesize.h \
541 auto-typesize.h strhash.h auto-compilew.sh
542 $W -c strhash_look.c
543 tai_add.o: tai_add.c tai.h uint64.h typesize.h auto-typesize.h auto-compilew.sh
544 $W -c tai_add.c
545 tai_now.o: tai_now.c tai.h uint64.h typesize.h auto-typesize.h auto-compile.sh
546 $C -c tai_now.c
547 tai_pack.o: tai_pack.c tai.h uint64.h typesize.h auto-typesize.h \
548 uint32.h auto-compilew.sh
549 $W -c tai_pack.c
550 tai_sub.o: tai_sub.c tai.h uint64.h typesize.h auto-typesize.h auto-compilew.sh
551 $W -c tai_sub.c
552 tai_uint.o: tai_uint.c tai.h uint64.h typesize.h auto-typesize.h auto-compilew.sh
553 $W -c tai_uint.c
554 taia_add.o: taia_add.c taia.h tai.h uint64.h typesize.h \
555 auto-typesize.h auto-compilew.sh
556 $W -c taia_add.c
557 taia_approx.o: taia_approx.c taia.h tai.h uint64.h typesize.h \
558 auto-typesize.h auto-compilew.sh
559 $W -c taia_approx.c
560 taia_frac.o: taia_frac.c taia.h tai.h uint64.h typesize.h \
561 auto-typesize.h auto-compilew.sh
562 $W -c taia_frac.c
563 taia_half.o: taia_half.c taia.h tai.h uint64.h typesize.h \
564 auto-typesize.h auto-compile.sh
565 $C -c taia_half.c
566 taia_less.o: taia_less.c taia.h tai.h uint64.h typesize.h \
567 auto-typesize.h auto-compilew.sh
568 $W -c taia_less.c
569 taia_now.o: taia_now.c taia.h tai.h uint64.h typesize.h \
570 auto-typesize.h auto-compilew.sh
571 $W -c taia_now.c
572 taia_pack.o: taia_pack.c taia.h tai.h uint64.h typesize.h \
573 auto-typesize.h uint32.h auto-compilew.sh
574 $W -c taia_pack.c
575 taia_sub.o: taia_sub.c taia.h tai.h uint64.h typesize.h \
576 auto-typesize.h auto-compilew.sh
577 $W -c taia_sub.c
578 taia_uint.o: taia_uint.c taia.h tai.h uint64.h typesize.h \
579 auto-typesize.h auto-compilew.sh
580 $W -c taia_uint.c
581 timeoutconn.o: timeoutconn.c error.h timeoutconn.h uint16.h typesize.h \
582 auto-typesize.h uint32.h socket.h auto-have_ipv6.h auto-compilew.sh
583 $W -c timeoutconn.c
584 timeoutconn6.o: timeoutconn6.c error.h timeoutconn.h uint16.h \
585 typesize.h auto-typesize.h uint32.h socket.h auto-have_ipv6.h auto-compilew.sh
586 $W -c timeoutconn6.c
587 toconn_common.o: toconn_common.c error.h iopause.h auto-iopause.h \
588 taia.h tai.h uint64.h typesize.h auto-typesize.h timeoutconn.h \
589 uint16.h uint32.h ndelay.h socket.h auto-have_ipv6.h close.h auto-compilew.sh
590 $W -c toconn_common.c
591 uint16_pack.o: uint16_pack.c uint16.h typesize.h auto-typesize.h auto-compilew.sh
592 $W -c uint16_pack.c
593 uint16_unpack.o: uint16_unpack.c uint16.h typesize.h auto-typesize.h auto-compilew.sh
594 $W -c uint16_unpack.c
595 uint32_pack.o: uint32_pack.c uint32.h typesize.h auto-typesize.h auto-compilew.sh
596 $W -c uint32_pack.c
597 uint32_unpack.o: uint32_unpack.c uint32.h typesize.h auto-typesize.h auto-compilew.sh
598 $W -c uint32_unpack.c
599 uo_now.o: uo_now.c uotime.h auto-compilew.sh
600 $W -c uo_now.c
601 uo_sec702dt.o: uo_sec702dt.c uotime.h auto-compilew.sh
602 $W -c uo_sec702dt.c
603 uo_wildmat.o: uo_wildmat.c uo_wildmat.h auto-compilew.sh
604 $W -c uo_wildmat.c
605 uogetopt.o: uogetopt.c readwrite.h str.h env.h scan.h uogetopt.h \
606 attributes.h auto-compilew.sh
607 $W -c uogetopt.c
608 urlparse.o: urlparse.c stralloc.h gen_alloc.h urlparse.h str.h byte.h auto-compilew.sh
609 $W -c urlparse.c
610 utcdate2tai.o: utcdate2tai.c utcdate2tai.h tai.h uint64.h typesize.h \
611 auto-typesize.h auto-compilew.sh
612 $W -c utcdate2tai.c
613 warn_broken.o: warn_broken.c ftpcopy.h buffer.h stralloc.h gen_alloc.h \
614 attributes.h bailout.h auto-compilew.sh
615 $W -c warn_broken.c
616 yyyy_mm_dd.o: yyyy_mm_dd.c uotime.h fmt.h auto-compilew.sh
617 $W -c yyyy_mm_dd.c
618 rts check: rts-clean rts-resolve
619 rts-clean:
620 rm -f rts-failures
621 rts-resolve:
622 @if test -f rts-failures ; then echo The following tests failed: ; \
623 cat rts-failures ; exit 1; fi
624 .PRECIOUS: Makefile
625 remake: clean
626 rm -f auto-compile.sh auto-link.sh auto-compilew.sh auto-makelib.sh
627 packageinfo:
628 @echo version="$(VERSION)"
629 @echo package="$(PACKAGE)"
630 @echo class="$(CLASS)"
631
632 auto-compile.sh auto-compilew.sh auto-makelib.sh auto-link.sh \
633 auto-systype.lfs: guess-compiler.sh auto-compiler-config
634 auto-compiler-config: auto-compiler-config.stamp
635 auto-config: force
636 @( for i in conf-cc conf-ld conf-ldflags conf-cflags conf-cflagsw \
637 conf-ar conf-ranlib conf-libs auto-compile.sh auto-compilew.sh \
638 auto-link.sh auto-makelib.sh ; do \
639 echo $$i ; if test -f $$i ; then cat $$i ; fi ; \
640 done ) >[email protected]
641 @mv [email protected] $@
642 auto-compiler-config.stamp: auto-config
643 @if cmp auto-config $@ ; then : ; else \
644 echo configuration has changed ; \
645 DEFS='$(DEFS)' INCLUDES='$(INCLUDES)' \
646 PREMAKE_DEFS='$(PREMAKE_DEFS)' \
647 sh guess-compiler.sh ; \
648 rm auto-config ; \
649 $(MYMAKE) auto-config && mv auto-config $@ ; \
650 fi
651
652 maintainer-clean: distclean
653 rm -f Makefile $(MAINTAINER_CLEANFILES)
654 distclean: clean
655 rm -f $(DISTCLEANFILES) auto-dummy # to avoid "no arguments" error
656 clean spotless: mostlyclean
657 rm -f $(TARGETS) auto-*
658 rm -rf deps
659 mostlyclean:
660 rm -f *.o *.a $(CLEANFILES)
661
662 NEWS-check:
663 @if sed 1q NEWS | grep -e "$(VERSION)" > /dev/null; then :; else \
664 echo "NEWS not updated; not releasing" 1>&2; \
665 exit 1; \
666 fi
667 @if grep -e "$(VERSION)" ChangeLog > /dev/null; then :; else \
668 echo "ChangeLog not updated; not releasing" 1>&2; \
669 exit 1; \
670 fi
671 dist:
672 rm -f $(PREMAKE_DIST)
673 package
674 bk-dist: NEWS-check
675 bk tag `echo "Release-$(VERSION)" | sed 's/\./-/g'`
676 $(MYMAKE) dist
677 gpg-dist: dist
678 gpg -b --armor $(PREMAKE_DIST)
679 force:
680
681 auto-systype: auto-typesize.h $(EXTRA_SYSTYPE) $(PREMAKE_EXTRA_SYSTYPE)
682 rm -f [email protected]
683 @echo >>[email protected]
684 @echo "PACKAGE: $(PACKAGE) $(VERSION)" >>[email protected]
685 @echo "REALNAME: $(REALNAME)" >>[email protected]
686 @echo "uname-a:" `uname -a` >>[email protected]
687 @echo "uname-s:" `uname -s` >>[email protected]
688 @echo "uname-r:" `uname -r` >>[email protected]
689 @echo "uname-v:" `uname -v` >>[email protected]
690 @echo "uname-m:" `uname -m` >>[email protected]
691 @echo "linux-ld.so:" `ls /lib/ld-*.so` >>[email protected]
692 @echo "linux-libc.so:" `ls /lib/libc-*.so` >>[email protected]
693 cat auto-typesize.h >>[email protected]
694 if test "x$(PREMAKE_EXTRA_SYSTYPE)$(EXTRA_SYSTYPE)" = x ; then true ; else \
695 grep -h systype-info $(PREMAKE_EXTRA_SYSTYPE) $(EXTRA_SYSTYPE) >>[email protected] \
696 || exit 1 ; \
697 fi
698 mv [email protected] $@
699
700 check: docheck check.exp ftpparse.o utcdate2tai.o ftpcopy ftpls
701 sh docheck 2>&1 | cat -v \
702 | sed "s,`env - pwd`/tmp.check/,%,g" \
703 | tee check.out | diff -u check.exp -