router_chain part of public API
[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 bin_SCRIPTS = metaproxy-config
13
14 filter_src = \
15         factory_filter.cpp factory_filter.hpp \
16         factory_static.cpp factory_static.hpp \
17         filter_auth_simple.cpp filter_auth_simple.hpp \
18         filter_backend_test.cpp filter_backend_test.hpp \
19         filter_bounce.cpp filter_bounce.hpp \
20         filter_cgi.cpp filter_cgi.hpp \
21         filter_cql_to_rpn.cpp filter_cql_to_rpn.hpp \
22         filter_frontend_net.cpp filter_frontend_net.hpp \
23         filter_http_client.cpp filter_http_client.hpp \
24         filter_http_file.cpp filter_http_file.hpp \
25         filter_http_rewrite1.cpp filter_http_rewrite1.hpp \
26         filter_limit.cpp filter_limit.hpp \
27         filter_load_balance.cpp filter_load_balance.hpp \
28         filter_log.cpp filter_log.hpp \
29         filter_multi.cpp filter_multi.hpp \
30         filter_query_rewrite.cpp filter_query_rewrite.hpp \
31         filter_present_chunk.cpp filter_present_chunk.hpp \
32         filter_record_transform.cpp filter_record_transform.hpp \
33         filter_session_shared.cpp filter_session_shared.hpp \
34         filter_sd_remove.cpp filter_sd_remove.hpp \
35         filter_sort.cpp filter_sort.hpp \
36         filter_sru_to_z3950.cpp  filter_sru_to_z3950.hpp \
37         filter_template.cpp filter_template.hpp \
38         filter_virt_db.cpp filter_virt_db.hpp \
39         filter_z3950_client.cpp filter_z3950_client.hpp \
40         filter_zeerex_explain.cpp  filter_zeerex_explain.hpp \
41         filter_zoom.cpp filter_zoom.hpp \
42         router_flexml.hpp router_flexml.cpp
43
44 lib_LTLIBRARIES = libmetaproxy.la
45 libmetaproxy_la_LDFLAGS = -version-info 4:0:0 -export-dynamic
46
47 libmetaproxy_la_SOURCES = \
48         filter.cpp \
49         gduutil.cpp gduutil.hpp \
50         origin.cpp \
51         package.cpp \
52         pipe.cpp pipe.hpp \
53         plainfile.cpp \
54         session.cpp \
55         sru_util.cpp sru_util.hpp \
56         thread_pool_observer.cpp thread_pool_observer.hpp \
57         torus.cpp torus.hpp \
58         url_recipe.cpp \
59         util.cpp \
60         router_chain.cpp \
61         xmlutil.cpp
62
63 libmetaproxy_la_LIBADD = $(YAZPPLALIB) \
64         $(BOOST_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB) \
65         $(BOOST_REGEX_LIB)
66
67 metaproxy_LDADD = libmetaproxy.la $(YAZPPLALIB) \
68         $(BOOST_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB) \
69         $(BOOST_REGEX_LIB) $(USEMARCONLALIB)
70
71 tstdl_LDADD = $(metaproxy_LDADD)
72
73 LDADD = $(metaproxy_LDADD) $(BOOST_TEST_LIB)
74 AM_LDFLAGS = -export-dynamic
75
76 bin_PROGRAMS = metaproxy
77 noinst_PROGRAMS = tstdl
78
79 tstdl_SOURCES = tstdl.cpp
80 metaproxy_SOURCES = metaproxy_prog.cpp $(filter_src)
81
82 # Rules for dl programs
83 pkglib_LTLIBRARIES = metaproxy_filter_dl.la
84
85 metaproxy_filter_dl_la_SOURCES = filter_dl.cpp
86 metaproxy_filter_dl_la_LDFLAGS = -rpath $(pkglibdir) -module -avoid-version
87 metaproxy_filter_dl_la_LIBADD = libmetaproxy.la
88
89 # Rules for test programs..
90
91 check_PROGRAMS = \
92         test_package1 \
93         test_pipe \
94         test_filter1 test_filter2 \
95         test_session1 test_session2 \
96         test_thread_pool_observer \
97         test_boost_threads \
98         test_filter_auth_simple \
99         test_filter_factory \
100         test_filter_frontend_net \
101         test_filter_log \
102         test_filter_multi \
103         test_filter_query_rewrite \
104         test_filter_z3950_client \
105         test_filter_backend_test \
106         test_filter_bounce \
107         test_filter_record_transform \
108         test_filter_sru_to_z3950 \
109         test_filter_virt_db \
110         test_ses_map \
111         test_router_flexml \
112         test_xmlutil
113
114 TESTS=$(check_PROGRAMS)
115
116 test_package1_SOURCES=test_package1.cpp
117 test_pipe_SOURCES=test_pipe.cpp
118 test_filter1_SOURCES=test_filter1.cpp $(filter_src)
119 test_filter2_SOURCES=test_filter2.cpp $(filter_src)
120 test_session1_SOURCES=test_session1.cpp
121 test_session2_SOURCES=test_session2.cpp
122 test_boost_threads_SOURCES=test_boost_threads.cpp
123 test_thread_pool_observer_SOURCES = test_thread_pool_observer.cpp
124 test_filter_auth_simple_SOURCES = test_filter_auth_simple.cpp $(filter_src)
125 test_filter_factory_SOURCES = test_filter_factory.cpp $(filter_src)
126 test_filter_frontend_net_SOURCES = test_filter_frontend_net.cpp $(filter_src)
127 test_filter_log_SOURCES = test_filter_log.cpp $(filter_src)
128 test_filter_multi_SOURCES = test_filter_multi.cpp $(filter_src)
129 test_filter_query_rewrite_SOURCES = test_filter_query_rewrite.cpp $(filter_src)
130 test_filter_z3950_client_SOURCES = test_filter_z3950_client.cpp $(filter_src)
131 test_filter_backend_test_SOURCES = test_filter_backend_test.cpp $(filter_src)
132 test_filter_bounce_SOURCES = test_filter_bounce.cpp $(filter_src)
133 test_filter_record_transform_SOURCES = test_filter_record_transform.cpp \
134         $(filter_src)
135 test_filter_sru_to_z3950_SOURCES = test_filter_sru_to_z3950.cpp $(filter_src)
136 test_filter_virt_db_SOURCES = test_filter_virt_db.cpp $(filter_src)
137 test_ses_map_SOURCES = test_ses_map.cpp
138 test_router_flexml_SOURCES = test_router_flexml.cpp $(filter_src)
139 test_xmlutil_SOURCES = test_xmlutil.cpp
140
141 # doxygen target
142 dox:
143         (cd $(top_srcdir) ; make dox) 
144
145 showdox:
146         (cd $(top_srcdir) ; make showdox)