Separate boost system check
[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_http_rewrite1.cpp filter_http_rewrite1.hpp \
34         filter_limit.cpp filter_limit.hpp \
35         filter_load_balance.cpp filter_load_balance.hpp \
36         filter_log.cpp filter_log.hpp \
37         filter_multi.cpp filter_multi.hpp \
38         filter_query_rewrite.cpp filter_query_rewrite.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) \
65         $(BOOST_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB) \
66         $(BOOST_REGEX_LIB)
67
68 # Rules for lib
69
70 LDADD = libmetaproxy.la $(YAZPPLALIB) \
71         $(BOOST_LIB) $(BOOST_SYSTEM_LIB) $(BOOST_THREAD_LIB) \
72         $(BOOST_REGEX_LIB) $(USEMARCONLALIB)
73
74 bin_PROGRAMS = metaproxy
75 noinst_PROGRAMS = ex_filter_frontend_net ex_router_flexml tstdl
76
77 ex_filter_frontend_net_SOURCES = ex_filter_frontend_net.cpp
78 ex_router_flexml_SOURCES =  ex_router_flexml.cpp
79 tstdl_SOURCES = tstdl.cpp
80 metaproxy_SOURCES = metaproxy_prog.cpp
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
119 test_filter2_SOURCES=test_filter2.cpp
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
125 test_filter_factory_SOURCES = test_filter_factory.cpp
126 test_filter_frontend_net_SOURCES = test_filter_frontend_net.cpp
127 test_filter_log_SOURCES = test_filter_log.cpp
128 test_filter_multi_SOURCES = test_filter_multi.cpp
129 test_filter_query_rewrite_SOURCES = test_filter_query_rewrite.cpp
130 test_filter_z3950_client_SOURCES = test_filter_z3950_client.cpp
131 test_filter_backend_test_SOURCES = test_filter_backend_test.cpp
132 test_filter_bounce_SOURCES = test_filter_bounce.cpp
133 test_filter_record_transform_SOURCES = test_filter_record_transform.cpp
134 test_filter_sru_to_z3950_SOURCES = test_filter_sru_to_z3950.cpp
135 test_filter_virt_db_SOURCES = test_filter_virt_db.cpp
136 test_ses_map_SOURCES = test_ses_map.cpp
137 test_router_flexml_SOURCES = test_router_flexml.cpp
138 test_xmlutil_SOURCES = test_xmlutil.cpp
139
140 TESTLDADD = $(LDADD) $(BOOST_TEST_LIB)
141
142 test_package1_LDADD = $(TESTLDADD)
143 test_pipe_LDADD = $(TESTLDADD)
144 test_filter1_LDADD = $(TESTLDADD)
145 test_filter2_LDADD = $(TESTLDADD)
146 test_session1_LDADD = $(TESTLDADD)
147 test_session2_LDADD = $(TESTLDADD)
148 test_boost_threads_LDADD = $(TESTLDADD)
149 test_filter_auth_simple_LDADD = $(TESTLDADD)
150 test_filter_factory_LDADD = $(TESTLDADD)
151 test_filter_frontend_net_LDADD = $(TESTLDADD)
152 test_filter_log_LDADD = $(TESTLDADD)
153 test_filter_multi_LDADD = $(TESTLDADD)
154 test_filter_query_rewrite_LDADD = $(TESTLDADD)
155 test_filter_z3950_client_LDADD = $(TESTLDADD)
156 test_filter_backend_test_LDADD = $(TESTLDADD)
157 test_filter_bounce_LDADD = $(TESTLDADD)
158 test_filter_record_transform_LDADD = $(TESTLDADD)
159 test_filter_sru_to_z3950_LDADD = $(TESTLDADD)
160 test_filter_virt_db_LDADD = $(TESTLDADD)
161 test_router_flexml_LDADD = $(TESTLDADD)
162 test_ses_map_LDADD = $(TESTLDADD)
163 test_thread_pool_observer_LDADD = $(TESTLDADD)
164 test_xmlutil_LDADD = $(TESTLDADD)
165
166 # doxygen target
167 dox:
168         (cd $(top_srcdir) ; make dox) 
169
170 showdox:
171         (cd $(top_srcdir) ; make showdox)