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 \ |
Jeremy Kerr | 8682ef2 | 2019-05-30 17:46:44 +0800 | [diff] [blame] | 5 | libmctp-alloc.h libmctp-log.h |
| 6 | include_HEADERS = libmctp.h |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 7 | |
| 8 | if LIBMCTP_BINDING_serial |
Jeremy Kerr | 8682ef2 | 2019-05-30 17:46:44 +0800 | [diff] [blame] | 9 | libmctp_la_SOURCES += serial.c |
| 10 | include_HEADERS += libmctp-serial.h |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 11 | endif |
| 12 | |
| 13 | if LIBMCTP_BINDING_astlpc |
Jeremy Kerr | 8682ef2 | 2019-05-30 17:46:44 +0800 | [diff] [blame] | 14 | libmctp_la_SOURCES += astlpc.c |
| 15 | include_HEADERS += libmctp-astlpc.h |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 16 | endif |
| 17 | |
| 18 | bin_PROGRAMS = utils/mctp-demux-daemon |
| 19 | utils_mctp_demux_daemon_LDADD = libmctp.la |
| 20 | |
Jeremy Kerr | 80971f8 | 2019-08-29 09:57:58 +0530 | [diff] [blame] | 21 | pkgconfig_DATA = libmctp.pc |
| 22 | |
Andrew Jeffery | 7344ac2 | 2020-01-10 16:13:07 +1030 | [diff] [blame] | 23 | if AUTOCONF_CODE_COVERAGE_2019_01_06 |
| 24 | include $(top_srcdir)/aminclude_static.am |
| 25 | clean-local: code-coverage-clean |
| 26 | distclean-local: code-coverage-dist-clean |
| 27 | else |
| 28 | @CODE_COVERAGE_RULES@ |
| 29 | endif |
| 30 | |
| 31 | AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) |
| 32 | AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
| 33 | AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS) |
| 34 | |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 35 | TESTS = $(check_PROGRAMS) |
| 36 | |
Jeremy Kerr | 1a4ec3c | 2019-09-03 11:01:50 +0800 | [diff] [blame] | 37 | check_PROGRAMS = tests/test_eid tests/test_seq tests/test_bridge |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 38 | # 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. |
| 40 | LDADD = tests/libtest-utils.a libmctp.la |
| 41 | |
| 42 | noinst_LIBRARIES = tests/libtest-utils.a |
| 43 | |
| 44 | tests_libtest_utils_a_SOURCES = tests/test-utils.c tests/test-utils.h |