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