comparison test/automated/Makefile @ 3736:78f544eded7b gsoc2009_unit_tests

Added platform test based ot testplatform.c.
author Edgar Simo <bobbens@gmail.com>
date Mon, 20 Jul 2009 18:42:55 +0000
parents e552b7acd45a
children e451d5d288e9
comparison
equal deleted inserted replaced
3735:27b4b4d71011 3736:78f544eded7b
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 render/render 13 TESTS_ALL := rwops/rwops platform/platform 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 @./platform/platform
23 @./surface/surface 24 @./surface/surface
24 @./render/render 25 @./render/render
25 26
26 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) $(COMMON_SRC) 27 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) $(COMMON_SRC)
27 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC) 28 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC)
29
30 platform/platform: platform/platform.c $(COMMON_INCLUDE) $(COMMON_SRC)
31 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ platform/platform.c $(COMMON_SRC)
28 32
29 surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC) 33 surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC)
30 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC) 34 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC)
31 35
32 render/render: render/render.c $(COMMON_INCLUDE) $(COMMON_SRC) 36 render/render: render/render.c $(COMMON_INCLUDE) $(COMMON_SRC)