Rename yp2::FilterFactory to yp2::FactoryFilter
[metaproxy-moved-to-github.git] / src / Makefile.am
1 ## $Id: Makefile.am,v 1.40 2006-01-04 14:30:51 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 -export-dynamic
13
14 libyp2_la_SOURCES = \
15         session.cpp session.hpp \
16         package.cpp package.hpp \
17         router.hpp router_chain.hpp router_chain.cpp \
18         router_flexml.hpp router_flexml.cpp \
19         thread_pool_observer.cpp thread_pool_observer.hpp \
20         filter.hpp filter.cpp factory_filter.cpp factory_filter.hpp \
21         filter_frontend_net.cpp filter_frontend_net.hpp \
22         filter_log.cpp filter_log.hpp \
23         filter_virt_db.cpp filter_virt_db.hpp \
24         filter_z3950_client.cpp filter_z3950_client.hpp \
25         filter_backend_test.cpp filter_backend_test.hpp \
26         filter_session_shared.cpp filter_session_shared.hpp \
27         filter_template.cpp filter_template.hpp \
28         factory_static.cpp factory_static.hpp \
29         pipe.cpp pipe.hpp \
30         util.cpp util.hpp
31
32 # Rules for programs..
33
34 LDADD= libyp2.la $(YAZPPLALIB) $(XSLT_LIBS)
35
36 bin_PROGRAMS =
37 noinst_PROGRAMS = ex_filter_frontend_net ex_router_flexml tstdl
38
39 ex_filter_frontend_net_SOURCES = ex_filter_frontend_net.cpp
40 ex_router_flexml_SOURCES =  ex_router_flexml.cpp
41 tstdl_SOURCES = tstdl.cpp
42
43 # Rules for dl programs
44 pkglib_LTLIBRARIES = yp2_filter_dl.la
45
46 yp2_filter_dl_la_SOURCES = filter_dl.cpp
47 yp2_filter_dl_la_LDFLAGS = -rpath $(pkglibdir) -module -avoid-version
48 yp2_filter_dl_la_LIBADD = libyp2.la
49
50 # Rules for test programs..
51
52 check_PROGRAMS = \
53         test_package1 \
54         test_pipe \
55         test_filter1 test_filter2 \
56         test_session1 test_session2 \
57         test_thread_pool_observer \
58         test_boost_threads test_boost_time \
59         test_filter_factory \
60         test_filter_frontend_net \
61         test_filter_log \
62         test_filter_z3950_client \
63         test_filter_backend_test \
64         test_filter_virt_db \
65         test_ses_map \
66         test_router_flexml
67
68 TESTS=$(check_PROGRAMS)
69
70 test_package1_SOURCES=test_package1.cpp
71 test_pipe_SOURCES=test_pipe.cpp
72 test_filter1_SOURCES=test_filter1.cpp
73 test_filter2_SOURCES=test_filter2.cpp
74 test_session1_SOURCES=test_session1.cpp
75 test_session2_SOURCES=test_session2.cpp
76 test_boost_threads_SOURCES=test_boost_threads.cpp
77 test_boost_time_SOURCES=test_boost_time.cpp
78 test_thread_pool_observer_SOURCES = test_thread_pool_observer.cpp
79 test_filter_factory_SOURCES = test_filter_factory.cpp
80 test_filter_factory_LDFLAGS = -export-dynamic
81 test_filter_frontend_net_SOURCES = test_filter_frontend_net.cpp
82 test_filter_log_SOURCES = test_filter_log.cpp
83 test_filter_z3950_client_SOURCES = test_filter_z3950_client.cpp
84 test_filter_backend_test_SOURCES = test_filter_backend_test.cpp
85 test_filter_virt_db_SOURCES = test_filter_virt_db.cpp
86 test_ses_map_SOURCES = test_ses_map.cpp
87 test_router_flexml_SOURCES = test_router_flexml.cpp
88
89 TESTLDADD = $(LDADD) -lboost_unit_test_framework
90
91 test_package1_LDADD = $(TESTLDADD)
92 test_pipe_LDADD = $(TESTLDADD)
93 test_filter1_LDADD = $(TESTLDADD)
94 test_filter2_LDADD = $(TESTLDADD)
95 test_session1_LDADD = $(TESTLDADD)
96 test_session2_LDADD = $(TESTLDADD)
97 test_boost_threads_LDADD = $(TESTLDADD)
98 test_boost_time_LDADD = $(TESTLDADD)
99 test_thread_pool_observer_LDADD = $(TESTLDADD)
100 test_filter_factory_LDADD = $(TESTLDADD)
101 test_filter_frontend_net_LDADD = $(TESTLDADD)
102 test_filter_log_LDADD = $(TESTLDADD)
103 test_filter_z3950_client_LDADD = $(TESTLDADD)
104 test_filter_backend_test_LDADD = $(TESTLDADD)
105 test_filter_virt_db_LDADD = $(TESTLDADD)
106 test_ses_map_LDADD = $(TESTLDADD)
107 test_router_flexml_LDADD = $(TESTLDADD)
108
109 # doxygen target
110 dox:
111         (cd $(top_srcdir) ; make dox) 
112
113 showdox:
114         (cd $(top_srcdir) ; make showdox)