X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=Makefile.am;h=fbc763c27da13747008aa23a0e1a538cb4f853dc;hb=6e1647f2f4714d8c0c4c27ef376302bab1ae4bb3;hp=1faaa2d339bd170ab1c2e107b3e2dec1843d5778;hpb=f673c51bcc91bcf34bdaf1abc9cfbb0ffca62c99;p=trust_router.git diff --git a/Makefile.am b/Makefile.am index 1faaa2d..fbc763c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -1,6 +1,8 @@ DISTCHECK_CONFIGURE_FLAGS = \ --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) -bin_PROGRAMS= tr/trust_router tr/trpc tid/example/tidc tid/example/tids common/tests/tr_dh_test common/tests/mq_test common/tests/thread_test trp/msgtst trp/test/rtbl_test trp/test/ptbl_test common/tests/cfg_test common/tests/commtest +bin_PROGRAMS= tr/trust_router tr/trpc tid/example/tidc tid/example/tids common/tests/tr_dh_test common/tests/mq_test \ + common/tests/thread_test trp/msgtst trp/test/rtbl_test trp/test/ptbl_test common/tests/cfg_test \ + common/tests/commtest common/tests/name_test common/tests/filt_test AM_CPPFLAGS=-I$(srcdir)/include $(GLIB_CFLAGS) AM_CFLAGS = -Wall -Werror=missing-prototypes -Werror -Wno-parentheses $(GLIB_CFLAGS) SUBDIRS = gsscon @@ -9,7 +11,7 @@ common_srcs = common/tr_name.c \ common/jansson_iterators.h \ common/tr_msg.c \ common/tr_dh.c \ - common/tr_debug.c \ + common/tr_debug.c \ common/tr_util.c \ common/tr_apc.c \ common/tr_comm.c \ @@ -21,7 +23,8 @@ common_srcs = common/tr_name.c \ tid_srcs = tid/tid_resp.c \ tid/tid_req.c \ tid/tids.c \ -tid/tidc.c +tid/tidc.c \ +common/tr_rand_id.c trp_srcs = trp/trp_conn.c \ trp/trps.c \ @@ -35,6 +38,7 @@ common/tr_mq.c check_PROGRAMS = common/t_constraint TESTS = common/t_constraint +TEST_CFLAGS = -Wno-missing-prototypes lib_LTLIBRARIES = libtr_tid.la @@ -45,12 +49,14 @@ trp/trp_upd.c libtr_tid_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden libtr_tid_la_LIBADD = gsscon/libgsscon.la $(GLIB_LIBS) -libtr_tid_la_LDFLAGS = $(AM_LDFLAGS) -version-info 3 -no-undefined +libtr_tid_la_LDFLAGS = $(AM_LDFLAGS) -version-info 4:1:2 -no-undefined common_t_constraint_SOURCES = common/t_constraint.c \ common/tr_debug.c \ common/tr_name.c \ common/tr_constraint.c \ +common/tr_dh.c \ +common/tr_rand_id.c \ tid/tid_req.c \ tid/tid_resp.c @@ -80,6 +86,7 @@ tr_trpc_LDFLAGS = $(AM_LDFLAGS) -pthread trp_msgtst_SOURCES = trp/msgtst.c \ $(common_srcs) \ +common/tr_rand_id.c \ trp/trp_req.c \ trp/trp_upd.c \ tid/tid_resp.c \ @@ -144,6 +151,22 @@ common_tests_commtest_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread common_tests_thread_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread +common_tests_name_test_SOURCES = common/tests/name_test.c \ + $(common_srcs) \ + $(tid_srcs) \ + $(trp_srcs) +common_tests_name_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS) +common_tests_name_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread +common_tests_name_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) + +common_tests_filt_test_SOURCES = common/tests/filt_test.c \ + $(common_srcs) \ + $(tid_srcs) \ + $(trp_srcs) +common_tests_filt_test_LDADD = gsscon/libgsscon.la $(GLIB_LIBS) +common_tests_filt_test_LDFLAGS = $(AM_LDFLAGS) -ltalloc -pthread +common_tests_filt_test_CFLAGS = $(AM_CFLAGS) $(TEST_CFLAGS) + pkginclude_HEADERS = include/trust_router/tid.h include/trust_router/tr_name.h \ include/tr_debug.h include/trust_router/trp.h \ include/trust_router/tr_dh.h \ @@ -158,8 +181,9 @@ noinst_HEADERS = include/gsscon.h include/tr_config.h \ include/tr_filter.h include/tr_gss.h \ include/tid_internal.h include/trp_internal.h \ include/tr_cfgwatch.h include/tr_event.h \ - include/tr_mq.h include/tr_ptable.h \ - include/tr_rtable.h include/tr_util.h + include/tr_mq.h include/trp_ptable.h \ + include/trp_rtable.h include/tr_util.h \ + include/tr_name_internal.h pkgdata_DATA=schema.sql 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