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 | |
Xiaochao Ma | 1e496c8 | 2020-01-16 17:19:11 +0800 | [diff] [blame] | 18 | if HAVE_SYSTEMD |
| 19 | systemdsystemunit_DATA = \ |
| 20 | mctp-demux.service |
| 21 | endif |
| 22 | |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 23 | bin_PROGRAMS = utils/mctp-demux-daemon |
| 24 | utils_mctp_demux_daemon_LDADD = libmctp.la |
| 25 | |
Jeremy Kerr | 80971f8 | 2019-08-29 09:57:58 +0530 | [diff] [blame] | 26 | pkgconfig_DATA = libmctp.pc |
| 27 | |
Andrew Jeffery | 7344ac2 | 2020-01-10 16:13:07 +1030 | [diff] [blame] | 28 | if AUTOCONF_CODE_COVERAGE_2019_01_06 |
| 29 | include $(top_srcdir)/aminclude_static.am |
| 30 | clean-local: code-coverage-clean |
| 31 | distclean-local: code-coverage-dist-clean |
| 32 | else |
| 33 | @CODE_COVERAGE_RULES@ |
| 34 | endif |
| 35 | |
| 36 | AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) |
| 37 | AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
| 38 | AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS) |
| 39 | |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 40 | TESTS = $(check_PROGRAMS) |
| 41 | |
Andrew Jeffery | 0247c73 | 2020-02-06 11:48:52 +1030 | [diff] [blame] | 42 | check_PROGRAMS = tests/test_eid tests/test_seq tests/test_bridge \ |
Andrew Jeffery | 25de093 | 2020-02-06 15:56:12 +1030 | [diff] [blame] | 43 | tests/test_astlpc tests/test_serial |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 44 | # 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. |
| 46 | LDADD = tests/libtest-utils.a libmctp.la |
| 47 | |
| 48 | noinst_LIBRARIES = tests/libtest-utils.a |
| 49 | |
| 50 | tests_libtest_utils_a_SOURCES = tests/test-utils.c tests/test-utils.h |