include build/Makefile.incl
-targets = render kernel plugins engines themes data
+targets = render cwmcc obcl kernel plugins engines themes data
all: libtool
@for i in $(targets); do \
--- /dev/null
+include build/Makefile.incl
+
+dir = cwmcc
+
+CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"CWMCC\"
+
+target = libcwmcc.la
+sources = cwmcc.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) -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=.o) $<
+
+install:
+ $(INSTALL) -d $(DESTDIR)$(libdir)/
+ $(LIBTOOL) --mode=install $(INSTALL) $(target) \
+ $(DESTDIR)$(libdir)/$(notdir $(target))
+
+uninstall:
+ $(LTRM) $(DESTDIR)$(libdir)/$(notdir $(target))
+
+clean:
+ $(LTCLEAN) $(target) $(objects)
+ $(RM) $(srcdir)/*\~
+
+distclean:
+
+-include $(deps)
+
+.PHONY: all install uninstall clean distclean
$(LTRM) $(DESTDIR)$(enginedir)/$(notdir $(target))
clean:
- $(RM) $(target) $(objects)
+ $(LTCLEAN) $(target) $(objects)
$(RM) $(srcdir)/*\~
-include $(deps)
--- /dev/null
+include build/Makefile.incl
+
+dir = obcl
+
+CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"OBCF\"
+
+target = libobcl.la
+sources = obcl.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) -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=.o) $<
+
+install:
+ $(INSTALL) -d $(DESTDIR)$(libdir)/
+ $(LIBTOOL) --mode=install $(INSTALL) $(target) \
+ $(DESTDIR)$(libdir)/$(notdir $(target))
+
+uninstall:
+ $(LTRM) $(DESTDIR)$(libdir)/$(notdir $(target))
+
+clean:
+ $(LTCLEAN) $(target) $(objects)
+ $(RM) $(srcdir)/*\~
+
+distclean:
+
+-include $(deps)
+
+.PHONY: all install uninstall clean distclean
$(LTRM) $(DESTDIR)$(plugindir)/$(notdir $(target))
clean:
- $(RM) $(target) $(objects)
+ $(LTCLEAN) $(target) $(objects)
$(RM) $(srcdir)/*\~
distclean:
$(LTRM) $(DESTDIR)$(plugindir)/$(notdir $(target))
clean:
- $(RM) $(target) $(objects)
+ $(LTCLEAN) $(target) $(objects)
$(RM) $(srcdir)/*\~
distclean:
$(LTRM) $(DESTDIR)$(plugindir)/$(notdir $(target))
clean:
- $(RM) $(target) $(objects)
+ $(LTCLEAN) $(target) $(objects)
$(RM) $(srcdir)/*\~
-include $(deps)
$(LTRM) $(DESTDIR)$(plugindir)/$(notdir $(target))
clean:
- $(RM) $(target) $(objects)
+ $(LTCLEAN) $(target) $(objects)
$(RM) $(srcdir)/*\~
-include $(deps)
CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Render\"
-target = librender.a
+target = libobrender.la
sources = color.c font.c gradient.c image.c mask.c render.c test.c
srcdir := $(srcdir)/$(dir)
target := $(addprefix $(dir)/, $(target))
-objects := $(addprefix $(dir)/, $(sources:.c=.o))
+objects := $(addprefix $(dir)/, $(sources:.c=.lo))
sources := $(addprefix $(srcdir)/, $(sources))
-deps := $(addprefix $(depdir)/, $(objects:.o=.d))
+deps := $(addprefix $(depdir)/, $(objects:.lo=.d))
depdir := $(depdir)/$(dir)
all: $(target)
$(target): $(objects)
- $(LINK) -static -o $@ $^ $(LDFLAGS)
+ $(LINK) -o $@ $^ $(LDFLAGS)
-$(dir)/%.o: $(srcdir)/%.c $(depdir)/%.d
+$(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d
$(LTCOMPILE) -c -o $@ $<
$(depdir)/%.d: $(srcdir)/%.c
@$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.o) $<
install:
+ $(INSTALL) -d $(DESTDIR)$(libdir)/
+ $(LIBTOOL) --mode=install $(INSTALL) $(target) \
+ $(DESTDIR)$(libdir)/$(notdir $(target))
uninstall:
+ $(LTRM) $(DESTDIR)$(libdir)/$(notdir $(target))
clean:
- $(RM) $(target) $(objects) $(srcdir)/*\~
+ $(LTCLEAN) $(target) $(objects)
+ $(RM) $(srcdir)/*\~
distclean:
--- /dev/null
+.libs
+cwmcc.lo
+libcwmcc.la
--- /dev/null
+obcl.lo
+libobcl.la
+.libs
mask.lo
render.lo
test.lo
+libobrender.la