Jeremy Kerr | b2ef62b | 2019-05-28 09:38:25 +0800 | [diff] [blame^] | 1 | ACLOCAL_AMFLAGS = -I m4 |
| 2 | |
| 3 | # standalone compilation uses stdio |
| 4 | libmctp_la_CPPFLAGS = -DMCTP_LOG_STDERR -DMCTP_FILEIO |
| 5 | |
| 6 | lib_LTLIBRARIES = libmctp.la |
| 7 | libmctp_la_SOURCES = core.c alloc.c \ |
| 8 | libmctp.h libmctp-alloc.h |
| 9 | |
| 10 | if LIBMCTP_BINDING_serial |
| 11 | libmctp_la_SOURCES += serial.c libmctp-serial.h |
| 12 | endif |
| 13 | |
| 14 | if LIBMCTP_BINDING_astlpc |
| 15 | libmctp_la_SOURCES += astlpc.c libmctp-astlpc.h |
| 16 | endif |
| 17 | |
| 18 | bin_PROGRAMS = utils/mctp-demux-daemon |
| 19 | utils_mctp_demux_daemon_LDADD = libmctp.la |
| 20 | |
| 21 | TESTS = $(check_PROGRAMS) |
| 22 | |
| 23 | check_PROGRAMS = tests/test_eid tests/test_seq |
| 24 | # We set a global LDADD here, as there's no way to specify it for all |
| 25 | # tests. This means other targets' LDADDs need to be overridden. |
| 26 | LDADD = tests/libtest-utils.a libmctp.la |
| 27 | |
| 28 | noinst_LIBRARIES = tests/libtest-utils.a |
| 29 | |
| 30 | tests_libtest_utils_a_SOURCES = tests/test-utils.c tests/test-utils.h |