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 3712916469fbdc29
parent 3711 80839fc6b8e1
child 3713 a34bab848c7e
Make makefile a bit more complete.
test/automated/Makefile
     1.1 --- a/test/automated/Makefile	Fri Jun 19 18:53:58 2009 +0000
     1.2 +++ b/test/automated/Makefile	Fri Jun 19 18:57:23 2009 +0000
     1.3 @@ -6,11 +6,19 @@
     1.4  COMMON_SRC     := SDL_at.c
     1.5  COMMON_INCLUDE := SDL_at.h
     1.6  
     1.7 -
     1.8 -.PHONY: all
     1.9 +TESTS_ALL := rwops
    1.10  
    1.11  
    1.12 -all: rwops
    1.13 +.PHONY: all clean test
    1.14 +
    1.15 +
    1.16 +all: $(TESTS_ALL)
    1.17 +
    1.18 +test:
    1.19 +	@./rwops
    1.20  
    1.21  rwops: rwops.c $(COMMON_INCLUDE)
    1.22  	$(CC) $(CFLAGS) $(LDFLAGS) -o rwops rwops.c $(COMMON_SRC)
    1.23 +
    1.24 +clean:
    1.25 +	$(RM) $(TESTS_ALL)