]> Dogcows Code - chaz/openbox/commitdiff
add the mouse plugin to the build system
authorDana Jansens <danakj@orodu.net>
Sat, 5 Apr 2003 17:21:44 +0000 (17:21 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 5 Apr 2003 17:21:44 +0000 (17:21 +0000)
build/Makefile.plugins
build/Makefile.plugins.keyboard
build/Makefile.plugins.mouse [new file with mode: 0644]

index f703b6fc0888cafb19f7ff07a33d83ec9eac7591..9555d871cb72b1fac69dc58caf2c998d4a3a8976 100644 (file)
@@ -4,17 +4,20 @@ all clean distclean:
        @$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.resistance $@
        @$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.placement $@
        @$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.keyboard $@
+       @$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.mouse $@
 
 install:
        @$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.resistance $@
        @$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.placement $@
        @$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.keyboard $@
+       @$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.mouse $@
        $(LIBTOOL) --mode=finish $(DESTDIR)$(plugindir)
 
 uninstall:
        @$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.resistance $@
        @$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.placement $@
        @$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.keyboard $@
+       @$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.mouse $@
        -rmdir $(DESTDIR)$(plugindir)
 
 .PHONY: all clean distclean install uninstall
index e8e95163346017c89bd26a429f937eb19e07580e..497ce797838533c47f3c102d62bf03e6e7cf9c1e 100644 (file)
@@ -40,6 +40,8 @@ clean:
        $(RM) $(target) $(objects)
        $(RM) $(srcdir)/*\~
 
+distclean:
+
 -include $(deps)
 
 .PHONY: all install uninstall clean distclean
diff --git a/build/Makefile.plugins.mouse b/build/Makefile.plugins.mouse
new file mode 100644 (file)
index 0000000..63f0d38
--- /dev/null
@@ -0,0 +1,47 @@
+include build/Makefile.incl
+
+dir = plugins/mouse
+
+CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Plugin-Mouse\"
+LDFLAGS = -module -avoid-version
+
+target = mouse.la
+sources = mouse.c translate.c mouseparse.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)/*\~
+
+distclean:
+
+-include $(deps)
+
+.PHONY: all install uninstall clean distclean
This page took 0.025558 seconds and 4 git commands to generate.