Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
60 lines (41 loc) · 1.68 KB

File metadata and controls

60 lines (41 loc) · 1.68 KB
 
Dec 23, 2009
Dec 23, 2009
3
CFLAGS := -W -Wall -Wextra -g `sdl-config --cflags` -DSDL_NO_COMPAT
4
5
6
LDFLAGS := `sdl-config --libs`
# If it doesn't pick up defaults
Nov 22, 2009
Nov 22, 2009
7
#CFLAGS := -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL
8
9
10
11
#LDFLAGS := -lm -ldl -lesd -lpthread
SRC := testsdl.c \
platform/platform.c \
Dec 11, 2009
Dec 11, 2009
12
rect/rect.c \
13
14
15
16
17
18
surface/surface.c \
render/render.c \
audio/audio.c
COMMON_SRC := SDL_at.c common/common.c
COMMON_INCLUDE := SDL_at.h
Feb 2, 2011
Feb 2, 2011
19
20
RWOPS_SRC := rwops/rwops.c rwops/TestSupportRWops_Generic.c
21
22
TESTS_ALL := testsdl \
platform/platform \
Dec 11, 2009
Dec 11, 2009
23
24
rwops/rwops \
rect/rect \
25
26
27
28
29
30
31
32
33
34
35
36
37
surface/surface \
render/render \
audio/audio
.PHONY: all clean test
all: $(TESTS_ALL)
test: all
@./testsdl
Feb 2, 2011
Feb 2, 2011
38
39
testsdl: $(SRC) $(RWOPS_SRC) $(COMMON_SRC)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(RWOPS_SRC) $(COMMON_SRC)
Dec 11, 2009
Dec 11, 2009
41
42
43
platform/platform: platform/platform.c $(COMMON_INCLUDE) $(COMMON_SRC)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ platform/platform.c $(COMMON_SRC) -DTEST_STANDALONE
Feb 2, 2011
Feb 2, 2011
44
45
rwops/rwops: $(RWOPS_SRC) $(COMMON_INCLUDE) $(COMMON_SRC)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(RWOPS_SRC) $(COMMON_SRC) -DTEST_STANDALONE
Dec 11, 2009
Dec 11, 2009
47
48
rect/rect: rect/rect.c $(COMMON_INCLUDE) $(COMMON_SRC)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ rect/rect.c $(COMMON_SRC) -DTEST_STANDALONE
49
50
51
52
53
54
55
56
57
58
59
60
surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC) -DTEST_STANDALONE
render/render: render/render.c $(COMMON_INCLUDE) $(COMMON_SRC)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ render/render.c $(COMMON_SRC) -DTEST_STANDALONE
audio/audio: audio/audio.c $(COMMON_INCLUDE) $(COMMON_SRC)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ audio/audio.c $(COMMON_SRC) -DTEST_STANDALONE
clean:
$(RM) $(TESTS_ALL)