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