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 \
23 common/tr_idp_encoders.c \
25 common/tr_gss_names.c \
29 tid_srcs = tid/tid_resp.c \
34 trp_srcs = trp/trp_conn.c \
38 trp/trp_peer_encoders.c \
40 trp/trp_ptable_encoders.c \
42 trp/trp_route_encoders.c \
44 trp/trp_rtable_encoders.c \
48 common/tr_config_internal.c \
51 # general monitoring message sources
55 mon/mon_req_encode.c \
56 mon/mon_req_decode.c \
58 mon/mon_resp_decode.c \
61 # monitoring server sources
66 check_PROGRAMS = common/t_constraint
67 TESTS = common/t_constraint
68 TEST_CFLAGS = -Wno-missing-prototypes
70 lib_LTLIBRARIES = libtr_tid.la
72 libtr_tid_la_SOURCES = $(tid_srcs) \
77 libtr_tid_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
78 libtr_tid_la_LIBADD = gsscon/libgsscon.la $(GLIB_LIBS)
79 libtr_tid_la_LDFLAGS = $(AM_LDFLAGS) -version-info 4:1:2 -no-undefined
81 common_t_constraint_SOURCES = common/t_constraint.c \
84 common/tr_constraint.c \
89 common_t_constraint_CPPFLAGS = $(AM_CPPFLAGS) -DTESTS=\"$(srcdir)/common/tests.json\"
90 common_t_constraint_LDADD = gsscon/libgsscon.la
92 tr_trust_router_SOURCES =tr/tr_main.c \
102 common/tr_gss_client.c \
108 tr_trust_router_LDFLAGS = $(AM_LDFLAGS) -levent_pthreads -pthread
109 tr_trust_router_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
111 tr_trpc_SOURCES =tr/trpc_main.c \
114 common/tr_gss_client.c \
119 tr_trpc_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
120 tr_trpc_LDFLAGS = $(AM_LDFLAGS) -pthread
122 tr_trmon_SOURCES = tr/trmon_main.c \
124 common/tr_gss_client.c \
130 tr_trmon_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
131 tr_trmon_LDFLAGS = $(AM_LDFLAGS) -pthread
133 trp_msgtst_SOURCES = trp/msgtst.c \
139 trp_msgtst_LDADD = $(GLIB_LIBS)
141 trp_test_rtbl_test_SOURCES = trp/test/rtbl_test.c \
143 common/tr_gss_names.c \
147 trp/trp_route_encoders.c \
149 trp/trp_rtable_encoders.c
150 trp_test_rtbl_test_LDADD = $(GLIB_LIBS)
152 trp_test_ptbl_test_SOURCES = trp/test/ptbl_test.c \
154 common/tr_gss_client.c \
158 trp_test_ptbl_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
159 trp_test_ptbl_test_LDFLAGS = $(AM_LDFLAGS) -pthread
161 tid_example_tidc_SOURCES = tid/example/tidc_main.c \
163 common/tr_gss_client.c \
167 tid_example_tidc_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
168 tid_example_tidc_LDFLAGS = $(AM_LDFLAGS) -pthread
170 tid_example_tids_SOURCES = tid/example/tids_main.c \
172 common/tr_gss_client.c \
176 tid_example_tids_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
177 tid_example_tids_LDFLAGS = $(AM_LDFLAGS) -pthread
179 common_tests_tr_dh_test_SOURCES = common/tr_dh.c \
181 common/tests/dh_test.c
183 common_tests_mq_test_SOURCES = common/tr_mq.c \
184 common/tests/mq_test.c \
187 common_tests_mq_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
189 common_tests_cfg_test_SOURCES = common/tests/cfg_test.c \
192 common/tr_gss_client.c \
195 common_tests_cfg_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
196 common_tests_cfg_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
198 common_tests_thread_test_SOURCES = common/tr_mq.c \
200 common/tests/thread_test.c
202 common_tests_commtest_SOURCES = common/tests/commtest.c \
205 common/tr_gss_client.c \
208 common_tests_commtest_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
209 common_tests_commtest_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
211 common_tests_thread_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
213 common_tests_name_test_SOURCES = common/tests/name_test.c \
216 common/tr_gss_client.c \
219 common_tests_name_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
220 common_tests_name_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
221 common_tests_name_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
223 common_tests_filt_test_SOURCES = common/tests/filt_test.c \
226 common/tr_gss_client.c \
229 common_tests_filt_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
230 common_tests_filt_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
231 common_tests_filt_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
233 mon_tests_test_mon_req_encode_SOURCES = mon/tests/test_mon_req_encode.c \
236 mon_tests_test_mon_req_encode_LDADD = $(GLIB_LIBS)
237 mon_tests_test_mon_req_encode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
239 mon_tests_test_mon_req_decode_SOURCES = mon/tests/test_mon_req_decode.c \
242 mon_tests_test_mon_req_decode_LDADD = $(GLIB_LIBS)
243 mon_tests_test_mon_req_decode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
245 mon_tests_test_mon_resp_encode_SOURCES = mon/tests/test_mon_resp_encode.c \
248 mon_tests_test_mon_resp_encode_LDADD = $(GLIB_LIBS)
249 mon_tests_test_mon_resp_encode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
251 pkginclude_HEADERS = include/trust_router/tid.h include/trust_router/tr_name.h \
252 include/tr_debug.h include/trust_router/trp.h \
253 include/trust_router/tr_dh.h \
254 include/trust_router/tr_constraint.h \
255 include/trust_router/tr_versioning.h
257 noinst_HEADERS = include/gsscon.h include/tr_config.h \
258 include/tr_msg.h include/tr.h \
259 include/tr_idp.h include/tr_rp.h \
260 include/tr_comm.h include/tr_apc.h \
261 include/tr_tid.h include/tr_trp.h include/tr_mon.h \
262 include/tr_filter.h include/tr_gss_names.h \
263 include/tid_internal.h include/trp_internal.h include/trp_route.h \
264 include/tr_cfgwatch.h include/tr_event.h \
265 include/tr_mq.h include/trp_peer.h include/trp_ptable.h \
266 include/trp_rtable.h include/tr_util.h \
267 include/tr_name_internal.h include/tr_gss.h
269 pkgdata_DATA=schema.sql
270 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
273 systemdsystemunit_DATA = tids.service
276 EXTRA_DIST = trust_router.spec common/tests.json schema.sql tids.service \
277 tr/internal.cfg tr/organizations.cfg \