Add accessor functions and check in header file.
[trust_router.git] / Makefile.am
index 5dbd8cb..0581b99 100644 (file)
@@ -1,6 +1,6 @@
 DISTCHECK_CONFIGURE_FLAGS = \
        --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
-bin_PROGRAMS= tr/trust_router tid/example/tidc tid/example/tids common/dh_test/tr_dh_test
+bin_PROGRAMS= tr/trust_router tr/trpc tid/example/tidc tid/example/tids common/dh_test/tr_dh_test common/mq_test/mq_test common/mq_test/thread_test trp/msgtst
 AM_CPPFLAGS=-I$(srcdir)/include $(GLIB_CFLAGS)
 AM_CFLAGS = -Wall -Werror=missing-prototypes -Werror -Wno-parentheses $(GLIB_CFLAGS)
 SUBDIRS = gsscon 
@@ -30,10 +30,33 @@ common/tr_rp.c \
 tr/tr.c \
 tr/tr_event.c \
 tr/tr_cfgwatch.c \
-tr/tr_tid.c
+tr/tr_tid.c \
+tr/tr_trp.c
 
 tr_trust_router_LDADD = gsscon/libgsscon.la libtr_tid.la $(GLIB_LIBS)
 
+tr_trpc_SOURCES = tr/trpc_main.c \
+common/tr_rp.c \
+tr/tr_trp.c
+
+tr_trpc_LDADD = gsscon/libgsscon.la libtr_tid.la $(GLIB_LIBS)
+
+trp_msgtst_SOURCES = trp/msgtst.c \
+trp/trp_upd.c \
+trp/trp_req.c \
+tid/tid_req.c \
+tid/tid_resp.c \
+common/tr_msg.c \
+common/tr_name.c \
+common/tr_idp.c \
+common/tr_comm.c \
+common/tr_filter.c \
+common/tr_rp.c \
+common/tr_config.c \
+common/tr_debug.c 
+
+trp_msgtst_LDADD = libtr_tid.la $(GLIB_LIBS)
+
 tid_example_tidc_SOURCES = tid/example/tidc_main.c 
 
 tid_example_tidc_LDADD = gsscon/libgsscon.la libtr_tid.la $(GLIB_LIBS)
@@ -46,6 +69,19 @@ common_dh_test_tr_dh_test_SOURCES = common/tr_dh.c \
 common/tr_debug.c \
 common/dh_test/dh_test.c
 
+common_mq_test_mq_test_SOURCES = common/tr_mq.c \
+common/mq_test/mq_test.c
+
+common_mq_test_mq_test_CFLAGS = -pthread
+common_mq_test_mq_test_LDFLAGS = -pthread -ltalloc
+
+common_mq_test_thread_test_SOURCES = common/tr_mq.c \
+common/tr_debug.c \
+common/mq_test/thread_test.c
+
+common_mq_test_thread_test_CFLAGS = -pthread
+common_mq_test_thread_test_LDFLAGS = -pthread -ltalloc
+
 libtr_tid_la_SOURCES = tid/tids.c tid/tidc.c tid/tid_req.c tid/tid_resp.c \
 $(common_srcs)
 
@@ -63,6 +99,7 @@ noinst_HEADERS = include/gsscon.h include/tr_config.h \
        include/tr_msg.h include/tr.h \
        include/tr_idp.h include/tr_rp.h \
        include/tr_comm.h include/tr_apc.h \
+       include/tr_tid.h include/tr_trp.h \
        include/tr_filter.h \
        include/tid_internal.h