blob: 3994ff0d83702a373074f616839a8852a19c8f95 [file] [log] [blame]
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +08001ACLOCAL_AMFLAGS = -I m4
2
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +08003lib_LTLIBRARIES = libmctp.la
Jeremy Kerrc7e764a2019-05-28 16:49:03 +08004libmctp_la_SOURCES = core.c alloc.c log.c \
Jeremy Kerr8682ef22019-05-30 17:46:44 +08005 libmctp-alloc.h libmctp-log.h
6include_HEADERS = libmctp.h
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +08007
8if LIBMCTP_BINDING_serial
Jeremy Kerr8682ef22019-05-30 17:46:44 +08009libmctp_la_SOURCES += serial.c
10include_HEADERS += libmctp-serial.h
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080011endif
12
13if LIBMCTP_BINDING_astlpc
Jeremy Kerr8682ef22019-05-30 17:46:44 +080014libmctp_la_SOURCES += astlpc.c
15include_HEADERS += libmctp-astlpc.h
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080016endif
17
18bin_PROGRAMS = utils/mctp-demux-daemon
19utils_mctp_demux_daemon_LDADD = libmctp.la
20
Jeremy Kerr80971f82019-08-29 09:57:58 +053021pkgconfig_DATA = libmctp.pc
22
Andrew Jeffery7344ac22020-01-10 16:13:07 +103023if AUTOCONF_CODE_COVERAGE_2019_01_06
24include $(top_srcdir)/aminclude_static.am
25clean-local: code-coverage-clean
26distclean-local: code-coverage-dist-clean
27else
28@CODE_COVERAGE_RULES@
29endif
30
31AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)
32AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
33AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS)
34
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080035TESTS = $(check_PROGRAMS)
36
Andrew Jeffery0247c732020-02-06 11:48:52 +103037check_PROGRAMS = tests/test_eid tests/test_seq tests/test_bridge \
Andrew Jeffery25de0932020-02-06 15:56:12 +103038 tests/test_astlpc tests/test_serial
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080039# We set a global LDADD here, as there's no way to specify it for all
40# tests. This means other targets' LDADDs need to be overridden.
41LDADD = tests/libtest-utils.a libmctp.la
42
43noinst_LIBRARIES = tests/libtest-utils.a
44
45tests_libtest_utils_a_SOURCES = tests/test-utils.c tests/test-utils.h