summaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-20 19:26:03 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-20 19:26:03 +0000
commitc6034cba5444143d3c7661963782b5a4751f2ff5 (patch)
tree5ba198654b47ee1fa85612a3515de8fedf60d75d /build.conf
parentd2b55560009d2d2d33748706f043030b9159d161 (diff)
downloadlibbu++-c6034cba5444143d3c7661963782b5a4751f2ff5.tar.gz
libbu++-c6034cba5444143d3c7661963782b5a4751f2ff5.tar.bz2
libbu++-c6034cba5444143d3c7661963782b5a4751f2ff5.tar.xz
libbu++-c6034cba5444143d3c7661963782b5a4751f2ff5.zip
new build.conf file
Diffstat (limited to '')
-rw-r--r--build.conf47
1 files changed, 21 insertions, 26 deletions
diff --git a/build.conf b/build.conf
index 3da3df5..48def8a 100644
--- a/build.conf
+++ b/build.conf
@@ -1,29 +1,24 @@
1# This is a build file for libbu++ 1# This is a build file for libbu++
2 2
3default action: check "libbu++.a" 3default action: check "libbu++.a"
4"tests" action: check /tests\/.*/ 4"clean" action: clean "libbu++.a"
5"clean" action: clean /.*/ 5"all" action: check targets()
6"all" action: check /.*/ 6
7 7set "CXXFLAGS" += "-ggdb"
8create file "libbu++.a" from files in src using rule lib 8
9 9"libbu++.a":
10for directories matching /src\/test\/(.*)/ in src/test ... 10 rule "lib",
11 create file "tests/{re:1}" from files in "{match}" using rule exe 11 target file,
12 12 set "CXXFLAGS" += "-Isrc -fPIC",
13set CXXFLAGS += "-ggdb" 13 input filesIn("src") filter regexp("^.*\\.cpp$")
14set CXXFLAGS += "-Isrc -fPIC" 14
15 15rule "lib":
16for targets matching /tests\/.*/ set LDFLAGS += "-L. -lbu++" 16 matches regexp("(.*)\\.o$"),
17for testes/plugin set LDFLAGS += "-ldl" 17 aggregate toString(" "),
18 18 perform command("ar cr {target} {match}")
19/(.*)\.o$/ requires from command "g++ {CXXFLAGS} -M {re:1}.c*" 19
20/tests\/.*/ requires "libbu++.a" 20rule "cpp":
21 21 matches regexp("(.*)\\.cpp$"),
22rule lib matches all /(.*)\.o$/ perform command ... 22 produces "{re:1}.o",
23 "ar cr {target} {match}" 23 requires commandToList("g++ -M {CXXFLAGS} {match}", "make"),
24 24 perform command("g++ {CXXFLAGS} -c -o {target} {match}")
25rule cpp matches one /(.*)\.c(pp)?$/ produces "{re:1}.o" perform command ...
26 "g++ {CXXFLAGS} -c -o {target} {match}"
27
28rule exe matches all /(.*)\.o$/ perform command ...
29 "g++ -o {target} {match} {LDFLAGS}"