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