2022-09-25 10:40:12 +00:00
|
|
|
# vim:set tabstop=2 shiftwidth=2 expandtab:
|
2021-02-08 16:07:25 +00:00
|
|
|
|
|
|
|
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
|