1 include build/Makefile.incl
5 CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Plugin-Keyboard\"
6 LDFLAGS = -module -avoid-version
9 sources = keyboard.c tree.c translate.c keyparse.c
11 srcdir := $(srcdir)/$(dir)
12 target := $(addprefix $(dir)/,$(target))
13 objects := $(addprefix $(dir)/,$(sources:.c=.lo))
14 sources := $(addprefix $(srcdir)/,$(sources))
15 deps := $(addprefix $(depdir)/,$(objects:.lo=.d))
16 depdir := $(depdir)/$(dir)
21 $(LINK) -rpath $(plugindir) -o $@ $^ $(LDFLAGS)
23 $(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d
24 $(LTCOMPILE) -c -o $@ $<
26 $(depdir)/%.d: $(srcdir)/%.c
27 @echo Building dependancies for $<
28 $(INSTALL) -d $(depdir)
29 @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $<
32 $(INSTALL) -d $(DESTDIR)$(plugindir)/
33 $(LIBTOOL) --mode=install $(INSTALL) $(target) \
34 $(DESTDIR)$(plugindir)/$(notdir $(target))
37 $(LTRM) $(DESTDIR)$(plugindir)/$(notdir $(target))
40 $(RM) $(target) $(objects)
47 .PHONY: all install uninstall clean distclean