github.com/maruel/nin@v0.0.0-20220112143044-f35891e3ce7e/misc/oss-fuzz/sample_ninja_build (about)

     1  # build.ninja
     2  cc     = clang
     3  cflags = -Weverything
     4  
     5  rule compile
     6    command = $cc $cflags -c $in -o $out
     7  
     8  rule link
     9    command = $cc $in -o $out
    10  
    11  build hello.o: compile hello.c
    12  build hello: link hello.o
    13  
    14  default hello