Better handling of makefile dependencies. gsoc2009_unit_tests
authorEdgar Simo <bobbens@gmail.com>
Wed, 15 Jul 2009 14:40:09 +0000
branchgsoc2009_unit_tests
changeset 3732 e552b7acd45a
parent 3731 f5ddf1b670f0
child 3733 ca544951b504
Better handling of makefile dependencies.
test/automated/Makefile
--- a/test/automated/Makefile	Wed Jul 15 08:50:24 2009 +0000
+++ b/test/automated/Makefile	Wed Jul 15 14:40:09 2009 +0000
@@ -23,13 +23,13 @@
 	@./surface/surface
 	@./render/render
 
-rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE)
+rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) $(COMMON_SRC)
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC)
 
-surface/surface: surface/surface.c $(COMMON_INCLUDE)
+surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC)
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC)
 
-render/render: render/render.c $(COMMON_INCLUDE)
+render/render: render/render.c $(COMMON_INCLUDE) $(COMMON_SRC)
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ render/render.c $(COMMON_SRC)
 
 clean: