diff options
author | Mike Buland <eichlan@xagasoft.com> | 2007-07-01 16:33:44 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2007-07-01 16:33:44 +0000 |
commit | bd5542900c087827df2a12cd08bb7e81aba57344 (patch) | |
tree | 7398cf839863f159f34f3a8794de581595dcb553 /build.conf | |
parent | 794a87fc3a1583cbd7b4e0287e2c3152fc58edf9 (diff) | |
download | build-bd5542900c087827df2a12cd08bb7e81aba57344.tar.gz build-bd5542900c087827df2a12cd08bb7e81aba57344.tar.bz2 build-bd5542900c087827df2a12cd08bb7e81aba57344.tar.xz build-bd5542900c087827df2a12cd08bb7e81aba57344.zip |
Added c++filt, but in the wrong place, next commit it'll build.
Diffstat (limited to 'build.conf')
-rw-r--r-- | build.conf | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -1,19 +1,23 @@ | |||
1 | # build.conf for build, kind of whacky, eh? | 1 | # build.conf for build, kind of whacky, eh? |
2 | 2 | ||
3 | default action: check "build" | 3 | default action: check targets() |
4 | "clean" action: clean targets() | ||
5 | "rebuild" action: clean "build", check "build" | ||
6 | 4 | ||
7 | set "CXXFLAGS" += "-ggdb" | 5 | set "CXXFLAGS" += "-ggdb" |
8 | set "LDFLAGS" += "-Llibbu++ -lbu++ -ldl" | ||
9 | 6 | ||
10 | "build": | 7 | "build": |
11 | rule "exe", | 8 | rule "exe", |
12 | target file, | 9 | target file, |
13 | requires "libbu++/libbu++.a", | 10 | requires "libbu++/libbu++.a", |
11 | set "LDFLAGS" += "-Llibbu++ -lbu++ -ldl", | ||
14 | set "CXXFLAGS" += "-Ilibbu++/src", | 12 | set "CXXFLAGS" += "-Ilibbu++/src", |
13 | set "FLEXFLAGS" = "--bison-bridge --bison-locations", | ||
15 | input filesIn("src") filter regexp(".*\\.(cpp|y|l)$") | 14 | input filesIn("src") filter regexp(".*\\.(cpp|y|l)$") |
16 | 15 | ||
16 | "c++filt": | ||
17 | rule "exe", | ||
18 | target file, | ||
19 | input filesIn("c++filt") filter regexp(".*\\.(cpp|y|l)$") | ||
20 | |||
17 | rule "exe": | 21 | rule "exe": |
18 | matches regexp("(.*)\\.o$"), | 22 | matches regexp("(.*)\\.o$"), |
19 | aggregate toString(" "), | 23 | aggregate toString(" "), |
@@ -33,5 +37,5 @@ rule "bison": | |||
33 | rule "flex": | 37 | rule "flex": |
34 | matches regexp("(.*)\\.l$"), | 38 | matches regexp("(.*)\\.l$"), |
35 | produces "{re:1}.yy.c", | 39 | produces "{re:1}.yy.c", |
36 | perform command("flex --bison-bridge --bison-locations -o {target} {match}") | 40 | perform command("flex {FLEXFLAGS} -o {target} {match}") |
37 | 41 | ||