annotate test/automated/Makefile @ 3722:d8772964e402 gsoc2009_unit_tests

Added more strict warning flags. Fixed bugs/issues uncovered by warning flags.
author Edgar Simo <bobbens@gmail.com>
date Thu, 09 Jul 2009 10:42:56 +0000
parents 1e46139bc4bc
children 97e9704fc267
rev   line source
3711
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
1
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
2
3722
d8772964e402 Added more strict warning flags.
Edgar Simo <bobbens@gmail.com>
parents: 3717
diff changeset
3 CFLAGS := -W -Wall -Wextra -I. `sdl-config --cflags`
3717
1e46139bc4bc Fixed my setup, putting a more universal makefile up.
Edgar Simo <bobbens@gmail.com>
parents: 3715
diff changeset
4 LDFLAGS := `sdl-config --libs`
3711
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
5
3715
3c9d9c052c8f Initial revision of SDL_Surface testsuite.
Edgar Simo <bobbens@gmail.com>
parents: 3714
diff changeset
6 # If it doesn't pick up defaults
3717
1e46139bc4bc Fixed my setup, putting a more universal makefile up.
Edgar Simo <bobbens@gmail.com>
parents: 3715
diff changeset
7 #CFLAGS := -I. -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL
1e46139bc4bc Fixed my setup, putting a more universal makefile up.
Edgar Simo <bobbens@gmail.com>
parents: 3715
diff changeset
8 #LDFLAGS := -lm -ldl -lesd -lpthread
3715
3c9d9c052c8f Initial revision of SDL_Surface testsuite.
Edgar Simo <bobbens@gmail.com>
parents: 3714
diff changeset
9
3c9d9c052c8f Initial revision of SDL_Surface testsuite.
Edgar Simo <bobbens@gmail.com>
parents: 3714
diff changeset
10 COMMON_SRC := SDL_at.c /usr/local/lib/libSDL.a
3711
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
11 COMMON_INCLUDE := SDL_at.h
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
12
3715
3c9d9c052c8f Initial revision of SDL_Surface testsuite.
Edgar Simo <bobbens@gmail.com>
parents: 3714
diff changeset
13 TESTS_ALL := rwops/rwops surface/surface
3711
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
14
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
15
3712
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
16 .PHONY: all clean test
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
17
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
18
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
19 all: $(TESTS_ALL)
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
20
3714
1b710c8e4cfb Test target should build if needed.
Edgar Simo <bobbens@gmail.com>
parents: 3713
diff changeset
21 test: all
3713
a34bab848c7e Better output.
Edgar Simo <bobbens@gmail.com>
parents: 3712
diff changeset
22 @./rwops/rwops
3715
3c9d9c052c8f Initial revision of SDL_Surface testsuite.
Edgar Simo <bobbens@gmail.com>
parents: 3714
diff changeset
23 @./surface/surface
3711
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
24
3713
a34bab848c7e Better output.
Edgar Simo <bobbens@gmail.com>
parents: 3712
diff changeset
25 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE)
a34bab848c7e Better output.
Edgar Simo <bobbens@gmail.com>
parents: 3712
diff changeset
26 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC)
3712
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
27
3715
3c9d9c052c8f Initial revision of SDL_Surface testsuite.
Edgar Simo <bobbens@gmail.com>
parents: 3714
diff changeset
28 surface/surface: surface/surface.c $(COMMON_INCLUDE)
3c9d9c052c8f Initial revision of SDL_Surface testsuite.
Edgar Simo <bobbens@gmail.com>
parents: 3714
diff changeset
29 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC)
3c9d9c052c8f Initial revision of SDL_Surface testsuite.
Edgar Simo <bobbens@gmail.com>
parents: 3714
diff changeset
30
3712
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
31 clean:
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
32 $(RM) $(TESTS_ALL)