diff options
Diffstat (limited to 'build.conf')
-rw-r--r-- | build.conf | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -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 | ||
7 | set "CXXFLAGS" += "-ggdb" | 7 | set "CXXFLAGS" += "-ggdb -Ilibbu++/src" |
8 | set "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 | ||
16 | rule "exe": | 17 | rule "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 | ||
21 | rule "cpp": | 22 | rule "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 | ||
27 | rule "bison": | 28 | rule "bison": |