Mercurial > sdl-ios-xcode
annotate test/automated/Makefile @ 3712:916469fbdc29 gsoc2009_unit_tests
Make makefile a bit more complete.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Fri, 19 Jun 2009 18:57:23 +0000 |
parents | 80839fc6b8e1 |
children | a34bab848c7e |
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 |
80839fc6b8e1
First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
3 CFLAGS := `sdl-config --cflags` |
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 |
3712
916469fbdc29
Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents:
3711
diff
changeset
|
9 TESTS_ALL := 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: |
916469fbdc29
Make makefile a bit more complete.
Edgar Simo <bobbens@gmail.com>
parents:
3711
diff
changeset
|
18 @./rwops |
3711
80839fc6b8e1
First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
19 |
80839fc6b8e1
First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
diff
changeset
|
20 rwops: rwops.c $(COMMON_INCLUDE) |
80839fc6b8e1
First revision of the automated test suite.
Edgar Simo <bobbens@gmail.com>
parents:
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) |