summaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--default.bld29
1 files changed, 27 insertions, 2 deletions
diff --git a/default.bld b/default.bld
index be99b23..f2fb0cc 100644
--- a/default.bld
+++ b/default.bld
@@ -3,7 +3,32 @@ target "libneural.a"
3 rule "lib"; 3 rule "lib";
4 input files("src/*.cpp"); 4 input files("src/*.cpp");
5 5
6 CXXFLAGS += "-I."; 6 CXXFLAGS += "-I. -ggdb";
7 LDCONFIG += "-lbu++"; 7}
8
9for src in files("src/tests/*.cpp") do
10{
11 target src.replace("src/","").replace(".cpp","")
12 {
13 rule "exe";
14 input src;
15 requires "libneural.a";
16
17 CXXFLAGS += "-I. -ggdb";
18 LDFLAGS += "-L. -lneural -lbu++ -ggdb";
19 }
20}
21
22for dir in dirs("src/tests/*") do
23{
24 target dir.replace("src/","")
25 {
26 rule "exe";
27 input files( dir + "/*.cpp");
28 requires "libneural.a";
29
30 CXXFLAGS += "-I. -ggdb";
31 LDFLAGS += "-L. -lneural -lbu++ -lpthread -ggdb";
32 }
8} 33}
9 34