diff options
Diffstat (limited to 'default.bld')
-rw-r--r-- | default.bld | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/default.bld b/default.bld new file mode 100644 index 0000000..296453f --- /dev/null +++ b/default.bld | |||
@@ -0,0 +1,24 @@ | |||
1 | |||
2 | CC="g++"; | ||
3 | target "stage" | ||
4 | { | ||
5 | rule "exe"; | ||
6 | input files("src/*.y", "src/*.l", "src/*.cpp"); | ||
7 | |||
8 | FLEXFLAGS="-osrc/parser.yy.c"; | ||
9 | BISONFLAGS="-d"; | ||
10 | } | ||
11 | |||
12 | /* | ||
13 | rule "bison" | ||
14 | { | ||
15 | input "*.y"; | ||
16 | output [INPUT.regex("\\.y$", ".tab.c"), INPUT.regex("\\.y$", ".tab.h")]; | ||
17 | profile "build" | ||
18 | { | ||
19 | DIR=INPUT.dirName(); | ||
20 | FILE=INPUT.fileName(); | ||
21 | execute("cd ${DIR}; bison -d ${FILE}"); | ||
22 | } | ||
23 | } | ||
24 | */ | ||