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