Add simple ninja script.

This commit is contained in:
Syoyo Fujita
2015-12-05 12:34:44 +09:00
parent 783b8c4886
commit 85d18ea7cd

16
build.ninja Normal file
View File

@@ -0,0 +1,16 @@
# build.ninja
cc = clang
cxx = clang++
cflags = -Werror -Weverything
cxxflags = -Werror -Weverything
rule compile
command = $cxx $cxxflags -c $in -o $out
rule link
command = $cxx $in -o $out
build test.o: compile test.cc
build test: link test.o
default test