Mercurial > sdl-ios-xcode
diff 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 |
line wrap: on
line diff
--- a/test/automated/Makefile Sat Jun 20 16:54:22 2009 +0000 +++ b/test/automated/Makefile Wed Jul 01 10:22:28 2009 +0000 @@ -1,12 +1,16 @@ -CFLAGS := -I. `sdl-config --cflags` -LDFLAGS := `sdl-config --libs` +#CFLAGS := -I. `sdl-config --cflags` +#LDFLAGS := `sdl-config --libs` -COMMON_SRC := SDL_at.c +# If it doesn't pick up defaults +CFLAGS := -I. -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/local/include/SDL +LDFLAGS := -lm -ldl -lesd -lpthread + +COMMON_SRC := SDL_at.c /usr/local/lib/libSDL.a COMMON_INCLUDE := SDL_at.h -TESTS_ALL := rwops/rwops +TESTS_ALL := rwops/rwops surface/surface .PHONY: all clean test @@ -16,9 +20,13 @@ test: all @./rwops/rwops + @./surface/surface rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC) +surface/surface: surface/surface.c $(COMMON_INCLUDE) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC) + clean: $(RM) $(TESTS_ALL)