diff test/automated/Makefile @ 3732:e552b7acd45a gsoc2009_unit_tests

Better handling of makefile dependencies.
author Edgar Simo <bobbens@gmail.com>
date Wed, 15 Jul 2009 14:40:09 +0000
parents dafd796f0c95
children 78f544eded7b
line wrap: on
line diff
--- 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: