summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@opencompositing.org>2007-07-03 16:51:33 +0200
committerDennis Kasprzyk <onestone@opencompositing.org>2007-07-03 16:51:33 +0200
commitb4bbe4e0c7fd2b42ed15d9b2a5d864dae94a7561 (patch)
treea4bd48d4da7cda99dbb3297e9310fbb4e53b3632
parent5bef47910a2f982640bb7a5a6b8d462c3bfc0262 (diff)
downloadfadedesktop-b4bbe4e0c7fd2b42ed15d9b2a5d864dae94a7561.tar.gz
fadedesktop-b4bbe4e0c7fd2b42ed15d9b2a5d864dae94a7561.tar.bz2
Makefile update.
-rw-r--r--Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 8b86b53..fcf06c2 100644
--- a/Makefile
+++ b/Makefile
@@ -80,6 +80,9 @@ endif
c-objs := $(patsubst %.c,%.lo,$(shell find -name '*.c' 2> /dev/null | grep -v "$(BUILDDIR)/" | sed -e 's/^.\///'))
c-objs := $(filter-out $(bcop-target-src:.c=.lo),$(c-objs))
+h-files := $(shell find -name '*.h' 2> /dev/null | grep -v "$(BUILDDIR)/" | sed -e 's/^.\///')
+h-files += $(bcop-target-hdr)
+
all-c-objs := $(addprefix $(BUILDDIR)/,$(c-objs))
all-c-objs += $(bcop-target-src:.c=.lo)
@@ -213,7 +216,7 @@ $(BUILDDIR)/compiz-%.pc: compiz-%.pc.in
# Compiling
#
-$(BUILDDIR)/%.lo: %.c
+$(BUILDDIR)/%.lo: %.c $(h-files)
@if [ '$(color)' != 'no' ]; then \
$(ECHO) -n -e "\033[0;1;5mcompiling \033[0m: \033[0;32m$< \033[0m-> \033[0;31m$@\033[0m"; \
else \
@@ -224,7 +227,7 @@ $(BUILDDIR)/%.lo: %.c
$(ECHO) -e "\r\033[0mcompiling : \033[34m$< -> $@\033[0m"; \
fi
-$(BUILDDIR)/%.lo: $(BUILDDIR)/%.c
+$(BUILDDIR)/%.lo: $(BUILDDIR)/%.c $(h-files)
@if [ '$(color)' != 'no' ]; then \
$(ECHO) -n -e "\033[0;1;5mcompiling \033[0m: \033[0;32m$< \033[0m-> \033[0;31m$@\033[0m"; \
else \
@@ -242,7 +245,7 @@ $(BUILDDIR)/%.lo: $(BUILDDIR)/%.c
cxx-rpath-prefix := -Wl,-rpath,
-$(BUILDDIR)/lib$(PLUGIN).la: $(addprefix $(BUILDDIR)/,$(c-objs))
+$(BUILDDIR)/lib$(PLUGIN).la: $(all-c-objs)
@if [ '$(color)' != 'no' ]; then \
$(ECHO) -e -n "\033[0;1;5mlinking \033[0m: \033[0;31m$@\033[0m"; \
else \