diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-09-12 00:22:33 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-12 00:22:33 +0000 |
commit | d19ada0aa88aba1c7b439035c0028440ac860ec3 (patch) | |
tree | fb8cde98650aa66fcdb736b045f541eac1b8b93a /build.conf | |
parent | 97d529fac68105f0d3d34c699a4ac10489c705e8 (diff) | |
download | build-d19ada0aa88aba1c7b439035c0028440ac860ec3.tar.gz build-d19ada0aa88aba1c7b439035c0028440ac860ec3.tar.bz2 build-d19ada0aa88aba1c7b439035c0028440ac860ec3.tar.xz build-d19ada0aa88aba1c7b439035c0028440ac860ec3.zip |
Build now builds, it has viewers, and dependancy checking, and everything works.
Now we have to add cleaning, caching, and more viewer hooks / viewers.
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": |