summaryrefslogtreecommitdiff
path: root/build/Makefile.plugins.keyboard
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-04 20:19:12 +0000
committerDana Jansens <danakj@orodu.net>2003-04-04 20:19:12 +0000
commit68ff2eb3d2d7874e780000143cbee9a8e7c2e57f (patch)
treeeed6077d7eedb92fac0c8c3c51c56577be15f82e /build/Makefile.plugins.keyboard
parentc8ff993e08e73f030a2efdb4f01c5f65464555e7 (diff)
add the keyboard plugin into the build systems
keyboard bindings are parsed from the rc file
Diffstat (limited to 'build/Makefile.plugins.keyboard')
-rw-r--r--build/Makefile.plugins.keyboard45
1 files changed, 45 insertions, 0 deletions
diff --git a/build/Makefile.plugins.keyboard b/build/Makefile.plugins.keyboard
new file mode 100644
index 00000000..54ec468a
--- /dev/null
+++ b/build/Makefile.plugins.keyboard
@@ -0,0 +1,45 @@
+include build/Makefile.incl
+
+dir = plugins/keyboard
+
+CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Plugin-Placement\"
+LDFLAGS = -module -avoid-version
+
+target = keyboard.la
+sources = keyboard.c tree.c translate.c keyparse.c
+
+srcdir := $(srcdir)/$(dir)
+target := $(addprefix $(dir)/,$(target))
+objects := $(addprefix $(dir)/,$(sources:.c=.lo))
+sources := $(addprefix $(srcdir)/,$(sources))
+deps := $(addprefix $(depdir)/,$(objects:.lo=.d))
+depdir := $(depdir)/$(dir)
+
+all: $(target)
+
+$(target): $(objects)
+ $(LINK) -rpath $(plugindir) -o $@ $^ $(LDFLAGS)
+
+$(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d
+ $(LTCOMPILE) -c -o $@ $<
+
+$(depdir)/%.d: $(srcdir)/%.c
+ @echo Building dependancies for $<
+ $(INSTALL) -d $(depdir)
+ @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $<
+
+install:
+ $(INSTALL) -d $(DESTDIR)$(plugindir)/
+ $(LIBTOOL) --mode=install $(INSTALL) $(target) \
+ $(DESTDIR)$(plugindir)/$(notdir $(target))
+
+uninstall:
+ $(LTRM) $(DESTDIR)$(plugindir)/$(notdir $(target))
+
+clean:
+ $(RM) $(target) $(objects)
+ $(RM) $(srcdir)/*\~
+
+-include $(deps)
+
+.PHONY: all install uninstall clean distclean