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