diff options
Diffstat (limited to '')
-rw-r--r-- | build.conf | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -15,7 +15,7 @@ set "CXXFLAGS" += "-ggdb -Wall" | |||
15 | set "CXXFLAGS" += "-pg" | 15 | set "CXXFLAGS" += "-pg" |
16 | set "LDFLAGS" += "-pg" | 16 | set "LDFLAGS" += "-pg" |
17 | 17 | ||
18 | filesIn("src") filter regexp("^src/(.*)\\.h$", "src/bu/{re:1}.h"): | 18 | filesIn("src") filter regexp("^src/(.*)\\.h$", "bu/{re:1}.h"): |
19 | rule "hln", | 19 | rule "hln", |
20 | group "lnhdrs", | 20 | group "lnhdrs", |
21 | target file, | 21 | target file, |
@@ -24,7 +24,7 @@ filesIn("src") filter regexp("^src/(.*)\\.h$", "src/bu/{re:1}.h"): | |||
24 | "libbu++.a": | 24 | "libbu++.a": |
25 | rule "lib", | 25 | rule "lib", |
26 | target file, | 26 | target file, |
27 | set "CXXFLAGS" += "-Isrc -fPIC", | 27 | set "CXXFLAGS" += "-I. -fPIC", |
28 | input filesIn("src") filter regexp("^.*\\.cpp$") | 28 | input filesIn("src") filter regexp("^.*\\.cpp$") |
29 | 29 | ||
30 | directoriesIn("src/tests","tests/"): | 30 | directoriesIn("src/tests","tests/"): |
@@ -32,7 +32,7 @@ directoriesIn("src/tests","tests/"): | |||
32 | target file, | 32 | target file, |
33 | group "tests", | 33 | group "tests", |
34 | requires "libbu++.a", | 34 | requires "libbu++.a", |
35 | set "CXXFLAGS" += "-Isrc", | 35 | set "CXXFLAGS" += "-I.", |
36 | set "LDFLAGS" += "-L. -lbu++", | 36 | set "LDFLAGS" += "-L. -lbu++", |
37 | input filesIn("{fulldir}") filter regexp("^.*\\.cpp$") | 37 | input filesIn("{fulldir}") filter regexp("^.*\\.cpp$") |
38 | 38 | ||
@@ -41,7 +41,7 @@ filesIn("src/tests") filter regexp("^src/tests/(.*)\\.cpp$", "tests/{re:1}"): | |||
41 | target file, | 41 | target file, |
42 | group "tests", | 42 | group "tests", |
43 | requires "libbu++.a", | 43 | requires "libbu++.a", |
44 | set "CXXFLAGS" += "-Isrc", | 44 | set "CXXFLAGS" += "-I.", |
45 | set "LDFLAGS" += "-L. -lbu++", | 45 | set "LDFLAGS" += "-L. -lbu++", |
46 | input "src/{target}.cpp" | 46 | input "src/{target}.cpp" |
47 | 47 | ||
@@ -54,7 +54,7 @@ filesIn("src/unit") filter regexp("^src/unit/(.*)\\.cpp$", "unit/{re:1}"): | |||
54 | group "tests", | 54 | group "tests", |
55 | group "unit", | 55 | group "unit", |
56 | requires "libbu++.a", | 56 | requires "libbu++.a", |
57 | set "CXXFLAGS" += "-Isrc", | 57 | set "CXXFLAGS" += "-I.", |
58 | set "LDFLAGS" += "-L. -lbu++", | 58 | set "LDFLAGS" += "-L. -lbu++", |
59 | input "src/{target}.cpp" | 59 | input "src/{target}.cpp" |
60 | 60 | ||
@@ -80,6 +80,6 @@ rule "cpp": | |||
80 | 80 | ||
81 | rule "hln": | 81 | rule "hln": |
82 | matches regexp("src/(.*)\\.h"), | 82 | matches regexp("src/(.*)\\.h"), |
83 | produces "src/bu/{re:1}.h", | 83 | produces "bu/{re:1}.h", |
84 | perform command("ln -s ../{re:1}.h {target}") | 84 | perform command("ln -s ../src/{re:1}.h {target}") |
85 | 85 | ||