blob: f187d9c10c50e7c2be4ea9d0466687a68c28e315 [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
Jeremy Kerr1a4ec3c2019-09-03 11:01:50 +080037check_PROGRAMS = tests/test_eid tests/test_seq tests/test_bridge
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080038# We set a global LDADD here, as there's no way to specify it for all
39# tests. This means other targets' LDADDs need to be overridden.
40LDADD = tests/libtest-utils.a libmctp.la
41
42noinst_LIBRARIES = tests/libtest-utils.a
43
44tests_libtest_utils_a_SOURCES = tests/test-utils.c tests/test-utils.h