aboutsummaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-12 00:22:33 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-12 00:22:33 +0000
commitd19ada0aa88aba1c7b439035c0028440ac860ec3 (patch)
treefb8cde98650aa66fcdb736b045f541eac1b8b93a /build.conf
parent97d529fac68105f0d3d34c699a4ac10489c705e8 (diff)
downloadbuild-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.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":