aboutsummaryrefslogtreecommitdiffstats
path: root/mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-09-27 23:47:24 +0200
committerMattias Andrée <maandree@operamail.com>2014-09-27 23:47:24 +0200
commit7ef19af760fb8a22c6e993b76fea355891598d3d (patch)
tree7de0af90b0994500dce8274c5975eb58ab1d23d7 /mk
parentstart on the section in the manual for the keyboard layout compiler (diff)
downloadmds-7ef19af760fb8a22c6e993b76fea355891598d3d.tar.gz
mds-7ef19af760fb8a22c6e993b76fea355891598d3d.tar.bz2
mds-7ef19af760fb8a22c6e993b76fea355891598d3d.tar.xz
m + kbd layout compiler: read file
Signed-off-by: Mattias Andrée <maandree@operamail.com>
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)