aboutsummaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
Diffstat (limited to 'default.bld')
-rw-r--r--default.bld16
1 files changed, 15 insertions, 1 deletions
diff --git a/default.bld b/default.bld
index 9391c68..3b6c213 100644
--- a/default.bld
+++ b/default.bld
@@ -35,6 +35,11 @@ action "unit"
35 build: targets("unit tests"); 35 build: targets("unit tests");
36} 36}
37 37
38action "myriadfs"
39{
40 build: "myriadfs";
41}
42
38target ["src/autoconfig.h", "src/version.h"] 43target ["src/autoconfig.h", "src/version.h"]
39{ 44{
40 input "autoconfig"; 45 input "autoconfig";
@@ -105,13 +110,22 @@ target "viewcsv"
105 LDFLAGS += "-lncurses"; 110 LDFLAGS += "-lncurses";
106} 111}
107 112
113target files("src/extra/*.cpp").replace("src/extra/","").replace(".cpp","")
114{
115 input "src/extra/${OUTPUT}.cpp";
116 rule "exe";
117 requires "libbu++.a";
118 CXXFLAGS += "-I.";
119 LDFLAGS += "-L. -lbu++";
120}
121
108// 122//
109// This shouldn't be. Basically, if you set a property on a top level target 123// This shouldn't be. Basically, if you set a property on a top level target
110// that has children it seems like the items should apply to the children. 124// that has children it seems like the items should apply to the children.
111// I'm honestly not 100% sure what the policy should be yet, but this seems like 125// I'm honestly not 100% sure what the policy should be yet, but this seems like
112// I shouldn't have to do it this way. 126// I shouldn't have to do it this way.
113// 127//
114target "src/tools/myriadfs.o" 128target "src/extra/myriadfs.o"
115{ 129{
116 CXXFLAGS += "-D_FILE_OFFSET_BITS=64"; 130 CXXFLAGS += "-D_FILE_OFFSET_BITS=64";
117} 131}