changes includes in test programs to use splitted header
[metaproxy-moved-to-github.git] / src / Makefile.am
index 16b46d3..7600831 100644 (file)
@@ -1,17 +1,22 @@
-## $Id: Makefile.am,v 1.4 2005-10-06 19:33:58 adam Exp $
+## $Id: Makefile.am,v 1.7 2005-10-07 10:03:07 marc Exp $
 
-AM_CXXFLAGS = $(YAZPPINC) $(XSLT_CFLAGS) $(USEMARCONINC)
+AM_CXXFLAGS = $(YAZPPINC) $(XSLT_CFLAGS)
+
+YP2_INCHPP = session.hpp package.hpp filter.hpp router.hpp
 
 bin_PROGRAMS =
-check_PROGRAMS = test_filter1 test_filter2 test_thread_pool_observer
-noinst_PROGRAMS =  p2 design
+check_PROGRAMS = test_filter1 test_filter2 test_session1 \
+                test_thread_pool_observer test_boost_threads
+noinst_PROGRAMS =  p2 
 
 TESTS=$(check_PROGRAMS)
 
-design_SOURCES=design.h  design_main.cpp
-
-test_filter1_SOURCES=test_filter1.cpp
-test_filter2_SOURCES=test_filter2.cpp
+test_filter1_SOURCES=test_filter1.cpp $(YP2_INCHPP)
+test_filter2_SOURCES=test_filter2.cpp $(YP2_INCHPP)
+test_session1_SOURCES=test_session1.cpp $(YP2_INCHPP)
+test_boost_threads_SOURCES=test_boost_threads.cpp
+test_thread_pool_observer_SOURCES = test_thread_pool_observer.cpp \
+          thread_pool_observer.cpp thread_pool_observer.h
 
 p2_SOURCES=p2_frontend.cpp p2_msg.cpp p2.cpp p2_frontend.h \
  p2_config.cpp p2_config.h \
@@ -20,10 +25,8 @@ p2_SOURCES=p2_frontend.cpp p2_msg.cpp p2.cpp p2_frontend.h \
  p2_xmlerror.cpp p2_xmlerror.h \
  thread_pool_observer.cpp thread_pool_observer.h
 
-test_thread_pool_observer_SOURCES = test_thread_pool_observer.cpp \
- thread_pool_observer.cpp thread_pool_observer.h
 
-LDADD= $(YAZPPLALIB) $(XSLT_LIBS) $(USEMARCONLALIB)
+LDADD= $(YAZPPLALIB) $(XSLT_LIBS) -lboost_thread
 
 
 # Modules