summaryrefslogtreecommitdiff
path: root/build/Makefile.engines.openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-03 22:12:15 +0000
committerDana Jansens <danakj@orodu.net>2003-04-03 22:12:15 +0000
commitc0f1e3ae660f55d40b60467d04e0e5647c47a722 (patch)
tree49dca805e11ef1837c6de38b6464fbf5e1cdbfef /build/Makefile.engines.openbox
parent609a9925beef935217ca2cb24c6b5d5d64a6035e (diff)
engine builds
Diffstat (limited to 'build/Makefile.engines.openbox')
-rw-r--r--build/Makefile.engines.openbox47
1 files changed, 47 insertions, 0 deletions
diff --git a/build/Makefile.engines.openbox b/build/Makefile.engines.openbox
new file mode 100644
index 00000000..b19a4f9b
--- /dev/null
+++ b/build/Makefile.engines.openbox
@@ -0,0 +1,47 @@
+include build/Makefile.incl
+
+dir = engines/openbox
+theme = operation
+
+CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Engine-Openbox\" \
+ -DDEFAULT_THEME=\"$(theme)\" -DTHEMEDIR=\"$(themedir)/openbox\"
+LDFLAGS = -module -avoid-version
+
+target = openbox.la
+sources = obengine.c obtheme.c obrender.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 $(enginedir) -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)$(enginedir)/
+ $(LIBTOOL) --mode=install $(INSTALL) $(target) \
+ $(DESTDIR)$(enginedir)/$(notdir $(target))
+
+uninstall:
+ $(LTRM) $(DESTDIR)$(enginedir)/$(notdir $(target))
+
+clean:
+ $(RM) $(target) $(objects)
+ $(RM) $(srcdir)/*\~
+
+-include $(deps)
+
+.PHONY: all install uninstall clean distclean