diff 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
line wrap: on
line diff
--- a/test/automated/Makefile	Fri Jun 19 18:57:23 2009 +0000
+++ b/test/automated/Makefile	Sat Jun 20 16:46:58 2009 +0000
@@ -1,12 +1,12 @@
 
 
-CFLAGS  := `sdl-config --cflags`
+CFLAGS  := -I. `sdl-config --cflags`
 LDFLAGS := `sdl-config --libs`
 
 COMMON_SRC     := SDL_at.c
 COMMON_INCLUDE := SDL_at.h
 
-TESTS_ALL := rwops
+TESTS_ALL := rwops/rwops
 
 
 .PHONY: all clean test
@@ -15,10 +15,10 @@
 all: $(TESTS_ALL)
 
 test:
-	@./rwops
+	@./rwops/rwops
 
-rwops: rwops.c $(COMMON_INCLUDE)
-	$(CC) $(CFLAGS) $(LDFLAGS) -o rwops rwops.c $(COMMON_SRC)
+rwops/rwops: rwops/rwops.c $(COMMON_INCLUDE)
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ rwops/rwops.c $(COMMON_SRC)
 
 clean:
 	$(RM) $(TESTS_ALL)