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 \
38 trp_srcs = trp/trp_conn.c \
42 trp/trp_peer_encoders.c \
44 trp/trp_ptable_encoders.c \
46 trp/trp_route_encoders.c \
48 trp/trp_rtable_encoders.c \
54 # configuration parsing sources
57 common/tr_config_comms.c \
58 common/tr_config_encoders.c \
59 common/tr_config_filters.c \
60 common/tr_config_internal.c \
61 common/tr_config_orgs.c \
62 common/tr_config_realms.c \
63 common/tr_config_rp_clients.c
65 # general monitoring message sources
69 mon/mon_req_encode.c \
70 mon/mon_req_decode.c \
72 mon/mon_resp_decode.c \
75 # monitoring server sources
80 check_PROGRAMS = common/t_constraint
81 TESTS = common/t_constraint
82 TEST_CFLAGS = -Wno-missing-prototypes
84 lib_LTLIBRARIES = libtr_tid.la
86 libtr_tid_la_SOURCES = $(tid_srcs) \
91 libtr_tid_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
92 libtr_tid_la_LIBADD = gsscon/libgsscon.la $(GLIB_LIBS)
93 libtr_tid_la_LDFLAGS = $(AM_LDFLAGS) -version-info 4:1:2 -no-undefined
95 common_t_constraint_SOURCES = common/t_constraint.c \
98 common/tr_constraint.c \
103 common_t_constraint_CPPFLAGS = $(AM_CPPFLAGS) -DTESTS=\"$(srcdir)/common/tests.json\"
104 common_t_constraint_LDADD = gsscon/libgsscon.la
106 tr_trust_router_SOURCES =tr/tr_main.c \
116 common/tr_gss_client.c \
122 tr_trust_router_LDFLAGS = $(AM_LDFLAGS) -levent_pthreads -pthread
123 tr_trust_router_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
125 tr_trpc_SOURCES =tr/trpc_main.c \
128 common/tr_gss_client.c \
133 tr_trpc_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
134 tr_trpc_LDFLAGS = $(AM_LDFLAGS) -pthread
136 tr_trmon_SOURCES = tr/trmon_main.c \
138 common/tr_gss_client.c \
144 tr_trmon_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
145 tr_trmon_LDFLAGS = $(AM_LDFLAGS) -pthread
147 trp_msgtst_SOURCES = trp/msgtst.c \
153 trp_msgtst_LDADD = $(GLIB_LIBS)
155 trp_test_rtbl_test_SOURCES = trp/test/rtbl_test.c \
157 common/tr_gss_names.c \
162 trp/trp_route_encoders.c \
164 trp/trp_rtable_encoders.c
165 trp_test_rtbl_test_LDADD = $(GLIB_LIBS)
167 trp_test_ptbl_test_SOURCES = trp/test/ptbl_test.c \
169 common/tr_gss_client.c \
173 trp_test_ptbl_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
174 trp_test_ptbl_test_LDFLAGS = $(AM_LDFLAGS) -pthread
176 tid_example_tidc_SOURCES = tid/example/tidc_main.c \
178 common/tr_gss_client.c \
182 tid_example_tidc_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
183 tid_example_tidc_LDFLAGS = $(AM_LDFLAGS) -pthread
185 tid_example_tids_SOURCES = tid/example/tids_main.c \
187 common/tr_gss_client.c \
191 tid_example_tids_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
192 tid_example_tids_LDFLAGS = $(AM_LDFLAGS) -pthread
194 common_tests_tr_dh_test_SOURCES = common/tr_dh.c \
196 common/tests/dh_test.c
198 common_tests_mq_test_SOURCES = common/tr_mq.c \
199 common/tests/mq_test.c \
202 common_tests_mq_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
204 common_tests_cfg_test_SOURCES = common/tests/cfg_test.c \
207 common/tr_gss_client.c \
210 common_tests_cfg_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
211 common_tests_cfg_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
213 common_tests_thread_test_SOURCES = common/tr_mq.c \
215 common/tests/thread_test.c
217 common_tests_commtest_SOURCES = common/tests/commtest.c \
220 common/tr_gss_client.c \
223 common_tests_commtest_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
224 common_tests_commtest_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
226 common_tests_thread_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
228 common_tests_name_test_SOURCES = common/tests/name_test.c \
231 common/tr_gss_client.c \
234 common_tests_name_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
235 common_tests_name_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
236 common_tests_name_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
238 common_tests_filt_test_SOURCES = common/tests/filt_test.c \
241 common/tr_gss_client.c \
244 common_tests_filt_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
245 common_tests_filt_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
246 common_tests_filt_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
248 mon_tests_test_mon_req_encode_SOURCES = mon/tests/test_mon_req_encode.c \
251 mon_tests_test_mon_req_encode_LDADD = $(GLIB_LIBS)
252 mon_tests_test_mon_req_encode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
254 mon_tests_test_mon_req_decode_SOURCES = mon/tests/test_mon_req_decode.c \
257 mon_tests_test_mon_req_decode_LDADD = $(GLIB_LIBS)
258 mon_tests_test_mon_req_decode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
260 mon_tests_test_mon_resp_encode_SOURCES = mon/tests/test_mon_resp_encode.c \
263 mon_tests_test_mon_resp_encode_LDADD = $(GLIB_LIBS)
264 mon_tests_test_mon_resp_encode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
266 pkginclude_HEADERS = include/trust_router/tid.h include/trust_router/tr_name.h \
267 include/tr_debug.h include/trust_router/trp.h \
268 include/trust_router/tr_dh.h \
269 include/trust_router/tr_constraint.h \
270 include/trust_router/tr_versioning.h
272 noinst_HEADERS = include/gsscon.h include/tr_config.h \
273 include/tr_msg.h include/tr.h \
274 include/tr_idp.h include/tr_rp.h \
275 include/tr_comm.h include/tr_apc.h \
276 include/tr_tid.h include/tr_trp.h include/tr_mon.h \
277 include/tr_filter.h include/tr_gss_names.h \
278 include/tid_internal.h include/trp_internal.h include/trp_route.h \
279 include/tr_cfgwatch.h include/tr_event.h \
280 include/tr_mq.h include/trp_peer.h include/trp_ptable.h \
281 include/trp_rtable.h include/tr_util.h \
283 include/tr_name_internal.h include/tr_gss.h
285 pkgdata_DATA=schema.sql
286 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
289 systemdsystemunit_DATA = tids.service
292 EXTRA_DIST = trust_router.spec common/tests.json schema.sql tids.service \
293 tr/internal.cfg tr/organizations.cfg \