aboutsummaryrefslogtreecommitdiffstats
path: root/mk
diff options
context:
space:
mode:
Diffstat (limited to 'mk')
-rw-r--r--mk/build.mk14
1 files changed, 14 insertions, 0 deletions
diff --git a/mk/build.mk b/mk/build.mk
index c74d93c..8e3ef62 100644
--- a/mk/build.mk
+++ b/mk/build.mk
@@ -10,6 +10,9 @@ libraries: bin/libmdsserver.so
.PHONY: servers
servers: $(foreach S,$(SERVERS),bin/$(S))
+.PHONY: tools
+tools: $(foreach T,$(TOOLS),bin/$(T))
+
# Link large servers.
@@ -57,6 +60,17 @@ endif
$(CC) $(C_FLAGS) -o $@ $(LDS) $(LDS_mds) $<
+# Link utilies that do not use mds-base.
+
+ifneq ($(LIBMDSSERVER_IS_INSTALLED),y)
+bin/mds-kbdc: obj/mds-kbdc.o bin/libmdsserver.so $(SEDED)
+else
+bin/mds-kbdc: obj/mds-kbdc.o $(SEDED)
+endif
+ mkdir -p $(shell dirname $@)
+ $(CC) $(C_FLAGS) -o $@ $(LDS) $(LDS_mds) $<
+
+
# Build object files for kernel/servers.
ifneq ($(LIBMDSSERVER_IS_INSTALLED),y)