Mercurial > sdl-ios-xcode
comparison 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 |
comparison
equal
deleted
inserted
replaced
3714:1b710c8e4cfb | 3715:3c9d9c052c8f |
---|---|
1 | 1 |
2 | 2 |
3 CFLAGS := -I. `sdl-config --cflags` | 3 #CFLAGS := -I. `sdl-config --cflags` |
4 LDFLAGS := `sdl-config --libs` | 4 #LDFLAGS := `sdl-config --libs` |
5 | 5 |
6 COMMON_SRC := SDL_at.c | 6 # If it doesn't pick up defaults |
7 CFLAGS := -I. -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL | |
8 LDFLAGS := -lm -ldl -lesd -lpthread | |
9 | |
10 COMMON_SRC := SDL_at.c /usr/local/lib/libSDL.a | |
7 COMMON_INCLUDE := SDL_at.h | 11 COMMON_INCLUDE := SDL_at.h |
8 | 12 |
9 TESTS_ALL := rwops/rwops | 13 TESTS_ALL := rwops/rwops surface/surface |
10 | 14 |
11 | 15 |
12 .PHONY: all clean test | 16 .PHONY: all clean test |
13 | 17 |
14 | 18 |
15 all: $(TESTS_ALL) | 19 all: $(TESTS_ALL) |
16 | 20 |
17 test: all | 21 test: all |
18 @./rwops/rwops | 22 @./rwops/rwops |
23 @./surface/surface | |
19 | 24 |
20 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) | 25 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) |
21 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC) | 26 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC) |
22 | 27 |
28 surface/surface: surface/surface.c $(COMMON_INCLUDE) | |
29 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC) | |
30 | |
23 clean: | 31 clean: |
24 $(RM) $(TESTS_ALL) | 32 $(RM) $(TESTS_ALL) |