diff options
author | Evan Martin <martine@danga.com> | 2011-01-08 23:45:56 (GMT) |
---|---|---|
committer | Evan Martin <martine@danga.com> | 2011-01-08 23:45:56 (GMT) |
commit | e8c29ba2d404f1e6487cd1da24e6fc9f56d68a7e (patch) | |
tree | 44d104b0d3dabcff1a5f5003bed51b7c541c4ed8 | |
parent | 3446e3407c5da628b487e31fcfee2fb4fa2bd52c (diff) | |
download | Ninja-e8c29ba2d404f1e6487cd1da24e6fc9f56d68a7e.zip Ninja-e8c29ba2d404f1e6487cd1da24e6fc9f56d68a7e.tar.gz Ninja-e8c29ba2d404f1e6487cd1da24e6fc9f56d68a7e.tar.bz2 |
build file cleanups
-rw-r--r-- | build.ninja | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/build.ninja b/build.ninja index 7278cb6..406d561 100644 --- a/build.ninja +++ b/build.ninja @@ -1,10 +1,9 @@ # This file is used to build ninja itself, but it also serves as a # documented example. +# Most variables aren't magic at all; it's up to the rules to make use +# of them. builddir = build - -# Most other variables, like cflags, aren't magic at all; it's up to -# the rules to make use of them. cxx = g++ #cxx = /home/evanm/projects/src/llvm/Release+Asserts/bin/clang++ cflags = -g -Wall -Wno-deprecated -fno-exceptions -fvisibility=hidden -pipe @@ -18,12 +17,15 @@ ldflags = -g -rdynamic rule cxx depfile = $out.d command = $cxx -MMD -MF $out.d $cflags -c $in -o $out + description = CC $out rule ar command = ar crsT $out $in + description = AR $out rule link command = $cxx $ldflags -o $out $in + description = LINK $out # These build rules build the ".o" files from the ".cc" files, # build "ninja.a" by linking the builddir's "ninja.o", @@ -65,6 +67,7 @@ build graph.png: gengraph $builddir/graph.dot rule asciidoc command = asciidoc -a toc $in + description = ASCIIDOC $in build manual.html: asciidoc manual.asciidoc build doc: phony | manual.html |