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 \
23 common/tr_gss_names.c \
27 tid_srcs = tid/tid_resp.c \
32 trp_srcs = trp/trp_conn.c \
40 common/tr_config_internal.c \
43 # general monitoring message sources
47 mon/mon_req_encode.c \
48 mon/mon_req_decode.c \
50 mon/mon_resp_decode.c \
53 # monitoring server sources
57 mon/mons_handlers_show.c
59 check_PROGRAMS = common/t_constraint
60 TESTS = common/t_constraint
61 TEST_CFLAGS = -Wno-missing-prototypes
63 lib_LTLIBRARIES = libtr_tid.la
65 libtr_tid_la_SOURCES = $(tid_srcs) \
70 libtr_tid_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
71 libtr_tid_la_LIBADD = gsscon/libgsscon.la $(GLIB_LIBS)
72 libtr_tid_la_LDFLAGS = $(AM_LDFLAGS) -version-info 4:1:2 -no-undefined
74 common_t_constraint_SOURCES = common/t_constraint.c \
77 common/tr_constraint.c \
82 common_t_constraint_CPPFLAGS = $(AM_CPPFLAGS) -DTESTS=\"$(srcdir)/common/tests.json\"
83 common_t_constraint_LDADD = gsscon/libgsscon.la
85 tr_trust_router_SOURCES =tr/tr_main.c \
93 common/tr_gss_client.c \
99 tr_trust_router_LDFLAGS = $(AM_LDFLAGS) -levent_pthreads -pthread
100 tr_trust_router_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
102 tr_trpc_SOURCES =tr/trpc_main.c \
105 common/tr_gss_client.c \
110 tr_trpc_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
111 tr_trpc_LDFLAGS = $(AM_LDFLAGS) -pthread
113 tr_trmon_SOURCES = tr/trmon_main.c \
115 common/tr_gss_client.c \
121 tr_trmon_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
122 tr_trmon_LDFLAGS = $(AM_LDFLAGS) -pthread
124 trp_msgtst_SOURCES = trp/msgtst.c \
130 trp_msgtst_LDADD = $(GLIB_LIBS)
132 trp_test_rtbl_test_SOURCES = trp/test/rtbl_test.c \
134 common/tr_gss_names.c \
137 trp_test_rtbl_test_LDADD = $(GLIB_LIBS)
139 trp_test_ptbl_test_SOURCES = trp/test/ptbl_test.c \
141 common/tr_gss_client.c \
145 trp_test_ptbl_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
146 trp_test_ptbl_test_LDFLAGS = $(AM_LDFLAGS) -pthread
148 tid_example_tidc_SOURCES = tid/example/tidc_main.c \
150 common/tr_gss_client.c \
154 tid_example_tidc_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
155 tid_example_tidc_LDFLAGS = $(AM_LDFLAGS) -pthread
157 tid_example_tids_SOURCES = tid/example/tids_main.c \
159 common/tr_gss_client.c \
163 tid_example_tids_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
164 tid_example_tids_LDFLAGS = $(AM_LDFLAGS) -pthread
166 common_tests_tr_dh_test_SOURCES = common/tr_dh.c \
168 common/tests/dh_test.c
170 common_tests_mq_test_SOURCES = common/tr_mq.c \
171 common/tests/mq_test.c \
174 common_tests_mq_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
176 common_tests_cfg_test_SOURCES = common/tests/cfg_test.c \
179 common/tr_gss_client.c \
182 common_tests_cfg_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
183 common_tests_cfg_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
185 common_tests_thread_test_SOURCES = common/tr_mq.c \
187 common/tests/thread_test.c
189 common_tests_commtest_SOURCES = common/tests/commtest.c \
192 common/tr_gss_client.c \
195 common_tests_commtest_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
196 common_tests_commtest_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
198 common_tests_thread_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
200 common_tests_name_test_SOURCES = common/tests/name_test.c \
203 common/tr_gss_client.c \
206 common_tests_name_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
207 common_tests_name_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
208 common_tests_name_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
210 common_tests_filt_test_SOURCES = common/tests/filt_test.c \
213 common/tr_gss_client.c \
216 common_tests_filt_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
217 common_tests_filt_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
218 common_tests_filt_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
220 mon_tests_test_mon_req_encode_SOURCES = mon/tests/test_mon_req_encode.c \
223 mon_tests_test_mon_req_encode_LDADD = $(GLIB_LIBS)
224 mon_tests_test_mon_req_encode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
226 mon_tests_test_mon_req_decode_SOURCES = mon/tests/test_mon_req_decode.c \
229 mon_tests_test_mon_req_decode_LDADD = $(GLIB_LIBS)
230 mon_tests_test_mon_req_decode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
232 mon_tests_test_mon_resp_encode_SOURCES = mon/tests/test_mon_resp_encode.c \
235 mon_tests_test_mon_resp_encode_LDADD = $(GLIB_LIBS)
236 mon_tests_test_mon_resp_encode_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS)
238 pkginclude_HEADERS = include/trust_router/tid.h include/trust_router/tr_name.h \
239 include/tr_debug.h include/trust_router/trp.h \
240 include/trust_router/tr_dh.h \
241 include/trust_router/tr_constraint.h \
242 include/trust_router/tr_versioning.h
244 noinst_HEADERS = include/gsscon.h include/tr_config.h \
245 include/tr_msg.h include/tr.h \
246 include/tr_idp.h include/tr_rp.h \
247 include/tr_comm.h include/tr_apc.h \
248 include/tr_tid.h include/tr_trp.h include/tr_mon.h \
249 include/tr_filter.h include/tr_gss_names.h \
250 include/tid_internal.h include/trp_internal.h \
251 include/tr_cfgwatch.h include/tr_event.h \
252 include/tr_mq.h include/trp_ptable.h \
253 include/trp_rtable.h include/tr_util.h \
254 include/tr_name_internal.h include/tr_gss.h
256 pkgdata_DATA=schema.sql
257 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
260 systemdsystemunit_DATA = tids.service
263 EXTRA_DIST = trust_router.spec common/tests.json schema.sql tids.service \
264 tr/internal.cfg tr/organizations.cfg \