aboutsummaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
Diffstat (limited to 'build.conf')
-rw-r--r--build.conf16
1 files changed, 15 insertions, 1 deletions
diff --git a/build.conf b/build.conf
index 9094c7a..5117d8d 100644
--- a/build.conf
+++ b/build.conf
@@ -5,7 +5,7 @@
5# This file is part of the libbu++ library and is released under the 5# This file is part of the libbu++ library and is released under the
6# terms of the license contained in the file LICENSE. 6# terms of the license contained in the file LICENSE.
7 7
8default action: check group "lnhdrs", check "libbu++.a", check group "tools" 8default action: check group "lnhdrs", check "libbu++.a", check "libbu++.so", check group "tools"
9"tests" action: check group "lnhdrs", check group "tests" 9"tests" action: check group "lnhdrs", check group "tests"
10"all" action: check group "lnhdrs", check targets() 10"all" action: check group "lnhdrs", check targets()
11 11
@@ -27,6 +27,14 @@ filesIn("src") filter regexp("^src/(.*)\\.h$", "bu/{re:1}.h"):
27 set "CXXFLAGS" += "-I. -fPIC", 27 set "CXXFLAGS" += "-I. -fPIC",
28 input filesIn("src") filter regexp("^.*\\.cpp$") 28 input filesIn("src") filter regexp("^.*\\.cpp$")
29 29
30"libbu++.so":
31 rule "so",
32 target file,
33 set "CXXFLAGS" += "-I. -fPIC",
34 set "LDFLAGS" += "-lpthread -lbz2",
35 input filesIn("src") filter regexp("^.*\\.cpp$")
36
37
30directoriesIn("src/tests","tests/"): 38directoriesIn("src/tests","tests/"):
31 rule "exe", 39 rule "exe",
32 target file, 40 target file,
@@ -82,6 +90,12 @@ rule "lib":
82 aggregate toString(" "), 90 aggregate toString(" "),
83 perform command("ar cr {target} {match}") 91 perform command("ar cr {target} {match}")
84 92
93rule "so":
94 matches regexp("(.*)\\.o$"),
95 aggregate toString(" "),
96 perform command("g++ -shared -o {target} {match} {LDFLAGS}")
97# perform command("ld -G -o {target} {match}")
98
85rule "cpp": 99rule "cpp":
86 matches regexp("(.*)\\.cpp$"), 100 matches regexp("(.*)\\.cpp$"),
87 produces "{re:1}.o", 101 produces "{re:1}.o",