]> Dogcows Code - chaz/openbox/blob - build/Makefile.plugins.mouse
dont resize snap windows with size increments
[chaz/openbox] / build / Makefile.plugins.mouse
1 include build/Makefile.incl
2
3 dir = plugins/mouse
4
5 CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Plugin-Mouse\"
6 LDFLAGS = -module -avoid-version
7
8 target = mouse.la
9 sources = mouse.c translate.c mouseparse.c
10
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)
17
18 all: $(target)
19
20 $(target): $(objects)
21 $(LINK) -rpath $(plugindir) -o $@ $^ $(LDFLAGS)
22
23 $(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d
24 $(LTCOMPILE) -c -o $@ $<
25
26 $(depdir)/%.d: $(srcdir)/%.c
27 @echo Building dependancies for $<
28 $(INSTALL) -d $(depdir)
29 @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $<
30
31 install:
32 $(INSTALL) -d $(DESTDIR)$(plugindir)/
33 $(LIBTOOL) --mode=install $(INSTALL) $(target) \
34 $(DESTDIR)$(plugindir)/$(notdir $(target))
35
36 uninstall:
37 $(LTRM) $(DESTDIR)$(plugindir)/$(notdir $(target))
38
39 clean:
40 $(RM) $(target) $(objects)
41 $(RM) $(srcdir)/*\~
42
43 distclean:
44
45 -include $(deps)
46
47 .PHONY: all install uninstall clean distclean
This page took 0.034874 seconds and 4 git commands to generate.