let BUILDFIRST just build first, using the same trick guenther@ did in
authorespie <espie@openbsd.org>
Tue, 4 Jul 2017 00:59:11 +0000 (00:59 +0000)
committerespie <espie@openbsd.org>
Tue, 4 Jul 2017 00:59:11 +0000 (00:59 +0000)
commit52a0f10607b46afbff06e71b025e0b4f089fc92b
tree6acf415a375c8af570ca7e92219693104e09de08
parentc569e7755ace1e95a2130ae08fdaf43800ff9617
let BUILDFIRST just build first, using the same trick guenther@ did in
kernel Makefiles (thank you!), also add lex and yacc generated files to
that list.

Let those lex/yacc variables be defined for bsd.lib.mk as well.

Complete the SRCS -> OBJS hints with the library dependency

This should fix most dependency problems.

Commit now, so that people can check if something else is still amiss.
krw@ agrees
share/mk/bsd.dep.mk
share/mk/bsd.lib.mk
share/mk/bsd.prog.mk