Update Makefile.am to include new sources
[trust_router.git] / Makefile.am
1 DISTCHECK_CONFIGURE_FLAGS = \
2         --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
3 bin_PROGRAMS= tr/trust_router tid/example/tidc tid/example/tids common/dh_test/tr_dh_test
4 AM_CPPFLAGS=-I$(srcdir)/include
5 AM_CFLAGS = -Wall -Werror=missing-prototypes -Werror -Wno-parentheses
6 SUBDIRS = gsscon 
7 common_srcs = common/tr_name.c \
8         common/tr_constraint.c \
9         common/jansson_iterators.h \
10         common/tr_msg.c \
11         common/tr_dh.c \
12         common/tr_debug.c \
13         common/tr_util.c
14
15 check_PROGRAMS = common/t_constraint
16 TESTS = common/t_constraint
17
18 lib_LTLIBRARIES = libtr_tid.la
19
20 common_t_constraint_SOURCES = common/t_constraint.c
21 common_t_constraint_CPPFLAGS = $(AM_CPPFLAGS) -DTESTS=\"$(srcdir)/common/tests.json\"
22 common_t_constraint_LDADD = gsscon/libgsscon.la libtr_tid.la
23
24 tr_trust_router_SOURCES = tr/tr_main.c \
25 common/tr_config.c \
26 common/tr_idp.c \
27 common/tr_comm.c \
28 common/tr_filter.c \
29 common/tr_rp.c \
30 tr/tr.c
31
32 tr_trust_router_LDADD = gsscon/libgsscon.la libtr_tid.la
33
34 tid_example_tidc_SOURCES = tid/example/tidc_main.c 
35
36 tid_example_tidc_LDADD = gsscon/libgsscon.la libtr_tid.la
37
38 tid_example_tids_SOURCES = tid/example/tids_main.c 
39
40 tid_example_tids_LDADD = gsscon/libgsscon.la libtr_tid.la
41
42 common_dh_test_tr_dh_test_SOURCES = common/tr_dh.c \
43 common/tr_debug.c \
44 common/dh_test/dh_test.c
45
46 libtr_tid_la_SOURCES = tid/tids.c tid/tidc.c tid/tid_req.c tid/tid_resp.c \
47 $(common_srcs)
48
49 libtr_tid_la_CFLAGS = $(AM_CFLAGS) -fvisibility=hidden
50 libtr_tid_la_LIBADD = gsscon/libgsscon.la
51 libtr_tid_la_LDFLAGS = $(AM_LDFLAGS) -version-info 2 -no-undefined
52
53 pkginclude_HEADERS = include/trust_router/tid.h include/trust_router/tr_name.h \
54         include/tr_debug.h \
55         include/trust_router/tr_dh.h \
56         include/trust_router/tr_constraint.h \
57         include/trust_router/tr_versioning.h 
58
59 noinst_HEADERS = include/gsscon.h include/tr_config.h \
60         include/tr_msg.h include/tr.h \
61         include/tr_idp.h include/tr_rp.h \
62         include/tr_comm.h include/tr_apc.h \
63         include/tr_filter.h \
64         include/tid_internal.h
65
66 pkgdata_DATA=schema.sql
67 nobase_dist_pkgdata_DATA=redhat/init redhat/sysconfig redhat/trusts.cfg redhat/tidc-wrapper redhat/trust_router-wrapper redhat/tr-test-main.cfg redhat/default-main.cfg redhat/tids-wrapper redhat/sysconfig.tids
68
69 if HAVE_SYSTEMD
70 systemdsystemunit_DATA = tids.service
71 endif
72
73 EXTRA_DIST = trust_router.spec common/tests.json schema.sql tids.service \
74         tr/manual.cfg tr/portal.cfg \
75         redhat/tids.init