aboutsummaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--build.conf7
1 files changed, 3 insertions, 4 deletions
diff --git a/build.conf b/build.conf
index 1d7c6a2..b24d7d0 100644
--- a/build.conf
+++ b/build.conf
@@ -1,14 +1,13 @@
1# This is a build file for build 1# This is a build file for build
2 2
3default action: check build 3default action: check build
4"clean" action: clean build
4 5
5create file build from files in src using rule exe 6create file build from files in src using rule exe
6 7
7set CXXFLAGS += "-Ilibbu++/src" 8set CXXFLAGS += "-Ilibbu++/src"
8set LDFLAGS += "-Llibbu++ -lbu++" 9set LDFLAGS += "-Llibbu++ -lbu++"
9 10
10for build set LDFLAGS += -lreadline
11
12build requires src/libbu++/libbu++.a 11build 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 ...
19rule cpp matches one /(.*)\.c(pp)?$/ produces "{re:1}.o" perform command ... 18rule 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
22rule bison matches one /(.*)\.y$/ produces "{re:1}.tab.c", "{re:1}.tab.h" ... 21rule 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
25rule flex matches one /(.*)\.l$/ produces "{re:1}.yy.c" perform ... 24rule 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}"