Mirror of :pserver:cvs@cvs.fefe.de:/cvs libowfat https://www.fefe.de/libowfat/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

764 lines
37 KiB

  1. # do not edit! edit GNUmakefile instead
  2. # Warning! There is no real "make install" support.
  3. # The include files are named after the djb, i.e. pretty generic. They
  4. # will probably conflict with other headers. That's why I install them
  5. # in /opt/diet, where they are in the default search path for my diet libc
  6. # work but don't conflict with anything there. YMMV.
  7. prefix=/opt/diet
  8. LIBDIR=${prefix}/lib
  9. INCLUDEDIR=${prefix}/include
  10. MAN3DIR=${prefix}/man/man3
  11. LIBS=byte.a fmt.a scan.a str.a uint.a open.a stralloc.a unix.a socket.a \
  12. buffer.a mmap.a taia.a tai.a dns.a case.a mult.a array.a io.a textcode.a
  13. all: t $(LIBS) libowfat.a libsocket
  14. CC=gcc
  15. CFLAGS=-pipe -W -Wall -O2 -fomit-frame-pointer
  16. #CFLAGS=-pipe -Os -march=pentiumpro -mcpu=pentiumpro -fomit-frame-pointer -fschedule-insns2 -Wall
  17. array_allocate.o: array/array_allocate.c safemult.h uint16.h \
  18. uint32.h uint64.h array.h byte.h
  19. array_bytes.o: array/array_bytes.c array.h uint64.h
  20. array_cat.o: array/array_cat.c array.h uint64.h byte.h
  21. array_cat0.o: array/array_cat0.c array.h uint64.h
  22. array_catb.o: array/array_catb.c array.h uint64.h byte.h
  23. array_cate.o: array/array_cate.c array.h uint64.h
  24. array_cats.o: array/array_cats.c array.h uint64.h str.h
  25. array_cats0.o: array/array_cats0.c array.h uint64.h str.h
  26. array_equal.o: array/array_equal.c byte.h array.h uint64.h
  27. array_fail.o: array/array_fail.c array.h uint64.h
  28. array_get.o: array/array_get.c safemult.h uint16.h uint32.h \
  29. uint64.h array.h
  30. array_length.o: array/array_length.c array.h uint64.h
  31. array_reset.o: array/array_reset.c array.h uint64.h
  32. array_start.o: array/array_start.c array.h uint64.h
  33. array_trunc.o: array/array_trunc.c array.h uint64.h
  34. array_truncate.o: array/array_truncate.c safemult.h uint16.h \
  35. uint32.h uint64.h array.h
  36. buffer_0.o: buffer/buffer_0.c buffer.h
  37. buffer_0small.o: buffer/buffer_0small.c buffer.h
  38. buffer_1.o: buffer/buffer_1.c buffer.h
  39. buffer_1small.o: buffer/buffer_1small.c buffer.h
  40. buffer_2.o: buffer/buffer_2.c buffer.h
  41. buffer_close.o: buffer/buffer_close.c buffer.h
  42. buffer_feed.o: buffer/buffer_feed.c buffer.h
  43. buffer_flush.o: buffer/buffer_flush.c buffer.h
  44. buffer_fromsa.o: buffer/buffer_fromsa.c stralloc.h buffer.h
  45. buffer_get.o: buffer/buffer_get.c byte.h buffer.h
  46. buffer_get_new_token_sa.o: buffer/buffer_get_new_token_sa.c stralloc.h \
  47. buffer.h
  48. buffer_get_new_token_sa_pred.o: buffer/buffer_get_new_token_sa_pred.c \
  49. stralloc.h buffer.h
  50. buffer_get_token.o: buffer/buffer_get_token.c byte.h buffer.h \
  51. scan.h
  52. buffer_get_token_pred.o: buffer/buffer_get_token_pred.c byte.h \
  53. buffer.h scan.h
  54. buffer_get_token_sa.o: buffer/buffer_get_token_sa.c byte.h stralloc.h \
  55. buffer.h
  56. buffer_get_token_sa_pred.o: buffer/buffer_get_token_sa_pred.c byte.h \
  57. stralloc.h buffer.h
  58. buffer_getc.o: buffer/buffer_getc.c byte.h buffer.h
  59. buffer_getline.o: buffer/buffer_getline.c buffer.h
  60. buffer_getline_sa.o: buffer/buffer_getline_sa.c stralloc.h buffer.h
  61. buffer_getn.o: buffer/buffer_getn.c byte.h buffer.h
  62. buffer_getnewline_sa.o: buffer/buffer_getnewline_sa.c stralloc.h \
  63. buffer.h
  64. buffer_init.o: buffer/buffer_init.c buffer.h
  65. buffer_init_free.o: buffer/buffer_init_free.c buffer.h
  66. buffer_mmapread.o: buffer/buffer_mmapread.c buffer.h mmap.h
  67. buffer_peek.o: buffer/buffer_peek.c buffer.h
  68. buffer_put.o: buffer/buffer_put.c byte.h buffer.h
  69. buffer_put8long.o: buffer/buffer_put8long.c buffer.h fmt.h
  70. buffer_putalign.o: buffer/buffer_putalign.c byte.h buffer.h
  71. buffer_puterror.o: buffer/buffer_puterror.c buffer.h
  72. buffer_puterror2.o: buffer/buffer_puterror2.c buffer.h
  73. buffer_putflush.o: buffer/buffer_putflush.c buffer.h
  74. buffer_putlong.o: buffer/buffer_putlong.c buffer.h fmt.h
  75. buffer_putlonglong.o: buffer/buffer_putlonglong.c buffer.h fmt.h
  76. buffer_putm_internal.o: buffer/buffer_putm_internal.c buffer.h
  77. buffer_putm_internal_flush.o: buffer/buffer_putm_internal_flush.c \
  78. buffer.h
  79. buffer_putnlflush.o: buffer/buffer_putnlflush.c str.h buffer.h
  80. buffer_puts.o: buffer/buffer_puts.c str.h buffer.h
  81. buffer_putsa.o: buffer/buffer_putsa.c stralloc.h buffer.h
  82. buffer_putsaflush.o: buffer/buffer_putsaflush.c stralloc.h buffer.h
  83. buffer_putsalign.o: buffer/buffer_putsalign.c str.h buffer.h
  84. buffer_putsflush.o: buffer/buffer_putsflush.c str.h buffer.h
  85. buffer_putspace.o: buffer/buffer_putspace.c str.h buffer.h
  86. buffer_putulong.o: buffer/buffer_putulong.c buffer.h fmt.h
  87. buffer_putulonglong.o: buffer/buffer_putulonglong.c buffer.h fmt.h
  88. buffer_putxlong.o: buffer/buffer_putxlong.c buffer.h fmt.h
  89. buffer_seek.o: buffer/buffer_seek.c buffer.h
  90. buffer_stubborn.o: buffer/buffer_stubborn.c buffer.h
  91. buffer_stubborn2.o: buffer/buffer_stubborn2.c buffer.h
  92. errmsg_cvt.o: buffer/errmsg_cvt.c errmsg.h str.h
  93. errmsg_iam.o: buffer/errmsg_iam.c errmsg.h
  94. errmsg_info.o: buffer/errmsg_info.c errmsg.h str.h
  95. errmsg_infosys.o: buffer/errmsg_infosys.c errmsg.h str.h
  96. errmsg_warn.o: buffer/errmsg_warn.c errmsg.h str.h
  97. errmsg_warnsys.o: buffer/errmsg_warnsys.c errmsg.h str.h
  98. errmsg_writesys.o: buffer/errmsg_writesys.c errmsg.h str.h
  99. byte_chr.o: byte/byte_chr.c byte.h
  100. byte_copy.o: byte/byte_copy.c byte.h
  101. byte_copyr.o: byte/byte_copyr.c byte.h
  102. byte_diff.o: byte/byte_diff.c byte.h
  103. byte_rchr.o: byte/byte_rchr.c byte.h
  104. byte_zero.o: byte/byte_zero.c byte.h
  105. case_diffb.o: case/case_diffb.c case.h
  106. case_diffs.o: case/case_diffs.c case.h
  107. case_lowerb.o: case/case_lowerb.c case.h
  108. case_lowers.o: case/case_lowers.c case.h
  109. case_starts.o: case/case_starts.c case.h
  110. dns_dfd.o: dns/dns_dfd.c byte.h dns.h stralloc.h iopause.h \
  111. taia.h tai.h uint64.h
  112. dns_domain.o: dns/dns_domain.c case.h byte.h dns.h stralloc.h \
  113. iopause.h taia.h tai.h uint64.h
  114. dns_dtda.o: dns/dns_dtda.c stralloc.h dns.h stralloc.h iopause.h \
  115. taia.h tai.h uint64.h
  116. dns_ip.o: dns/dns_ip.c stralloc.h uint16.h byte.h dns.h \
  117. stralloc.h iopause.h taia.h tai.h uint64.h
  118. dns_ip6.o: dns/dns_ip6.c stralloc.h uint16.h byte.h dns.h \
  119. stralloc.h iopause.h taia.h tai.h uint64.h ip4.h ip6.h \
  120. byte.h uint32.h
  121. dns_ipq.o: dns/dns_ipq.c stralloc.h case.h byte.h str.h dns.h \
  122. stralloc.h iopause.h taia.h tai.h uint64.h
  123. dns_ipq6.o: dns/dns_ipq6.c stralloc.h case.h byte.h str.h dns.h \
  124. stralloc.h iopause.h taia.h tai.h uint64.h
  125. dns_mx.o: dns/dns_mx.c stralloc.h byte.h uint16.h dns.h \
  126. stralloc.h iopause.h taia.h tai.h uint64.h
  127. dns_name.o: dns/dns_name.c stralloc.h uint16.h byte.h dns.h \
  128. stralloc.h iopause.h taia.h tai.h uint64.h ip6.h byte.h \
  129. uint32.h
  130. dns_nd.o: dns/dns_nd.c byte.h fmt.h dns.h stralloc.h iopause.h \
  131. taia.h tai.h uint64.h
  132. dns_nd6.o: dns/dns_nd6.c byte.h fmt.h dns.h stralloc.h \
  133. iopause.h taia.h tai.h uint64.h haveinline.h
  134. dns_packet.o: dns/dns_packet.c dns.h stralloc.h iopause.h taia.h \
  135. tai.h uint64.h
  136. dns_random.o: dns/dns_random.c dns.h stralloc.h iopause.h taia.h \
  137. tai.h uint64.h taia.h uint32.h
  138. dns_rcip.o: dns/dns_rcip.c taia.h tai.h uint64.h openreadclose.h \
  139. stralloc.h byte.h ip4.h ip6.h byte.h uint32.h dns.h \
  140. iopause.h taia.h
  141. dns_rcrw.o: dns/dns_rcrw.c taia.h tai.h uint64.h byte.h str.h \
  142. openreadclose.h stralloc.h dns.h iopause.h taia.h
  143. dns_resolve.o: dns/dns_resolve.c iopause.h taia.h tai.h uint64.h \
  144. taia.h byte.h dns.h stralloc.h iopause.h ip6.h byte.h \
  145. uint32.h
  146. dns_sortip.o: dns/dns_sortip.c byte.h dns.h stralloc.h iopause.h \
  147. taia.h tai.h uint64.h
  148. dns_sortip6.o: dns/dns_sortip6.c byte.h dns.h stralloc.h \
  149. iopause.h taia.h tai.h uint64.h
  150. dns_transmit.o: dns/dns_transmit.c socket.h uint16.h uint32.h \
  151. byte.h uint16.h dns.h stralloc.h iopause.h taia.h tai.h \
  152. uint64.h ip6.h byte.h
  153. dns_txt.o: dns/dns_txt.c stralloc.h uint16.h byte.h dns.h \
  154. stralloc.h iopause.h taia.h tai.h uint64.h
  155. byte.o: examples/byte.c byte.h buffer.h
  156. str.o: examples/str.c str.h buffer.h
  157. fmt_8long.o: fmt/fmt_8long.c fmt.h
  158. fmt_8longlong.o: fmt/fmt_8longlong.c fmt.h
  159. fmt_double.o: fmt/fmt_double.c fmt.h
  160. fmt_fill.o: fmt/fmt_fill.c fmt.h
  161. fmt_httpdate.o: fmt/fmt_httpdate.c fmt.h byte.h
  162. fmt_human.o: fmt/fmt_human.c fmt.h
  163. fmt_humank.o: fmt/fmt_humank.c fmt.h
  164. fmt_long.o: fmt/fmt_long.c fmt.h
  165. fmt_longlong.o: fmt/fmt_longlong.c fmt.h
  166. fmt_minus.o: fmt/fmt_minus.c fmt.h
  167. fmt_pad.o: fmt/fmt_pad.c fmt.h
  168. fmt_plusminus.o: fmt/fmt_plusminus.c fmt.h
  169. fmt_str.o: fmt/fmt_str.c fmt.h
  170. fmt_strn.o: fmt/fmt_strn.c fmt.h
  171. fmt_tohex.o: fmt/fmt_tohex.c fmt.h
  172. fmt_ulong.o: fmt/fmt_ulong.c fmt.h
  173. fmt_ulong0.o: fmt/fmt_ulong0.c fmt.h
  174. fmt_ulonglong.o: fmt/fmt_ulonglong.c fmt.h
  175. fmt_xlong.o: fmt/fmt_xlong.c fmt.h haveinline.h
  176. fmt_xlonglong.o: fmt/fmt_xlonglong.c fmt.h
  177. io_appendfile.o: io/io_appendfile.c io_internal.h io.h uint64.h \
  178. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  179. havesigio.h
  180. io_canread.o: io/io_canread.c io_internal.h io.h uint64.h taia.h \
  181. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  182. havesigio.h
  183. io_canwrite.o: io/io_canwrite.c io_internal.h io.h uint64.h \
  184. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  185. havesigio.h
  186. io_check.o: io/io_check.c io_internal.h io.h uint64.h taia.h \
  187. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  188. havesigio.h
  189. io_close.o: io/io_close.c io_internal.h io.h uint64.h taia.h \
  190. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  191. havesigio.h
  192. io_closeonexec.o: io/io_closeonexec.c io_internal.h io.h uint64.h \
  193. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  194. havesigio.h
  195. io_createfile.o: io/io_createfile.c io_internal.h io.h uint64.h \
  196. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  197. havesigio.h
  198. io_dontwantread.o: io/io_dontwantread.c io_internal.h io.h uint64.h \
  199. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  200. havesigio.h
  201. io_dontwantwrite.o: io/io_dontwantwrite.c io_internal.h io.h \
  202. uint64.h taia.h tai.h array.h haveepoll.h havekqueue.h \
  203. havedevpoll.h havesigio.h
  204. io_eagain.o: io/io_eagain.c io_internal.h io.h uint64.h taia.h \
  205. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  206. havesigio.h
  207. io_fd.o: io/io_fd.c io_internal.h io.h uint64.h taia.h tai.h \
  208. array.h haveepoll.h havekqueue.h havedevpoll.h havesigio.h \
  209. byte.h
  210. io_finishandshutdown.o: io/io_finishandshutdown.c io_internal.h io.h \
  211. uint64.h taia.h tai.h array.h haveepoll.h havekqueue.h \
  212. havedevpoll.h havesigio.h
  213. io_getcookie.o: io/io_getcookie.c io_internal.h io.h uint64.h \
  214. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  215. havesigio.h
  216. io_mmapwritefile.o: io/io_mmapwritefile.c io_internal.h io.h \
  217. uint64.h taia.h tai.h array.h haveepoll.h havekqueue.h \
  218. havedevpoll.h havesigio.h iob.h
  219. io_nonblock.o: io/io_nonblock.c io_internal.h io.h uint64.h \
  220. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  221. havesigio.h
  222. io_passfd.o: io/io_passfd.c io_internal.h io.h uint64.h taia.h \
  223. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  224. havesigio.h
  225. io_pipe.o: io/io_pipe.c io_internal.h io.h uint64.h taia.h \
  226. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  227. havesigio.h
  228. io_readfile.o: io/io_readfile.c io_internal.h io.h uint64.h \
  229. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  230. havesigio.h
  231. io_readwritefile.o: io/io_readwritefile.c io_internal.h io.h \
  232. uint64.h taia.h tai.h array.h haveepoll.h havekqueue.h \
  233. havedevpoll.h havesigio.h
  234. io_receivefd.o: io/io_receivefd.c io_internal.h io.h uint64.h \
  235. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  236. havesigio.h
  237. io_sendfile.o: io/io_sendfile.c io_internal.h io.h uint64.h \
  238. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  239. havesigio.h havebsdsf.h havesendfile.h
  240. io_setcookie.o: io/io_setcookie.c io_internal.h io.h uint64.h \
  241. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  242. havesigio.h
  243. io_sigpipe.o: io/io_sigpipe.c io_internal.h io.h uint64.h taia.h \
  244. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  245. havesigio.h
  246. io_socketpair.o: io/io_socketpair.c io_internal.h io.h uint64.h \
  247. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  248. havesigio.h
  249. io_timeout.o: io/io_timeout.c io_internal.h io.h uint64.h taia.h \
  250. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  251. havesigio.h
  252. io_timeouted.o: io/io_timeouted.c io_internal.h io.h uint64.h \
  253. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  254. havesigio.h
  255. io_tryread.o: io/io_tryread.c io_internal.h io.h uint64.h taia.h \
  256. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  257. havesigio.h
  258. io_tryreadtimeout.o: io/io_tryreadtimeout.c io_internal.h io.h \
  259. uint64.h taia.h tai.h array.h haveepoll.h havekqueue.h \
  260. havedevpoll.h havesigio.h
  261. io_trywrite.o: io/io_trywrite.c io_internal.h io.h uint64.h \
  262. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  263. havesigio.h
  264. io_trywritetimeout.o: io/io_trywritetimeout.c io_internal.h io.h \
  265. uint64.h taia.h tai.h array.h haveepoll.h havekqueue.h \
  266. havedevpoll.h havesigio.h
  267. io_wait.o: io/io_wait.c io_internal.h io.h uint64.h taia.h \
  268. tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  269. havesigio.h
  270. io_waitread.o: io/io_waitread.c io_internal.h io.h uint64.h \
  271. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  272. havesigio.h
  273. io_waituntil.o: io/io_waituntil.c io_internal.h io.h uint64.h \
  274. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  275. havesigio.h safemult.h uint16.h uint32.h
  276. io_waituntil2.o: io/io_waituntil2.c io_internal.h io.h uint64.h \
  277. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  278. havesigio.h
  279. io_waitwrite.o: io/io_waitwrite.c io_internal.h io.h uint64.h \
  280. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  281. havesigio.h
  282. io_wantread.o: io/io_wantread.c io_internal.h io.h uint64.h \
  283. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  284. havesigio.h
  285. io_wantwrite.o: io/io_wantwrite.c io_internal.h io.h uint64.h \
  286. taia.h tai.h array.h haveepoll.h havekqueue.h havedevpoll.h \
  287. havesigio.h
  288. iob_addbuf.o: io/iob_addbuf.c iob_internal.h iob.h io.h uint64.h \
  289. taia.h tai.h array.h
  290. iob_addbuf_free.o: io/iob_addbuf_free.c iob_internal.h iob.h io.h \
  291. uint64.h taia.h tai.h array.h
  292. iob_addbuf_internal.o: io/iob_addbuf_internal.c iob_internal.h iob.h \
  293. io.h uint64.h taia.h tai.h array.h
  294. iob_addfile.o: io/iob_addfile.c iob_internal.h iob.h io.h \
  295. uint64.h taia.h tai.h array.h
  296. iob_addfile_close.o: io/iob_addfile_close.c iob_internal.h iob.h \
  297. io.h uint64.h taia.h tai.h array.h
  298. iob_adds.o: io/iob_adds.c str.h iob.h io.h uint64.h taia.h \
  299. tai.h array.h
  300. iob_adds_free.o: io/iob_adds_free.c str.h iob.h io.h uint64.h \
  301. taia.h tai.h array.h
  302. iob_new.o: io/iob_new.c iob_internal.h iob.h io.h uint64.h \
  303. taia.h tai.h array.h
  304. iob_prefetch.o: io/iob_prefetch.c iob_internal.h iob.h io.h \
  305. uint64.h taia.h tai.h array.h
  306. iob_reset.o: io/iob_reset.c byte.h iob_internal.h iob.h io.h \
  307. uint64.h taia.h tai.h array.h
  308. iob_write.o: io/iob_write.c iob_internal.h iob.h io.h uint64.h \
  309. taia.h tai.h array.h
  310. mmap_private.o: mmap/mmap_private.c open.h mmap.h
  311. mmap_read.o: mmap/mmap_read.c open.h mmap.h
  312. mmap_shared.o: mmap/mmap_shared.c open.h mmap.h
  313. imult16.o: mult/imult16.c safemult.h uint16.h uint32.h uint64.h
  314. imult32.o: mult/imult32.c safemult.h uint16.h uint32.h uint64.h
  315. imult64.o: mult/imult64.c safemult.h uint16.h uint32.h uint64.h
  316. umult16.o: mult/umult16.c safemult.h uint16.h uint32.h uint64.h
  317. umult32.o: mult/umult32.c safemult.h uint16.h uint32.h uint64.h
  318. umult64.o: mult/umult64.c safemult.h uint16.h uint32.h uint64.h
  319. open_append.o: open/open_append.c open.h
  320. open_excl.o: open/open_excl.c open.h
  321. open_read.o: open/open_read.c open.h
  322. open_rw.o: open/open_rw.c open.h
  323. open_trunc.o: open/open_trunc.c open.h
  324. open_write.o: open/open_write.c open.h
  325. openreadclose.o: open/openreadclose.c open.h readclose.h stralloc.h \
  326. openreadclose.h
  327. readclose.o: open/readclose.c readclose.h stralloc.h
  328. scan_8int.o: scan/scan_8int.c scan.h
  329. scan_8long.o: scan/scan_8long.c scan.h
  330. scan_8short.o: scan/scan_8short.c scan.h
  331. scan_charsetnskip.o: scan/scan_charsetnskip.c scan.h
  332. scan_double.o: scan/scan_double.c scan.h
  333. scan_fromhex.o: scan/scan_fromhex.c scan.h
  334. scan_httpdate.o: scan/scan_httpdate.c scan.h byte.h case.h
  335. scan_int.o: scan/scan_int.c scan.h
  336. scan_long.o: scan/scan_long.c scan.h
  337. scan_longlong.o: scan/scan_longlong.c scan.h
  338. scan_noncharsetnskip.o: scan/scan_noncharsetnskip.c scan.h
  339. scan_nonwhitenskip.o: scan/scan_nonwhitenskip.c scan.h
  340. scan_plusminus.o: scan/scan_plusminus.c scan.h
  341. scan_short.o: scan/scan_short.c scan.h
  342. scan_uint.o: scan/scan_uint.c scan.h
  343. scan_ulong.o: scan/scan_ulong.c scan.h
  344. scan_ulonglong.o: scan/scan_ulonglong.c scan.h
  345. scan_ushort.o: scan/scan_ushort.c scan.h
  346. scan_whitenskip.o: scan/scan_whitenskip.c scan.h
  347. scan_xint.o: scan/scan_xint.c scan.h
  348. scan_xlong.o: scan/scan_xlong.c scan.h
  349. scan_xlonglong.o: scan/scan_xlonglong.c scan.h
  350. scan_xshort.o: scan/scan_xshort.c scan.h
  351. fmt_ip4.o: socket/fmt_ip4.c fmt.h ip4.h
  352. fmt_ip6.o: socket/fmt_ip6.c fmt.h byte.h ip4.h ip6.h byte.h \
  353. uint32.h
  354. fmt_ip6_flat.o: socket/fmt_ip6_flat.c ip6.h byte.h uint32.h \
  355. haveinline.h
  356. fmt_ip6c.o: socket/fmt_ip6c.c fmt.h byte.h ip4.h ip6.h byte.h \
  357. uint32.h
  358. fmt_ip6if.o: socket/fmt_ip6if.c ip6.h byte.h uint32.h str.h \
  359. fmt.h socket.h uint16.h
  360. fmt_ip6ifc.o: socket/fmt_ip6ifc.c fmt.h byte.h ip4.h ip6.h \
  361. byte.h uint32.h
  362. init.o: socket/init.c
  363. scan_ip4.o: socket/scan_ip4.c scan.h ip4.h
  364. scan_ip6.o: socket/scan_ip6.c scan.h ip4.h ip6.h byte.h \
  365. uint32.h
  366. scan_ip6_flat.o: socket/scan_ip6_flat.c scan.h
  367. socket_accept4.o: socket/socket_accept4.c windoze.h socket.h \
  368. uint16.h uint32.h havesl.h
  369. socket_accept6.o: socket/socket_accept6.c windoze.h byte.h socket.h \
  370. uint16.h uint32.h ip6.h byte.h haveip6.h havesl.h \
  371. havescope.h
  372. socket_bind4.o: socket/socket_bind4.c windoze.h byte.h uint16.h \
  373. uint32.h socket.h uint16.h uint32.h
  374. socket_bind4_reuse.o: socket/socket_bind4_reuse.c socket.h uint16.h \
  375. uint32.h windoze.h
  376. socket_bind6.o: socket/socket_bind6.c haveip6.h windoze.h ip6.h \
  377. byte.h uint32.h byte.h socket.h uint16.h
  378. socket_bind6_reuse.o: socket/socket_bind6_reuse.c socket.h uint16.h \
  379. uint32.h windoze.h
  380. socket_broadcast.o: socket/socket_broadcast.c socket.h uint16.h \
  381. uint32.h windoze.h
  382. socket_connect4.o: socket/socket_connect4.c windoze.h byte.h \
  383. socket.h uint16.h uint32.h uint16.h uint32.h
  384. socket_connect6.o: socket/socket_connect6.c windoze.h byte.h \
  385. socket.h uint16.h uint32.h ip6.h byte.h haveip6.h \
  386. uint32.h ip4.h havescope.h
  387. socket_connected.o: socket/socket_connected.c socket.h uint16.h \
  388. uint32.h havesl.h
  389. socket_getifidx.o: socket/socket_getifidx.c socket.h uint16.h \
  390. uint32.h haven2i.h
  391. socket_getifname.o: socket/socket_getifname.c socket.h uint16.h \
  392. uint32.h haven2i.h
  393. socket_ip4loopback.o: socket/socket_ip4loopback.c
  394. socket_listen.o: socket/socket_listen.c socket.h uint16.h uint32.h \
  395. windoze.h
  396. socket_local4.o: socket/socket_local4.c windoze.h byte.h socket.h \
  397. uint16.h uint32.h havesl.h
  398. socket_local6.o: socket/socket_local6.c windoze.h byte.h socket.h \
  399. uint16.h uint32.h ip6.h byte.h haveip6.h uint32.h \
  400. havesl.h havescope.h
  401. socket_mchopcount6.o: socket/socket_mchopcount6.c windoze.h socket.h \
  402. uint16.h uint32.h byte.h haveip6.h ip6.h byte.h
  403. socket_mcjoin4.o: socket/socket_mcjoin4.c windoze.h socket.h \
  404. uint16.h uint32.h byte.h
  405. socket_mcjoin6.o: socket/socket_mcjoin6.c windoze.h socket.h \
  406. uint16.h uint32.h byte.h haveip6.h ip6.h byte.h
  407. socket_mcleave4.o: socket/socket_mcleave4.c windoze.h socket.h \
  408. uint16.h uint32.h byte.h
  409. socket_mcleave6.o: socket/socket_mcleave6.c windoze.h socket.h \
  410. uint16.h uint32.h byte.h haveip6.h ip6.h byte.h
  411. socket_mcloop4.o: socket/socket_mcloop4.c windoze.h socket.h \
  412. uint16.h uint32.h
  413. socket_mcloop6.o: socket/socket_mcloop6.c windoze.h socket.h \
  414. uint16.h uint32.h haveip6.h
  415. socket_mcttl4.o: socket/socket_mcttl4.c windoze.h socket.h uint16.h \
  416. uint32.h
  417. socket_noipv6.o: socket/socket_noipv6.c
  418. socket_recv4.o: socket/socket_recv4.c windoze.h socket.h uint16.h \
  419. uint32.h havesl.h
  420. socket_recv6.o: socket/socket_recv6.c windoze.h byte.h socket.h \
  421. uint16.h uint32.h ip6.h byte.h haveip6.h havesl.h \
  422. havescope.h
  423. socket_remote4.o: socket/socket_remote4.c windoze.h byte.h socket.h \
  424. uint16.h uint32.h havesl.h havescope.h
  425. socket_remote6.o: socket/socket_remote6.c windoze.h byte.h socket.h \
  426. uint16.h uint32.h ip6.h byte.h haveip6.h uint32.h \
  427. havesl.h havescope.h
  428. socket_send4.o: socket/socket_send4.c windoze.h byte.h socket.h \
  429. uint16.h uint32.h
  430. socket_send6.o: socket/socket_send6.c windoze.h byte.h socket.h \
  431. uint16.h uint32.h ip6.h byte.h haveip6.h ip4.h \
  432. havescope.h
  433. socket_tcp4.o: socket/socket_tcp4.c windoze.h socket.h uint16.h \
  434. uint32.h
  435. socket_tcp6.o: socket/socket_tcp6.c windoze.h haveip6.h socket.h \
  436. uint16.h uint32.h
  437. socket_tryreservein.o: socket/socket_tryreservein.c windoze.h \
  438. socket.h uint16.h uint32.h
  439. socket_udp4.o: socket/socket_udp4.c windoze.h socket.h uint16.h \
  440. uint32.h
  441. socket_udp6.o: socket/socket_udp6.c windoze.h haveip6.h socket.h \
  442. uint16.h uint32.h
  443. socket_v4mappedprefix.o: socket/socket_v4mappedprefix.c
  444. socket_v6any.o: socket/socket_v6any.c
  445. socket_v6loopback.o: socket/socket_v6loopback.c
  446. str_chr.o: str/str_chr.c str.h
  447. str_copy.o: str/str_copy.c str.h
  448. str_diff.o: str/str_diff.c byte.h
  449. str_diffn.o: str/str_diffn.c byte.h
  450. str_len.o: str/str_len.c str.h
  451. str_rchr.o: str/str_rchr.c str.h
  452. str_start.o: str/str_start.c str.h
  453. stralloc_append.o: stralloc/stralloc_append.c stralloc.h
  454. stralloc_cat.o: stralloc/stralloc_cat.c stralloc.h str.h
  455. stralloc_catb.o: stralloc/stralloc_catb.c byte.h stralloc.h
  456. stralloc_catlong0.o: stralloc/stralloc_catlong0.c stralloc.h fmt.h
  457. stralloc_catm_internal.o: stralloc/stralloc_catm_internal.c stralloc.h
  458. stralloc_cats.o: stralloc/stralloc_cats.c stralloc.h str.h
  459. stralloc_catulong0.o: stralloc/stralloc_catulong0.c stralloc.h fmt.h
  460. stralloc_chomp.o: stralloc/stralloc_chomp.c stralloc.h
  461. stralloc_chop.o: stralloc/stralloc_chop.c stralloc.h
  462. stralloc_copy.o: stralloc/stralloc_copy.c stralloc.h str.h
  463. stralloc_copyb.o: stralloc/stralloc_copyb.c byte.h stralloc.h
  464. stralloc_copys.o: stralloc/stralloc_copys.c stralloc.h str.h
  465. stralloc_diff.o: stralloc/stralloc_diff.c stralloc.h byte.h str.h
  466. stralloc_diffs.o: stralloc/stralloc_diffs.c stralloc.h byte.h str.h
  467. stralloc_free.o: stralloc/stralloc_free.c stralloc.h
  468. stralloc_init.o: stralloc/stralloc_init.c stralloc.h
  469. stralloc_ready.o: stralloc/stralloc_ready.c stralloc.h
  470. stralloc_readyplus.o: stralloc/stralloc_readyplus.c stralloc.h
  471. stralloc_starts.o: stralloc/stralloc_starts.c stralloc.h byte.h \
  472. str.h
  473. stralloc_zero.o: stralloc/stralloc_zero.c stralloc.h
  474. tai_add.o: tai/tai_add.c tai.h uint64.h
  475. tai_now.o: tai/tai_now.c tai.h uint64.h
  476. tai_pack.o: tai/tai_pack.c tai.h uint64.h
  477. tai_sub.o: tai/tai_sub.c tai.h uint64.h
  478. tai_uint.o: tai/tai_uint.c tai.h uint64.h
  479. tai_unpack.o: tai/tai_unpack.c tai.h uint64.h
  480. taia_add.o: taia/taia_add.c taia.h tai.h uint64.h
  481. taia_addsec.o: taia/taia_addsec.c taia.h tai.h uint64.h
  482. taia_approx.o: taia/taia_approx.c taia.h tai.h uint64.h
  483. taia_frac.o: taia/taia_frac.c taia.h tai.h uint64.h
  484. taia_less.o: taia/taia_less.c taia.h tai.h uint64.h
  485. taia_now.o: taia/taia_now.c taia.h tai.h uint64.h
  486. taia_pack.o: taia/taia_pack.c taia.h tai.h uint64.h
  487. taia_sub.o: taia/taia_sub.c taia.h tai.h uint64.h
  488. taia_tai.o: taia/taia_tai.c taia.h tai.h uint64.h
  489. taia_uint.o: taia/taia_uint.c taia.h tai.h uint64.h
  490. taia_unpack.o: taia/taia_unpack.c taia.h tai.h uint64.h
  491. base64.o: textcode/base64.c
  492. fmt_base64.o: textcode/fmt_base64.c fmt.h textcode.h haveinline.h
  493. fmt_cescape.o: textcode/fmt_cescape.c fmt.h textcode.h str.h \
  494. haveinline.h
  495. fmt_foldwhitespace.o: textcode/fmt_foldwhitespace.c fmt.h textcode.h \
  496. str.h haveinline.h
  497. fmt_hexdump.o: textcode/fmt_hexdump.c fmt.h textcode.h str.h \
  498. haveinline.h
  499. fmt_html.o: textcode/fmt_html.c fmt.h textcode.h str.h \
  500. haveinline.h
  501. fmt_quotedprintable.o: textcode/fmt_quotedprintable.c fmt.h \
  502. textcode.h haveinline.h
  503. fmt_to_array.o: textcode/fmt_to_array.c array.h uint64.h textcode.h
  504. fmt_to_sa.o: textcode/fmt_to_sa.c stralloc.h textcode.h
  505. fmt_tofrom_array.o: textcode/fmt_tofrom_array.c array.h uint64.h \
  506. textcode.h
  507. fmt_urlencoded.o: textcode/fmt_urlencoded.c fmt.h textcode.h str.h \
  508. haveinline.h
  509. fmt_uuencoded.o: textcode/fmt_uuencoded.c fmt.h textcode.h \
  510. haveinline.h
  511. fmt_yenc.o: textcode/fmt_yenc.c fmt.h textcode.h
  512. scan_base64.o: textcode/scan_base64.c textcode.h haveinline.h
  513. scan_cescape.o: textcode/scan_cescape.c fmt.h textcode.h scan.h
  514. scan_hexdump.o: textcode/scan_hexdump.c fmt.h textcode.h scan.h
  515. scan_html.o: textcode/scan_html.c fmt.h textcode.h haveinline.h \
  516. case.h
  517. scan_quotedprintable.o: textcode/scan_quotedprintable.c fmt.h \
  518. textcode.h scan.h
  519. scan_to_array.o: textcode/scan_to_array.c str.h array.h uint64.h \
  520. textcode.h
  521. scan_to_sa.o: textcode/scan_to_sa.c str.h stralloc.h textcode.h
  522. scan_tofrom_array.o: textcode/scan_tofrom_array.c str.h array.h \
  523. uint64.h textcode.h
  524. scan_urlencoded.o: textcode/scan_urlencoded.c fmt.h textcode.h \
  525. scan.h
  526. scan_uuencoded.o: textcode/scan_uuencoded.c textcode.h
  527. scan_yenc.o: textcode/scan_yenc.c fmt.h textcode.h
  528. uint16_pack.o: uint/uint16_pack.c uint16.h
  529. uint16_pack_big.o: uint/uint16_pack_big.c uint16.h
  530. uint16_read.o: uint/uint16_read.c uint16.h
  531. uint16_read_big.o: uint/uint16_read_big.c uint16.h
  532. uint16_unpack.o: uint/uint16_unpack.c uint16.h
  533. uint16_unpack_big.o: uint/uint16_unpack_big.c uint16.h
  534. uint32_pack.o: uint/uint32_pack.c uint32.h
  535. uint32_pack_big.o: uint/uint32_pack_big.c uint32.h
  536. uint32_read.o: uint/uint32_read.c uint32.h
  537. uint32_read_big.o: uint/uint32_read_big.c uint32.h
  538. uint32_unpack.o: uint/uint32_unpack.c uint32.h
  539. uint32_unpack_big.o: uint/uint32_unpack_big.c uint32.h
  540. iopause.o: unix/iopause.c taia.h tai.h uint64.h iopause.h \
  541. taia.h select.h
  542. ndelay_off.o: unix/ndelay_off.c ndelay.h
  543. ndelay_on.o: unix/ndelay_on.c ndelay.h
  544. winsock2errno.o: unix/winsock2errno.c
  545. t.o: t.c fmt.h scan.h str.h uint16.h uint32.h stralloc.h socket.h \
  546. buffer.h ip4.h ip6.h byte.h mmap.h open.h textcode.h dns.h iopause.h \
  547. taia.h tai.h uint64.h case.h errmsg.h
  548. BYTE_OBJS=byte_chr.o byte_copy.o byte_copyr.o byte_diff.o byte_rchr.o byte_zero.o
  549. FMT_OBJS=fmt_8long.o fmt_8longlong.o fmt_double.o fmt_fill.o fmt_httpdate.o fmt_human.o fmt_humank.o fmt_long.o fmt_longlong.o fmt_minus.o fmt_pad.o fmt_plusminus.o fmt_str.o fmt_strn.o fmt_tohex.o fmt_ulong.o fmt_ulong0.o fmt_ulonglong.o fmt_xlong.o fmt_xlonglong.o
  550. SCAN_OBJS=scan_8int.o scan_8long.o scan_8short.o scan_charsetnskip.o scan_double.o scan_fromhex.o scan_httpdate.o scan_int.o scan_long.o scan_longlong.o scan_noncharsetnskip.o scan_nonwhitenskip.o scan_plusminus.o scan_short.o scan_uint.o scan_ulong.o scan_ulonglong.o scan_ushort.o scan_whitenskip.o scan_xint.o scan_xlong.o scan_xlonglong.o scan_xshort.o
  551. STR_OBJS=str_chr.o str_copy.o str_diff.o str_diffn.o str_len.o str_rchr.o str_start.o
  552. UINT_OBJS=uint16_pack.o uint16_pack_big.o uint16_read.o uint16_read_big.o uint16_unpack.o uint16_unpack_big.o uint32_pack.o uint32_pack_big.o uint32_read.o uint32_read_big.o uint32_unpack.o uint32_unpack_big.o
  553. OPEN_OBJS=open_append.o open_excl.o open_read.o open_rw.o open_trunc.o open_write.o openreadclose.o readclose.o
  554. STRALLOC_OBJS=stralloc_append.o stralloc_cat.o stralloc_catb.o stralloc_catlong0.o stralloc_catm_internal.o stralloc_cats.o stralloc_catulong0.o stralloc_chomp.o stralloc_chop.o stralloc_copy.o stralloc_copyb.o stralloc_copys.o stralloc_diff.o stralloc_diffs.o stralloc_free.o stralloc_init.o stralloc_ready.o stralloc_readyplus.o stralloc_starts.o stralloc_zero.o
  555. UNIX_OBJS=iopause.o ndelay_off.o ndelay_on.o winsock2errno.o
  556. SOCKET_OBJS=fmt_ip4.o fmt_ip6.o fmt_ip6_flat.o fmt_ip6c.o fmt_ip6if.o fmt_ip6ifc.o init.o scan_ip4.o scan_ip6.o scan_ip6_flat.o scan_ip6if.o socket_accept4.o socket_accept6.o socket_bind4.o socket_bind4_reuse.o socket_bind6.o socket_bind6_reuse.o socket_broadcast.o socket_connect4.o socket_connect6.o socket_connected.o socket_getifidx.o socket_getifname.o socket_ip4loopback.o socket_listen.o socket_local4.o socket_local6.o socket_mchopcount6.o socket_mcjoin4.o socket_mcjoin6.o socket_mcleave4.o socket_mcleave6.o socket_mcloop4.o socket_mcloop6.o socket_mcttl4.o socket_noipv6.o socket_recv4.o socket_recv6.o socket_remote4.o socket_remote6.o socket_send4.o socket_send6.o socket_tcp4.o socket_tcp6.o socket_tryreservein.o socket_udp4.o socket_udp6.o socket_v4mappedprefix.o socket_v6any.o socket_v6loopback.o
  557. BUFFER_OBJS=buffer_0.o buffer_0small.o buffer_1.o buffer_1small.o buffer_2.o buffer_close.o buffer_feed.o buffer_flush.o buffer_fromsa.o buffer_get.o buffer_get_new_token_sa.o buffer_get_new_token_sa_pred.o buffer_get_token.o buffer_get_token_pred.o buffer_get_token_sa.o buffer_get_token_sa_pred.o buffer_getc.o buffer_getline.o buffer_getline_sa.o buffer_getn.o buffer_getnewline_sa.o buffer_init.o buffer_init_free.o buffer_mmapread.o buffer_peek.o buffer_put.o buffer_put8long.o buffer_putalign.o buffer_puterror.o buffer_puterror2.o buffer_putflush.o buffer_putlong.o buffer_putlonglong.o buffer_putm_internal.o buffer_putm_internal_flush.o buffer_putnlflush.o buffer_puts.o buffer_putsa.o buffer_putsaflush.o buffer_putsalign.o buffer_putsflush.o buffer_putspace.o buffer_putulong.o buffer_putulonglong.o buffer_putxlong.o buffer_seek.o buffer_stubborn.o buffer_stubborn2.o errmsg_cvt.o errmsg_iam.o errmsg_info.o errmsg_infosys.o errmsg_warn.o errmsg_warnsys.o errmsg_writesys.o
  558. MMAP_OBJS=mmap_private.o mmap_read.o mmap_shared.o
  559. TAIA_OBJS=taia_add.o taia_addsec.o taia_approx.o taia_frac.o taia_less.o taia_now.o taia_pack.o taia_sub.o taia_tai.o taia_uint.o taia_unpack.o
  560. TAI_OBJS=tai_add.o tai_now.o tai_pack.o tai_sub.o tai_uint.o tai_unpack.o
  561. DNS_OBJS=dns_dfd.o dns_domain.o dns_dtda.o dns_ip.o dns_ip6.o dns_ipq.o dns_ipq6.o dns_mx.o dns_name.o dns_nd.o dns_nd6.o dns_packet.o dns_random.o dns_rcip.o dns_rcrw.o dns_resolve.o dns_sortip.o dns_sortip6.o dns_transmit.o dns_txt.o
  562. CASE_OBJS=case_diffb.o case_diffs.o case_lowerb.o case_lowers.o case_starts.o
  563. MULT_OBJS=imult16.o imult32.o imult64.o umult16.o umult32.o umult64.o
  564. ARRAY_OBJS=array_allocate.o array_bytes.o array_cat.o array_cat0.o array_catb.o array_cate.o array_cats.o array_cats0.o array_equal.o array_fail.o array_get.o array_length.o array_reset.o array_start.o array_trunc.o array_truncate.o
  565. IO_OBJS=io_appendfile.o io_canread.o io_canwrite.o io_check.o io_close.o io_closeonexec.o io_createfile.o io_dontwantread.o io_dontwantwrite.o io_eagain.o io_fd.o io_finishandshutdown.o io_getcookie.o io_mmapwritefile.o io_nonblock.o io_passfd.o io_pipe.o io_readfile.o io_readwritefile.o io_receivefd.o io_sendfile.o io_setcookie.o io_sigpipe.o io_socketpair.o io_timeout.o io_timeouted.o io_tryread.o io_tryreadtimeout.o io_trywrite.o io_trywritetimeout.o io_wait.o io_waitread.o io_waituntil.o io_waituntil2.o io_waitwrite.o io_wantread.o io_wantwrite.o iob_addbuf.o iob_addbuf_free.o iob_addbuf_internal.o iob_addfile.o iob_addfile_close.o iob_adds.o iob_adds_free.o iob_new.o iob_prefetch.o iob_reset.o iob_send.o iob_write.o
  566. TEXTCODE_OBJS=base64.o fmt_base64.o fmt_cescape.o fmt_foldwhitespace.o fmt_hexdump.o fmt_html.o fmt_quotedprintable.o fmt_to_array.o fmt_to_sa.o fmt_tofrom_array.o fmt_urlencoded.o fmt_uuencoded.o fmt_yenc.o scan_base64.o scan_cescape.o scan_hexdump.o scan_html.o scan_quotedprintable.o scan_to_array.o scan_to_sa.o scan_tofrom_array.o scan_urlencoded.o scan_uuencoded.o scan_yenc.o
  567. byte.a: $(BYTE_OBJS)
  568. fmt.a: $(FMT_OBJS)
  569. scan.a: $(SCAN_OBJS)
  570. str.a: $(STR_OBJS)
  571. uint.a: $(UINT_OBJS)
  572. open.a: $(OPEN_OBJS)
  573. stralloc.a: $(STRALLOC_OBJS)
  574. unix.a: $(UNIX_OBJS)
  575. socket.a: $(SOCKET_OBJS)
  576. buffer.a: $(BUFFER_OBJS)
  577. mmap.a: $(MMAP_OBJS)
  578. textcode.a: $(TEXTCODE_OBJS)
  579. taia.a: $(TAIA_OBJS)
  580. tai.a: $(TAI_OBJS)
  581. dns.a: $(DNS_OBJS)
  582. case.a: $(CASE_OBJS)
  583. array.a: $(ARRAY_OBJS)
  584. mult.a: $(MULT_OBJS)
  585. io.a: $(IO_OBJS)
  586. ALL_OBJS=$(DNS_OBJS) $(BYTE_OBJS) $(FMT_OBJS) $(SCAN_OBJS) \
  587. $(STR_OBJS) $(UINT_OBJS) $(OPEN_OBJS) $(STRALLOC_OBJS) $(UNIX_OBJS) \
  588. $(SOCKET_OBJS) $(BUFFER_OBJS) $(MMAP_OBJS) $(TEXTCODE_OBJS) \
  589. $(TAIA_OBJS) $(TAI_OBJS) $(CASE_OBJS) $(ARRAY_OBJS) $(MULT_OBJS) \
  590. $(IO_OBJS)
  591. libowfat.a: $(ALL_OBJS)
  592. ar cr $@ $(ALL_OBJS)
  593. -ranlib $@
  594. CFLAGS+=-I.
  595. %.o:
  596. $(DIET) $(CC) -c $< $(CFLAGS)
  597. %.a:
  598. ar cr $@ $^
  599. -ranlib $@
  600. t.o: iopause.h
  601. t: t.o libowfat.a libsocket
  602. $(DIET) $(CC) -g -o $@ t.o libowfat.a `cat libsocket`
  603. .PHONY: all clean tar install rename
  604. clean:
  605. rm -f *.o *.a *.da *.bbg *.bb core t haveip6.h haven2i.h \
  606. havesl.h haveinline.h iopause.h select.h havekqueue.h haveepoll.h \
  607. libepoll havesigio.h havebsdsf.h havesendfile.h havescope.h havedevpoll.h \
  608. dep libsocket havealloca.h
  609. INCLUDES=buffer.h byte.h fmt.h ip4.h ip6.h mmap.h scan.h socket.h str.h stralloc.h \
  610. uint16.h uint32.h uint64.h open.h textcode.h tai.h taia.h dns.h iopause.h case.h \
  611. openreadclose.h readclose.h ndelay.h array.h io.h safemult.h iob.h havealloca.h \
  612. errmsg.h
  613. install: libowfat.a
  614. install -d $(INCLUDEDIR) $(MAN3DIR) $(LIBDIR)
  615. install -m 644 $(INCLUDES) $(INCLUDEDIR)
  616. install -m 644 $(wildcard */*.3) $(MAN3DIR)
  617. install -m 644 libowfat.a $(LIBDIR)
  618. uninstall:
  619. rm -f $(patsubst %.h,$(INCLUDEDIR)/%.h,$(INCLUDES))
  620. rm -f $(patsubst %.3,$(MAN3DIR)/%.3,$(notdir $(wildcard */*.3)))
  621. rm -f $(LIBDIR)/libowfat.a
  622. VERSION=libowfat-0.22
  623. CURNAME=libowfat-0.21
  624. tar: clean rename
  625. rm -f dep libdep
  626. cd ..; tar cvvf $(VERSION).tar.bz2 --use=bzip2 --exclude CVS $(VERSION)
  627. rename:
  628. if test $(CURNAME) != $(VERSION); then cd .. && mv $(CURNAME) $(VERSION); fi
  629. haveip6.h: tryip6.c
  630. -rm -f $@
  631. if $(DIET) $(CC) $(CFLAGS) -c tryip6.c >/dev/null 2>&1; then echo "#define LIBC_HAS_IP6"; fi > $@
  632. -rm -f tryip6.o
  633. havescope.h: tryscope.c
  634. -rm -f $@
  635. if $(DIET) $(CC) $(CFLAGS) -c tryscope.c >/dev/null 2>&1; then echo "#define LIBC_HAS_SCOPE_ID"; fi > $@
  636. -rm -f tryscope.o
  637. haven2i.h: tryn2i.c
  638. -rm -f $@
  639. if $(DIET) $(CC) $(CFLAGS) -o t tryn2i.c >/dev/null 2>&1; then echo "#define HAVE_N2I"; fi > $@
  640. -rm -f t
  641. havesl.h: trysl.c
  642. -rm -f $@
  643. if ! $(DIET) $(CC) $(CFLAGS) -o t trysl.c >/dev/null 2>&1; then echo "typedef int socklen_t;"; fi > $@
  644. -rm -f t
  645. haveinline.h: tryinline.c
  646. -rm -f $@
  647. if ! $(DIET) $(CC) $(CFLAGS) -c tryinline.c >/dev/null 2>&1; then echo "#define inline"; fi > $@
  648. -rm -f tryinline.o
  649. havekqueue.h: trykqueue.c
  650. -rm -f $@
  651. if $(DIET) $(CC) $(CFLAGS) -c trykqueue.c >/dev/null 2>&1; then echo "#define HAVE_KQUEUE"; fi > $@
  652. -rm -f trykqueue.o
  653. havebsdsf.h: trybsdsf.c
  654. -rm -f $@
  655. if $(DIET) $(CC) $(CFLAGS) -o trybsdsf trybsdsf.c >/dev/null 2>&1; then echo "#define HAVE_BSDSENDFILE"; fi > $@
  656. -rm -f trybsdsf.o trybsdsf
  657. havesendfile.h: trysendfile.c
  658. -rm -f $@
  659. if $(DIET) $(CC) $(CFLAGS) -c trysendfile.c >/dev/null 2>&1; then echo "#define HAVE_SENDFILE"; fi > $@
  660. -rm -f trysendfile.o
  661. haveepoll.h: tryepoll.c
  662. -rm -f $@
  663. if $(DIET) $(CC) $(CFLAGS) -o tryepoll tryepoll.c >/dev/null 2>&1; then echo "#define HAVE_EPOLL 1"; else \
  664. if $(DIET) $(CC) $(CFLAGS) -o tryepoll tryepoll.c -lepoll >/dev/null 2>&1; then echo "#define HAVE_EPOLL 2"; fi; fi > $@
  665. -rm -f tryepoll
  666. havedevpoll.h: trydevpoll.c
  667. -rm -f $@
  668. if $(DIET) $(CC) $(CFLAGS) -c trydevpoll.c >/dev/null 2>&1; then echo "#define HAVE_DEVPOLL"; fi > $@
  669. -rm -f trydevpoll.o
  670. libepoll: haveepoll.h
  671. if test "z`cat haveepoll.h`" = "z#define HAVE_EPOLL 2"; then echo -lepoll; fi > $@
  672. havesigio.h: trysigio.c
  673. -rm -f $@
  674. if $(DIET) $(CC) $(CFLAGS) -c trysigio.c >/dev/null 2>&1; then echo "#define HAVE_SIGIO"; fi > $@
  675. -rm -f trysigio.o
  676. havealloca.h: tryalloca.c
  677. -rm -f $@
  678. echo "#include <stdlib.h>" > $@
  679. if $(DIET) $(CC) $(CFLAGS) -c tryalloca.c >/dev/null 2>&1; then echo "#include <alloca.h>"; fi >> $@
  680. -rm -f tryalloca.o
  681. iopause.h: iopause.h1 iopause.h2 trypoll.c
  682. -rm -f $@
  683. if $(DIET) $(CC) $(CFLAGS) -o t trypoll.c >/dev/null 2>&1; then cp iopause.h2 iopause.h; else cp iopause.h1 iopause.h; fi
  684. -rm -f t
  685. select.h: select.h1 select.h2 trysysel.c
  686. -rm -f $@
  687. if $(DIET) $(CC) $(CFLAGS) -c trysysel.c >/dev/null 2>&1; then cp select.h2 select.h; else cp select.h1 select.h; fi
  688. -rm -f trysysel.o
  689. libsocket: trysocket.c
  690. if $(DIET) $(CC) $(CFLAGS) -o trysocket trysocket.c >/dev/null 2>&1; then echo ""; else \
  691. if $(DIET) $(CC) $(CFLAGS) -o trysocket trysocket.c -lsocket >/dev/null 2>&1; then echo "-lsocket"; else \
  692. if $(DIET) $(CC) $(CFLAGS) -o trysocket trysocket.c -lsocket -lnsl >/dev/null 2>&1; then echo "-lsocket -lnsl"; \
  693. fi; fi; fi > blah
  694. if $(DIET) $(CC) $(CFLAGS) -o trysocket trysendfile.c `cat blah`>/dev/null 2>&1; then cat blah; else \
  695. if $(DIET) $(CC) $(CFLAGS) -o trysocket trysendfile.c -lsendfile `cat blah` >/dev/null 2>&1; then echo "-lsendfile"; cat blah; \
  696. fi; fi > libsocket
  697. rm -f blah trysocket
  698. socket_accept6.o socket_connect6.o socket_local6.o socket_mchopcount6.o \
  699. socket_mcjoin6.o socket_mcleave6.o socket_mcloop6.o socket_recv6.o \
  700. socket_remote6.o socket_send6.o socket_tcp6.o socket_udp6.o: haveip6.h havescope.h
  701. socket_getifidx.o socket_getifname.o: haven2i.h
  702. socket_accept4.o socket_accept6.o socket_connected.o socket_local4.o \
  703. socket_local6.o socket_recv4.o socket_recv6.o socket_remote4.o \
  704. socket_remote6.o: havesl.h
  705. dns_nd6.o fmt_xlong.o scan_xlong.o fmt_ip6_flat.o $(TEXTCODE_OBJS): haveinline.h
  706. iob_send.o scan_ip6if.o: havealloca.h
  707. dep: haveip6.h haven2i.h havesl.h haveinline.h iopause.h select.h haveepoll.h havekqueue.h havedevpoll.h havescope.h havesigio.h havebsdsf.h havesendfile.h
  708. gcc -I. -MM `ls */*.c | grep -v test` t.c | sed -e 's@ \./@ @g' > dep
  709. libdep:
  710. for i in $(LIBS); do (echo -n $$i|tr a-z A-Z|sed 's/.A$$/_OBJS=/'; echo $${i%.a}/*.c|sed -e 's@[^/]*/\([^.]*\)\.c@\1.o @g'); done > libdep
  711. Makefile: GNUmakefile dep libdep
  712. echo "# do not edit! edit GNUmakefile instead" > $@
  713. sed '/startrip/,$$d' < GNUmakefile >> $@
  714. cat dep libdep >> $@
  715. sed -e '1,/stoprip/d' -e 's/ %.c$$//' \
  716. -e 's/^VERSION=.*/'VERSION=$(VERSION)/ \
  717. -e 's/^CURNAME=.*/'CURNAME=$(CURNAME)/ \
  718. -e 's///' < GNUmakefile >> $@