-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
76 lines (60 loc) · 2.14 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
ACLOCAL_AMFLAGS=-I config
SUBDIRS = doc include
pkgconfig_DATA = libmsc.pc
#
# Library
#
lib_LTLIBRARIES = src/libmsc.la
src_libmsc_la_SOURCES = \
src/msc/datagroups.cpp \
src/msc/output.cpp \
src/msc/packets.cpp \
src/msc/output/console.cpp \
src/msc/output/zmq.cpp
src_libmsc_la_CPPFLAGS = -Iinclude -I/usr/local/include -I${LIBZMQ_CFLAGS}
src_libmsc_la_CXXFLAGS = @LIBMSC_EXTRA_CXXFLAGS@
src_libmsc_la_LIBADD = ${LIBZMQ_LIBS}
if ENABLE_MOT
src_libmsc_la_SOURCES += src/msc/segment_encoder.cpp
src_libmsc_la_CPPFLAGS += -I${LIBMOT_CFLAGS}
src_libmsc_la_LIBADD += ${LIBMOT_LIBS}
endif
#
# Tests
#
test_apps = \
tests/test_crc \
tests/test_output \
tests/test_datagroups_headermode \
tests/test_datagroups_directorymode \
tests/test_packets \
tests/test_example
tests_test_crc_SOURCES = \
tests/test_crc.cpp
tests_test_crc_CPPFLAGS = -Iinclude ${LIBMOT_CFLAGS}
tests_test_crc_LDADD = -Lsrc/.libs -lmsc
tests_test_output_SOURCES = \
tests/test_output.cpp
tests_test_output_CPPFLAGS = -Iinclude ${LIBMOT_CFLAGS} ${LIBZMQ_CFLAGS}
tests_test_output_LDADD = -Lsrc/.libs -lmsc ${LIBMOT_LIBS} ${LIBZMQ_LIBS} ${LIBSODIUM_LIBS}
tests_test_datagroups_headermode_SOURCES = \
tests/test_datagroups_headermode.cpp
tests_test_datagroups_headermode_CPPFLAGS = -Iinclude ${LIBMOT_CFLAGS}
tests_test_datagroups_headermode_LDADD = -Lsrc/.libs -lmsc ${LIBMOT_LIBS}
tests_test_datagroups_directorymode_SOURCES = \
tests/test_datagroups_directorymode.cpp
tests_test_datagroups_directorymode_CPPFLAGS = -Iinclude ${LIBMOT_CFLAGS}
tests_test_datagroups_directorymode_LDADD = -Lsrc/.libs -lmsc ${LIBMOT_LIBS}
tests_test_packets_SOURCES = \
tests/test_packets.cpp
tests_test_packets_CPPFLAGS = -Iinclude ${LIBMOT_CFLAGS}
tests_test_packets_LDADD = -Lsrc/.libs -lmsc ${LIBMOT_LIBS}
tests_test_example_SOURCES = \
tests/test_example.cpp
tests_test_example_CPPFLAGS = -Iinclude ${LIBMOT_CFLAGS}
tests_test_example_LDADD = -Lsrc/.libs -lmsc ${LIBMOT_LIBS}
check_PROGRAMS = ${test_apps}
# Run the test cases
TESTS = $(test_apps)
XFAIL_TESTS =
EXTRA_DIST = COPYING NEWS README.md INSTALL.md LICENCE AUTHORS ChangeLog TODO doc