aboutsummaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
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}"