annotate 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
rev   line source
3711
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
1
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
2
3713
a34bab848c7e Better output.
Edgar Simo <bobbens@gmail.com>
parents: 3712
diff changeset
3 CFLAGS := -I. `sdl-config --cflags`
3711
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
4 LDFLAGS := `sdl-config --libs`
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
5
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
6 COMMON_SRC := SDL_at.c
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
7 COMMON_INCLUDE := SDL_at.h
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
8
3713
a34bab848c7e Better output.
Edgar Simo <bobbens@gmail.com>
parents: 3712
diff changeset
9 TESTS_ALL := rwops/rwops
3711
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
10
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
11
3712
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
12 .PHONY: all clean test
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
13
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
14
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
15 all: $(TESTS_ALL)
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
16
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
17 test:
3713
a34bab848c7e Better output.
Edgar Simo <bobbens@gmail.com>
parents: 3712
diff changeset
18 @./rwops/rwops
3711
80839fc6b8e1 First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff changeset
19
3713
a34bab848c7e Better output.
Edgar Simo <bobbens@gmail.com>
parents: 3712
diff changeset
20 rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE)
a34bab848c7e Better output.
Edgar Simo <bobbens@gmail.com>
parents: 3712
diff changeset
21 $(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC)
3712
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
22
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
23 clean:
916469fbdc29 Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents: 3711
diff changeset
24 $(RM) $(TESTS_ALL)