openbox/build/Makefile.cwmcc

49 lines
1.1 KiB
Text
Raw Normal View History

2003-04-09 18:18:43 +00:00
include build/Makefile.incl
dir = cwmcc
CPPFLAGS += $(GLIB_CFLAGS) $(XFT_CFLAGS) -DG_LOG_DOMAIN=\"CWMCC\"
2003-04-09 21:24:58 +00:00
LIBS += $(GLIB_LIBS)
2003-04-09 18:18:43 +00:00
target = libcwmcc.la
2003-04-11 06:02:36 +00:00
sources = cwmcc.c atom.c prop.c client_props.c
2003-04-09 18:18:43 +00:00
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)
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
@echo Building dependancies for $<
@$(INSTALL) -d $(depdir)
2003-04-10 04:49:22 +00:00
@$(DEPCOMPILE) -w -MM -MF $@ -MQ $(<:.c=.lo) $<
2003-04-09 18:18:43 +00:00
install:
$(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-09 18:18:43 +00:00
uninstall:
$(LTRM) $(DESTDIR)$(libdir)/$(notdir $(target))
clean:
$(LTCLEAN) $(target) $(objects)
$(RM) $(srcdir)/*\~
distclean:
-include $(deps)
.PHONY: all install uninstall clean distclean