diff options
Diffstat (limited to '')
-rw-r--r-- | default.bld | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/default.bld b/default.bld index 9d94f73..ea83827 100644 --- a/default.bld +++ b/default.bld | |||
@@ -36,13 +36,23 @@ target files("src/*.h").replace("src/", "bu/") | |||
36 | input OUTPUT.replace("bu/","src/"); | 36 | input OUTPUT.replace("bu/","src/"); |
37 | profile "build" | 37 | profile "build" |
38 | { | 38 | { |
39 | execute("ln -s ../${INPUT} ${OUTPUT}"); | 39 | execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}"); |
40 | } | ||
41 | } | ||
42 | target files("src/compat/*.h").replace("src/", "bu/") | ||
43 | { | ||
44 | tag "header-links"; | ||
45 | display "symlink"; | ||
46 | input OUTPUT.replace("bu/","src/"); | ||
47 | profile "build" | ||
48 | { | ||
49 | execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../../${INPUT} ${OUTPUT}"); | ||
40 | } | 50 | } |
41 | } | 51 | } |
42 | 52 | ||
43 | target "libbu++.a" | 53 | target "libbu++.a" |
44 | { | 54 | { |
45 | input files("src/*.cpp"); | 55 | input files("src/*.cpp", "src/compat/*.cpp"); |
46 | rule "lib"; | 56 | rule "lib"; |
47 | CXXFLAGS += "-I. -fPIC"; | 57 | CXXFLAGS += "-I. -fPIC"; |
48 | } | 58 | } |
@@ -120,7 +130,9 @@ target "libbu++-r$(svnversion "-n").tar.bz2" | |||
120 | files("src/tools/*.cpp"), | 130 | files("src/tools/*.cpp"), |
121 | files("src/tools/*.h"), | 131 | files("src/tools/*.h"), |
122 | files("src/unit/*.unit"), | 132 | files("src/unit/*.unit"), |
123 | files("src/doxy/*.dox") | 133 | files("src/doxy/*.dox"), |
134 | files("src/compat/*.cpp"), | ||
135 | files("src/compat/*.h") | ||
124 | ]; | 136 | ]; |
125 | rule "tarball"; | 137 | rule "tarball"; |
126 | tag "pkg"; | 138 | tag "pkg"; |