# HG changeset patch # User Edgar Simo # Date 1245437843 0 # Node ID 916469fbdc295314e167717d946e029cae6edae5 # Parent 80839fc6b8e1c1c5ab66b8360518e792907dbff6 Make makefile a bit more complete. diff -r 80839fc6b8e1 -r 916469fbdc29 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)