aboutsummaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2009-12-21 18:59:32 +0000
committerMike Buland <eichlan@xagasoft.com>2009-12-21 18:59:32 +0000
commit8ebc3f17961ef6a0cf708cc6bdca948d77817ee0 (patch)
treebab53e5e249dc4eab4904a5a4519b372245eee53 /default.bld
parent0bcd7aeb48055e74203332851ce51ea55335d135 (diff)
downloadbuild-8ebc3f17961ef6a0cf708cc6bdca948d77817ee0.tar.gz
build-8ebc3f17961ef6a0cf708cc6bdca948d77817ee0.tar.bz2
build-8ebc3f17961ef6a0cf708cc6bdca948d77817ee0.tar.xz
build-8ebc3f17961ef6a0cf708cc6bdca948d77817ee0.zip
Wow, it's much more general now, I like that.
Diffstat (limited to '')
-rw-r--r--default.bld16
1 files changed, 3 insertions, 13 deletions
diff --git a/default.bld b/default.bld
index de31b78..19b66bf 100644
--- a/default.bld
+++ b/default.bld
@@ -5,6 +5,8 @@
5 5
6CXXFLAGS += "-ggdb -W -Wall"; 6CXXFLAGS += "-ggdb -W -Wall";
7 7
8CC = CXX; // We actually want to use c++ to compile our c files.
9
8action "default" 10action "default"
9{ 11{
10 build: "build"; 12 build: "build";
@@ -49,6 +51,7 @@ target "build"
49 rule "exe"; 51 rule "exe";
50 LDFLAGS += "-Llibbu++ -lbu++ -ldl"; 52 LDFLAGS += "-Llibbu++ -lbu++ -ldl";
51 CXXFLAGS += "-Ilibbu++"; 53 CXXFLAGS += "-Ilibbu++";
54 CFLAGS = CXXFLAGS;
52 tag "tools"; 55 tag "tools";
53} 56}
54 57
@@ -74,19 +77,6 @@ target "build-r$(svnversion "-n").tar.bz2"
74 tag "pkg"; 77 tag "pkg";
75} 78}
76 79
77// We want to override the c rule, and just use c++ for it
78rule "c"
79{
80 input "*.c";
81 output replace(".c", ".o");
82 tag "auto-source";
83 requires getMakeDeps("g++ ${CXXFLAGS} -M ${INPUT}");
84 profile "build"
85 {
86 execute("g++ ${CXXFLAGS} -c -o ${OUTPUT} ${INPUT}");
87 }
88}
89
90rule "tarball" 80rule "tarball"
91{ 81{
92 input matches("*.cpp", "*.h", "*.c", "*.y", "*.l", "*.conf", "Doxyfile", 82 input matches("*.cpp", "*.h", "*.c", "*.y", "*.l", "*.conf", "Doxyfile",