test/automated/Makefile
author Edgar Simo
Fri, 19 Jun 2009 18:57:23 +0000
branchgsoc2009_unit_tests
changeset 3712 916469fbdc29
parent 3711 80839fc6b8e1
child 3713 a34bab848c7e
permissions -rw-r--r--
Make makefile a bit more complete.
     1 
     2 
     3 CFLAGS  := `sdl-config --cflags`
     4 LDFLAGS := `sdl-config --libs`
     5 
     6 COMMON_SRC     := SDL_at.c
     7 COMMON_INCLUDE := SDL_at.h
     8 
     9 TESTS_ALL := rwops
    10 
    11 
    12 .PHONY: all clean test
    13 
    14 
    15 all: $(TESTS_ALL)
    16 
    17 test:
    18 	@./rwops
    19 
    20 rwops: rwops.c $(COMMON_INCLUDE)
    21 	$(CC) $(CFLAGS) $(LDFLAGS) -o rwops rwops.c $(COMMON_SRC)
    22 
    23 clean:
    24 	$(RM) $(TESTS_ALL)