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 | |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 23 | TESTS = $(check_PROGRAMS) |
| 24 | |
Jeremy Kerr | 1a4ec3c | 2019-09-03 11:01:50 +0800 | [diff] [blame] | 25 | check_PROGRAMS = tests/test_eid tests/test_seq tests/test_bridge |
Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame] | 26 | # We set a global LDADD here, as there's no way to specify it for all |
| 27 | # tests. This means other targets' LDADDs need to be overridden. |
| 28 | LDADD = tests/libtest-utils.a libmctp.la |
| 29 | |
| 30 | noinst_LIBRARIES = tests/libtest-utils.a |
| 31 | |
| 32 | tests_libtest_utils_a_SOURCES = tests/test-utils.c tests/test-utils.h |