annotate test/automated/Makefile @ 3715:3c9d9c052c8f gsoc2009_unit_tests

Initial revision of SDL_Surface testsuite.
author Edgar Simo <bobbens@gmail.com>
date Wed, 01 Jul 2009 10:22:28 +0000
parents 1b710c8e4cfb
children 1e46139bc4bc
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
3715
3c9d9c052c8f Initial revision of SDL_Surface testsuite.
Edgar Simo <bobbens@gmail.com>
parents: 3714
diff changeset
3 #CFLAGS := -I. `sdl-config --cflags`
3c9d9c052c8f Initial revision of SDL_Surface testsuite.
Edgar Simo <bobbens@gmail.com>
parents: 3714
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
3c9d9c052c8f Initial revision of SDL_Surface testsuite.
Edgar Simo <bobbens@gmail.com>
parents: 3714
diff changeset
7 CFLAGS := -I. -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL
3c9d9c052c8f Initial revision of SDL_Surface testsuite.
Edgar Simo <bobbens@gmail.com>
parents: 3714
diff changeset
8 LDFLAGS := -lm -ldl -lesd -lpthread
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)