1 include build/Makefile.incl
6 CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Engine-Openbox\" \
7 -DDEFAULT_THEME=\"$(theme)\" -DTHEMEDIR=\"$(themedir)/openbox\"
8 LDFLAGS += -module -avoid-version
11 sources = obengine.c obtheme.c obrender.c
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)
23 $(LINK) -rpath $(enginedir) -o $@ $^ $(LDFLAGS)
25 $(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d
26 $(LTCOMPILE) -c -o $@ $<
28 $(depdir)/%.d: $(srcdir)/%.c
29 @echo Building dependancies for $<
30 $(INSTALL) -d $(depdir)
31 @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $<
34 $(INSTALL) -d $(DESTDIR)$(enginedir)/
35 $(LIBTOOL) --mode=install $(INSTALL) $(target) \
36 $(DESTDIR)$(enginedir)/$(notdir $(target))
39 $(LTRM) $(DESTDIR)$(enginedir)/$(notdir $(target))
42 $(LTCLEAN) $(target) $(objects)
47 .PHONY: all install uninstall clean distclean