New filter present_chunk
[metaproxy-moved-to-github.git] / src / Makefile.am
1 ## This file is part of Metaproxy
2 ## Copyright (C) 2005-2013 Index Data
3
4 MAINTAINERCLEANFILES = Makefile.in config.in config.hpp
5
6 DISTCLEANFILES = metaproxy-config
7
8 AM_CXXFLAGS = $(BOOST_CPPFLAGS)
9
10 AM_CPPFLAGS = -I$(top_srcdir)/include $(USEMARCONINC)
11
12 AM_LDFLAGS =
13
14 bin_SCRIPTS = metaproxy-config
15
16 # Rules for the library..
17
18 lib_LTLIBRARIES = libmetaproxy.la
19 libmetaproxy_la_LDFLAGS = -version-info 4:0:0 -export-dynamic
20
21 libmetaproxy_la_SOURCES = \
22         factory_filter.cpp factory_filter.hpp \
23         factory_static.cpp factory_static.hpp \
24         filter.cpp \
25         filter_auth_simple.cpp filter_auth_simple.hpp \
26         filter_backend_test.cpp filter_backend_test.hpp \
27         filter_bounce.cpp filter_bounce.hpp \
28         filter_cgi.cpp filter_cgi.hpp \
29         filter_cql_to_rpn.cpp filter_cql_to_rpn.hpp \
30         filter_frontend_net.cpp filter_frontend_net.hpp \
31         filter_http_client.cpp filter_http_client.hpp \
32         filter_http_file.cpp filter_http_file.hpp \
33         filter_limit.cpp filter_limit.hpp \
34         filter_load_balance.cpp filter_load_balance.hpp \
35         filter_log.cpp filter_log.hpp \
36         filter_multi.cpp filter_multi.hpp \
37         filter_query_rewrite.cpp filter_query_rewrite.hpp \
38         filter_present_chunk.cpp filter_present_chunk.hpp \
39         filter_record_transform.cpp filter_record_transform.hpp \
40         filter_session_shared.cpp filter_session_shared.hpp \
41         filter_sort.cpp filter_sort.hpp \
42         filter_sru_to_z3950.cpp  filter_sru_to_z3950.hpp \
43         filter_template.cpp filter_template.hpp \
44         filter_virt_db.cpp filter_virt_db.hpp \
45         filter_z3950_client.cpp filter_z3950_client.hpp \
46         filter_zeerex_explain.cpp  filter_zeerex_explain.hpp \
47         filter_zoom.cpp filter_zoom.hpp \
48         gduutil.cpp gduutil.hpp \
49         origin.cpp \
50         package.cpp \
51         pipe.cpp pipe.hpp \
52         plainfile.cpp \
53         router_chain.hpp router_chain.cpp \
54         router_flexml.hpp router_flexml.cpp \
55         session.cpp \
56         sru_util.cpp sru_util.hpp \
57         thread_pool_observer.cpp thread_pool_observer.hpp \
58         torus.cpp torus.hpp \
59         url_recipe.cpp \
60         util.cpp \
61         xmlutil.cpp
62
63
64 libmetaproxy_la_LIBADD = $(YAZPPLALIB) $(BOOST_LIB) $(BOOST_THREAD_LIB) \
65         $(BOOST_REGEX_LIB)
66
67 # Rules for lib
68
69 LDADD = libmetaproxy.la $(YAZPPLALIB) $(BOOST_LIB) $(BOOST_THREAD_LIB) \
70         $(BOOST_REGEX_LIB) $(USEMARCONLALIB)
71
72 bin_PROGRAMS = metaproxy
73 noinst_PROGRAMS = ex_filter_frontend_net ex_router_flexml tstdl
74
75 ex_filter_frontend_net_SOURCES = ex_filter_frontend_net.cpp
76 ex_router_flexml_SOURCES =  ex_router_flexml.cpp
77 tstdl_SOURCES = tstdl.cpp
78 metaproxy_SOURCES = metaproxy_prog.cpp
79
80 # Rules for dl programs
81 pkglib_LTLIBRARIES = metaproxy_filter_dl.la
82
83 metaproxy_filter_dl_la_SOURCES = filter_dl.cpp
84 metaproxy_filter_dl_la_LDFLAGS = -rpath $(pkglibdir) -module -avoid-version
85 metaproxy_filter_dl_la_LIBADD = libmetaproxy.la
86
87 # Rules for test programs..
88
89 check_PROGRAMS = \
90         test_package1 \
91         test_pipe \
92         test_filter1 test_filter2 \
93         test_session1 test_session2 \
94         test_thread_pool_observer \
95         test_boost_threads \
96         test_filter_auth_simple \
97         test_filter_factory \
98         test_filter_frontend_net \
99         test_filter_log \
100         test_filter_multi \
101         test_filter_query_rewrite \
102         test_filter_z3950_client \
103         test_filter_backend_test \
104         test_filter_bounce \
105         test_filter_record_transform \
106         test_filter_sru_to_z3950 \
107         test_filter_virt_db \
108         test_ses_map \
109         test_router_flexml \
110         test_xmlutil
111
112 TESTS=$(check_PROGRAMS)
113
114 test_package1_SOURCES=test_package1.cpp
115 test_pipe_SOURCES=test_pipe.cpp
116 test_filter1_SOURCES=test_filter1.cpp
117 test_filter2_SOURCES=test_filter2.cpp
118 test_session1_SOURCES=test_session1.cpp
119 test_session2_SOURCES=test_session2.cpp
120 test_boost_threads_SOURCES=test_boost_threads.cpp
121 test_thread_pool_observer_SOURCES = test_thread_pool_observer.cpp
122 test_filter_auth_simple_SOURCES = test_filter_auth_simple.cpp
123 test_filter_factory_SOURCES = test_filter_factory.cpp
124 test_filter_frontend_net_SOURCES = test_filter_frontend_net.cpp
125 test_filter_log_SOURCES = test_filter_log.cpp
126 test_filter_multi_SOURCES = test_filter_multi.cpp
127 test_filter_query_rewrite_SOURCES = test_filter_query_rewrite.cpp
128 test_filter_z3950_client_SOURCES = test_filter_z3950_client.cpp
129 test_filter_backend_test_SOURCES = test_filter_backend_test.cpp
130 test_filter_bounce_SOURCES = test_filter_bounce.cpp
131 test_filter_record_transform_SOURCES = test_filter_record_transform.cpp
132 test_filter_sru_to_z3950_SOURCES = test_filter_sru_to_z3950.cpp
133 test_filter_virt_db_SOURCES = test_filter_virt_db.cpp
134 test_ses_map_SOURCES = test_ses_map.cpp
135 test_router_flexml_SOURCES = test_router_flexml.cpp
136 test_xmlutil_SOURCES = test_xmlutil.cpp
137
138 TESTLDADD = $(LDADD) $(BOOST_TEST_LIB)
139
140 test_package1_LDADD = $(TESTLDADD)
141 test_pipe_LDADD = $(TESTLDADD)
142 test_filter1_LDADD = $(TESTLDADD)
143 test_filter2_LDADD = $(TESTLDADD)
144 test_session1_LDADD = $(TESTLDADD)
145 test_session2_LDADD = $(TESTLDADD)
146 test_boost_threads_LDADD = $(TESTLDADD)
147 test_filter_auth_simple_LDADD = $(TESTLDADD)
148 test_filter_factory_LDADD = $(TESTLDADD)
149 test_filter_frontend_net_LDADD = $(TESTLDADD)
150 test_filter_log_LDADD = $(TESTLDADD)
151 test_filter_multi_LDADD = $(TESTLDADD)
152 test_filter_query_rewrite_LDADD = $(TESTLDADD)
153 test_filter_z3950_client_LDADD = $(TESTLDADD)
154 test_filter_backend_test_LDADD = $(TESTLDADD)
155 test_filter_bounce_LDADD = $(TESTLDADD)
156 test_filter_record_transform_LDADD = $(TESTLDADD)
157 test_filter_sru_to_z3950_LDADD = $(TESTLDADD)
158 test_filter_virt_db_LDADD = $(TESTLDADD)
159 test_router_flexml_LDADD = $(TESTLDADD)
160 test_ses_map_LDADD = $(TESTLDADD)
161 test_thread_pool_observer_LDADD = $(TESTLDADD)
162 test_xmlutil_LDADD = $(TESTLDADD)
163