mkbuild

mk based build system
git clone git://git.2f30.org/mkbuild
Log | Files | Refs | LICENSE

commit f64689adcc2d04a0713d14b603764b8cb1340a83
parent 4b1765f259905fd04da343213c8816e7a4f09555
Author: Daniel Bainton <dpb@driftaway.org>
Date:   Wed, 21 May 2014 10:47:04 +0300

Support for separate objects for libraries

Diffstat:
Mmk.build | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/mk.build b/mk.build @@ -6,6 +6,7 @@ LIB = `{ if test "$LIB" != ""; then echo $LIB; else echo "NOLIB"; fi } `{ printf "# Auto-generated file by mk, do not edit\n\n" > .targs.mk } `{ for i in $BIN; do tobj=$(echo $i|tr '.' '_'); printf "$i:Q: \$"$tobj"_OBJ\n\techo LD \$target\n\t\$LD \$prereq \$LDFLAGS \$DEPS_LDFLAGS \$LOCAL_LDFLAGS \$LOCAL_BIN_LDFLAGS -o \$target\n\n" ; done >> .targs.mk } +`{ for i in $LIB; do tobj=$(echo $i|tr '.' '_'); printf "$i: \$"$tobj"_OBJ\n\n" ; done >> .targs.mk } <.targs.mk <$mkbuild/mk.deps