openbox/build/Makefile.render

50 lines
1.2 KiB
Text
Raw Normal View History

include build/Makefile.incl
dir = render
theme = operation
CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"Render\" \
-DDEFAULT_THEME=\"$(theme)\" -DTHEMEDIR=\"$(themedir)\"
2003-04-09 18:18:43 +00:00
target = libobrender.la
sources = color.c font.c gradient.c image.c mask.c render.c theme.c
2003-04-03 05:59:03 +00:00
srcdir := $(srcdir)/$(dir)
target := $(addprefix $(dir)/, $(target))
2003-04-09 18:18:43 +00:00
objects := $(addprefix $(dir)/, $(sources:.c=.lo))
sources := $(addprefix $(srcdir)/, $(sources))
2003-04-09 18:18:43 +00:00
deps := $(addprefix $(depdir)/, $(objects:.lo=.d))
depdir := $(depdir)/$(dir)
2003-04-03 05:59:03 +00:00
all: $(target)
2003-04-03 05:59:03 +00:00
$(target): $(objects)
2003-04-09 18:36:01 +00:00
$(LINK) -rpath $(libdir) -o $@ $^ $(LDFLAGS)
2003-04-09 18:18:43 +00:00
$(dir)/%.lo: $(srcdir)/%.c $(depdir)/%.d
$(LTCOMPILE) -c -o $@ $<
$(depdir)/%.d: $(srcdir)/%.c
2003-04-03 05:59:03 +00:00
@echo Building dependancies for $<
@$(INSTALL) -d $(depdir)
2003-04-10 04:49:22 +00:00
@$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $<
install:
2003-04-09 18:18:43 +00:00
$(INSTALL) -d $(DESTDIR)$(libdir)/
$(LIBTOOL) --mode=install $(INSTALL) $(target) \
$(DESTDIR)$(libdir)/$(notdir $(target))
2003-04-09 18:36:01 +00:00
$(LIBTOOL) --mode=finish $(DESTDIR)$(libdir)
2003-04-03 05:59:03 +00:00
uninstall:
2003-04-09 18:18:43 +00:00
$(LTRM) $(DESTDIR)$(libdir)/$(notdir $(target))
2003-04-03 05:59:03 +00:00
clean:
2003-04-09 18:18:43 +00:00
$(LTCLEAN) $(target) $(objects)
$(RM) $(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