diff test/automated/Makefile @ 3741:808fad5fb593 gsoc2009_unit_tests

Added command line options. Added verbosity levels.
author Edgar Simo <bobbens@gmail.com>
date Sun, 02 Aug 2009 18:58:03 +0000
parents e451d5d288e9
children 2b000dd830e8
line wrap: on
line diff
--- a/test/automated/Makefile	Sun Aug 02 16:01:23 2009 +0000
+++ b/test/automated/Makefile	Sun Aug 02 18:58:03 2009 +0000
@@ -15,13 +15,13 @@
 COMMON_SRC     := SDL_at.c common/common.c
 COMMON_INCLUDE := SDL_at.h
 
-TESTS_ALL := rwops/rwops platform/platform surface/surface render/render
+TESTS_ALL := testsdl rwops/rwops platform/platform surface/surface render/render
 
 
 .PHONY: all clean test
 
 
-all: testsdl $(TESTS_ALL)
+all: $(TESTS_ALL)
 
 test: all
 	@./rwops/rwops
@@ -29,7 +29,7 @@
 	@./surface/surface
 	@./render/render
 
-testsdl:
+testsdl: $(SRC) $(COMMON_SRC)
 	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(COMMON_SRC)
 
 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) $(COMMON_SRC)