1 include build/Makefile.incl
5 CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Render\"
7 target = libobrender.la
8 sources = color.c font.c gradient.c image.c mask.c render.c test.c
10 srcdir := $(srcdir)/$(dir)
11 target := $(addprefix $(dir)/, $(target))
12 objects := $(addprefix $(dir)/, $(sources:.c=.lo))
13 sources := $(addprefix $(srcdir)/, $(sources))
14 deps := $(addprefix $(depdir)/, $(objects:.lo=.d))
15 depdir := $(depdir)/$(dir)
20 $(LINK) -rpath $(libdir) -o $@ $^ $(LDFLAGS)
22 $(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d
23 $(LTCOMPILE) -c -o $@ $<
25 $(depdir)/%.d: $(srcdir)/%.c
26 @echo Building dependancies for $<
27 @$(INSTALL) -d $(depdir)
28 @$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $<
31 $(INSTALL) -d $(DESTDIR)$(libdir)/
32 $(LIBTOOL) --mode=install $(INSTALL) $(target) \
33 $(DESTDIR)$(libdir)/$(notdir $(target))
34 $(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
37 $(LTRM) $(DESTDIR)$(libdir)/$(notdir $(target))
40 $(LTCLEAN) $(target) $(objects)
47 .PHONY: all install uninstall clean distclean