1 include build/Makefile.incl
5 CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Render\"
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=.o))
13 sources := $(addprefix $(srcdir)/, $(sources))
14 deps := $(addprefix $(depdir)/, $(objects:.o=.d))
15 depdir := $(depdir)/$(dir)
20 $(LINK) -static -o $@ $^ $(LDFLAGS)
22 $(dir)/%.o: $(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=.o) $<
35 $(RM) $(target) $(objects) $(srcdir)/*\~
41 .PHONY: all install uninstall clean distclean