Fixing linking issues using shared object.
authorMarkus Kauppila <markus.kauppila@gmail.com>
Wed, 20 Jul 2011 19:57:42 +0300
changeset 5776 32a61ad9ac1a
parent 5775 61b87cd64b4d
child 5777 e52f6ba69eef
Fixing linking issues using shared object.
test/test-automation/Makefile.am
test/test-automation/testdummy/Makefile.am
--- a/test/test-automation/Makefile.am	Wed Jul 20 19:32:34 2011 +0300
+++ b/test/test-automation/Makefile.am	Wed Jul 20 19:57:42 2011 +0300
@@ -3,10 +3,17 @@
 SUBDIRS = testdummy testrect testplatform testaudio testsurface
 
 bin_PROGRAMS = runner
-runner_SOURCES = runner.c SDL_test.c xml_logger.c plain_logger.c xml.c logger_helpers.c support.c
+runner_SOURCES = runner.c support.c 
 runner_CLAGS = -W -Wall -Wextra -g `sdl-config --cflags` -DSDL_NO_COMPAT
+runner_LDADD = libtest.la
 runner_LDFLAGS = `sdl-config --libs` 
 
+lib_LTLIBRARIES = libtest.la
+libtest_la_SOURCES = SDL_test.c logger_helpers.c plain_logger.c xml_logger.c xml.c \
+	common/common.c common/img_blit.c common/img_blitblend.c common/img_face.c common/img_primitives.c common/img_primitivesblend.c
+libtest_la_CLAGS = -fPIC -g
+libtest_la_LDFLAGS = `sdl-config --libs`
+
 install: install-tests
 install-tests:
 	$(SHELL) build-scripts/install-tests.sh
--- a/test/test-automation/testdummy/Makefile.am	Wed Jul 20 19:32:34 2011 +0300
+++ b/test/test-automation/testdummy/Makefile.am	Wed Jul 20 19:57:42 2011 +0300
@@ -1,4 +1,5 @@
 lib_LTLIBRARIES = libtestdummy.la
-libtestdummy_la_SOURCES = testdummy.c ../SDL_test.c ../logger_helpers.c ../plain_logger.c ../xml_logger.c ../xml.c
+libtestdummy_la_SOURCES = testdummy.c 
 libtestdummy_la_CLAGS = -fPIC -g
+libtestdummy_la_LIBADD = ../libtest.la
 libtestdummy_la_LDFLAGS = `sdl-config --libs`