comparison test/automated/Makefile @ 3730:dafd796f0c95 gsoc2009_unit_tests

* Added preliminary render tests, missing some SDL functions to work properly.
author Edgar Simo <bobbens@gmail.com>
date Sun, 12 Jul 2009 12:05:28 +0000
parents 97e9704fc267
children e552b7acd45a
comparison
equal deleted inserted replaced
3729:b7590cd5969d 3730:dafd796f0c95
8 #LDFLAGS := -lm -ldl -lesd -lpthread 8 #LDFLAGS := -lm -ldl -lesd -lpthread
9 9
10 COMMON_SRC := SDL_at.c common/common.c 10 COMMON_SRC := SDL_at.c common/common.c
11 COMMON_INCLUDE := SDL_at.h 11 COMMON_INCLUDE := SDL_at.h
12 12
13 TESTS_ALL := rwops/rwops surface/surface 13 TESTS_ALL := rwops/rwops surface/surface render/render
14 14
15 15
16 .PHONY: all clean test 16 .PHONY: all clean test
17 17
18 18
19 all: $(TESTS_ALL) 19 all: $(TESTS_ALL)
20 20
21 test: all 21 test: all
22 @./rwops/rwops 22 @./rwops/rwops
23 @./surface/surface 23 @./surface/surface
24 @./render/render
24 25
25 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) 26 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE)
26 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC) 27 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC)
27 28
28 surface/surface: surface/surface.c $(COMMON_INCLUDE) 29 surface/surface: surface/surface.c $(COMMON_INCLUDE)
29 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC) 30 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC)
30 31
32 render/render: render/render.c $(COMMON_INCLUDE)
33 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ render/render.c $(COMMON_SRC)
34
31 clean: 35 clean:
32 $(RM) $(TESTS_ALL) 36 $(RM) $(TESTS_ALL)