aboutsummaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-08-06 19:43:57 +0000
committerMike Buland <eichlan@xagasoft.com>2006-08-06 19:43:57 +0000
commitb7a415ec0e358967fc39c046fb72f29e227e7104 (patch)
tree3197c3b4f57f02d10649b09ef821982cb00a1bb6 /build.conf
parent7ef611a2b62c760065705fa8b66b5ff1edbb8eee (diff)
downloadlibbu++-b7a415ec0e358967fc39c046fb72f29e227e7104.tar.gz
libbu++-b7a415ec0e358967fc39c046fb72f29e227e7104.tar.bz2
libbu++-b7a415ec0e358967fc39c046fb72f29e227e7104.tar.xz
libbu++-b7a415ec0e358967fc39c046fb72f29e227e7104.zip
It builds with build again, and even the tests now. woo!
Diffstat (limited to 'build.conf')
-rw-r--r--build.conf17
1 files changed, 14 insertions, 3 deletions
diff --git a/build.conf b/build.conf
index f5626cf..a65878d 100644
--- a/build.conf
+++ b/build.conf
@@ -1,18 +1,29 @@
1# This is a build file for build 1# This is a build file for libbu++
2 2
3default action: check libbu++.a 3default action: check libbu++.a
4"clean" action: clean libbu++.a 4"tests" action: check /tests\/.*/
5"clean" action: clean /.*/
6"all" action: check /.*/
5 7
6create file libbu++.a from files in src using rule lib 8create file libbu++.a from files in src using rule lib
7 9
8set CXXFLAGS += "-ggdb" 10for directories matching /src\/test\/(.*)/ in src/test ...
11 create file "tests/{re:1}" from files in "{match}" using rule exe
9 12
13set CXXFLAGS += "-ggdb"
10set CXXFLAGS += "-Isrc -fPIC" 14set CXXFLAGS += "-Isrc -fPIC"
11 15
16for targets matching /tests\/.*/ set LDFLAGS += "-L. -lbu++"
17for testes/plugin set LDFLAGS += "-ldl"
18
12/(.*)\.o$/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" 19/(.*)\.o$/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*"
20/tests\/.*/ requires libbu++.a
13 21
14rule lib matches all /(.*)\.o$/ perform command ... 22rule lib matches all /(.*)\.o$/ perform command ...
15 "ar cr {target} {match}" 23 "ar cr {target} {match}"
16 24
17rule cpp matches one /(.*)\.c(pp)?$/ produces "{re:1}.o" perform command ... 25rule cpp matches one /(.*)\.c(pp)?$/ produces "{re:1}.o" perform command ...
18 "g++ {CXXFLAGS} -c -o {target} {match}" 26 "g++ {CXXFLAGS} -c -o {target} {match}"
27
28rule exe matches all /(.*)\.o$/ perform command ...
29 "g++ -o {target} {match} {LDFLAGS}"