initial commit
This commit is contained in:
commit
016ed8ff6c
14 changed files with 1932 additions and 0 deletions
test
16
test/build.ninja
Normal file
16
test/build.ninja
Normal file
|
@ -0,0 +1,16 @@
|
|||
# vim: set tabstop=2 shiftwidth=2 expandtab :
|
||||
|
||||
include config.ninja
|
||||
|
||||
rule compile
|
||||
command = $cc $cflags -c -o $out $in
|
||||
|
||||
rule link
|
||||
command = $cc $cflags -o $out $in $ldflags $ldlibs
|
||||
|
||||
build ./test.o: compile ./test.c
|
||||
build $target: link ./test.o
|
||||
|
||||
build all: phony $target
|
||||
|
||||
default all
|
Loading…
Add table
Add a link
Reference in a new issue