Mercurial > sdl-ios-xcode
comparison test/automated/Makefile @ 3713:a34bab848c7e gsoc2009_unit_tests
Better output.
Newline handling.
rwops test handles ConstMem, FP and File.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Sat, 20 Jun 2009 16:46:58 +0000 |
parents | 916469fbdc29 |
children | 1b710c8e4cfb |
comparison
equal
deleted
inserted
replaced
3712:916469fbdc29 | 3713:a34bab848c7e |
---|---|
1 | 1 |
2 | 2 |
3 CFLAGS := `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 COMMON_SRC := SDL_at.c |
7 COMMON_INCLUDE := SDL_at.h | 7 COMMON_INCLUDE := SDL_at.h |
8 | 8 |
9 TESTS_ALL := rwops | 9 TESTS_ALL := rwops/rwops |
10 | 10 |
11 | 11 |
12 .PHONY: all clean test | 12 .PHONY: all clean test |
13 | 13 |
14 | 14 |
15 all: $(TESTS_ALL) | 15 all: $(TESTS_ALL) |
16 | 16 |
17 test: | 17 test: |
18 @./rwops | 18 @./rwops/rwops |
19 | 19 |
20 rwops: rwops.c $(COMMON_INCLUDE) | 20 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE) |
21 $(CC) $(CFLAGS) $(LDFLAGS) -o rwops rwops.c $(COMMON_SRC) | 21 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC) |
22 | 22 |
23 clean: | 23 clean: |
24 $(RM) $(TESTS_ALL) | 24 $(RM) $(TESTS_ALL) |