changeset 3712:916469fbdc29 gsoc2009_unit_tests

Make makefile a bit more complete.
author Edgar Simo <bobbens@gmail.com>
date Fri, 19 Jun 2009 18:57:23 +0000
parents 80839fc6b8e1
children a34bab848c7e
files test/automated/Makefile
diffstat 1 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/automated/Makefile	Fri Jun 19 18:53:58 2009 +0000
+++ b/test/automated/Makefile	Fri Jun 19 18:57:23 2009 +0000
@@ -6,11 +6,19 @@
 COMMON_SRC     := SDL_at.c
 COMMON_INCLUDE := SDL_at.h
 
-
-.PHONY: all
+TESTS_ALL := rwops
 
 
-all: rwops
+.PHONY: all clean test
+
+
+all: $(TESTS_ALL)
+
+test:
+	@./rwops
 
 rwops: rwops.c $(COMMON_INCLUDE)
 	$(CC) $(CFLAGS) $(LDFLAGS) -o rwops rwops.c $(COMMON_SRC)
+
+clean:
+	$(RM) $(TESTS_ALL)