runit

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

conf.ninja (685B)


      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 CXXFLAGS = $${CXXFLAGS:-""}
     10 CCFLAGS  = $${CCFLAGS:-""}
     11 #LDFLAGS  = $${LDFLAGS:-""}
     12 #ARFLAGS  = $${ARFLAGS:-""}
     13 
     14 rule cc
     15   description = compiling $in toward $out
     16   depfile = $out.d
     17   deps    = gcc
     18   command = $CC $CCFLAGS -MD -MF $out.d -c $in -o $out
     19 
     20 rule cxx
     21   description = compiling $in toward $out
     22   depfile = $out.d
     23   deps    = gcc
     24   command = $CXX $CXXFLAGS -MD -MF $out.d -c $in -o $out
     25 
     26 rule ld
     27   description = building $in to $out
     28   command = $CC $LDFLAGS $in -o $out
     29 
     30 rule ar
     31   description = building $in to $out
     32   command = $AR rc $ARFLAGS $out $in