comparison test/automated/Makefile @ 5156:3e4086b3bcd2

Fixed compiling with the latest API changes
author Sam Lantinga <slouken@libsdl.org>
date Wed, 02 Feb 2011 14:34:24 -0800
parents 033c455bbe99
children
comparison
equal deleted inserted replaced
5155:3b85dfaf2893 5156:3e4086b3bcd2
7 #CFLAGS := -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL 7 #CFLAGS := -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 \ 10 SRC := testsdl.c \
11 platform/platform.c \ 11 platform/platform.c \
12 rwops/rwops.c \
13 rwops/TestSupportRWops.c \
14 rect/rect.c \ 12 rect/rect.c \
15 surface/surface.c \ 13 surface/surface.c \
16 render/render.c \ 14 render/render.c \
17 audio/audio.c 15 audio/audio.c
18 COMMON_SRC := SDL_at.c common/common.c 16 COMMON_SRC := SDL_at.c common/common.c
19 COMMON_INCLUDE := SDL_at.h 17 COMMON_INCLUDE := SDL_at.h
18
19 RWOPS_SRC := rwops/rwops.c rwops/TestSupportRWops_Generic.c
20 20
21 TESTS_ALL := testsdl \ 21 TESTS_ALL := testsdl \
22 platform/platform \ 22 platform/platform \
23 rwops/rwops \ 23 rwops/rwops \
24 rect/rect \ 24 rect/rect \
33 all: $(TESTS_ALL) 33 all: $(TESTS_ALL)
34 34
35 test: all 35 test: all
36 @./testsdl 36 @./testsdl
37 37
38 testsdl: $(SRC) $(COMMON_SRC) 38 testsdl: $(SRC) $(RWOPS_SRC) $(COMMON_SRC)
39 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(COMMON_SRC) 39 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(RWOPS_SRC) $(COMMON_SRC)
40 40
41 platform/platform: platform/platform.c $(COMMON_INCLUDE) $(COMMON_SRC) 41 platform/platform: platform/platform.c $(COMMON_INCLUDE) $(COMMON_SRC)
42 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ platform/platform.c $(COMMON_SRC) -DTEST_STANDALONE 42 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ platform/platform.c $(COMMON_SRC) -DTEST_STANDALONE
43 43
44 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) $(COMMON_SRC) 44 rwops/rwops: $(RWOPS_SRC) $(COMMON_INCLUDE) $(COMMON_SRC)
45 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC) -DTEST_STANDALONE 45 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(RWOPS_SRC) $(COMMON_SRC) -DTEST_STANDALONE
46 46
47 rect/rect: rect/rect.c $(COMMON_INCLUDE) $(COMMON_SRC) 47 rect/rect: rect/rect.c $(COMMON_INCLUDE) $(COMMON_SRC)
48 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rect/rect.c $(COMMON_SRC) -DTEST_STANDALONE 48 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rect/rect.c $(COMMON_SRC) -DTEST_STANDALONE
49 49
50 surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC) 50 surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC)