initial import for sdlhaa & sdlhim
[sdlhildon] / sdlhaa / test / Makefile
diff --git a/sdlhaa/test/Makefile b/sdlhaa/test/Makefile
new file mode 100644 (file)
index 0000000..964a4c0
--- /dev/null
@@ -0,0 +1,18 @@
+CFLAGS:=-g -O0 -Wall
+
+TEST_LDLIBS:=$(shell sdl-config --libs) -lSDL_haa
+TEST_CFLAGS:=$(shell sdl-config --cflags)
+
+TESTS:=basic multi alpha fullscreen
+
+all: $(TESTS)
+
+$(TESTS): %: %.o
+       $(CC) $(LDFLAGS) $(TEST_LDFLAGS) $(LDLIBS) $(TEST_LDLIBS) -o $@ $^
+       
+%.o: %.c
+       $(CC) $(CFLAGS) $(TEST_CFLAGS) -c -o $@ $^
+       
+clean:
+       rm -f *.o $(TESTS)
+