CC="g++"; target "stage" { rule "exe"; input files("src/*.y", "src/*.l", "src/*.cpp"); CXXFLAGS="-ggdb"; CFLAGS="-ggdb"; FLEXFLAGS="-osrc/parser.yy.c --header-file=src/parser.yy.h"; BISONFLAGS="-d"; LDFLAGS += "-lbu++"; } /* rule "bison" { input "*.y"; output [INPUT.regex("\\.y$", ".tab.c"), INPUT.regex("\\.y$", ".tab.h")]; profile "build" { DIR=INPUT.dirName(); FILE=INPUT.fileName(); execute("cd ${DIR}; bison -d ${FILE}"); } } */