1 DISTCHECK_CONFIGURE_FLAGS = \
2 --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
3 bin_PROGRAMS= tr/trust_router tr/trpc tid/example/tidc tid/example/tids common/tests/tr_dh_test common/tests/mq_test \
4 common/tests/thread_test trp/msgtst trp/test/rtbl_test trp/test/ptbl_test common/tests/cfg_test \
5 common/tests/commtest common/tests/name_test
6 AM_CPPFLAGS=-I$(srcdir)/include $(GLIB_CFLAGS)
7 AM_CFLAGS = -Wall -Werror=missing-prototypes -Werror -Wno-parentheses $(GLIB_CFLAGS)
9 common_srcs = common/tr_name.c \
10 common/tr_constraint.c \
11 common/jansson_iterators.h \
23 tid_srcs = tid/tid_resp.c \
28 trp_srcs = trp/trp_conn.c \
38 check_PROGRAMS = common/t_constraint
39 TESTS = common/t_constraint
41 lib_LTLIBRARIES = libtr_tid.la
43 libtr_tid_la_SOURCES = $(tid_srcs) \
48 libtr_tid_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
49 libtr_tid_la_LIBADD = gsscon/libgsscon.la $(GLIB_LIBS)
50 libtr_tid_la_LDFLAGS = $(AM_LDFLAGS) -version-info 3:0:1 -no-undefined
52 common_t_constraint_SOURCES = common/t_constraint.c \
55 common/tr_constraint.c \
60 common_t_constraint_CPPFLAGS = $(AM_CPPFLAGS) -DTESTS=\"$(srcdir)/common/tests.json\"
61 common_t_constraint_LDADD = gsscon/libgsscon.la
63 tr_trust_router_SOURCES =tr/tr_main.c \
73 tr_trust_router_LDFLAGS = $(AM_LDFLAGS) -levent_pthreads -pthread
74 tr_trust_router_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
75 tr_trpc_SOURCES =tr/trpc_main.c \
81 tr_trpc_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
82 tr_trpc_LDFLAGS = $(AM_LDFLAGS) -pthread
84 trp_msgtst_SOURCES = trp/msgtst.c \
90 trp_msgtst_LDADD = $(GLIB_LIBS)
92 trp_test_rtbl_test_SOURCES = trp/test/rtbl_test.c \
97 trp_test_rtbl_test_LDADD = $(GLIB_LIBS)
99 trp_test_ptbl_test_SOURCES = trp/test/ptbl_test.c \
103 trp_test_ptbl_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
104 trp_test_ptbl_test_LDFLAGS = $(AM_LDFLAGS) -pthread
106 tid_example_tidc_SOURCES = tid/example/tidc_main.c \
110 tid_example_tidc_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
111 tid_example_tidc_LDFLAGS = $(AM_LDFLAGS) -pthread
113 tid_example_tids_SOURCES = tid/example/tids_main.c \
117 tid_example_tids_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
118 tid_example_tids_LDFLAGS = $(AM_LDFLAGS) -pthread
120 common_tests_tr_dh_test_SOURCES = common/tr_dh.c \
122 common/tests/dh_test.c
124 common_tests_mq_test_SOURCES = common/tr_mq.c \
125 common/tests/mq_test.c \
128 common_tests_mq_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
130 common_tests_cfg_test_SOURCES = common/tests/cfg_test.c \
134 common_tests_cfg_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
135 common_tests_cfg_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
137 common_tests_thread_test_SOURCES = common/tr_mq.c \
139 common/tests/thread_test.c
141 common_tests_commtest_SOURCES = common/tests/commtest.c \
145 common_tests_commtest_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
146 common_tests_commtest_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
148 common_tests_thread_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
150 common_tests_name_test_SOURCES = common/tests/name_test.c \
154 common_tests_name_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS)
155 common_tests_name_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread
158 pkginclude_HEADERS = include/trust_router/tid.h include/trust_router/tr_name.h \
159 include/tr_debug.h include/trust_router/trp.h \
160 include/trust_router/tr_dh.h \
161 include/trust_router/tr_constraint.h \
162 include/trust_router/tr_versioning.h
164 noinst_HEADERS = include/gsscon.h include/tr_config.h \
165 include/tr_msg.h include/tr.h \
166 include/tr_idp.h include/tr_rp.h \
167 include/tr_comm.h include/tr_apc.h \
168 include/tr_tid.h include/tr_trp.h \
169 include/tr_filter.h include/tr_gss.h \
170 include/tid_internal.h include/trp_internal.h \
171 include/tr_cfgwatch.h include/tr_event.h \
172 include/tr_mq.h include/trp_ptable.h \
173 include/trp_rtable.h include/tr_util.h
175 pkgdata_DATA=schema.sql
176 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
179 systemdsystemunit_DATA = tids.service
182 EXTRA_DIST = trust_router.spec common/tests.json schema.sql tids.service \
183 tr/internal.cfg tr/organizations.cfg \