Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 1 | ACLOCAL_AMFLAGS = -I m4 |
| 2 | |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 3 | lib_LTLIBRARIES = libmctp.la |
Jeremy Kerr | c7e764a | 2019-05-28 16:49:03 +0800 | [diff] [blame] | 4 | libmctp_la_SOURCES = core.c alloc.c log.c \ |
Wiktor Gołgowski | ba6727e | 2020-03-13 18:25:01 +0100 | [diff] [blame] | 5 | libmctp-alloc.h libmctp-log.h \ |
| 6 | libmctp-cmds.h |
Jeremy Kerr | 8682ef2 | 2019-05-30 17:46:44 +0800 | [diff] [blame] | 7 | include_HEADERS = libmctp.h |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 8 | |
| 9 | if LIBMCTP_BINDING_serial |
Jeremy Kerr | 8682ef2 | 2019-05-30 17:46:44 +0800 | [diff] [blame] | 10 | libmctp_la_SOURCES += serial.c |
| 11 | include_HEADERS += libmctp-serial.h |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 12 | endif |
| 13 | |
| 14 | if LIBMCTP_BINDING_astlpc |
Andrew Jeffery | eba19a3 | 2021-03-09 23:09:40 +1030 | [diff] [blame^] | 15 | libmctp_la_SOURCES += astlpc.c crc32.c |
Jeremy Kerr | 8682ef2 | 2019-05-30 17:46:44 +0800 | [diff] [blame] | 16 | include_HEADERS += libmctp-astlpc.h |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 17 | endif |
| 18 | |
Xiaochao Ma | 1e496c8 | 2020-01-16 17:19:11 +0800 | [diff] [blame] | 19 | if HAVE_SYSTEMD |
| 20 | systemdsystemunit_DATA = \ |
| 21 | mctp-demux.service |
| 22 | endif |
| 23 | |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 24 | bin_PROGRAMS = utils/mctp-demux-daemon |
| 25 | utils_mctp_demux_daemon_LDADD = libmctp.la |
| 26 | |
Jeremy Kerr | 80971f8 | 2019-08-29 09:57:58 +0530 | [diff] [blame] | 27 | pkgconfig_DATA = libmctp.pc |
| 28 | |
Andrew Jeffery | 7344ac2 | 2020-01-10 16:13:07 +1030 | [diff] [blame] | 29 | if AUTOCONF_CODE_COVERAGE_2019_01_06 |
| 30 | include $(top_srcdir)/aminclude_static.am |
| 31 | clean-local: code-coverage-clean |
| 32 | distclean-local: code-coverage-dist-clean |
| 33 | else |
| 34 | @CODE_COVERAGE_RULES@ |
| 35 | endif |
| 36 | |
| 37 | AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) |
| 38 | AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
| 39 | AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS) |
| 40 | |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 41 | TESTS = $(check_PROGRAMS) |
| 42 | |
Andrew Jeffery | 0247c73 | 2020-02-06 11:48:52 +1030 | [diff] [blame] | 43 | check_PROGRAMS = tests/test_eid tests/test_seq tests/test_bridge \ |
Wiktor Gołgowski | ba6727e | 2020-03-13 18:25:01 +0100 | [diff] [blame] | 44 | tests/test_astlpc tests/test_serial tests/test_cmds |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 45 | # We set a global LDADD here, as there's no way to specify it for all |
| 46 | # tests. This means other targets' LDADDs need to be overridden. |
| 47 | LDADD = tests/libtest-utils.a libmctp.la |
| 48 | |
| 49 | noinst_LIBRARIES = tests/libtest-utils.a |
| 50 | |
| 51 | tests_libtest_utils_a_SOURCES = tests/test-utils.c tests/test-utils.h |
Andrew Jeffery | 8d53b1c | 2020-05-29 08:43:04 +0930 | [diff] [blame] | 52 | |
| 53 | @VALGRIND_CHECK_RULES@ |