[Freeswitch-svn] [commit] r7826 - freeswitch/trunk/libs/sofia-sip/tests

Freeswitch SVN mikej at freeswitch.org
Fri Mar 7 12:47:44 EST 2008


Author: mikej
Date: Fri Mar  7 12:47:44 2008
New Revision: 7826

Modified:
   freeswitch/trunk/libs/sofia-sip/tests/Makefile.am

Log:
Fri Mar  7 11:49:17 EST 2008  Pekka.Pessi at nokia.com
  * tests/Makefile: using testsdir, installing check_sofia there



Modified: freeswitch/trunk/libs/sofia-sip/tests/Makefile.am
==============================================================================
--- freeswitch/trunk/libs/sofia-sip/tests/Makefile.am	(original)
+++ freeswitch/trunk/libs/sofia-sip/tests/Makefile.am	Fri Mar  7 12:47:44 2008
@@ -5,7 +5,8 @@
 EXTRA_DIST = check_sofia.h check_sofia.c suite_for_nua.c
 
 TESTS =
-check_PROGRAMS =
+tests_PROGRAMS =
+testsdir := ${libdir}/tests/libsofia-sip-ua-tests
 
 include $(top_srcdir)/rules/sofia.am
 
@@ -14,20 +15,21 @@
 AM_CFLAGS += @CHECK_CFLAGS@
 
 if HAVE_CHECK
+
 TESTS += check_sofia
-check_PROGRAMS += check_sofia
+tests_PROGRAMS += check_sofia
 
 check_sofia_SOURCES = check_sofia.c check_sofia.h \
 	suite_for_nua.c
 
-${sofiabuilddir}/nua/libtestnua.la \
+CHECKLIBS = ${sofiabuilddir}/nua/libtestnua.la \
 	${sofiabuilddir}/nua/libtestproxy.la \
-	${sofiabuilddir}/nua/libtestnat.la:
+	${sofiabuilddir}/nua/libtestnat.la
+
+$(CHECKLIBS):
 	cd ${sofiabuilddir}/nua && make checklib
 
 check_sofia_LDADD = \
-	${sofiabuilddir}/nua/libtestnua.la \
-	${sofiabuilddir}/nua/libtestproxy.la \
-	${sofiabuilddir}/nua/libtestnat.la \
-	${sofiabuilddir}/libsofia-sip-ua.la @CHECK_LIBS@
+	$(CHECKLIBS) ${sofiabuilddir}/libsofia-sip-ua.la \
+	@CHECK_LIBS@
 endif



More information about the Freeswitch-svn mailing list