]> Dogcows Code - chaz/openbox/blob - build/Makefile.engines.openbox
show a popup with the focus target while cycling
[chaz/openbox] / build / Makefile.engines.openbox
1 include build/Makefile.incl
2
3 dir = engines/openbox
4 theme = operation
5
6 CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Engine-Openbox\" \
7 -DDEFAULT_THEME=\"$(theme)\" -DTHEMEDIR=\"$(themedir)/openbox\"
8 LDFLAGS += -module -avoid-version
9
10 target = openbox.la
11 sources = obengine.c obtheme.c obrender.c
12
13 srcdir := $(srcdir)/$(dir)
14 target := $(addprefix $(dir)/,$(target))
15 objects := $(addprefix $(dir)/,$(sources:.c=.lo))
16 sources := $(addprefix $(srcdir)/,$(sources))
17 deps := $(addprefix $(depdir)/,$(objects:.lo=.d))
18 depdir := $(depdir)/$(dir)
19
20 all: $(target)
21
22 $(target): $(objects)
23 $(LINK) -rpath $(enginedir) -o $@ $^ $(LDFLAGS)
24
25 $(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d
26 $(LTCOMPILE) -c -o $@ $<
27
28 $(depdir)/%.d: $(srcdir)/%.c
29 @echo Building dependancies for $<
30 $(INSTALL) -d $(depdir)
31 @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $<
32
33 install:
34 $(INSTALL) -d $(DESTDIR)$(enginedir)/
35 $(LIBTOOL) --mode=install $(INSTALL) $(target) \
36 $(DESTDIR)$(enginedir)/$(notdir $(target))
37
38 uninstall:
39 $(LTRM) $(DESTDIR)$(enginedir)/$(notdir $(target))
40
41 clean:
42 $(RM) $(target) $(objects)
43 $(RM) $(srcdir)/*\~
44
45 -include $(deps)
46
47 .PHONY: all install uninstall clean distclean
This page took 0.036186 seconds and 4 git commands to generate.