conf.ninja (600B)
1 # conf.ninja 2 ninja_required_version = 1.8 3 4 CXX = $${CXX:-"g++"} 5 CC = $${CC:-"gcc"} 6 LD = $${LD:-"ld"} 7 AR = $${AR:-"ar"} 8 9 LDFLAGS = $${LDFLAGS:-""} 10 11 rule cc 12 description = compiling $in toward $out 13 depfile = $out.d 14 deps = gcc 15 command = $CC $CCFLAGS -MD -MF $out.d -c $in -o $out 16 17 rule cxx 18 description = compiling $in toward $out 19 depfile = $out.d 20 deps = gcc 21 command = $CXX $CXXFLAGS -MD -MF $out.d -c $in -o $out 22 23 rule ld 24 description = building $in to $out 25 command = $LD $LDFLAGS $in -o $out 26 27 rule ar 28 description = building $in to $out 29 command = $AR rc $ARFLAGS $out $in