changeset 322:148e981739f4

Add the (unfinished) timeline code to the build.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 14 Oct 2012 14:30:29 +0300
parents fc79b57d4646
children e468ff7d0058
files Makefile.gen
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile.gen	Sun Oct 14 14:24:11 2012 +0300
+++ b/Makefile.gen	Sun Oct 14 14:30:29 2012 +0300
@@ -212,7 +212,7 @@
 DMLIB_A=$(OBJPATH)dmlib.a
 DMLIB_OBJS += dmfile.o dmlib.o dmlerp.o dmstring.o \
 	dmargs.o dmvecmat.o dmperlin.o dmimage.o \
-	dmwav.o	dmsimple.o dmq3d.o
+	dmwav.o	dmsimple.o dmtimeline.o dmq3d.o
 
 ifeq ($(DM_BUILD_TESTS),yes)
 BINARIES += vecmattest fptest
@@ -225,6 +225,10 @@
 ###
 ### Generic rules
 ###
+$(OBJPATH)%.d: $(DMLIB)%.c
+	@echo > $@
+	@grep '#\s*include\s*\"' $< | sed 's/#\s*include\s\s*"\(.*\)"/\1/' | while read i; do if test -e "$$i"; then echo "$$i" >> $@; fi; done
+
 
 $(OBJPATH)%.o: $(DMLIB)%.c $(DMLIB)%.h
 	@echo " CC $<"