Mercurial > sdl-ios-xcode
comparison test/automated/Makefile @ 3740:e451d5d288e9 gsoc2009_unit_tests
Merged into one big app, while keeping modular applications also.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Sun, 02 Aug 2009 16:01:23 +0000 |
parents | 78f544eded7b |
children | 808fad5fb593 |
comparison
equal
deleted
inserted
replaced
3739:651b261e591d | 3740:e451d5d288e9 |
---|---|
5 | 5 |
6 # If it doesn't pick up defaults | 6 # If it doesn't pick up defaults |
7 #CFLAGS := -I. -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL | 7 #CFLAGS := -I. -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL |
8 #LDFLAGS := -lm -ldl -lesd -lpthread | 8 #LDFLAGS := -lm -ldl -lesd -lpthread |
9 | 9 |
10 SRC := testsdl.c \ | |
11 rwops/rwops.c \ | |
12 platform/platform.c \ | |
13 surface/surface.c \ | |
14 render/render.c | |
10 COMMON_SRC := SDL_at.c common/common.c | 15 COMMON_SRC := SDL_at.c common/common.c |
11 COMMON_INCLUDE := SDL_at.h | 16 COMMON_INCLUDE := SDL_at.h |
12 | 17 |
13 TESTS_ALL := rwops/rwops platform/platform surface/surface render/render | 18 TESTS_ALL := rwops/rwops platform/platform surface/surface render/render |
14 | 19 |
15 | 20 |
16 .PHONY: all clean test | 21 .PHONY: all clean test |
17 | 22 |
18 | 23 |
19 all: $(TESTS_ALL) | 24 all: testsdl $(TESTS_ALL) |
20 | 25 |
21 test: all | 26 test: all |
22 @./rwops/rwops | 27 @./rwops/rwops |
23 @./platform/platform | 28 @./platform/platform |
24 @./surface/surface | 29 @./surface/surface |
25 @./render/render | 30 @./render/render |
26 | 31 |
32 testsdl: | |
33 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(COMMON_SRC) | |
34 | |
27 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) $(COMMON_SRC) | 35 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) $(COMMON_SRC) |
28 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC) | 36 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC) -DTEST_STANDALONE |
29 | 37 |
30 platform/platform: platform/platform.c $(COMMON_INCLUDE) $(COMMON_SRC) | 38 platform/platform: platform/platform.c $(COMMON_INCLUDE) $(COMMON_SRC) |
31 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ platform/platform.c $(COMMON_SRC) | 39 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ platform/platform.c $(COMMON_SRC) -DTEST_STANDALONE |
32 | 40 |
33 surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC) | 41 surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC) |
34 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC) | 42 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC) -DTEST_STANDALONE |
35 | 43 |
36 render/render: render/render.c $(COMMON_INCLUDE) $(COMMON_SRC) | 44 render/render: render/render.c $(COMMON_INCLUDE) $(COMMON_SRC) |
37 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ render/render.c $(COMMON_SRC) | 45 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ render/render.c $(COMMON_SRC) -DTEST_STANDALONE |
38 | 46 |
39 clean: | 47 clean: |
40 $(RM) $(TESTS_ALL) | 48 $(RM) $(TESTS_ALL) |