aboutsummaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
Diffstat (limited to 'build.conf')
-rw-r--r--build.conf11
1 files changed, 6 insertions, 5 deletions
diff --git a/build.conf b/build.conf
index 640fbff..8f06532 100644
--- a/build.conf
+++ b/build.conf
@@ -4,7 +4,8 @@ default action: check "build"
4"clean" action: clean "build" 4"clean" action: clean "build"
5"rebuild" action: clean "build", check "build" 5"rebuild" action: clean "build", check "build"
6 6
7set "CXXFLAGS" += "-ggdb" 7set "CXXFLAGS" += "-ggdb -Ilibbu++/src"
8set "LDFLAGS" += "-Llibbu++ -lbu++ -ldl"
8 9
9"build": 10"build":
10 rule "exe", 11 rule "exe",
@@ -15,13 +16,13 @@ set "CXXFLAGS" += "-ggdb"
15 16
16rule "exe": 17rule "exe":
17 matches regexp("(.*)\\.o$"), 18 matches regexp("(.*)\\.o$"),
18 input filter toString(), 19 aggregate toString(" "),
19 perform command("g++ {LDFLAGS} -o {target} {match}") 20 perform command("g++ -o {target} {match} {LDFLAGS}")
20 21
21rule "cpp": 22rule "cpp":
22 matches regexp("(.*)\\.cpp$"), 23 matches regexp("(.*)\\.(cpp|c)$"),
23 produces "{re:1}.o", 24 produces "{re:1}.o",
24 requires commandToList("g++ -M {match}", "make"), 25 requires commandToList("g++ -M {CXXFLAGS} {match}", "make"),
25 perform command("g++ {CXXFLAGS} -c -o {target} {match}") 26 perform command("g++ {CXXFLAGS} -c -o {target} {match}")
26 27
27rule "bison": 28rule "bison":