# Don't edit Makefile!  Use conf-* for configuration.
#
# Generated by spac see http://untroubled.org/spac/

SHELL=/bin/sh

DEFAULT: all

adt/adt_sp.lo adt/adt_sp.o: ltcompile adt/adt_sp.c include/bglibs/adt_common.h
	./ltcompile adt/adt_sp.c

adt/ghash_add.lo adt/ghash_add.o: ltcompile adt/ghash_add.c include/bglibs/ghash.h include/bglibs/adt_common.h
	./ltcompile adt/ghash_add.c

adt/ghash_foreach.lo adt/ghash_foreach.o: ltcompile adt/ghash_foreach.c include/bglibs/ghash.h include/bglibs/adt_common.h
	./ltcompile adt/ghash_foreach.c

adt/ghash_free.lo adt/ghash_free.o: ltcompile adt/ghash_free.c include/bglibs/ghash.h include/bglibs/adt_common.h
	./ltcompile adt/ghash_free.c

adt/ghash_get.lo adt/ghash_get.o: ltcompile adt/ghash_get.c include/bglibs/ghash.h include/bglibs/adt_common.h
	./ltcompile adt/ghash_get.c

adt/ghash_init.lo adt/ghash_init.o: ltcompile adt/ghash_init.c include/bglibs/ghash.h include/bglibs/adt_common.h
	./ltcompile adt/ghash_init.c

adt/ghash_insert.lo adt/ghash_insert.o: ltcompile adt/ghash_insert.c include/bglibs/ghash.h include/bglibs/adt_common.h
	./ltcompile adt/ghash_insert.c

adt/ghash_iter.lo adt/ghash_iter.o: ltcompile adt/ghash_iter.c include/bglibs/ghash.h include/bglibs/adt_common.h
	./ltcompile adt/ghash_iter.c

adt/ghash_rebuild.lo adt/ghash_rebuild.o: ltcompile adt/ghash_rebuild.c include/bglibs/ghash.h include/bglibs/adt_common.h
	./ltcompile adt/ghash_rebuild.c

adt/ghash_rehash.lo adt/ghash_rehash.o: ltcompile adt/ghash_rehash.c include/bglibs/ghash.h include/bglibs/adt_common.h
	./ltcompile adt/ghash_rehash.c

adt/ghash_remove.lo adt/ghash_remove.o: ltcompile adt/ghash_remove.c include/bglibs/ghash.h include/bglibs/adt_common.h
	./ltcompile adt/ghash_remove.c

adt/ghash_search.lo adt/ghash_search.o: ltcompile adt/ghash_search.c include/bglibs/ghash.h include/bglibs/adt_common.h
	./ltcompile adt/ghash_search.c

adt/ghash_set.lo adt/ghash_set.o: ltcompile adt/ghash_set.c include/bglibs/ghash.h include/bglibs/adt_common.h
	./ltcompile adt/ghash_set.c

adt/gqueue_pop.lo adt/gqueue_pop.o: ltcompile adt/gqueue_pop.c include/bglibs/gqueue.h include/bglibs/adt_common.h
	./ltcompile adt/gqueue_pop.c

adt/gqueue_push.lo adt/gqueue_push.o: ltcompile adt/gqueue_push.c include/bglibs/gqueue.h include/bglibs/adt_common.h
	./ltcompile adt/gqueue_push.c

adt/gqueue_top.lo adt/gqueue_top.o: ltcompile adt/gqueue_top.c include/bglibs/gqueue.h include/bglibs/adt_common.h
	./ltcompile adt/gqueue_top.c

adt/gstack_pop.lo adt/gstack_pop.o: ltcompile adt/gstack_pop.c include/bglibs/gstack.h include/bglibs/adt_common.h
	./ltcompile adt/gstack_pop.c

adt/gstack_push.lo adt/gstack_push.o: ltcompile adt/gstack_push.c include/bglibs/gstack.h include/bglibs/adt_common.h
	./ltcompile adt/gstack_push.c

adt/gstack_top.lo adt/gstack_top.o: ltcompile adt/gstack_top.c include/bglibs/gstack.h include/bglibs/adt_common.h
	./ltcompile adt/gstack_top.c

adt/hashb.lo adt/hashb.o: ltcompile adt/hashb.c include/bglibs/adt_common.h
	./ltcompile adt/hashb.c

adt/hashs.lo adt/hashs.o: ltcompile adt/hashs.c include/bglibs/adt_common.h
	./ltcompile adt/hashs.c

all: sysdeps.h libraries programs man selftests

base64/asc2bin.lo base64/asc2bin.o: ltcompile base64/asc2bin.c include/bglibs/base64.h include/bglibs/str.h sysdeps.h
	./ltcompile base64/asc2bin.c

base64/bin2asc.lo base64/bin2asc.o: ltcompile base64/bin2asc.c include/bglibs/base64.h include/bglibs/str.h sysdeps.h
	./ltcompile base64/bin2asc.c

base64/decode_line.lo base64/decode_line.o: ltcompile base64/decode_line.c include/bglibs/base64.h include/bglibs/str.h sysdeps.h
	./ltcompile base64/decode_line.c

base64/decode_part.lo base64/decode_part.o: ltcompile base64/decode_part.c include/bglibs/base64.h include/bglibs/str.h sysdeps.h
	./ltcompile base64/decode_part.c

base64/encode_line.lo base64/encode_line.o: ltcompile base64/encode_line.c include/bglibs/base64.h include/bglibs/str.h sysdeps.h
	./ltcompile base64/encode_line.c

base64/encode_part.lo base64/encode_part.o: ltcompile base64/encode_part.c include/bglibs/base64.h include/bglibs/str.h sysdeps.h
	./ltcompile base64/encode_part.c

bg-installer: bg-installer.o ltload libbg-cli.la libbg.la bg-installer-cli.o
	./ltload bg-installer libbg-cli.la libbg.la bg-installer-cli.o -lbg-cli -static 

bg-installer-cli.c: bg-installer.cli cli-generate sysdeps.h
	./cli-generate -c $< >$@

bg-installer-cli.h: bg-installer.cli cli-generate
	./cli-generate -h $< >$@

bg-installer-cli.o: compile bg-installer-cli.c
	./compile bg-installer-cli.c

bg-installer.1: bg-installer.cli cli-generate
	./cli-generate -m $< >$@

bg-installer.o: compile bg-installer.c sysdeps.h include/bglibs/cli.h include/bglibs/fmt.h include/bglibs/ibuf.h include/bglibs/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/iobuf_common.h include/bglibs/iobuf.h include/ibuf.h include/obuf.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/wrap.h include/bglibs/path.h include/bglibs/str.h sysdeps.h include/str.h sysdeps.h include/bglibs/striter.h bg-installer-cli.h
	./compile bg-installer.c

cdb/cdb.lo cdb/cdb.o: ltcompile cdb/cdb.c include/bglibs/cdb.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h sysdeps.h
	./ltcompile cdb/cdb.c

cdb/cdbhash.lo cdb/cdbhash.o: ltcompile cdb/cdbhash.c include/bglibs/cdb.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h sysdeps.h
	./ltcompile cdb/cdbhash.c

cdb/find.lo cdb/find.o: ltcompile cdb/find.c include/bglibs/cdb.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h sysdeps.h uint32.h sysdeps.h uintnn.h
	./ltcompile cdb/find.c

cdb/get.lo cdb/get.o: ltcompile cdb/get.c include/bglibs/cdb.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h sysdeps.h include/bglibs/str.h sysdeps.h
	./ltcompile cdb/get.c

cdb/getnext.lo cdb/getnext.o: ltcompile cdb/getnext.c include/bglibs/cdb.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h sysdeps.h include/bglibs/str.h sysdeps.h
	./ltcompile cdb/getnext.c

cdb/make.lo cdb/make.o: ltcompile cdb/make.c include/bglibs/cdb.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h sysdeps.h cdb/make.h include/iobuf.h include/ibuf.h include/obuf.h sysdeps.h sysdeps.h uint32.h sysdeps.h uintnn.h
	./ltcompile cdb/make.c

cdb/read.lo cdb/read.o: ltcompile cdb/read.c include/bglibs/cdb.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h sysdeps.h
	./ltcompile cdb/read.c

choose: warn-auto.sh choose.sh
	cat warn-auto.sh choose.sh >choose
	chmod 755 choose

clean: TARGETS
	rm -f `cat TARGETS`

clean-spac: clean AUTOFILES
	rm -f `cat AUTOFILES`

cli-generate: perl-head.pl cli-generate.pl
	cat perl-head.pl cli-generate.pl >cli-generate
	chmod 755 cli-generate

cli/help.lo cli/help.o: ltcompile cli/help.c include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h systime.h include/bglibs/cli.h cli/internal.h
	./ltcompile cli/help.c

cli/main.lo cli/main.o: ltcompile cli/main.c include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h systime.h include/bglibs/cli.h cli/internal.h
	./ltcompile cli/main.c

compile: conf-cc
	( echo '#!/bin/sh'; \
	  echo 'source=$$1; shift'; \
	  echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
	  echo exec `head -n 1 conf-cc` -I.  "-I'include/bglibs'" "-I'include'" '-o $${base}.o -c $$source $${1+"$$@"}'; \
	) >compile
	chmod 755 compile

crc-gentab: crc-gentab.o load fmt/lcase.o fmt/ucase.o fmt/unum.o iobuf/iobuf_timeout.o iobuf/obuf_flush.o iobuf/obuf_pad.o iobuf/obuf_put3s.o iobuf/obuf_put5s.o iobuf/obuf_putc.o iobuf/obuf_putunumw.o iobuf/obuf_stderr.o iobuf/obuf_stdout.o iobuf/obuf_write.o msg/common.o msg/die.o sys/iopoll.o
	./load crc-gentab fmt/lcase.o fmt/ucase.o fmt/unum.o iobuf/iobuf_timeout.o iobuf/obuf_flush.o iobuf/obuf_pad.o iobuf/obuf_put3s.o iobuf/obuf_put5s.o iobuf/obuf_putc.o iobuf/obuf_putunumw.o iobuf/obuf_stderr.o iobuf/obuf_stdout.o iobuf/obuf_write.o msg/common.o msg/die.o sys/iopoll.o -static 

crc-gentab.o: compile crc-gentab.c sysdeps.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./compile crc-gentab.c

crc/crc16_arc_table.c: crc-gentab
	./crc-gentab crc16_arc 16 0x8005 reflected >$@

crc/crc16_arc_table.lo crc/crc16_arc_table.o: ltcompile crc/crc16_arc_table.c
	./ltcompile crc/crc16_arc_table.c

crc/crc16_ccitt_table.c: crc-gentab
	./crc-gentab crc16_ccitt 16 0x1021 normal >$@

crc/crc16_ccitt_table.lo crc/crc16_ccitt_table.o: ltcompile crc/crc16_ccitt_table.c
	./ltcompile crc/crc16_ccitt_table.c

crc/crc16_xmodem_table.c: crc-gentab
	./crc-gentab crc16_xmodem 16 0x8408 reflected >$@

crc/crc16_xmodem_table.lo crc/crc16_xmodem_table.o: ltcompile crc/crc16_xmodem_table.c
	./ltcompile crc/crc16_xmodem_table.c

crc/crc32_table.c: crc-gentab
	./crc-gentab crc32 32 0x04C11DB7 reflected >$@

crc/crc32_table.lo crc/crc32_table.o: ltcompile crc/crc32_table.c
	./ltcompile crc/crc32_table.c

crc/crc32c_table.c: crc-gentab
	./crc-gentab crc32c 32 0x1EDC6F41 reflected >$@

crc/crc32c_table.lo crc/crc32c_table.o: ltcompile crc/crc32c_table.c
	./ltcompile crc/crc32c_table.c

crc/crc64_table.c: crc-gentab
	./crc-gentab crc64 64 0x42F0E1EBA9EA3693 normal >$@

crc/crc64_table.lo crc/crc64_table.o: ltcompile crc/crc64_table.c
	./ltcompile crc/crc64_table.c

crc/gcrc16fwd.lo crc/gcrc16fwd.o: ltcompile crc/gcrc16fwd.c include/bglibs/gcrc.h sysdeps.h include/bglibs/crc16_ccitt.h include/gcrc.h sysdeps.h
	./ltcompile crc/gcrc16fwd.c

crc/gcrc16rfl.lo crc/gcrc16rfl.o: ltcompile crc/gcrc16rfl.c include/bglibs/gcrc.h sysdeps.h include/bglibs/crc16_arc.h include/gcrc.h sysdeps.h include/bglibs/crc16_xmodem.h uint16.h sysdeps.h uintnn.h
	./ltcompile crc/gcrc16rfl.c

crc/gcrc32fwd.lo crc/gcrc32fwd.o: ltcompile crc/gcrc32fwd.c include/bglibs/gcrc.h sysdeps.h
	./ltcompile crc/gcrc32fwd.c

crc/gcrc32rfl.lo crc/gcrc32rfl.o: ltcompile crc/gcrc32rfl.c include/bglibs/gcrc.h sysdeps.h include/bglibs/crc32.h include/gcrc.h sysdeps.h uint32.h sysdeps.h uintnn.h include/bglibs/crc32c.h
	./ltcompile crc/gcrc32rfl.c

crc/gcrc64fwd.lo crc/gcrc64fwd.o: ltcompile crc/gcrc64fwd.c include/bglibs/gcrc.h sysdeps.h include/bglibs/crc64.h include/gcrc.h sysdeps.h
	./ltcompile crc/gcrc64fwd.c

crc/gcrc64rfl.lo crc/gcrc64rfl.o: ltcompile crc/gcrc64rfl.c include/bglibs/gcrc.h sysdeps.h
	./ltcompile crc/gcrc64rfl.c

crypto/hmac-md5.lo crypto/hmac-md5.o: ltcompile crypto/hmac-md5.c sysdeps.h include/bglibs/hmac.h include/bglibs/md5.h include/bglibs/str.h sysdeps.h
	./ltcompile crypto/hmac-md5.c

crypto/hmac-sha1.lo crypto/hmac-sha1.o: ltcompile crypto/hmac-sha1.c sysdeps.h include/bglibs/hmac.h include/bglibs/sha1.h sysdeps.h include/bglibs/str.h sysdeps.h
	./ltcompile crypto/hmac-sha1.c

crypto/hmac-sha256.lo crypto/hmac-sha256.o: ltcompile crypto/hmac-sha256.c include/bglibs/hmac.h include/bglibs/sha256.h sysdeps.h include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h include/bglibs/str.h sysdeps.h
	./ltcompile crypto/hmac-sha256.c

crypto/hmac-sha384.lo crypto/hmac-sha384.o: ltcompile crypto/hmac-sha384.c sysdeps.h include/bglibs/hmac.h include/bglibs/sha384.h sysdeps.h include/bglibs/sha512.h sysdeps.h include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h include/bglibs/str.h sysdeps.h
	./ltcompile crypto/hmac-sha384.c

crypto/hmac-sha512.lo crypto/hmac-sha512.o: ltcompile crypto/hmac-sha512.c sysdeps.h include/bglibs/hmac.h include/bglibs/sha512.h sysdeps.h include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h include/bglibs/str.h sysdeps.h
	./ltcompile crypto/hmac-sha512.c

crypto/hmac.lo crypto/hmac.o: ltcompile crypto/hmac.c sysdeps.h include/bglibs/str.h sysdeps.h include/bglibs/hmac.h
	./ltcompile crypto/hmac.c

crypto/md4.lo crypto/md4.o: ltcompile crypto/md4.c sysdeps.h include/bglibs/md4.h uint32.h sysdeps.h uintnn.h
	./ltcompile crypto/md4.c

crypto/md5-crypt.lo crypto/md5-crypt.o: ltcompile crypto/md5-crypt.c include/bglibs/md5.h
	./ltcompile crypto/md5-crypt.c

crypto/md5.lo crypto/md5.o: ltcompile crypto/md5.c sysdeps.h include/bglibs/md5.h uint32.h sysdeps.h uintnn.h include/bglibs/str.h sysdeps.h
	./ltcompile crypto/md5.c

crypto/sha1.lo crypto/sha1.o: ltcompile crypto/sha1.c include/bglibs/sha1.h sysdeps.h uint32.h sysdeps.h uintnn.h uint64.h sysdeps.h include/bglibs/str.h sysdeps.h
	./ltcompile crypto/sha1.c

crypto/sha256.lo crypto/sha256.o: ltcompile crypto/sha256.c include/bglibs/sha256.h sysdeps.h uint32.h sysdeps.h uintnn.h uint64.h sysdeps.h include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile crypto/sha256.c

crypto/sha384.lo crypto/sha384.o: ltcompile crypto/sha384.c sysdeps.h include/bglibs/sha384.h sysdeps.h include/bglibs/sha512.h sysdeps.h uint64.h sysdeps.h uintnn.h include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile crypto/sha384.c

crypto/sha512.lo crypto/sha512.o: ltcompile crypto/sha512.c sysdeps.h include/bglibs/sha512.h sysdeps.h uint64.h sysdeps.h uintnn.h include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile crypto/sha512.c

crypto/surf.lo crypto/surf.o: ltcompile crypto/surf.c include/bglibs/surf.h uint32.h sysdeps.h uintnn.h
	./ltcompile crypto/surf.c

crypto/surfrand.lo crypto/surfrand.o: ltcompile crypto/surfrand.c include/bglibs/surfrand.h include/bglibs/surf.h uint32.h sysdeps.h uintnn.h
	./ltcompile crypto/surfrand.c

dict/add.lo dict/add.o: ltcompile dict/add.c include/bglibs/dict.h include/bglibs/str.h sysdeps.h uint32.h sysdeps.h uintnn.h
	./ltcompile dict/add.c

dict/dicthash.lo dict/dicthash.o: ltcompile dict/dicthash.c include/bglibs/dict.h include/bglibs/str.h sysdeps.h uint32.h sysdeps.h uintnn.h
	./ltcompile dict/dicthash.c

dict/foreach.lo dict/foreach.o: ltcompile dict/foreach.c include/bglibs/dict.h include/bglibs/str.h sysdeps.h uint32.h sysdeps.h uintnn.h
	./ltcompile dict/foreach.c

dict/free.lo dict/free.o: ltcompile dict/free.c include/bglibs/dict.h include/bglibs/str.h sysdeps.h uint32.h sysdeps.h uintnn.h
	./ltcompile dict/free.c

dict/get.lo dict/get.o: ltcompile dict/get.c include/bglibs/dict.h include/bglibs/str.h sysdeps.h uint32.h sysdeps.h uintnn.h
	./ltcompile dict/get.c

dict/init.lo dict/init.o: ltcompile dict/init.c include/bglibs/dict.h include/bglibs/str.h sysdeps.h uint32.h sysdeps.h uintnn.h
	./ltcompile dict/init.c

dict/load_list.lo dict/load_list.o: ltcompile dict/load_list.c include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/bglibs/str.h sysdeps.h include/bglibs/dict.h include/str.h sysdeps.h uint32.h sysdeps.h uintnn.h
	./ltcompile dict/load_list.c

dict/load_map.lo dict/load_map.o: ltcompile dict/load_map.c include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/bglibs/str.h sysdeps.h include/bglibs/dict.h include/str.h sysdeps.h uint32.h sysdeps.h uintnn.h
	./ltcompile dict/load_map.c

dict/str_free.lo dict/str_free.o: ltcompile dict/str_free.c include/bglibs/str.h sysdeps.h include/bglibs/dict.h include/str.h sysdeps.h uint32.h sysdeps.h uintnn.h
	./ltcompile dict/str_free.c

dl.lib: compile load
	@echo -n 'Checking for -ldl: '
	@echo 'main() { ; }' >trylib-ldl.c
	@{ ./compile trylib-ldl.c && ./load trylib-ldl -ldl; } >/dev/null 2>&1 \
	  && { echo -ldl >dl.lib; echo yes; } \
	  || { echo >dl.lib; echo no; }
	@rm -f trylib-ldl.c trylib-ldl.o trylib-ldl

fmt/char.lo fmt/char.o: ltcompile fmt/char.c include/bglibs/fmt.h
	./ltcompile fmt/char.c

fmt/chars.lo fmt/chars.o: ltcompile fmt/chars.c include/bglibs/str.h sysdeps.h include/bglibs/fmt.h
	./ltcompile fmt/chars.c

fmt/lcase.lo fmt/lcase.o: ltcompile fmt/lcase.c include/bglibs/fmt.h
	./ltcompile fmt/lcase.c

fmt/multi.lo fmt/multi.o: ltcompile fmt/multi.c include/bglibs/fmt.h include/fmt.h include/bglibs/str.h sysdeps.h
	./ltcompile fmt/multi.c

fmt/pad.lo fmt/pad.o: ltcompile fmt/pad.c include/bglibs/fmt.h
	./ltcompile fmt/pad.c

fmt/sdec.lo fmt/sdec.o: ltcompile fmt/sdec.c include/bglibs/fmt.h
	./ltcompile fmt/sdec.c

fmt/sign_pad.lo fmt/sign_pad.o: ltcompile fmt/sign_pad.c include/bglibs/fmt.h
	./ltcompile fmt/sign_pad.c

fmt/slldec.lo fmt/slldec.o: ltcompile fmt/slldec.c include/bglibs/fmt.h
	./ltcompile fmt/slldec.c

fmt/sllnum.lo fmt/sllnum.o: ltcompile fmt/sllnum.c include/bglibs/fmt.h
	./ltcompile fmt/sllnum.c

fmt/snum.lo fmt/snum.o: ltcompile fmt/snum.c include/bglibs/fmt.h
	./ltcompile fmt/snum.c

fmt/ucase.lo fmt/ucase.o: ltcompile fmt/ucase.c include/bglibs/fmt.h
	./ltcompile fmt/ucase.c

fmt/udec.lo fmt/udec.o: ltcompile fmt/udec.c include/bglibs/fmt.h
	./ltcompile fmt/udec.c

fmt/uhexl.lo fmt/uhexl.o: ltcompile fmt/uhexl.c include/bglibs/fmt.h
	./ltcompile fmt/uhexl.c

fmt/uhexu.lo fmt/uhexu.o: ltcompile fmt/uhexu.c include/bglibs/fmt.h
	./ltcompile fmt/uhexu.c

fmt/ulldec.lo fmt/ulldec.o: ltcompile fmt/ulldec.c include/bglibs/fmt.h
	./ltcompile fmt/ulldec.c

fmt/ullhexl.lo fmt/ullhexl.o: ltcompile fmt/ullhexl.c include/bglibs/fmt.h
	./ltcompile fmt/ullhexl.c

fmt/ullhexu.lo fmt/ullhexu.o: ltcompile fmt/ullhexu.c include/bglibs/fmt.h
	./ltcompile fmt/ullhexu.c

fmt/ullnum.lo fmt/ullnum.o: ltcompile fmt/ullnum.c include/bglibs/fmt.h
	./ltcompile fmt/ullnum.c

fmt/unum.lo fmt/unum.o: ltcompile fmt/unum.c include/bglibs/fmt.h
	./ltcompile fmt/unum.c

install: bg-installer INSTHIER conf-bin conf-include conf-lib conf-man
	./bg-installer -v <INSTHIER
	./bg-installer -c <INSTHIER

iobuf/ibuf_copytofd.lo iobuf/ibuf_copytofd.o: ltcompile iobuf/ibuf_copytofd.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_copytofd.c

iobuf/ibuf_getc.lo iobuf/ibuf_getc.o: ltcompile iobuf/ibuf_getc.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_getc.c

iobuf/ibuf_getnetstring.lo iobuf/ibuf_getnetstring.o: ltcompile iobuf/ibuf_getnetstring.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h include/bglibs/str.h sysdeps.h
	./ltcompile iobuf/ibuf_getnetstring.c

iobuf/ibuf_gets.lo iobuf/ibuf_gets.o: ltcompile iobuf/ibuf_gets.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_gets.c

iobuf/ibuf_getstr.lo iobuf/ibuf_getstr.o: ltcompile iobuf/ibuf_getstr.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h include/bglibs/str.h sysdeps.h
	./ltcompile iobuf/ibuf_getstr.c

iobuf/ibuf_getstr_crlf.lo iobuf/ibuf_getstr_crlf.o: ltcompile iobuf/ibuf_getstr_crlf.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h include/bglibs/str.h sysdeps.h
	./ltcompile iobuf/ibuf_getstr_crlf.c

iobuf/ibuf_getu.lo iobuf/ibuf_getu.o: ltcompile iobuf/ibuf_getu.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_getu.c

iobuf/ibuf_init.lo iobuf/ibuf_init.o: ltcompile iobuf/ibuf_init.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_init.c

iobuf/ibuf_open.lo iobuf/ibuf_open.o: ltcompile iobuf/ibuf_open.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_open.c

iobuf/ibuf_openreadclose.lo iobuf/ibuf_openreadclose.o: ltcompile iobuf/ibuf_openreadclose.c include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/bglibs/str.h sysdeps.h
	./ltcompile iobuf/ibuf_openreadclose.c

iobuf/ibuf_peek.lo iobuf/ibuf_peek.o: ltcompile iobuf/ibuf_peek.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_peek.c

iobuf/ibuf_read.lo iobuf/ibuf_read.o: ltcompile iobuf/ibuf_read.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_read.c

iobuf/ibuf_readall.lo iobuf/ibuf_readall.o: ltcompile iobuf/ibuf_readall.c include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/bglibs/str.h sysdeps.h
	./ltcompile iobuf/ibuf_readall.c

iobuf/ibuf_refill.lo iobuf/ibuf_refill.o: ltcompile iobuf/ibuf_refill.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_refill.c

iobuf/ibuf_seek.lo iobuf/ibuf_seek.o: ltcompile iobuf/ibuf_seek.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_seek.c

iobuf/ibuf_status.lo iobuf/ibuf_status.o: ltcompile iobuf/ibuf_status.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_status.c

iobuf/ibuf_stdin.lo iobuf/ibuf_stdin.o: ltcompile iobuf/ibuf_stdin.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_stdin.c

iobuf/ibuf_tell.lo iobuf/ibuf_tell.o: ltcompile iobuf/ibuf_tell.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/ibuf_tell.c

iobuf/iobuf_close.lo iobuf/iobuf_close.o: ltcompile iobuf/iobuf_close.c include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h
	./ltcompile iobuf/iobuf_close.c

iobuf/iobuf_copy.lo iobuf/iobuf_copy.o: ltcompile iobuf/iobuf_copy.c include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h
	./ltcompile iobuf/iobuf_copy.c

iobuf/iobuf_init.lo iobuf/iobuf_init.o: ltcompile iobuf/iobuf_init.c include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h
	./ltcompile iobuf/iobuf_init.c

iobuf/iobuf_timeout.lo iobuf/iobuf_timeout.o: ltcompile iobuf/iobuf_timeout.c sysdeps.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h
	./ltcompile iobuf/iobuf_timeout.c

iobuf/obuf_close.lo iobuf/obuf_close.o: ltcompile iobuf/obuf_close.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_close.c

iobuf/obuf_copyfromfd.lo iobuf/obuf_copyfromfd.o: ltcompile iobuf/obuf_copyfromfd.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_copyfromfd.c

iobuf/obuf_digits.lo iobuf/obuf_digits.o: ltcompile iobuf/obuf_digits.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_digits.c

iobuf/obuf_endl.lo iobuf/obuf_endl.o: ltcompile iobuf/obuf_endl.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_endl.c

iobuf/obuf_flush.lo iobuf/obuf_flush.o: ltcompile iobuf/obuf_flush.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_flush.c

iobuf/obuf_init.lo iobuf/obuf_init.o: ltcompile iobuf/obuf_init.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_init.c

iobuf/obuf_open.lo iobuf/obuf_open.o: ltcompile iobuf/obuf_open.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_open.c

iobuf/obuf_pad.lo iobuf/obuf_pad.o: ltcompile iobuf/obuf_pad.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_pad.c

iobuf/obuf_put2s.lo iobuf/obuf_put2s.o: ltcompile iobuf/obuf_put2s.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_put2s.c

iobuf/obuf_put3s.lo iobuf/obuf_put3s.o: ltcompile iobuf/obuf_put3s.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_put3s.c

iobuf/obuf_put4s.lo iobuf/obuf_put4s.o: ltcompile iobuf/obuf_put4s.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_put4s.c

iobuf/obuf_put5s.lo iobuf/obuf_put5s.o: ltcompile iobuf/obuf_put5s.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_put5s.c

iobuf/obuf_put6s.lo iobuf/obuf_put6s.o: ltcompile iobuf/obuf_put6s.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_put6s.c

iobuf/obuf_put7s.lo iobuf/obuf_put7s.o: ltcompile iobuf/obuf_put7s.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_put7s.c

iobuf/obuf_putc.lo iobuf/obuf_putc.o: ltcompile iobuf/obuf_putc.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_putc.c

iobuf/obuf_putf.lo iobuf/obuf_putf.o: ltcompile iobuf/obuf_putf.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h include/bglibs/fmt.h
	./ltcompile iobuf/obuf_putf.c

iobuf/obuf_putnetstring.lo iobuf/obuf_putnetstring.o: ltcompile iobuf/obuf_putnetstring.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_putnetstring.c

iobuf/obuf_putns.lo iobuf/obuf_putns.o: ltcompile iobuf/obuf_putns.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_putns.c

iobuf/obuf_putsflush.lo iobuf/obuf_putsflush.o: ltcompile iobuf/obuf_putsflush.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_putsflush.c

iobuf/obuf_putsllnumw.lo iobuf/obuf_putsllnumw.o: ltcompile iobuf/obuf_putsllnumw.c include/bglibs/fmt.h include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_putsllnumw.c

iobuf/obuf_putsnumw.lo iobuf/obuf_putsnumw.o: ltcompile iobuf/obuf_putsnumw.c include/bglibs/fmt.h include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_putsnumw.c

iobuf/obuf_putullnumw.lo iobuf/obuf_putullnumw.o: ltcompile iobuf/obuf_putullnumw.c include/bglibs/fmt.h include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_putullnumw.c

iobuf/obuf_putunumw.lo iobuf/obuf_putunumw.o: ltcompile iobuf/obuf_putunumw.c include/bglibs/fmt.h include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_putunumw.c

iobuf/obuf_seek.lo iobuf/obuf_seek.o: ltcompile iobuf/obuf_seek.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_seek.c

iobuf/obuf_sign_pad.lo iobuf/obuf_sign_pad.o: ltcompile iobuf/obuf_sign_pad.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_sign_pad.c

iobuf/obuf_stderr.lo iobuf/obuf_stderr.o: ltcompile iobuf/obuf_stderr.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_stderr.c

iobuf/obuf_stdout.lo iobuf/obuf_stdout.o: ltcompile iobuf/obuf_stdout.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_stdout.c

iobuf/obuf_sync.lo iobuf/obuf_sync.o: ltcompile iobuf/obuf_sync.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_sync.c

iobuf/obuf_write.lo iobuf/obuf_write.o: ltcompile iobuf/obuf_write.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h
	./ltcompile iobuf/obuf_write.c

libbg-cli.la: makeshlib cli/main.lo cli/help.lo
	./makeshlib libbg-cli.la cli/main.lo cli/help.lo

libbg.la: makeshlib adt/adt_sp.lo adt/ghash_add.lo adt/ghash_foreach.lo adt/ghash_free.lo adt/ghash_get.lo adt/ghash_init.lo adt/ghash_insert.lo adt/ghash_iter.lo adt/ghash_rebuild.lo adt/ghash_rehash.lo adt/ghash_remove.lo adt/ghash_search.lo adt/ghash_set.lo adt/gqueue_pop.lo adt/gqueue_push.lo adt/gqueue_top.lo adt/gstack_pop.lo adt/gstack_push.lo adt/gstack_top.lo adt/hashb.lo adt/hashs.lo base64/asc2bin.lo base64/bin2asc.lo base64/decode_line.lo base64/decode_part.lo base64/encode_line.lo base64/encode_part.lo cdb/cdb.lo cdb/cdbhash.lo cdb/find.lo cdb/get.lo cdb/getnext.lo cdb/make.lo cdb/read.lo crc/crc16_arc_table.lo crc/crc16_ccitt_table.lo crc/crc16_xmodem_table.lo crc/crc32_table.lo crc/crc32c_table.lo crc/crc64_table.lo crc/gcrc16fwd.lo crc/gcrc16rfl.lo crc/gcrc32fwd.lo crc/gcrc32rfl.lo crc/gcrc64fwd.lo crc/gcrc64rfl.lo crypto/hmac-md5.lo crypto/hmac-sha1.lo crypto/hmac-sha256.lo crypto/hmac-sha384.lo crypto/hmac-sha512.lo crypto/hmac.lo crypto/md4.lo crypto/md5-crypt.lo crypto/md5.lo crypto/sha1.lo crypto/sha256.lo crypto/sha384.lo crypto/sha512.lo crypto/surf.lo crypto/surfrand.lo dict/add.lo dict/dicthash.lo dict/foreach.lo dict/free.lo dict/get.lo dict/init.lo dict/load_list.lo dict/load_map.lo dict/str_free.lo fmt/char.lo fmt/chars.lo fmt/lcase.lo fmt/multi.lo fmt/pad.lo fmt/sdec.lo fmt/sign_pad.lo fmt/slldec.lo fmt/sllnum.lo fmt/snum.lo fmt/ucase.lo fmt/udec.lo fmt/uhexl.lo fmt/uhexu.lo fmt/ulldec.lo fmt/ullhexl.lo fmt/ullhexu.lo fmt/ullnum.lo fmt/unum.lo iobuf/ibuf_copytofd.lo iobuf/ibuf_getc.lo iobuf/ibuf_getnetstring.lo iobuf/ibuf_gets.lo iobuf/ibuf_getstr.lo iobuf/ibuf_getstr_crlf.lo iobuf/ibuf_getu.lo iobuf/ibuf_init.lo iobuf/ibuf_open.lo iobuf/ibuf_openreadclose.lo iobuf/ibuf_peek.lo iobuf/ibuf_read.lo iobuf/ibuf_readall.lo iobuf/ibuf_refill.lo iobuf/ibuf_seek.lo iobuf/ibuf_status.lo iobuf/ibuf_stdin.lo iobuf/ibuf_tell.lo iobuf/iobuf_close.lo iobuf/iobuf_copy.lo iobuf/iobuf_init.lo iobuf/iobuf_timeout.lo iobuf/obuf_close.lo iobuf/obuf_copyfromfd.lo iobuf/obuf_digits.lo iobuf/obuf_endl.lo iobuf/obuf_flush.lo iobuf/obuf_init.lo iobuf/obuf_open.lo iobuf/obuf_pad.lo iobuf/obuf_put2s.lo iobuf/obuf_put3s.lo iobuf/obuf_put4s.lo iobuf/obuf_put5s.lo iobuf/obuf_put6s.lo iobuf/obuf_put7s.lo iobuf/obuf_putc.lo iobuf/obuf_putf.lo iobuf/obuf_putnetstring.lo iobuf/obuf_putns.lo iobuf/obuf_putsflush.lo iobuf/obuf_putsllnumw.lo iobuf/obuf_putsnumw.lo iobuf/obuf_putullnumw.lo iobuf/obuf_putunumw.lo iobuf/obuf_seek.lo iobuf/obuf_sign_pad.lo iobuf/obuf_stderr.lo iobuf/obuf_stdout.lo iobuf/obuf_sync.lo iobuf/obuf_write.lo misc/random.lo misc/strtou.lo misc/ucspi.lo misc/utoa.lo misc/utoa2.lo msg/common.lo msg/commonf.lo msg/debug.lo msg/debug_bits.lo msg/debug_init.lo msg/debugf.lo msg/die.lo msg/dief.lo msg/error.lo msg/errorf.lo msg/oom.lo msg/show_pid.lo msg/warn.lo msg/warnf.lo msg/wrap_alloc.lo msg/wrap_chdir.lo msg/wrap_exit.lo msg/wrap_str.lo net/accept4.lo net/accept6.lo net/acceptu.lo net/bind4.lo net/bind6.lo net/bindu.lo net/broadcast.lo net/connect4.lo net/connect4_timeout.lo net/connect6.lo net/connect6_timeout.lo net/connected.lo net/connectu.lo net/connectu_timeout.lo net/cork.lo net/dns_domain_fromdot.lo net/dns_domain.lo net/dns_domain_todot.lo net/dns_fmt.lo net/dns_ip4.lo net/dns_ip6.lo net/dns_mx.lo net/dns_name_packet.lo net/dns_name4.lo net/dns_name4_domain.lo net/dns_name6.lo net/dns_name6_domain.lo net/dns_packet.lo net/dns_qualify.lo net/dns_random.lo net/dns_resolvconfip.lo net/dns_resolvconfrewrite.lo net/dns_resolve.lo net/dns_result.lo net/dns_rotate.lo net/dns_sort.lo net/dns_transmit.lo net/dns_txt.lo net/getaddr4.lo net/getaddr6.lo net/ipv4_addr.lo net/ipv4_format.lo net/ipv4_scan.lo net/ipv6_addr.lo net/ipv6_format.lo net/ipv6_scan.lo net/linger.lo net/listen.lo net/notcpdelay.lo net/pairdgm.lo net/pairstr.lo net/recv4.lo net/recv6.lo net/recvfd.lo net/recvu.lo net/resolve_calldns.lo net/resolve_ipv4addr.lo net/resolve_ipv4name.lo net/reuse.lo net/send4.lo net/send6.lo net/sendfd.lo net/sendu.lo net/shutdown.lo net/tcp4.lo net/tcp6.lo net/udp4.lo net/udp6.lo net/uncork.lo net/unixdgm.lo net/unixstr.lo path/contains.lo path/fnmatch.lo path/match.lo path/merge.lo path/mkdirs.lo path/mktemp.lo str/alloc.lo str/buildmap.lo str/case_end.lo str/case_glob.lo str/case_match.lo str/case_start.lo str/cat.lo str/cat2s.lo str/cat3s.lo str/cat4s.lo str/cat5s.lo str/cat6s.lo str/catf.lo str/catiw.lo str/catiwll.lo str/catns.lo str/catsllnum.lo str/catsnum.lo str/catullnum.lo str/catunum.lo str/catuw.lo str/catuwll.lo str/catxw.lo str/catxwll.lo str/cmp.lo str/copy.lo str/copy2s.lo str/copy3s.lo str/copy4s.lo str/copy5s.lo str/copy6s.lo str/copyf.lo str/copyns.lo str/count.lo str/countof.lo str/cut.lo str/diff.lo str/digits.lo str/end.lo str/env_find.lo str/env_from_array.lo str/env_from_string.lo str/env_get.lo str/env_make_array.lo str/env_put.lo str/env_set.lo str/env_unset.lo str/findnext.lo str/findnextof.lo str/findprev.lo str/findprevof.lo str/free.lo str/glob.lo str/init.lo str/iter_advance.lo str/iter_start.lo str/iter_valid.lo str/join.lo str/lower.lo str/lstrip.lo str/match.lo str/rstrip.lo str/sort.lo str/splice.lo str/start.lo str/subst.lo str/truncate.lo str/upper.lo str/xlate.lo sys/clock_gettime.lo sys/getpeereid.lo sys/iopoll.lo sys/setenv.lo sys/unsetenv.lo uint16/get.lo uint16/pack.lo uint16/unpack.lo uint32/get_lsb.lo uint32/get_msb.lo uint32/pack_lsb.lo uint32/pack_msb.lo uint32/unpack_lsb.lo uint32/unpack_msb.lo uint64/get_lsb.lo uint64/get_msb.lo uint64/pack_lsb.lo uint64/pack_msb.lo uint64/unpack_lsb.lo uint64/unpack_msb.lo unix/cloexec_off.lo unix/cloexec_on.lo unix/fcntl_fd_off.lo unix/fcntl_fd_on.lo unix/fcntl_fl_off.lo unix/fcntl_fl_on.lo unix/nonblock_off.lo unix/nonblock_on.lo unix/selfpipe.lo unix/sig_alarm.lo unix/sig_all.lo unix/sig_block.lo unix/sig_bug.lo unix/sig_catch.lo unix/sig_child.lo unix/sig_hup.lo unix/sig_int.lo unix/sig_misc.lo unix/sig_pipe.lo unix/sig_quit.lo unix/sig_suspend.lo unix/sig_term.lo unix/signalfd.lo unix/trigger_pull.lo unix/trigger_set.lo
	./makeshlib libbg.la adt/adt_sp.lo adt/ghash_add.lo adt/ghash_foreach.lo adt/ghash_free.lo adt/ghash_get.lo adt/ghash_init.lo adt/ghash_insert.lo adt/ghash_iter.lo adt/ghash_rebuild.lo adt/ghash_rehash.lo adt/ghash_remove.lo adt/ghash_search.lo adt/ghash_set.lo adt/gqueue_pop.lo adt/gqueue_push.lo adt/gqueue_top.lo adt/gstack_pop.lo adt/gstack_push.lo adt/gstack_top.lo adt/hashb.lo adt/hashs.lo base64/asc2bin.lo base64/bin2asc.lo base64/decode_line.lo base64/decode_part.lo base64/encode_line.lo base64/encode_part.lo cdb/cdb.lo cdb/cdbhash.lo cdb/find.lo cdb/get.lo cdb/getnext.lo cdb/make.lo cdb/read.lo crc/crc16_arc_table.lo crc/crc16_ccitt_table.lo crc/crc16_xmodem_table.lo crc/crc32_table.lo crc/crc32c_table.lo crc/crc64_table.lo crc/gcrc16fwd.lo crc/gcrc16rfl.lo crc/gcrc32fwd.lo crc/gcrc32rfl.lo crc/gcrc64fwd.lo crc/gcrc64rfl.lo crypto/hmac-md5.lo crypto/hmac-sha1.lo crypto/hmac-sha256.lo crypto/hmac-sha384.lo crypto/hmac-sha512.lo crypto/hmac.lo crypto/md4.lo crypto/md5-crypt.lo crypto/md5.lo crypto/sha1.lo crypto/sha256.lo crypto/sha384.lo crypto/sha512.lo crypto/surf.lo crypto/surfrand.lo dict/add.lo dict/dicthash.lo dict/foreach.lo dict/free.lo dict/get.lo dict/init.lo dict/load_list.lo dict/load_map.lo dict/str_free.lo fmt/char.lo fmt/chars.lo fmt/lcase.lo fmt/multi.lo fmt/pad.lo fmt/sdec.lo fmt/sign_pad.lo fmt/slldec.lo fmt/sllnum.lo fmt/snum.lo fmt/ucase.lo fmt/udec.lo fmt/uhexl.lo fmt/uhexu.lo fmt/ulldec.lo fmt/ullhexl.lo fmt/ullhexu.lo fmt/ullnum.lo fmt/unum.lo iobuf/ibuf_copytofd.lo iobuf/ibuf_getc.lo iobuf/ibuf_getnetstring.lo iobuf/ibuf_gets.lo iobuf/ibuf_getstr.lo iobuf/ibuf_getstr_crlf.lo iobuf/ibuf_getu.lo iobuf/ibuf_init.lo iobuf/ibuf_open.lo iobuf/ibuf_openreadclose.lo iobuf/ibuf_peek.lo iobuf/ibuf_read.lo iobuf/ibuf_readall.lo iobuf/ibuf_refill.lo iobuf/ibuf_seek.lo iobuf/ibuf_status.lo iobuf/ibuf_stdin.lo iobuf/ibuf_tell.lo iobuf/iobuf_close.lo iobuf/iobuf_copy.lo iobuf/iobuf_init.lo iobuf/iobuf_timeout.lo iobuf/obuf_close.lo iobuf/obuf_copyfromfd.lo iobuf/obuf_digits.lo iobuf/obuf_endl.lo iobuf/obuf_flush.lo iobuf/obuf_init.lo iobuf/obuf_open.lo iobuf/obuf_pad.lo iobuf/obuf_put2s.lo iobuf/obuf_put3s.lo iobuf/obuf_put4s.lo iobuf/obuf_put5s.lo iobuf/obuf_put6s.lo iobuf/obuf_put7s.lo iobuf/obuf_putc.lo iobuf/obuf_putf.lo iobuf/obuf_putnetstring.lo iobuf/obuf_putns.lo iobuf/obuf_putsflush.lo iobuf/obuf_putsllnumw.lo iobuf/obuf_putsnumw.lo iobuf/obuf_putullnumw.lo iobuf/obuf_putunumw.lo iobuf/obuf_seek.lo iobuf/obuf_sign_pad.lo iobuf/obuf_stderr.lo iobuf/obuf_stdout.lo iobuf/obuf_sync.lo iobuf/obuf_write.lo misc/random.lo misc/strtou.lo misc/ucspi.lo misc/utoa.lo misc/utoa2.lo msg/common.lo msg/commonf.lo msg/debug.lo msg/debug_bits.lo msg/debug_init.lo msg/debugf.lo msg/die.lo msg/dief.lo msg/error.lo msg/errorf.lo msg/oom.lo msg/show_pid.lo msg/warn.lo msg/warnf.lo msg/wrap_alloc.lo msg/wrap_chdir.lo msg/wrap_exit.lo msg/wrap_str.lo net/accept4.lo net/accept6.lo net/acceptu.lo net/bind4.lo net/bind6.lo net/bindu.lo net/broadcast.lo net/connect4.lo net/connect4_timeout.lo net/connect6.lo net/connect6_timeout.lo net/connected.lo net/connectu.lo net/connectu_timeout.lo net/cork.lo net/dns_domain_fromdot.lo net/dns_domain.lo net/dns_domain_todot.lo net/dns_fmt.lo net/dns_ip4.lo net/dns_ip6.lo net/dns_mx.lo net/dns_name_packet.lo net/dns_name4.lo net/dns_name4_domain.lo net/dns_name6.lo net/dns_name6_domain.lo net/dns_packet.lo net/dns_qualify.lo net/dns_random.lo net/dns_resolvconfip.lo net/dns_resolvconfrewrite.lo net/dns_resolve.lo net/dns_result.lo net/dns_rotate.lo net/dns_sort.lo net/dns_transmit.lo net/dns_txt.lo net/getaddr4.lo net/getaddr6.lo net/ipv4_addr.lo net/ipv4_format.lo net/ipv4_scan.lo net/ipv6_addr.lo net/ipv6_format.lo net/ipv6_scan.lo net/linger.lo net/listen.lo net/notcpdelay.lo net/pairdgm.lo net/pairstr.lo net/recv4.lo net/recv6.lo net/recvfd.lo net/recvu.lo net/resolve_calldns.lo net/resolve_ipv4addr.lo net/resolve_ipv4name.lo net/reuse.lo net/send4.lo net/send6.lo net/sendfd.lo net/sendu.lo net/shutdown.lo net/tcp4.lo net/tcp6.lo net/udp4.lo net/udp6.lo net/uncork.lo net/unixdgm.lo net/unixstr.lo path/contains.lo path/fnmatch.lo path/match.lo path/merge.lo path/mkdirs.lo path/mktemp.lo str/alloc.lo str/buildmap.lo str/case_end.lo str/case_glob.lo str/case_match.lo str/case_start.lo str/cat.lo str/cat2s.lo str/cat3s.lo str/cat4s.lo str/cat5s.lo str/cat6s.lo str/catf.lo str/catiw.lo str/catiwll.lo str/catns.lo str/catsllnum.lo str/catsnum.lo str/catullnum.lo str/catunum.lo str/catuw.lo str/catuwll.lo str/catxw.lo str/catxwll.lo str/cmp.lo str/copy.lo str/copy2s.lo str/copy3s.lo str/copy4s.lo str/copy5s.lo str/copy6s.lo str/copyf.lo str/copyns.lo str/count.lo str/countof.lo str/cut.lo str/diff.lo str/digits.lo str/end.lo str/env_find.lo str/env_from_array.lo str/env_from_string.lo str/env_get.lo str/env_make_array.lo str/env_put.lo str/env_set.lo str/env_unset.lo str/findnext.lo str/findnextof.lo str/findprev.lo str/findprevof.lo str/free.lo str/glob.lo str/init.lo str/iter_advance.lo str/iter_start.lo str/iter_valid.lo str/join.lo str/lower.lo str/lstrip.lo str/match.lo str/rstrip.lo str/sort.lo str/splice.lo str/start.lo str/subst.lo str/truncate.lo str/upper.lo str/xlate.lo sys/clock_gettime.lo sys/getpeereid.lo sys/iopoll.lo sys/setenv.lo sys/unsetenv.lo uint16/get.lo uint16/pack.lo uint16/unpack.lo uint32/get_lsb.lo uint32/get_msb.lo uint32/pack_lsb.lo uint32/pack_msb.lo uint32/unpack_lsb.lo uint32/unpack_msb.lo uint64/get_lsb.lo uint64/get_msb.lo uint64/pack_lsb.lo uint64/pack_msb.lo uint64/unpack_lsb.lo uint64/unpack_msb.lo unix/cloexec_off.lo unix/cloexec_on.lo unix/fcntl_fd_off.lo unix/fcntl_fd_on.lo unix/fcntl_fl_off.lo unix/fcntl_fl_on.lo unix/nonblock_off.lo unix/nonblock_on.lo unix/selfpipe.lo unix/sig_alarm.lo unix/sig_all.lo unix/sig_block.lo unix/sig_bug.lo unix/sig_catch.lo unix/sig_child.lo unix/sig_hup.lo unix/sig_int.lo unix/sig_misc.lo unix/sig_pipe.lo unix/sig_quit.lo unix/sig_suspend.lo unix/sig_term.lo unix/signalfd.lo unix/trigger_pull.lo unix/trigger_set.lo

libpwcmp-module.la: makeshlib pwcmp/module.lo
	./makeshlib libpwcmp-module.la pwcmp/module.lo

libpwcmp.la: makeshlib pwcmp/client.lo pwcmp/hex_encode.lo
	./makeshlib libpwcmp.la pwcmp/client.lo pwcmp/hex_encode.lo

libraries: libpwcmp-module.la libbg.la libvmailmgr.la libbg-cli.la libpwcmp.la

libvmailmgr.la: makeshlib vmailmgr/req_arg.lo vmailmgr/req_init.lo vmailmgr/req_write.lo vmailmgr/resp_read.lo vmailmgr/vpwentry_export.lo vmailmgr/vpwentry_free.lo vmailmgr/vpwentry_import.lo
	./makeshlib libvmailmgr.la vmailmgr/req_arg.lo vmailmgr/req_init.lo vmailmgr/req_write.lo vmailmgr/resp_read.lo vmailmgr/vpwentry_export.lo vmailmgr/vpwentry_free.lo vmailmgr/vpwentry_import.lo

load: conf-ld
	( echo '#!/bin/sh';\
	  echo 'main="$$1"; shift';\
	  echo exec `head -n 1 conf-ld` -L. '-o "$$main" "$$main.o" $${1+"$$@"}'; \
	) >load
	chmod 755 load

ltcompile: conf-cc
	( if libtool --tag=CC --help >/dev/null 2>&1; then tag='--tag=CC'; fi; \
	  echo '#!/bin/sh'; \
	  echo 'source=$$1; shift'; \
	  echo 'base=`echo "$$source" | sed -e s:\\\\.c$$::`'; \
	  echo exec libtool --mode=compile --silent $$tag `head -n 1 conf-cc` -I.  "-I'include/bglibs'" "-I'include'" '-o $${base}.lo -c $$source $${1+"$$@"}'; \
	) >ltcompile
	chmod 755 ltcompile

ltload: conf-ld
	( if libtool --tag=CC --help >/dev/null 2>&1; then tag='--tag=CC'; fi; \
	  echo '#!/bin/sh';\
	  echo 'main="$$1"; shift';\
	  echo exec libtool --mode=link --silent $$tag `head -n 1 conf-ld` -L. '-o "$$main" "$$main.o" $${1+"$$@"}' ; \
	) >ltload
	chmod 755 ltload

makeshlib: conf-ld conf-lib LIBVERSION Makefile
	( if libtool --tag=CC --help >/dev/null 2>&1; then tag='--tag=CC'; fi; \
	  echo '#!/bin/sh'; \
	  echo 'lib="$$1"; shift';\
	  echo 'rm -f "$$lib"';\
	  echo libtool --mode=link --silent $$tag `head -n 1 conf-ld` '-o "$$lib" -rpath' `head -n 1 conf-lib` -version-info `head -n 1 LIBVERSION` '$${1+"$$@"}';\
	) >makeshlib
	chmod 755 makeshlib

man: bg-installer.1

misc/random.lo misc/random.o: ltcompile misc/random.c sysdeps.h systime.h include/bglibs/fmt.h
	./ltcompile misc/random.c

misc/strtou.lo misc/strtou.o: ltcompile misc/strtou.c include/bglibs/fmt.h
	./ltcompile misc/strtou.c

misc/ucspi.lo misc/ucspi.o: ltcompile misc/ucspi.c include/bglibs/ucspi.h
	./ltcompile misc/ucspi.c

misc/utoa.lo misc/utoa.o: ltcompile misc/utoa.c include/bglibs/fmt.h
	./ltcompile misc/utoa.c

misc/utoa2.lo misc/utoa2.o: ltcompile misc/utoa2.c include/bglibs/fmt.h
	./ltcompile misc/utoa2.c

msg/common.lo msg/common.o: ltcompile msg/common.c include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/common.c

msg/commonf.lo msg/commonf.o: ltcompile msg/commonf.c include/bglibs/obuf.h sysdeps.h include/bglibs/iobuf_common.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/commonf.c

msg/debug.lo msg/debug.o: ltcompile msg/debug.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/debug.c

msg/debug_bits.lo msg/debug_bits.o: ltcompile msg/debug_bits.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/debug_bits.c

msg/debug_init.lo msg/debug_init.o: ltcompile msg/debug_init.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/debug_init.c

msg/debugf.lo msg/debugf.o: ltcompile msg/debugf.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/debugf.c

msg/die.lo msg/die.o: ltcompile msg/die.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/die.c

msg/dief.lo msg/dief.o: ltcompile msg/dief.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/dief.c

msg/error.lo msg/error.o: ltcompile msg/error.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/error.c

msg/errorf.lo msg/errorf.o: ltcompile msg/errorf.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/errorf.c

msg/oom.lo msg/oom.o: ltcompile msg/oom.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/oom.c

msg/show_pid.lo msg/show_pid.o: ltcompile msg/show_pid.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/show_pid.c

msg/warn.lo msg/warn.o: ltcompile msg/warn.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/warn.c

msg/warnf.lo msg/warnf.o: ltcompile msg/warnf.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile msg/warnf.c

msg/wrap_alloc.lo msg/wrap_alloc.o: ltcompile msg/wrap_alloc.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/wrap.h
	./ltcompile msg/wrap_alloc.c

msg/wrap_chdir.lo msg/wrap_chdir.o: ltcompile msg/wrap_chdir.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/wrap.h
	./ltcompile msg/wrap_chdir.c

msg/wrap_exit.lo msg/wrap_exit.o: ltcompile msg/wrap_exit.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/wrap.h
	./ltcompile msg/wrap_exit.c

msg/wrap_str.lo msg/wrap_str.o: ltcompile msg/wrap_str.c include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/wrap.h
	./ltcompile msg/wrap_str.c

net/accept4.lo net/accept4.o: ltcompile net/accept4.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/accept4.c

net/accept6.lo net/accept6.o: ltcompile net/accept6.c sysdeps.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/accept6.c

net/acceptu.lo net/acceptu.o: ltcompile net/acceptu.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/acceptu.c

net/bind4.lo net/bind4.o: ltcompile net/bind4.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/bind4.c

net/bind6.lo net/bind6.o: ltcompile net/bind6.c sysdeps.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/bind6.c

net/bindu.lo net/bindu.o: ltcompile net/bindu.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/bindu.c

net/broadcast.lo net/broadcast.o: ltcompile net/broadcast.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/broadcast.c

net/connect4.lo net/connect4.o: ltcompile net/connect4.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/connect4.c

net/connect4_timeout.lo net/connect4_timeout.o: ltcompile net/connect4_timeout.c sysdeps.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/unix.h
	./ltcompile net/connect4_timeout.c

net/connect6.lo net/connect6.o: ltcompile net/connect6.c sysdeps.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/connect6.c

net/connect6_timeout.lo net/connect6_timeout.o: ltcompile net/connect6_timeout.c sysdeps.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/unix.h
	./ltcompile net/connect6_timeout.c

net/connected.lo net/connected.o: ltcompile net/connected.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/connected.c

net/connectu.lo net/connectu.o: ltcompile net/connectu.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/connectu.c

net/connectu_timeout.lo net/connectu_timeout.o: ltcompile net/connectu_timeout.c sysdeps.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/unix.h
	./ltcompile net/connectu_timeout.c

net/cork.lo net/cork.o: ltcompile net/cork.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/cork.c

net/dns_domain.lo net/dns_domain.o: ltcompile net/dns_domain.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_domain.c

net/dns_domain_fromdot.lo net/dns_domain_fromdot.o: ltcompile net/dns_domain_fromdot.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h
	./ltcompile net/dns_domain_fromdot.c

net/dns_domain_todot.lo net/dns_domain_todot.o: ltcompile net/dns_domain_todot.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h
	./ltcompile net/dns_domain_todot.c

net/dns_fmt.lo net/dns_fmt.o: ltcompile net/dns_fmt.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_fmt.c

net/dns_ip4.lo net/dns_ip4.o: ltcompile net/dns_ip4.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h dns-responder.c include/bglibs/fmt.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/ipv4.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/socket.h include/ipv6.h sysdeps.h uint32.h sysdeps.h
	./ltcompile net/dns_ip4.c

net/dns_ip6.lo net/dns_ip6.o: ltcompile net/dns_ip6.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h dns-responder.c include/bglibs/fmt.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/ipv4.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/socket.h include/ipv6.h sysdeps.h uint32.h sysdeps.h
	./ltcompile net/dns_ip6.c

net/dns_mx.lo net/dns_mx.o: ltcompile net/dns_mx.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h dns-responder.c include/bglibs/fmt.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/ipv4.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/socket.h include/ipv6.h sysdeps.h uint32.h sysdeps.h
	./ltcompile net/dns_mx.c

net/dns_name4.lo net/dns_name4.o: ltcompile net/dns_name4.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h dns-responder.c include/bglibs/fmt.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/ipv4.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/socket.h include/ipv6.h sysdeps.h uint32.h sysdeps.h
	./ltcompile net/dns_name4.c

net/dns_name4_domain.lo net/dns_name4_domain.o: ltcompile net/dns_name4_domain.c include/bglibs/fmt.h include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_name4_domain.c

net/dns_name6.lo net/dns_name6.o: ltcompile net/dns_name6.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h dns-responder.c include/bglibs/fmt.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/ipv4.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/socket.h include/ipv6.h sysdeps.h uint32.h sysdeps.h
	./ltcompile net/dns_name6.c

net/dns_name6_domain.lo net/dns_name6_domain.o: ltcompile net/dns_name6_domain.c include/bglibs/fmt.h include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_name6_domain.c

net/dns_name_packet.lo net/dns_name_packet.o: ltcompile net/dns_name_packet.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_name_packet.c

net/dns_packet.lo net/dns_packet.o: ltcompile net/dns_packet.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_packet.c

net/dns_qualify.lo net/dns_qualify.o: ltcompile net/dns_qualify.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_qualify.c

net/dns_random.lo net/dns_random.o: ltcompile net/dns_random.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h uint32.h sysdeps.h include/bglibs/surfrand.h include/bglibs/surf.h
	./ltcompile net/dns_random.c

net/dns_resolvconfip.lo net/dns_resolvconfip.o: ltcompile net/dns_resolvconfip.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h include/bglibs/misc.h sysdeps.h include/bglibs/striter.h include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_resolvconfip.c

net/dns_resolvconfrewrite.lo net/dns_resolvconfrewrite.o: ltcompile net/dns_resolvconfrewrite.c include/bglibs/ibuf.h include/bglibs/iobuf_common.h include/bglibs/striter.h include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_resolvconfrewrite.c

net/dns_resolve.lo net/dns_resolve.o: ltcompile net/dns_resolve.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_resolve.c

net/dns_result.lo net/dns_result.o: ltcompile net/dns_result.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_result.c

net/dns_rotate.lo net/dns_rotate.o: ltcompile net/dns_rotate.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_rotate.c

net/dns_sort.lo net/dns_sort.o: ltcompile net/dns_sort.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_sort.c

net/dns_transmit.lo net/dns_transmit.o: ltcompile net/dns_transmit.c sysdeps.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/dns.h sysdeps.h systime.h include/ipv4.h sysdeps.h include/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h
	./ltcompile net/dns_transmit.c

net/dns_txt.lo net/dns_txt.o: ltcompile net/dns_txt.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h dns-responder.c include/bglibs/fmt.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/ipv4.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/socket.h include/ipv6.h sysdeps.h uint32.h sysdeps.h
	./ltcompile net/dns_txt.c

net/getaddr4.lo net/getaddr4.o: ltcompile net/getaddr4.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/getaddr4.c

net/getaddr6.lo net/getaddr6.o: ltcompile net/getaddr6.c sysdeps.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/getaddr6.c

net/ipv4_addr.lo net/ipv4_addr.o: ltcompile net/ipv4_addr.c include/bglibs/ipv4.h sysdeps.h
	./ltcompile net/ipv4_addr.c

net/ipv4_format.lo net/ipv4_format.o: ltcompile net/ipv4_format.c include/bglibs/ipv4.h sysdeps.h
	./ltcompile net/ipv4_format.c

net/ipv4_scan.lo net/ipv4_scan.o: ltcompile net/ipv4_scan.c include/bglibs/ipv4.h sysdeps.h
	./ltcompile net/ipv4_scan.c

net/ipv6_addr.lo net/ipv6_addr.o: ltcompile net/ipv6_addr.c include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/ipv6_addr.c

net/ipv6_format.lo net/ipv6_format.o: ltcompile net/ipv6_format.c include/bglibs/ipv6.h sysdeps.h include/bglibs/ipv4.h sysdeps.h
	./ltcompile net/ipv6_format.c

net/ipv6_scan.lo net/ipv6_scan.o: ltcompile net/ipv6_scan.c include/bglibs/ipv6.h sysdeps.h include/bglibs/ipv4.h sysdeps.h
	./ltcompile net/ipv6_scan.c

net/linger.lo net/linger.o: ltcompile net/linger.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/linger.c

net/listen.lo net/listen.o: ltcompile net/listen.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/listen.c

net/notcpdelay.lo net/notcpdelay.o: ltcompile net/notcpdelay.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/notcpdelay.c

net/pairdgm.lo net/pairdgm.o: ltcompile net/pairdgm.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/pairdgm.c

net/pairstr.lo net/pairstr.o: ltcompile net/pairstr.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/pairstr.c

net/recv4.lo net/recv4.o: ltcompile net/recv4.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/recv4.c

net/recv6.lo net/recv6.o: ltcompile net/recv6.c sysdeps.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/recv6.c

net/recvfd.lo net/recvfd.o: ltcompile net/recvfd.c net/cmsg.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/recvfd.c

net/recvu.lo net/recvu.o: ltcompile net/recvu.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/recvu.c

net/resolve_calldns.lo net/resolve_calldns.o: ltcompile net/resolve_calldns.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h include/bglibs/resolve.h include/ipv4.h sysdeps.h
	./ltcompile net/resolve_calldns.c

net/resolve_ipv4addr.lo net/resolve_ipv4addr.o: ltcompile net/resolve_ipv4addr.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h include/bglibs/resolve.h include/ipv4.h sysdeps.h
	./ltcompile net/resolve_ipv4addr.c

net/resolve_ipv4name.lo net/resolve_ipv4name.o: ltcompile net/resolve_ipv4name.c include/bglibs/dns.h sysdeps.h systime.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h include/bglibs/str.h sysdeps.h uint16.h sysdeps.h uintnn.h include/bglibs/resolve.h include/ipv4.h sysdeps.h dns-responder.c include/bglibs/fmt.h include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/socket.h include/ipv6.h sysdeps.h uint32.h sysdeps.h
	./ltcompile net/resolve_ipv4name.c

net/reuse.lo net/reuse.o: ltcompile net/reuse.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/reuse.c

net/send4.lo net/send4.o: ltcompile net/send4.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/send4.c

net/send6.lo net/send6.o: ltcompile net/send6.c sysdeps.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/send6.c

net/sendfd.lo net/sendfd.o: ltcompile net/sendfd.c net/cmsg.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/sendfd.c

net/sendu.lo net/sendu.o: ltcompile net/sendu.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/sendu.c

net/shutdown.lo net/shutdown.o: ltcompile net/shutdown.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/shutdown.c

net/tcp4.lo net/tcp4.o: ltcompile net/tcp4.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/tcp4.c

net/tcp6.lo net/tcp6.o: ltcompile net/tcp6.c sysdeps.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/tcp6.c

net/udp4.lo net/udp4.o: ltcompile net/udp4.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/udp4.c

net/udp6.lo net/udp6.o: ltcompile net/udp6.c sysdeps.h include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/udp6.c

net/uncork.lo net/uncork.o: ltcompile net/uncork.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/uncork.c

net/unixdgm.lo net/unixdgm.o: ltcompile net/unixdgm.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/unixdgm.c

net/unixstr.lo net/unixstr.o: ltcompile net/unixstr.c include/bglibs/socket.h include/bglibs/ipv4.h sysdeps.h include/bglibs/ipv6.h sysdeps.h
	./ltcompile net/unixstr.c

path/contains.lo path/contains.o: ltcompile path/contains.c include/bglibs/path.h include/bglibs/str.h sysdeps.h
	./ltcompile path/contains.c

path/fnmatch.lo path/fnmatch.o: ltcompile path/fnmatch.c include/bglibs/path.h include/bglibs/str.h sysdeps.h
	./ltcompile path/fnmatch.c

path/match.lo path/match.o: ltcompile path/match.c sysdeps.h include/bglibs/str.h sysdeps.h include/bglibs/striter.h include/bglibs/path.h include/str.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h
	./ltcompile path/match.c

path/merge.lo path/merge.o: ltcompile path/merge.c include/bglibs/path.h include/bglibs/str.h sysdeps.h include/path.h include/str.h sysdeps.h
	./ltcompile path/merge.c

path/mkdirs.lo path/mkdirs.o: ltcompile path/mkdirs.c sysdeps.h include/bglibs/path.h include/bglibs/str.h sysdeps.h
	./ltcompile path/mkdirs.c

path/mktemp.lo path/mktemp.o: ltcompile path/mktemp.c systime.h include/bglibs/path.h include/bglibs/str.h sysdeps.h
	./ltcompile path/mktemp.c

perl-head.pl: 
	( set -e; PATH="/bin:/usr/bin:/usr/local/bin:$$PATH"; export PATH; \
	  perl=`which perl`; \
	  echo "#! $$perl"; \
	  echo "# WARNING: This file was auto-generated. Do not edit!"; \
	  echo ) >perl-head.pl

programs: bg-installer cli-generate

pwcmp/client.lo pwcmp/client.o: ltcompile pwcmp/client.c sysdeps.h pwcmp/client.h
	./ltcompile pwcmp/client.c

pwcmp/hex_encode.lo pwcmp/hex_encode.o: ltcompile pwcmp/hex_encode.c pwcmp/hex.h
	./ltcompile pwcmp/hex_encode.c

pwcmp/module.lo pwcmp/module.o: ltcompile pwcmp/module.c pwcmp/module.h
	./ltcompile pwcmp/module.c

rt.lib: compile load
	@echo -n 'Checking for -lrt: '
	@echo 'main() { ; }' >trylib-lrt.c
	@{ ./compile trylib-lrt.c && ./load trylib-lrt -lrt; } >/dev/null 2>&1 \
	  && { echo -lrt >rt.lib; echo yes; } \
	  || { echo >rt.lib; echo no; }
	@rm -f trylib-lrt.c trylib-lrt.o trylib-lrt

selftest-cmp: selftest-cmp.o ltload libbg.la
	./ltload selftest-cmp libbg.la  

selftest-cmp.o: compile selftest-cmp.c include/bglibs/iobuf.h include/bglibs/iobuf_common.h include/bglibs/ibuf.h include/iobuf_common.h include/bglibs/obuf.h sysdeps.h include/bglibs/msg.h sysdeps.h include/bglibs/debug.h include/bglibs/wrap.h include/bglibs/path.h include/bglibs/str.h sysdeps.h include/str.h sysdeps.h
	./compile selftest-cmp.c

selftests: selftests.sh sysdeps.h libbg.la selftest-cmp selftest.c
	sh selftests.sh

str/alloc.lo str/alloc.o: ltcompile str/alloc.c include/bglibs/str.h sysdeps.h
	./ltcompile str/alloc.c

str/buildmap.lo str/buildmap.o: ltcompile str/buildmap.c include/bglibs/str.h sysdeps.h
	./ltcompile str/buildmap.c

str/case_end.lo str/case_end.o: ltcompile str/case_end.c include/bglibs/str.h sysdeps.h
	./ltcompile str/case_end.c

str/case_glob.lo str/case_glob.o: ltcompile str/case_glob.c include/bglibs/str.h sysdeps.h
	./ltcompile str/case_glob.c

str/case_match.lo str/case_match.o: ltcompile str/case_match.c include/bglibs/str.h sysdeps.h
	./ltcompile str/case_match.c

str/case_start.lo str/case_start.o: ltcompile str/case_start.c include/bglibs/str.h sysdeps.h
	./ltcompile str/case_start.c

str/cat.lo str/cat.o: ltcompile str/cat.c include/bglibs/str.h sysdeps.h
	./ltcompile str/cat.c

str/cat2s.lo str/cat2s.o: ltcompile str/cat2s.c include/bglibs/str.h sysdeps.h
	./ltcompile str/cat2s.c

str/cat3s.lo str/cat3s.o: ltcompile str/cat3s.c include/bglibs/str.h sysdeps.h
	./ltcompile str/cat3s.c

str/cat4s.lo str/cat4s.o: ltcompile str/cat4s.c include/bglibs/str.h sysdeps.h
	./ltcompile str/cat4s.c

str/cat5s.lo str/cat5s.o: ltcompile str/cat5s.c include/bglibs/str.h sysdeps.h
	./ltcompile str/cat5s.c

str/cat6s.lo str/cat6s.o: ltcompile str/cat6s.c include/bglibs/str.h sysdeps.h
	./ltcompile str/cat6s.c

str/catf.lo str/catf.o: ltcompile str/catf.c include/bglibs/str.h sysdeps.h include/bglibs/fmt.h
	./ltcompile str/catf.c

str/catiw.lo str/catiw.o: ltcompile str/catiw.c include/bglibs/fmt.h include/bglibs/str.h sysdeps.h
	./ltcompile str/catiw.c

str/catiwll.lo str/catiwll.o: ltcompile str/catiwll.c include/bglibs/fmt.h include/bglibs/str.h sysdeps.h
	./ltcompile str/catiwll.c

str/catns.lo str/catns.o: ltcompile str/catns.c include/bglibs/str.h sysdeps.h
	./ltcompile str/catns.c

str/catsllnum.lo str/catsllnum.o: ltcompile str/catsllnum.c include/bglibs/fmt.h include/bglibs/str.h sysdeps.h
	./ltcompile str/catsllnum.c

str/catsnum.lo str/catsnum.o: ltcompile str/catsnum.c include/bglibs/fmt.h include/bglibs/str.h sysdeps.h
	./ltcompile str/catsnum.c

str/catullnum.lo str/catullnum.o: ltcompile str/catullnum.c include/bglibs/fmt.h include/bglibs/str.h sysdeps.h
	./ltcompile str/catullnum.c

str/catunum.lo str/catunum.o: ltcompile str/catunum.c include/bglibs/fmt.h include/bglibs/str.h sysdeps.h
	./ltcompile str/catunum.c

str/catuw.lo str/catuw.o: ltcompile str/catuw.c include/bglibs/fmt.h include/bglibs/str.h sysdeps.h
	./ltcompile str/catuw.c

str/catuwll.lo str/catuwll.o: ltcompile str/catuwll.c include/bglibs/fmt.h include/bglibs/str.h sysdeps.h
	./ltcompile str/catuwll.c

str/catxw.lo str/catxw.o: ltcompile str/catxw.c include/bglibs/fmt.h include/bglibs/str.h sysdeps.h
	./ltcompile str/catxw.c

str/catxwll.lo str/catxwll.o: ltcompile str/catxwll.c include/bglibs/fmt.h include/bglibs/str.h sysdeps.h
	./ltcompile str/catxwll.c

str/cmp.lo str/cmp.o: ltcompile str/cmp.c include/bglibs/str.h sysdeps.h
	./ltcompile str/cmp.c

str/copy.lo str/copy.o: ltcompile str/copy.c include/bglibs/str.h sysdeps.h
	./ltcompile str/copy.c

str/copy2s.lo str/copy2s.o: ltcompile str/copy2s.c include/bglibs/str.h sysdeps.h
	./ltcompile str/copy2s.c

str/copy3s.lo str/copy3s.o: ltcompile str/copy3s.c include/bglibs/str.h sysdeps.h
	./ltcompile str/copy3s.c

str/copy4s.lo str/copy4s.o: ltcompile str/copy4s.c include/bglibs/str.h sysdeps.h
	./ltcompile str/copy4s.c

str/copy5s.lo str/copy5s.o: ltcompile str/copy5s.c include/bglibs/str.h sysdeps.h
	./ltcompile str/copy5s.c

str/copy6s.lo str/copy6s.o: ltcompile str/copy6s.c include/bglibs/str.h sysdeps.h
	./ltcompile str/copy6s.c

str/copyf.lo str/copyf.o: ltcompile str/copyf.c include/bglibs/str.h sysdeps.h include/bglibs/fmt.h
	./ltcompile str/copyf.c

str/copyns.lo str/copyns.o: ltcompile str/copyns.c include/bglibs/str.h sysdeps.h
	./ltcompile str/copyns.c

str/count.lo str/count.o: ltcompile str/count.c include/bglibs/str.h sysdeps.h
	./ltcompile str/count.c

str/countof.lo str/countof.o: ltcompile str/countof.c include/bglibs/str.h sysdeps.h
	./ltcompile str/countof.c

str/cut.lo str/cut.o: ltcompile str/cut.c include/bglibs/str.h sysdeps.h
	./ltcompile str/cut.c

str/diff.lo str/diff.o: ltcompile str/diff.c include/bglibs/str.h sysdeps.h
	./ltcompile str/diff.c

str/digits.lo str/digits.o: ltcompile str/digits.c include/bglibs/str.h sysdeps.h
	./ltcompile str/digits.c

str/end.lo str/end.o: ltcompile str/end.c include/bglibs/str.h sysdeps.h
	./ltcompile str/end.c

str/env_find.lo str/env_find.o: ltcompile str/env_find.c include/bglibs/str.h sysdeps.h include/bglibs/striter.h include/bglibs/envstr.h
	./ltcompile str/env_find.c

str/env_from_array.lo str/env_from_array.o: ltcompile str/env_from_array.c include/bglibs/str.h sysdeps.h include/bglibs/envstr.h
	./ltcompile str/env_from_array.c

str/env_from_string.lo str/env_from_string.o: ltcompile str/env_from_string.c include/bglibs/str.h sysdeps.h include/bglibs/envstr.h
	./ltcompile str/env_from_string.c

str/env_get.lo str/env_get.o: ltcompile str/env_get.c include/bglibs/str.h sysdeps.h include/bglibs/striter.h include/bglibs/envstr.h
	./ltcompile str/env_get.c

str/env_make_array.lo str/env_make_array.o: ltcompile str/env_make_array.c include/bglibs/str.h sysdeps.h include/bglibs/striter.h include/bglibs/envstr.h
	./ltcompile str/env_make_array.c

str/env_put.lo str/env_put.o: ltcompile str/env_put.c include/bglibs/str.h sysdeps.h include/bglibs/envstr.h
	./ltcompile str/env_put.c

str/env_set.lo str/env_set.o: ltcompile str/env_set.c include/bglibs/str.h sysdeps.h include/bglibs/envstr.h
	./ltcompile str/env_set.c

str/env_unset.lo str/env_unset.o: ltcompile str/env_unset.c include/bglibs/str.h sysdeps.h include/bglibs/envstr.h
	./ltcompile str/env_unset.c

str/findnext.lo str/findnext.o: ltcompile str/findnext.c include/bglibs/str.h sysdeps.h
	./ltcompile str/findnext.c

str/findnextof.lo str/findnextof.o: ltcompile str/findnextof.c include/bglibs/str.h sysdeps.h
	./ltcompile str/findnextof.c

str/findprev.lo str/findprev.o: ltcompile str/findprev.c include/bglibs/str.h sysdeps.h
	./ltcompile str/findprev.c

str/findprevof.lo str/findprevof.o: ltcompile str/findprevof.c include/bglibs/str.h sysdeps.h
	./ltcompile str/findprevof.c

str/free.lo str/free.o: ltcompile str/free.c include/bglibs/str.h sysdeps.h
	./ltcompile str/free.c

str/glob.lo str/glob.o: ltcompile str/glob.c include/bglibs/str.h sysdeps.h
	./ltcompile str/glob.c

str/init.lo str/init.o: ltcompile str/init.c include/bglibs/str.h sysdeps.h
	./ltcompile str/init.c

str/iter_advance.lo str/iter_advance.o: ltcompile str/iter_advance.c include/bglibs/striter.h include/bglibs/str.h sysdeps.h
	./ltcompile str/iter_advance.c

str/iter_start.lo str/iter_start.o: ltcompile str/iter_start.c include/bglibs/striter.h include/bglibs/str.h sysdeps.h
	./ltcompile str/iter_start.c

str/iter_valid.lo str/iter_valid.o: ltcompile str/iter_valid.c include/bglibs/striter.h include/bglibs/str.h sysdeps.h
	./ltcompile str/iter_valid.c

str/join.lo str/join.o: ltcompile str/join.c include/bglibs/str.h sysdeps.h
	./ltcompile str/join.c

str/lower.lo str/lower.o: ltcompile str/lower.c include/bglibs/str.h sysdeps.h
	./ltcompile str/lower.c

str/lstrip.lo str/lstrip.o: ltcompile str/lstrip.c include/bglibs/str.h sysdeps.h
	./ltcompile str/lstrip.c

str/match.lo str/match.o: ltcompile str/match.c include/bglibs/str.h sysdeps.h
	./ltcompile str/match.c

str/rstrip.lo str/rstrip.o: ltcompile str/rstrip.c include/bglibs/str.h sysdeps.h
	./ltcompile str/rstrip.c

str/sort.lo str/sort.o: ltcompile str/sort.c include/bglibs/str.h sysdeps.h
	./ltcompile str/sort.c

str/splice.lo str/splice.o: ltcompile str/splice.c include/bglibs/str.h sysdeps.h
	./ltcompile str/splice.c

str/start.lo str/start.o: ltcompile str/start.c include/bglibs/str.h sysdeps.h
	./ltcompile str/start.c

str/subst.lo str/subst.o: ltcompile str/subst.c include/bglibs/str.h sysdeps.h
	./ltcompile str/subst.c

str/truncate.lo str/truncate.o: ltcompile str/truncate.c include/bglibs/str.h sysdeps.h
	./ltcompile str/truncate.c

str/upper.lo str/upper.o: ltcompile str/upper.c include/bglibs/str.h sysdeps.h
	./ltcompile str/upper.c

str/xlate.lo str/xlate.o: ltcompile str/xlate.c include/bglibs/str.h sysdeps.h
	./ltcompile str/xlate.c

sys/clock_gettime.lo sys/clock_gettime.o: ltcompile sys/clock_gettime.c sysdeps.h
	./ltcompile sys/clock_gettime.c

sys/getpeereid.lo sys/getpeereid.o: ltcompile sys/getpeereid.c sysdeps.h
	./ltcompile sys/getpeereid.c

sys/iopoll.lo sys/iopoll.o: ltcompile sys/iopoll.c sysdeps.h
	./ltcompile sys/iopoll.c

sys/setenv.lo sys/setenv.o: ltcompile sys/setenv.c sysdeps.h
	./ltcompile sys/setenv.c

sys/unsetenv.lo sys/unsetenv.o: ltcompile sys/unsetenv.c sysdeps.h
	./ltcompile sys/unsetenv.c

sysdeps.h: Makefile choose compile load sysdeps-head.h sysdeps-tail.h systime.h sys/tryattribute.c sys/hasattribute.h0 sys/hasattribute.h1 sys/tryclockgettime.c sys/hasclockgettime.h0 sys/hasclockgettime.h1 sys/trydaylight.c sys/hasdaylight.h0 sys/hasdaylight.h1 sys/trydeprecated.c sys/hasdeprecated.h0 sys/hasdeprecated.h1 sys/trydirent.c sys/hasdirent.h0 sys/hasdirent.h1 sys/trydirentino.c sys/hasdirentino.h0 sys/hasdirentino.h1 sys/trydirenttype.c sys/hasdirenttype.h0 sys/hasdirenttype.h1 sys/trydl.c sys/hasdl.h0 sys/hasdl.h1 sys/tryendian.c sys/hasendian.h0 sys/hasendian.h1 sys/tryflock.c sys/hasflock.h0 sys/hasflock.h1 sys/trygetpeereid.c sys/hasgetpeereid.h0 sys/hasgetpeereid.h1 sys/tryinline.c sys/hasinline.h0 sys/hasinline.h1 sys/tryipv6.c sys/hasipv6.h0 sys/hasipv6.h1 sys/trymkfifo.c sys/hasmkfifo.h0 sys/hasmkfifo.h1 sys/trynamedpipebug.c sys/hasnamedpipebug.h0 sys/hasnamedpipebug.h1 sys/trynoreturn.c sys/hasnoreturn.h0 sys/hasnoreturn.h1 sys/trypeercred.c sys/haspeercred.h0 sys/haspeercred.h1 sys/trypoll.c sys/haspoll.h0 sys/haspoll.h1 sys/trysendfile.c sys/hassendfile.h0 sys/hassendfile.h1 sys/trysetenv.c sys/hassetenv.h0 sys/hassetenv.h1 sys/trysigaction.c sys/hassigaction.h0 sys/hassigaction.h1 sys/trysigprocmask.c sys/hassigprocmask.h0 sys/hassigprocmask.h1 sys/tryspnam.c sys/hasspnam.h0 sys/hasspnam.h1 sys/trysysselect.c sys/hassysselect.h0 sys/hassysselect.h1 sys/trytimespec.c sys/hastimespec.h0 sys/hastimespec.h1 sys/tryulong32.c sys/hasulong32.h0 sys/hasulong32.h1 sys/tryulong64.c sys/hasulong64.h0 sys/hasulong64.h1 sys/tryunaligned.c sys/hasunaligned.h0 sys/hasunaligned.h1 sys/tryunsetenv.c sys/hasunsetenv.h0 sys/hasunsetenv.h1 sys/tryuserpw.c sys/hasuserpw.h0 sys/hasuserpw.h1 sys/tryvfork.c sys/hasvfork.h0 sys/hasvfork.h1 sys/trywaitp.c sys/haswaitp.h0 sys/haswaitp.h1 sys/tryzlib.c sys/haszlib.h0 sys/haszlib.h1 systime.h dl.lib rt.lib
	( set -e; \
	  cat sysdeps-head.h; \
	  ./choose c   attribute; \
	  ./choose cl  daylight; \
	  ./choose c   deprecated; \
	  ./choose clr ulong32; \
	  ./choose clr ulong64; \
	  ./choose clr endian; \
	  ./choose c   dirent; \
	  ./choose c   direntino; \
	  ./choose c   direnttype; \
	  ./choose cl  dl `cat dl.lib`; \
	  ./choose c   ipv6; \
	  ./choose cl  vfork; \
	  ./choose cl  getpeereid; \
	  ./choose cl  flock; \
	  ./choose cl  peercred; \
	  ./choose cl  sendfile; \
	  ./choose cl  sigaction; \
	  ./choose cl  sigprocmask; \
	  ./choose cl  spnam; \
	  ./choose cl  userpw; \
	  ./choose cl  waitp; \
	  ./choose c   zlib; \
	  ./choose clr poll; \
	  ./choose c   sysselect; \
	  ./choose cl  setenv; \
	  ./choose c   timespec; \
	  ./choose cl  clockgettime `cat rt.lib`; \
	  ./choose cl  unsetenv; \
	  ./choose clr unaligned; \
	  ./choose cl  mkfifo; \
	  ./choose clr namedpipebug; \
	  ./choose c   inline; \
	  ./choose c   noreturn; \
	  cat sysdeps-tail.h; \
	) >sysdeps.h

systime.h: compile sys/trysystime.c sys/trytime.c
	( ( ./compile sys/trysystime.c >/dev/null 2>&1 && \
	    echo '#include <sys/time.h>' ); \
	  ( ./compile sys/trytime.c >/dev/null 2>&1 && \
	    echo '#include <time.h>' ) ) >systime.h
	rm -f sys/trysystime.o sys/trytime.o

uint16/get.lo uint16/get.o: ltcompile uint16/get.c uint16.h sysdeps.h uintnn.h
	./ltcompile uint16/get.c

uint16/pack.lo uint16/pack.o: ltcompile uint16/pack.c uint16.h sysdeps.h uintnn.h
	./ltcompile uint16/pack.c

uint16/unpack.lo uint16/unpack.o: ltcompile uint16/unpack.c uint16.h sysdeps.h uintnn.h
	./ltcompile uint16/unpack.c

uint32/get_lsb.lo uint32/get_lsb.o: ltcompile uint32/get_lsb.c uint32.h sysdeps.h uintnn.h
	./ltcompile uint32/get_lsb.c

uint32/get_msb.lo uint32/get_msb.o: ltcompile uint32/get_msb.c uint32.h sysdeps.h uintnn.h
	./ltcompile uint32/get_msb.c

uint32/pack_lsb.lo uint32/pack_lsb.o: ltcompile uint32/pack_lsb.c uint32.h sysdeps.h uintnn.h
	./ltcompile uint32/pack_lsb.c

uint32/pack_msb.lo uint32/pack_msb.o: ltcompile uint32/pack_msb.c uint32.h sysdeps.h uintnn.h
	./ltcompile uint32/pack_msb.c

uint32/unpack_lsb.lo uint32/unpack_lsb.o: ltcompile uint32/unpack_lsb.c uint32.h sysdeps.h uintnn.h
	./ltcompile uint32/unpack_lsb.c

uint32/unpack_msb.lo uint32/unpack_msb.o: ltcompile uint32/unpack_msb.c uint32.h sysdeps.h uintnn.h
	./ltcompile uint32/unpack_msb.c

uint64/get_lsb.lo uint64/get_lsb.o: ltcompile uint64/get_lsb.c uint64.h sysdeps.h uintnn.h uint32.h sysdeps.h
	./ltcompile uint64/get_lsb.c

uint64/get_msb.lo uint64/get_msb.o: ltcompile uint64/get_msb.c uint64.h sysdeps.h uintnn.h uint32.h sysdeps.h
	./ltcompile uint64/get_msb.c

uint64/pack_lsb.lo uint64/pack_lsb.o: ltcompile uint64/pack_lsb.c uint64.h sysdeps.h uintnn.h uint32.h sysdeps.h
	./ltcompile uint64/pack_lsb.c

uint64/pack_msb.lo uint64/pack_msb.o: ltcompile uint64/pack_msb.c uint64.h sysdeps.h uintnn.h uint32.h sysdeps.h
	./ltcompile uint64/pack_msb.c

uint64/unpack_lsb.lo uint64/unpack_lsb.o: ltcompile uint64/unpack_lsb.c uint64.h sysdeps.h uintnn.h uint32.h sysdeps.h
	./ltcompile uint64/unpack_lsb.c

uint64/unpack_msb.lo uint64/unpack_msb.o: ltcompile uint64/unpack_msb.c uint64.h sysdeps.h uintnn.h uint32.h sysdeps.h
	./ltcompile uint64/unpack_msb.c

unix/cloexec_off.lo unix/cloexec_off.o: ltcompile unix/cloexec_off.c include/bglibs/unix.h
	./ltcompile unix/cloexec_off.c

unix/cloexec_on.lo unix/cloexec_on.o: ltcompile unix/cloexec_on.c include/bglibs/unix.h
	./ltcompile unix/cloexec_on.c

unix/fcntl_fd_off.lo unix/fcntl_fd_off.o: ltcompile unix/fcntl_fd_off.c include/bglibs/unix.h
	./ltcompile unix/fcntl_fd_off.c

unix/fcntl_fd_on.lo unix/fcntl_fd_on.o: ltcompile unix/fcntl_fd_on.c include/bglibs/unix.h
	./ltcompile unix/fcntl_fd_on.c

unix/fcntl_fl_off.lo unix/fcntl_fl_off.o: ltcompile unix/fcntl_fl_off.c include/bglibs/unix.h
	./ltcompile unix/fcntl_fl_off.c

unix/fcntl_fl_on.lo unix/fcntl_fl_on.o: ltcompile unix/fcntl_fl_on.c include/bglibs/unix.h
	./ltcompile unix/fcntl_fl_on.c

unix/nonblock_off.lo unix/nonblock_off.o: ltcompile unix/nonblock_off.c include/bglibs/unix.h
	./ltcompile unix/nonblock_off.c

unix/nonblock_on.lo unix/nonblock_on.o: ltcompile unix/nonblock_on.c include/bglibs/unix.h
	./ltcompile unix/nonblock_on.c

unix/selfpipe.lo unix/selfpipe.o: ltcompile unix/selfpipe.c sysdeps.h include/bglibs/unix.h include/bglibs/sig.h include/bglibs/selfpipe.h
	./ltcompile unix/selfpipe.c

unix/sig_alarm.lo unix/sig_alarm.o: ltcompile unix/sig_alarm.c include/bglibs/sig.h
	./ltcompile unix/sig_alarm.c

unix/sig_all.lo unix/sig_all.o: ltcompile unix/sig_all.c include/bglibs/sig.h sysdeps.h
	./ltcompile unix/sig_all.c

unix/sig_block.lo unix/sig_block.o: ltcompile unix/sig_block.c include/bglibs/sig.h sysdeps.h
	./ltcompile unix/sig_block.c

unix/sig_bug.lo unix/sig_bug.o: ltcompile unix/sig_bug.c include/bglibs/sig.h
	./ltcompile unix/sig_bug.c

unix/sig_catch.lo unix/sig_catch.o: ltcompile unix/sig_catch.c include/bglibs/sig.h sysdeps.h
	./ltcompile unix/sig_catch.c

unix/sig_child.lo unix/sig_child.o: ltcompile unix/sig_child.c include/bglibs/sig.h
	./ltcompile unix/sig_child.c

unix/sig_hup.lo unix/sig_hup.o: ltcompile unix/sig_hup.c include/bglibs/sig.h
	./ltcompile unix/sig_hup.c

unix/sig_int.lo unix/sig_int.o: ltcompile unix/sig_int.c include/bglibs/sig.h
	./ltcompile unix/sig_int.c

unix/sig_misc.lo unix/sig_misc.o: ltcompile unix/sig_misc.c include/bglibs/sig.h
	./ltcompile unix/sig_misc.c

unix/sig_pipe.lo unix/sig_pipe.o: ltcompile unix/sig_pipe.c include/bglibs/sig.h
	./ltcompile unix/sig_pipe.c

unix/sig_quit.lo unix/sig_quit.o: ltcompile unix/sig_quit.c include/bglibs/sig.h
	./ltcompile unix/sig_quit.c

unix/sig_suspend.lo unix/sig_suspend.o: ltcompile unix/sig_suspend.c include/bglibs/sig.h sysdeps.h
	./ltcompile unix/sig_suspend.c

unix/sig_term.lo unix/sig_term.o: ltcompile unix/sig_term.c include/bglibs/sig.h
	./ltcompile unix/sig_term.c

unix/signalfd.lo unix/signalfd.o: ltcompile unix/signalfd.c sysdeps.h include/bglibs/unix.h include/bglibs/sig.h include/bglibs/signalfd.h
	./ltcompile unix/signalfd.c

unix/trigger_pull.lo unix/trigger_pull.o: ltcompile unix/trigger_pull.c sysdeps.h include/bglibs/trigger.h sysdeps.h
	./ltcompile unix/trigger_pull.c

unix/trigger_set.lo unix/trigger_set.o: ltcompile unix/trigger_set.c sysdeps.h include/bglibs/trigger.h sysdeps.h
	./ltcompile unix/trigger_set.c

vmailmgr/req_arg.lo vmailmgr/req_arg.o: ltcompile vmailmgr/req_arg.c vmailmgr/client.h include/bglibs/bglibs/str.h sysdeps.h
	./ltcompile vmailmgr/req_arg.c

vmailmgr/req_init.lo vmailmgr/req_init.o: ltcompile vmailmgr/req_init.c vmailmgr/client.h include/bglibs/bglibs/str.h sysdeps.h
	./ltcompile vmailmgr/req_init.c

vmailmgr/req_write.lo vmailmgr/req_write.o: ltcompile vmailmgr/req_write.c vmailmgr/client.h include/bglibs/bglibs/str.h sysdeps.h
	./ltcompile vmailmgr/req_write.c

vmailmgr/resp_read.lo vmailmgr/resp_read.o: ltcompile vmailmgr/resp_read.c vmailmgr/client.h include/bglibs/bglibs/str.h sysdeps.h
	./ltcompile vmailmgr/resp_read.c

vmailmgr/vpwentry_export.lo vmailmgr/vpwentry_export.o: ltcompile vmailmgr/vpwentry_export.c vmailmgr/vpwentry.h include/bglibs/bglibs/str.h sysdeps.h include/bglibs/str.h sysdeps.h
	./ltcompile vmailmgr/vpwentry_export.c

vmailmgr/vpwentry_free.lo vmailmgr/vpwentry_free.o: ltcompile vmailmgr/vpwentry_free.c vmailmgr/vpwentry.h include/bglibs/bglibs/str.h sysdeps.h
	./ltcompile vmailmgr/vpwentry_free.c

vmailmgr/vpwentry_import.lo vmailmgr/vpwentry_import.o: ltcompile vmailmgr/vpwentry_import.c systime.h include/bglibs/misc.h sysdeps.h vmailmgr/vpwentry.h include/bglibs/bglibs/str.h sysdeps.h
	./ltcompile vmailmgr/vpwentry_import.c

