Mercurial > sdl-ios-xcode
diff test/automated/Makefile @ 3541:0c429a5fda8a
Added an automated test for rectangle routines, currently only testing line clipping.
Use the Cohen-Sutherland algorithm for line clipping which uses integer math and preserves ordering of clipped points.
Removed getopt() support in testsdl.c, replaced with simple argv scanning.
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Fri, 11 Dec 2009 09:22:34 +0000 |
parents | c32c53fca10d |
children | f638ded38b8a |
line wrap: on
line diff
--- a/test/automated/Makefile Fri Dec 11 09:13:51 2009 +0000 +++ b/test/automated/Makefile Fri Dec 11 09:22:34 2009 +0000 @@ -8,8 +8,9 @@ #LDFLAGS := -lm -ldl -lesd -lpthread SRC := testsdl.c \ + platform/platform.c \ rwops/rwops.c \ - platform/platform.c \ + rect/rect.c \ surface/surface.c \ render/render.c \ audio/audio.c @@ -17,8 +18,9 @@ COMMON_INCLUDE := SDL_at.h TESTS_ALL := testsdl \ + platform/platform \ rwops/rwops \ - platform/platform \ + rect/rect \ surface/surface \ render/render \ audio/audio @@ -35,11 +37,14 @@ testsdl: $(SRC) $(COMMON_SRC) $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(SRC) $(COMMON_SRC) +platform/platform: platform/platform.c $(COMMON_INCLUDE) $(COMMON_SRC) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ platform/platform.c $(COMMON_SRC) -DTEST_STANDALONE + 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 +rect/rect: rect/rect.c $(COMMON_INCLUDE) $(COMMON_SRC) + $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rect/rect.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