Make makefile a bit more complete. gsoc2009_unit_tests
authorEdgar Simo <bobbens@gmail.com>
Fri, 19 Jun 2009 18:57:23 +0000
branchgsoc2009_unit_tests
changeset 3712 916469fbdc29
parent 3711 80839fc6b8e1
child 3713 a34bab848c7e
Make makefile a bit more complete.
test/automated/Makefile
--- 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)