/[pcsx2_0.9.7]/trunk/3rdparty/SDL-1.3.0-5387/test/automated/Makefile
ViewVC logotype

Contents of /trunk/3rdparty/SDL-1.3.0-5387/test/automated/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 401 - (show annotations) (download)
Fri Feb 25 17:31:09 2011 UTC (9 years, 11 months ago) by william
File size: 1720 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4358 local: v0.9.7.313-latest) in ./trunk
1
2
3 CFLAGS := -W -Wall -Wextra -g `sdl-config --cflags` -DSDL_NO_COMPAT
4 LDFLAGS := `sdl-config --libs`
5
6 # If it doesn't pick up defaults
7 #CFLAGS := -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL
8 #LDFLAGS := -lm -ldl -lesd -lpthread
9
10 SRC := testsdl.c \
11 platform/platform.c \
12 rect/rect.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 RWOPS_SRC := rwops/rwops.c rwops/TestSupportRWops_Generic.c
20
21 TESTS_ALL := testsdl \
22 platform/platform \
23 rwops/rwops \
24 rect/rect \
25 surface/surface \
26 render/render \
27 audio/audio
28
29
30 .PHONY: all clean test
31
32
33 all: $(TESTS_ALL)
34
35 test: all
36 @./testsdl
37
38 testsdl: $(SRC) $(RWOPS_SRC) $(COMMON_SRC)
39 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(RWOPS_SRC) $(COMMON_SRC)
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 rwops/rwops: $(RWOPS_SRC) $(COMMON_INCLUDE) $(COMMON_SRC)
45 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(RWOPS_SRC) $(COMMON_SRC) -DTEST_STANDALONE
46
47 rect/rect: rect/rect.c $(COMMON_INCLUDE) $(COMMON_SRC)
48 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rect/rect.c $(COMMON_SRC) -DTEST_STANDALONE
49
50 surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC)
51 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC) -DTEST_STANDALONE
52
53 render/render: render/render.c $(COMMON_INCLUDE) $(COMMON_SRC)
54 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ render/render.c $(COMMON_SRC) -DTEST_STANDALONE
55
56 audio/audio: audio/audio.c $(COMMON_INCLUDE) $(COMMON_SRC)
57 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ audio/audio.c $(COMMON_SRC) -DTEST_STANDALONE
58
59 clean:
60 $(RM) $(TESTS_ALL)

  ViewVC Help
Powered by ViewVC 1.1.22