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

Latest commit

 

History

History
45 lines (29 loc) · 1.26 KB

File metadata and controls

45 lines (29 loc) · 1.26 KB
 
Jul 11, 2009
Jul 11, 2009
3
CFLAGS := -W -Wall -Wextra -g -I. `sdl-config --cflags`
Jul 7, 2009
Jul 7, 2009
4
LDFLAGS := `sdl-config --libs`
Jul 1, 2009
Jul 1, 2009
6
# If it doesn't pick up defaults
Jul 7, 2009
Jul 7, 2009
7
8
#CFLAGS := -I. -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL
#LDFLAGS := -lm -ldl -lesd -lpthread
Jul 1, 2009
Jul 1, 2009
9
Aug 2, 2009
Aug 2, 2009
10
11
12
13
14
SRC := testsdl.c \
rwops/rwops.c \
platform/platform.c \
surface/surface.c \
render/render.c
Jul 11, 2009
Jul 11, 2009
15
COMMON_SRC := SDL_at.c common/common.c
16
17
COMMON_INCLUDE := SDL_at.h
Aug 2, 2009
Aug 2, 2009
18
TESTS_ALL := testsdl rwops/rwops platform/platform surface/surface render/render
19
20
Jun 19, 2009
Jun 19, 2009
21
.PHONY: all clean test
Jun 19, 2009
Jun 19, 2009
23
Aug 2, 2009
Aug 2, 2009
24
all: $(TESTS_ALL)
Jun 19, 2009
Jun 19, 2009
25
Jun 20, 2009
Jun 20, 2009
26
test: all
Aug 2, 2009
Aug 2, 2009
27
@./testsdl
Aug 2, 2009
Aug 2, 2009
29
testsdl: $(SRC) $(COMMON_SRC)
Aug 2, 2009
Aug 2, 2009
30
31
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(COMMON_SRC)
Jul 15, 2009
Jul 15, 2009
32
rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) $(COMMON_SRC)
Aug 2, 2009
Aug 2, 2009
33
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC) -DTEST_STANDALONE
Jun 19, 2009
Jun 19, 2009
34
Jul 20, 2009
Jul 20, 2009
35
platform/platform: platform/platform.c $(COMMON_INCLUDE) $(COMMON_SRC)
Aug 2, 2009
Aug 2, 2009
36
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ platform/platform.c $(COMMON_SRC) -DTEST_STANDALONE
Jul 20, 2009
Jul 20, 2009
37
Jul 15, 2009
Jul 15, 2009
38
surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC)
Aug 2, 2009
Aug 2, 2009
39
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC) -DTEST_STANDALONE
Jul 1, 2009
Jul 1, 2009
40
Jul 15, 2009
Jul 15, 2009
41
render/render: render/render.c $(COMMON_INCLUDE) $(COMMON_SRC)
Aug 2, 2009
Aug 2, 2009
42
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ render/render.c $(COMMON_SRC) -DTEST_STANDALONE
Jul 12, 2009
Jul 12, 2009
43
Jun 19, 2009
Jun 19, 2009
44
45
clean:
$(RM) $(TESTS_ALL)