Mercurial > hg > dmlib
comparison Makefile.gen @ 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 | c4d52b8e3be4 |
children | 9cc4c6c52938 |
comparison
equal
deleted
inserted
replaced
320:fc79b57d4646 | 322:148e981739f4 |
---|---|
210 | 210 |
211 | 211 |
212 DMLIB_A=$(OBJPATH)dmlib.a | 212 DMLIB_A=$(OBJPATH)dmlib.a |
213 DMLIB_OBJS += dmfile.o dmlib.o dmlerp.o dmstring.o \ | 213 DMLIB_OBJS += dmfile.o dmlib.o dmlerp.o dmstring.o \ |
214 dmargs.o dmvecmat.o dmperlin.o dmimage.o \ | 214 dmargs.o dmvecmat.o dmperlin.o dmimage.o \ |
215 dmwav.o dmsimple.o dmq3d.o | 215 dmwav.o dmsimple.o dmtimeline.o dmq3d.o |
216 | 216 |
217 ifeq ($(DM_BUILD_TESTS),yes) | 217 ifeq ($(DM_BUILD_TESTS),yes) |
218 BINARIES += vecmattest fptest | 218 BINARIES += vecmattest fptest |
219 endif | 219 endif |
220 | 220 |
223 all: $(TARGETS) | 223 all: $(TARGETS) |
224 | 224 |
225 ### | 225 ### |
226 ### Generic rules | 226 ### Generic rules |
227 ### | 227 ### |
228 $(OBJPATH)%.d: $(DMLIB)%.c | |
229 @echo > $@ | |
230 @grep '#\s*include\s*\"' $< | sed 's/#\s*include\s\s*"\(.*\)"/\1/' | while read i; do if test -e "$$i"; then echo "$$i" >> $@; fi; done | |
231 | |
228 | 232 |
229 $(OBJPATH)%.o: $(DMLIB)%.c $(DMLIB)%.h | 233 $(OBJPATH)%.o: $(DMLIB)%.c $(DMLIB)%.h |
230 @echo " CC $<" | 234 @echo " CC $<" |
231 @$(CC) $(CFLAGS) -c -o $@ $< $(DM_CFLAGS) | 235 @$(CC) $(CFLAGS) -c -o $@ $< $(DM_CFLAGS) |
232 | 236 |