blob: c712cfe86962798e19982a0031ebb87906c17bbe [file] [log] [blame]
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +08001ACLOCAL_AMFLAGS = -I m4
2
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +08003lib_LTLIBRARIES = libmctp.la
Jeremy Kerrc7e764a2019-05-28 16:49:03 +08004libmctp_la_SOURCES = core.c alloc.c log.c \
Jeremy Kerr8682ef22019-05-30 17:46:44 +08005 libmctp-alloc.h libmctp-log.h
6include_HEADERS = libmctp.h
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +08007
8if LIBMCTP_BINDING_serial
Jeremy Kerr8682ef22019-05-30 17:46:44 +08009libmctp_la_SOURCES += serial.c
10include_HEADERS += libmctp-serial.h
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080011endif
12
13if LIBMCTP_BINDING_astlpc
Jeremy Kerr8682ef22019-05-30 17:46:44 +080014libmctp_la_SOURCES += astlpc.c
15include_HEADERS += libmctp-astlpc.h
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080016endif
17
18bin_PROGRAMS = utils/mctp-demux-daemon
19utils_mctp_demux_daemon_LDADD = libmctp.la
20
Jeremy Kerr80971f82019-08-29 09:57:58 +053021pkgconfig_DATA = libmctp.pc
22
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080023TESTS = $(check_PROGRAMS)
24
Jeremy Kerr1a4ec3c2019-09-03 11:01:50 +080025check_PROGRAMS = tests/test_eid tests/test_seq tests/test_bridge
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +080026# 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.
28LDADD = tests/libtest-utils.a libmctp.la
29
30noinst_LIBRARIES = tests/libtest-utils.a
31
32tests_libtest_utils_a_SOURCES = tests/test-utils.c tests/test-utils.h