openbox/build/Makefile.render

42 lines
851 B
Text
Raw Normal View History

include build/Makefile.incl
dir = render
CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Render\"
target = librender.a
sources = color.c font.c gradient.c image.c mask.c render.c test.c
2003-04-03 05:59:03 +00:00
srcdir := $(srcdir)/$(dir)
target := $(addprefix $(dir)/, $(target))
objects := $(addprefix $(dir)/, $(sources:.c=.o))
sources := $(addprefix $(srcdir)/, $(sources))
deps := $(addprefix $(depdir)/, $(objects:.o=.d))
depdir := $(depdir)/$(dir)
2003-04-03 05:59:03 +00:00
all: $(target)
2003-04-03 05:59:03 +00:00
$(target): $(objects)
$(AR) r $@ $^
$(dir)/%.o: $(srcdir)/%.c $(depdir)/%.d
$(COMPILE) -c -o $@ $<
$(depdir)/%.d: $(srcdir)/%.c
2003-04-03 05:59:03 +00:00
@echo Building dependancies for $<
@$(INSTALL) -d $(depdir)
@$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.o) $<
install:
2003-04-03 05:59:03 +00:00
uninstall:
2003-04-03 05:59:03 +00:00
clean:
$(RM) $(target) $(objects) $(srcdir)/*\~
2003-04-03 05:59:03 +00:00
distclean:
2003-04-03 05:59:03 +00:00
-include $(deps)
2003-04-03 05:59:03 +00:00
.PHONY: all install uninstall clean distclean