From ea12d6afcf9389c6f4e63e3e06203cd55ce9a015 Mon Sep 17 00:00:00 2001 From: Edgar Simo Date: Fri, 19 Jun 2009 18:57:23 +0000 Subject: [PATCH] Make makefile a bit more complete. --- test/automated/Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/automated/Makefile b/test/automated/Makefile index e7886a8fe..7c3a54db7 100644 --- a/test/automated/Makefile +++ b/test/automated/Makefile @@ -6,11 +6,19 @@ LDFLAGS := `sdl-config --libs` COMMON_SRC := SDL_at.c COMMON_INCLUDE := SDL_at.h +TESTS_ALL := rwops -.PHONY: all +.PHONY: all clean test -all: rwops + +all: $(TESTS_ALL) + +test: + @./rwops rwops: rwops.c $(COMMON_INCLUDE) $(CC) $(CFLAGS) $(LDFLAGS) -o rwops rwops.c $(COMMON_SRC) + +clean: + $(RM) $(TESTS_ALL)