blob: c93d45239c97cefdd619d8655294bd7bb148cc6c [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
Xiaochao Ma1e496c82020-01-16 17:19:11 +080018if HAVE_SYSTEMD
19systemdsystemunit_DATA = \
20 mctp-demux.service
21endif
22
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080023bin_PROGRAMS = utils/mctp-demux-daemon
24utils_mctp_demux_daemon_LDADD = libmctp.la
25
Jeremy Kerr80971f82019-08-29 09:57:58 +053026pkgconfig_DATA = libmctp.pc
27
Andrew Jeffery7344ac22020-01-10 16:13:07 +103028if AUTOCONF_CODE_COVERAGE_2019_01_06
29include $(top_srcdir)/aminclude_static.am
30clean-local: code-coverage-clean
31distclean-local: code-coverage-dist-clean
32else
33@CODE_COVERAGE_RULES@
34endif
35
36AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)
37AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
38AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS)
39
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080040TESTS = $(check_PROGRAMS)
41
Andrew Jeffery0247c732020-02-06 11:48:52 +103042check_PROGRAMS = tests/test_eid tests/test_seq tests/test_bridge \
Andrew Jeffery25de0932020-02-06 15:56:12 +103043 tests/test_astlpc tests/test_serial
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080044# We set a global LDADD here, as there's no way to specify it for all
45# tests. This means other targets' LDADDs need to be overridden.
46LDADD = tests/libtest-utils.a libmctp.la
47
48noinst_LIBRARIES = tests/libtest-utils.a
49
50tests_libtest_utils_a_SOURCES = tests/test-utils.c tests/test-utils.h