comparison test/automated/Makefile @ 3259:22ac66da0765

Merged Edgar's code changes from Google Summer of Code 2009
author Sam Lantinga <slouken@libsdl.org>
date Mon, 07 Sep 2009 05:06:34 +0000
parents
children c32c53fca10d
comparison
equal deleted inserted replaced
3258:e786366ea23b 3259:22ac66da0765
1
2
3 CFLAGS := -W -Wall -Wextra -g -I. `sdl-config --cflags`
4 LDFLAGS := `sdl-config --libs`
5
6 # If it doesn't pick up defaults
7 #CFLAGS := -I. -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL
8 #LDFLAGS := -lm -ldl -lesd -lpthread
9
10 SRC := testsdl.c \
11 rwops/rwops.c \
12 platform/platform.c \
13 surface/surface.c \
14 render/render.c \
15 audio/audio.c
16 COMMON_SRC := SDL_at.c common/common.c
17 COMMON_INCLUDE := SDL_at.h
18
19 TESTS_ALL := testsdl \
20 rwops/rwops \
21 platform/platform \
22 surface/surface \
23 render/render \
24 audio/audio
25
26
27 .PHONY: all clean test
28
29
30 all: $(TESTS_ALL)
31
32 test: all
33 @./testsdl
34
35 testsdl: $(SRC) $(COMMON_SRC)
36 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(COMMON_SRC)
37
38 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) $(COMMON_SRC)
39 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC) -DTEST_STANDALONE
40
41 platform/platform: platform/platform.c $(COMMON_INCLUDE) $(COMMON_SRC)
42 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ platform/platform.c $(COMMON_SRC) -DTEST_STANDALONE
43
44 surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC)
45 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC) -DTEST_STANDALONE
46
47 render/render: render/render.c $(COMMON_INCLUDE) $(COMMON_SRC)
48 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ render/render.c $(COMMON_SRC) -DTEST_STANDALONE
49
50 audio/audio: audio/audio.c $(COMMON_INCLUDE) $(COMMON_SRC)
51 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ audio/audio.c $(COMMON_SRC) -DTEST_STANDALONE
52
53 clean:
54 $(RM) $(TESTS_ALL)