Added Jamfile for project which makes example programs + yp2 lib
[metaproxy-moved-to-github.git] / src / Makefile.am
1 ## $Id: Makefile.am,v 1.32 2005-10-31 22:44:55 adam Exp $
2
3 MAINTAINERCLEANFILES = Makefile.in config.in config.hpp
4
5 AM_CXXFLAGS = $(YAZPPINC) $(XSLT_CFLAGS)
6
7 EXTRA_DIST=Jamfile.in
8
9 # Rules for the library..
10
11 lib_LTLIBRARIES = libyp2.la
12 libyp2_la_LDFLAGS = -version-info 0:0:0
13
14 libyp2_la_SOURCES = \
15         session.cpp session.hpp package.hpp \
16         router.hpp router_chain.hpp router_chain.cpp \
17         router_flexml.hpp router_flexml.cpp \
18         thread_pool_observer.cpp thread_pool_observer.hpp \
19         filter.hpp filter.cpp filter_factory.hpp \
20         filter_frontend_net.cpp filter_frontend_net.hpp \
21         filter_log.cpp filter_log.hpp \
22         filter_virt_db.cpp filter_virt_db.hpp \
23         filter_z3950_client.cpp filter_z3950_client.hpp \
24         filter_backend_test.cpp filter_backend_test.hpp \
25         util.cpp util.hpp
26
27 # Rules for programs..
28
29 LDADD= libyp2.la $(YAZPPLALIB) $(XSLT_LIBS)
30
31 bin_PROGRAMS =
32 noinst_PROGRAMS = ex_filter_frontend_net ex_libxml2_conf ex_router_flexml
33
34 ex_filter_frontend_net_SOURCES = ex_filter_frontend_net.cpp
35 ex_libxml2_conf_SOURCES = ex_libxml2_conf.cpp
36 ex_router_flexml_SOURCES =  ex_router_flexml.cpp
37 # Rules for test programs..
38
39 check_PROGRAMS = \
40         test_package1 \
41         test_filter1 test_filter2 \
42         test_session1 test_session2 \
43         test_thread_pool_observer \
44         test_boost_threads test_boost_time \
45         test_filter_factory \
46         test_filter_frontend_net \
47         test_filter_log \
48         test_filter_z3950_client \
49         test_filter_backend_test \
50         test_filter_virt_db \
51         test_ses_map \
52         test_router_flexml
53
54 TESTS=$(check_PROGRAMS)
55
56 test_package1_SOURCES=test_package1.cpp
57 test_filter1_SOURCES=test_filter1.cpp
58 test_filter2_SOURCES=test_filter2.cpp
59 test_session1_SOURCES=test_session1.cpp
60 test_session2_SOURCES=test_session2.cpp
61 test_boost_threads_SOURCES=test_boost_threads.cpp
62 test_boost_time_SOURCES=test_boost_time.cpp
63 test_thread_pool_observer_SOURCES = test_thread_pool_observer.cpp
64 test_filter_factory_SOURCES = test_filter_factory.cpp
65 test_filter_frontend_net_SOURCES = test_filter_frontend_net.cpp
66 test_filter_log_SOURCES = test_filter_log.cpp
67 test_filter_z3950_client_SOURCES = test_filter_z3950_client.cpp
68 test_filter_backend_test_SOURCES = test_filter_backend_test.cpp
69 test_filter_virt_db_SOURCES = test_filter_virt_db.cpp
70 test_ses_map_SOURCES = test_ses_map.cpp
71 test_router_flexml_SOURCES = test_router_flexml.cpp
72
73 TESTLDADD = $(LDADD) -lboost_unit_test_framework
74
75 test_filter1_LDADD = $(TESTLDADD)
76 test_filter2_LDADD = $(TESTLDADD)
77 test_session1_LDADD = $(TESTLDADD)
78 test_session2_LDADD = $(TESTLDADD)
79 test_boost_threads_LDADD = $(TESTLDADD)
80 test_boost_time_LDADD = $(TESTLDADD)
81 test_thread_pool_observer_LDADD = $(TESTLDADD)
82 test_package1_LDADD = $(TESTLDADD)
83 test_filter_factory_LDADD = $(TESTLDADD)
84 test_filter_frontend_net_LDADD = $(TESTLDADD)
85 test_filter_log_LDADD = $(TESTLDADD)
86 test_filter_z3950_client_LDADD = $(TESTLDADD)
87 test_filter_backend_test_LDADD = $(TESTLDADD)
88 test_filter_virt_db_LDADD = $(TESTLDADD)
89 test_ses_map_LDADD = $(TESTLDADD)
90 test_router_flexml_LDADD = $(TESTLDADD)
91
92 # doxygen target
93 dox:
94         (cd $(top_srcdir) ; make dox) 
95
96 showdox:
97         (cd $(top_srcdir) ; make showdox)