Mercurial > sdl-ios-xcode
view test/automated/Makefile @ 3740:e451d5d288e9 gsoc2009_unit_tests
Merged into one big app, while keeping modular applications also.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Sun, 02 Aug 2009 16:01:23 +0000 |
parents | 78f544eded7b |
children | 808fad5fb593 |
line wrap: on
line source
CFLAGS := -W -Wall -Wextra -g -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 SRC := testsdl.c \ rwops/rwops.c \ platform/platform.c \ surface/surface.c \ render/render.c COMMON_SRC := SDL_at.c common/common.c COMMON_INCLUDE := SDL_at.h TESTS_ALL := rwops/rwops platform/platform surface/surface render/render .PHONY: all clean test all: testsdl $(TESTS_ALL) test: all @./rwops/rwops @./platform/platform @./surface/surface @./render/render testsdl: $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(COMMON_SRC) rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) $(COMMON_SRC) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC) -DTEST_STANDALONE platform/platform: platform/platform.c $(COMMON_INCLUDE) $(COMMON_SRC) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ platform/platform.c $(COMMON_SRC) -DTEST_STANDALONE surface/surface: surface/surface.c $(COMMON_INCLUDE) $(COMMON_SRC) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ surface/surface.c $(COMMON_SRC) -DTEST_STANDALONE render/render: render/render.c $(COMMON_INCLUDE) $(COMMON_SRC) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ render/render.c $(COMMON_SRC) -DTEST_STANDALONE clean: $(RM) $(TESTS_ALL)