Mercurial > sdl-ios-xcode
view test/automated/Makefile @ 3723:1496cdbb6055 gsoc2009_unit_tests
* Added mixture of blending modes test.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Thu, 09 Jul 2009 15:01:38 +0000 |
parents | d8772964e402 |
children | 97e9704fc267 |
line wrap: on
line source
CFLAGS := -W -Wall -Wextra -I. `sdl-config --cflags` LDFLAGS := `sdl-config --libs` # 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 surface/surface .PHONY: all clean test all: $(TESTS_ALL) 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)