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 \
20 common/tr_comm_encoders.c \
22 common/tr_rp_client.c \
23 common/tr_rp_client_encoders.c \
25 common/tr_idp_encoders.c \
27 common/tr_filter_encoders.c \
28 common/tr_gss_names.c \
33 tid_srcs = tid/tid_resp.c \
39 trp_srcs = trp/trp_conn.c \
43 trp/trp_peer_encoders.c \
45 trp/trp_ptable_encoders.c \
47 trp/trp_route_encoders.c \
49 trp/trp_rtable_encoders.c \
55 # configuration parsing sources
58 common/tr_config_comms.c \
59 common/tr_config_encoders.c \
60 common/tr_config_filters.c \
61 common/tr_config_internal.c \
62 common/tr_config_orgs.c \
63 common/tr_config_realms.c \
64 common/tr_config_rp_clients.c
66 # general monitoring message sources
70 mon/mon_req_encode.c \
71 mon/mon_req_decode.c \
73 mon/mon_resp_decode.c \
76 # monitoring server sources
81 check_PROGRAMS = common/t_constraint
82 TESTS = common/t_constraint
83 TEST_CFLAGS = -Wno-missing-prototypes
85 lib_LTLIBRARIES = libtr_tid.la
87 libtr_tid_la_SOURCES = $(tid_srcs) \
92 libtr_tid_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
93 libtr_tid_la_LIBADD = gsscon/libgsscon.la $(GLIB_LIBS)
94 libtr_tid_la_LDFLAGS = $(AM_LDFLAGS) -version-info 4:1:2 -no-undefined
96 common_t_constraint_SOURCES = common/t_constraint.c \
99 common/tr_constraint.c \
101 common/tr_rand_id.c \
105 common_t_constraint_CPPFLAGS = $(AM_CPPFLAGS) -DTESTS=\"$(srcdir)/common/tests.json\"
106 common_t_constraint_LDADD = gsscon/libgsscon.la
108 tr_trust_router_SOURCES =tr/tr_main.c \
118 common/tr_gss_client.c \
124 tr_trust_router_LDFLAGS = $(AM_LDFLAGS) -levent_pthreads -pthread
125 tr_trust_router_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
127 tr_trpc_SOURCES =tr/trpc_main.c \
130 common/tr_gss_client.c \
135 tr_trpc_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
136 tr_trpc_LDFLAGS = $(AM_LDFLAGS) -pthread
138 tr_trmon_SOURCES = tr/trmon_main.c \
140 common/tr_gss_client.c \
146 tr_trmon_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
147 tr_trmon_LDFLAGS = $(AM_LDFLAGS) -pthread
149 trp_msgtst_SOURCES = trp/msgtst.c \
151 common/tr_rand_id.c \
156 trp_msgtst_LDADD = $(GLIB_LIBS)
158 trp_test_rtbl_test_SOURCES = trp/test/rtbl_test.c \
160 common/tr_gss_names.c \
165 trp/trp_route_encoders.c \
167 trp/trp_rtable_encoders.c
168 trp_test_rtbl_test_LDADD = $(GLIB_LIBS)
170 trp_test_ptbl_test_SOURCES = trp/test/ptbl_test.c \
172 common/tr_gss_client.c \
176 trp_test_ptbl_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
177 trp_test_ptbl_test_LDFLAGS = $(AM_LDFLAGS) -pthread
179 tid_example_tidc_SOURCES = tid/example/tidc_main.c \
181 common/tr_gss_client.c \
185 tid_example_tidc_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
186 tid_example_tidc_LDFLAGS = $(AM_LDFLAGS) -pthread
188 tid_example_tids_SOURCES = tid/example/tids_main.c \
190 common/tr_gss_client.c \
194 tid_example_tids_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
195 tid_example_tids_LDFLAGS = $(AM_LDFLAGS) -pthread
197 common_tests_tr_dh_test_SOURCES = common/tr_dh.c \
199 common/tests/dh_test.c
201 common_tests_mq_test_SOURCES = common/tr_mq.c \
202 common/tests/mq_test.c \
205 common_tests_mq_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
207 common_tests_cfg_test_SOURCES = common/tests/cfg_test.c \
210 common/tr_gss_client.c \
213 common_tests_cfg_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
214 common_tests_cfg_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
216 common_tests_thread_test_SOURCES = common/tr_mq.c \
218 common/tests/thread_test.c
220 common_tests_commtest_SOURCES = common/tests/commtest.c \
223 common/tr_gss_client.c \
226 common_tests_commtest_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
227 common_tests_commtest_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
229 common_tests_thread_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
231 common_tests_name_test_SOURCES = common/tests/name_test.c \
234 common/tr_gss_client.c \
237 common_tests_name_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
238 common_tests_name_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
239 common_tests_name_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
241 common_tests_filt_test_SOURCES = common/tests/filt_test.c \
244 common/tr_gss_client.c \
247 common_tests_filt_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
248 common_tests_filt_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
249 common_tests_filt_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
251 mon_tests_test_mon_req_encode_SOURCES = mon/tests/test_mon_req_encode.c \
254 mon_tests_test_mon_req_encode_LDADD = $(GLIB_LIBS)
255 mon_tests_test_mon_req_encode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
257 mon_tests_test_mon_req_decode_SOURCES = mon/tests/test_mon_req_decode.c \
260 mon_tests_test_mon_req_decode_LDADD = $(GLIB_LIBS)
261 mon_tests_test_mon_req_decode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
263 mon_tests_test_mon_resp_encode_SOURCES = mon/tests/test_mon_resp_encode.c \
266 mon_tests_test_mon_resp_encode_LDADD = $(GLIB_LIBS)
267 mon_tests_test_mon_resp_encode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
269 pkginclude_HEADERS = include/trust_router/tid.h include/trust_router/tr_name.h \
270 include/tr_debug.h include/trust_router/trp.h \
271 include/trust_router/tr_dh.h \
272 include/trust_router/tr_constraint.h \
273 include/trust_router/tr_versioning.h
275 noinst_HEADERS = include/gsscon.h include/tr_config.h \
276 include/tr_msg.h include/tr.h \
277 include/tr_idp.h include/tr_rp.h \
278 include/tr_comm.h include/tr_apc.h \
279 include/tr_tid.h include/tr_trp.h include/tr_mon.h \
280 include/tr_filter.h include/tr_gss_names.h \
281 include/tid_internal.h include/trp_internal.h include/trp_route.h \
282 include/tr_cfgwatch.h include/tr_event.h \
283 include/tr_mq.h include/trp_peer.h include/trp_ptable.h \
284 include/trp_rtable.h include/tr_util.h \
286 include/tr_name_internal.h include/tr_gss.h
288 pkgdata_DATA=schema.sql
289 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
292 systemdsystemunit_DATA = tids.service
295 EXTRA_DIST = trust_router.spec common/tests.json schema.sql tids.service \
296 tr/internal.cfg tr/organizations.cfg \