mkbuild

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

commit 14568c3a8c401792ab153178fef148cb74530a1b
parent b2a006da0ec5f05e3b2eae71051bffaec9e2cc21
Author: Daniel Bainton <dpb@driftaway.org>
Date:   Wed May 21 11:53:12 +0300

Add support for binary specific LDFLAGS

Diffstat:
mk.build | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mk.build b/mk.build @@ -1,11 +1,11 @@ -all:QV: $DEPS $TARG $BIN $LIB +all:QV: $DEPS $TARG $LIB $BIN TARG = `{ if test "$TARG" != ""; then echo $TARG; else echo "NOTARG"; fi } BIN = `{ if test "$BIN" != ""; then echo $BIN; else echo "NOBIN"; fi } 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 $BIN; do tobj=$(echo $i|tr '.' '_'); printf "$i:Q: \$"$tobj"_OBJ\n\techo LD \$target\n\t\$LD \$prereq \$LDFLAGS \$DEPS_LDFLAGS \$LOCAL_LDFLAGS \$"$tobj"_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