1 ACLOCAL_AMFLAGS = -I m4
2 DISTCHECK_CONFIGURE_FLAGS = \
3 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
4 bin_PROGRAMS= tr/trust_router tr/trpc tid/example/tidc tid/example/tids common/tests/tr_dh_test common/tests/mq_test \
5 common/tests/thread_test trp/msgtst trp/test/rtbl_test trp/test/ptbl_test common/tests/cfg_test \
6 common/tests/commtest common/tests/name_test common/tests/filt_test mon/tests/test_mon_req_encode \
7 mon/tests/test_mon_req_decode mon/tests/test_mon_resp_encode tr/trmon
8 AM_CPPFLAGS=-I$(srcdir)/include $(GLIB_CFLAGS)
9 AM_CFLAGS = -Wall -Werror=missing-prototypes -Werror -Wno-parentheses $(GLIB_CFLAGS)
11 common_srcs = common/tr_name.c \
12 common/tr_constraint.c \
13 common/jansson_iterators.h \
18 common/tr_inet_util.c \
21 common/tr_comm_encoders.c \
23 common/tr_rp_client.c \
24 common/tr_rp_client_encoders.c \
26 common/tr_aaa_server.c \
27 common/tr_idp_encoders.c \
29 common/tr_filter_encoders.c \
30 common/tr_gss_names.c \
35 tid_srcs = tid/tid_resp.c \
41 trp_srcs = trp/trp_conn.c \
45 trp/trp_peer_encoders.c \
47 trp/trp_ptable_encoders.c \
49 trp/trp_route_encoders.c \
51 trp/trp_rtable_encoders.c \
57 # configuration parsing sources
60 common/tr_config_comms.c \
61 common/tr_config_encoders.c \
62 common/tr_config_filters.c \
63 common/tr_config_internal.c \
64 common/tr_config_orgs.c \
65 common/tr_config_realms.c \
66 common/tr_config_rp_clients.c
68 # general monitoring message sources
72 mon/mon_req_encode.c \
73 mon/mon_req_decode.c \
75 mon/mon_resp_decode.c \
78 # monitoring server sources
83 check_PROGRAMS = common/t_constraint
84 TESTS = common/t_constraint
85 TEST_CFLAGS = -Wno-missing-prototypes
87 lib_LTLIBRARIES = libtr_tid.la
89 libtr_tid_la_SOURCES = $(tid_srcs) \
94 libtr_tid_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
95 libtr_tid_la_LIBADD = gsscon/libgsscon.la $(GLIB_LIBS)
96 libtr_tid_la_LDFLAGS = $(AM_LDFLAGS) -version-info 4:1:2 -no-undefined
98 common_t_constraint_SOURCES = common/t_constraint.c \
102 common/tr_constraint.c \
104 common/tr_rand_id.c \
108 common_t_constraint_CPPFLAGS = $(AM_CPPFLAGS) -DTESTS=\"$(srcdir)/common/tests.json\"
109 common_t_constraint_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
111 tr_trust_router_SOURCES =tr/tr_main.c \
121 common/tr_gss_client.c \
127 tr_trust_router_LDFLAGS = $(AM_LDFLAGS) -levent_pthreads -pthread
128 tr_trust_router_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
130 tr_trpc_SOURCES =tr/trpc_main.c \
133 common/tr_gss_client.c \
138 tr_trpc_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
139 tr_trpc_LDFLAGS = $(AM_LDFLAGS) -pthread
141 tr_trmon_SOURCES = tr/trmon_main.c \
143 common/tr_gss_client.c \
149 tr_trmon_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
150 tr_trmon_LDFLAGS = $(AM_LDFLAGS) -pthread
152 trp_msgtst_SOURCES = trp/msgtst.c \
154 common/tr_rand_id.c \
159 trp_msgtst_LDADD = $(GLIB_LIBS)
161 trp_test_rtbl_test_SOURCES = trp/test/rtbl_test.c \
163 common/tr_gss_names.c \
166 common/tr_inet_util.c \
169 trp/trp_route_encoders.c \
171 trp/trp_rtable_encoders.c
172 trp_test_rtbl_test_LDADD = $(GLIB_LIBS)
174 trp_test_ptbl_test_SOURCES = trp/test/ptbl_test.c \
176 common/tr_gss_client.c \
180 trp_test_ptbl_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
181 trp_test_ptbl_test_LDFLAGS = $(AM_LDFLAGS) -pthread
183 tid_example_tidc_SOURCES = tid/example/tidc_main.c \
185 common/tr_gss_client.c \
189 tid_example_tidc_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
190 tid_example_tidc_LDFLAGS = $(AM_LDFLAGS) -pthread
192 tid_example_tids_SOURCES = tid/example/tids_main.c \
194 common/tr_gss_client.c \
198 tid_example_tids_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
199 tid_example_tids_LDFLAGS = $(AM_LDFLAGS) -pthread
201 common_tests_tr_dh_test_SOURCES = common/tr_dh.c \
203 common/tests/dh_test.c
205 common_tests_mq_test_SOURCES = common/tr_mq.c \
206 common/tests/mq_test.c \
209 common_tests_mq_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
211 common_tests_cfg_test_SOURCES = common/tests/cfg_test.c \
214 common/tr_gss_client.c \
217 common_tests_cfg_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
218 common_tests_cfg_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
220 common_tests_thread_test_SOURCES = common/tr_mq.c \
222 common/tests/thread_test.c
224 common_tests_commtest_SOURCES = common/tests/commtest.c \
227 common/tr_gss_client.c \
230 common_tests_commtest_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
231 common_tests_commtest_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
233 common_tests_thread_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
235 common_tests_name_test_SOURCES = common/tests/name_test.c \
238 common/tr_gss_client.c \
241 common_tests_name_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
242 common_tests_name_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
243 common_tests_name_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
245 common_tests_filt_test_SOURCES = common/tests/filt_test.c \
248 common/tr_gss_client.c \
251 common_tests_filt_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
252 common_tests_filt_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
253 common_tests_filt_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
255 mon_tests_test_mon_req_encode_SOURCES = mon/tests/test_mon_req_encode.c \
258 mon_tests_test_mon_req_encode_LDADD = $(GLIB_LIBS)
259 mon_tests_test_mon_req_encode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
261 mon_tests_test_mon_req_decode_SOURCES = mon/tests/test_mon_req_decode.c \
264 mon_tests_test_mon_req_decode_LDADD = $(GLIB_LIBS)
265 mon_tests_test_mon_req_decode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
267 mon_tests_test_mon_resp_encode_SOURCES = mon/tests/test_mon_resp_encode.c \
270 mon_tests_test_mon_resp_encode_LDADD = $(GLIB_LIBS)
271 mon_tests_test_mon_resp_encode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
273 pkginclude_HEADERS = include/trust_router/tid.h include/trust_router/tr_name.h \
274 include/tr_debug.h include/trust_router/trp.h \
275 include/trust_router/tr_dh.h \
276 include/trust_router/tr_constraint.h \
277 include/trust_router/tr_versioning.h
279 noinst_HEADERS = include/gsscon.h \
280 include/tr_config.h include/tr_cfgwatch.h \
284 include/tr_aaa_server.h \
285 include/tr_rp.h include/tr_rp_client.h \
288 include/tr_tid.h include/tid_internal.h \
289 include/tr_trp.h include/trp_internal.h \
290 include/tr_mon.h include/mon.h include/mon_internal.h include/mons_handlers.h \
291 include/tr_filter.h \
292 include/tr_gss.h include/tr_gss_client.h \
293 include/tr_gss_names.h \
296 include/trp_peer.h include/trp_ptable.h \
297 include/trp_route.h include/trp_rtable.h \
299 include/tr_name_internal.h \
300 include/tr_util.h include/tr_json_util.h include/tr_inet_util.h\
301 include/tr_rand_id.h include/tr_socket.h \
302 include/tr_constraint_internal.h
304 pkgdata_DATA=schema.sql
305 nobase_dist_pkgdata_DATA=redhat/init redhat/sysconfig redhat/organizations.cfg redhat/tidc-wrapper redhat/trust_router-wrapper redhat/tr-test-internal.cfg redhat/default-internal.cfg redhat/tids-wrapper redhat/sysconfig.tids
308 systemdsystemunit_DATA = tids.service
311 EXTRA_DIST = trust_router.spec common/tests.json schema.sql tids.service \
312 tr/internal.cfg tr/organizations.cfg \