diff options
Diffstat (limited to '')
-rw-r--r-- | build.conf | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/build.conf b/build.conf new file mode 100644 index 0000000..b4792fb --- /dev/null +++ b/build.conf | |||
@@ -0,0 +1,22 @@ | |||
1 | # This is a build file for build | ||
2 | |||
3 | default action: check build | ||
4 | |||
5 | create file build from files in src using rule exe | ||
6 | |||
7 | set CXXFLAGS += "-Ilibbu++/src" | ||
8 | set LDFLAGS += "-Llibbu++ -lbu++" | ||
9 | |||
10 | /(.*)\.o/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" | ||
11 | |||
12 | rule exe matches all /(.*)\.o/ perform command ... | ||
13 | "g++ {LDFLAGS} -o {target} {matches}" | ||
14 | |||
15 | rule cpp matches one /(.*)\.c(pp)?/ produces {1}.o perform command ... | ||
16 | "g++ {CXXFLAGS} -o {target} {match}" | ||
17 | |||
18 | rule bison matches one /(.*)\.y/ produces {1}.tab.c, {1}.tab.h perform ... | ||
19 | command "bison {match}" | ||
20 | |||
21 | rule flex matches one /(.*)\.l/ produces {1}.yy.c perform ... | ||
22 | command "flex --bison-bridge --bison-locations -o {target} {match}" | ||