add the mouse plugin to the build system
This commit is contained in:
parent
d58799bc25
commit
831db744f4
3 changed files with 52 additions and 0 deletions
|
@ -4,17 +4,20 @@ all clean distclean:
|
||||||
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.resistance $@
|
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.resistance $@
|
||||||
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.placement $@
|
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.placement $@
|
||||||
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.keyboard $@
|
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.keyboard $@
|
||||||
|
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.mouse $@
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.resistance $@
|
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.resistance $@
|
||||||
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.placement $@
|
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.placement $@
|
||||||
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.keyboard $@
|
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.keyboard $@
|
||||||
|
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.mouse $@
|
||||||
$(LIBTOOL) --mode=finish $(DESTDIR)$(plugindir)
|
$(LIBTOOL) --mode=finish $(DESTDIR)$(plugindir)
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.resistance $@
|
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.resistance $@
|
||||||
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.placement $@
|
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.placement $@
|
||||||
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.keyboard $@
|
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.keyboard $@
|
||||||
|
@$(MAKE) -$(MAKEFLAGS) -f build/Makefile.plugins.mouse $@
|
||||||
-rmdir $(DESTDIR)$(plugindir)
|
-rmdir $(DESTDIR)$(plugindir)
|
||||||
|
|
||||||
.PHONY: all clean distclean install uninstall
|
.PHONY: all clean distclean install uninstall
|
||||||
|
|
|
@ -40,6 +40,8 @@ clean:
|
||||||
$(RM) $(target) $(objects)
|
$(RM) $(target) $(objects)
|
||||||
$(RM) $(srcdir)/*\~
|
$(RM) $(srcdir)/*\~
|
||||||
|
|
||||||
|
distclean:
|
||||||
|
|
||||||
-include $(deps)
|
-include $(deps)
|
||||||
|
|
||||||
.PHONY: all install uninstall clean distclean
|
.PHONY: all install uninstall clean distclean
|
||||||
|
|
47
build/Makefile.plugins.mouse
Normal file
47
build/Makefile.plugins.mouse
Normal file
|
@ -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
|
Loading…
Reference in a new issue