blob: ed2d4dd14c54e667ad3df1e63e3539e54566912e [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
21TESTS = $(check_PROGRAMS)
22
23check_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.
26LDADD = tests/libtest-utils.a libmctp.la
27
28noinst_LIBRARIES = tests/libtest-utils.a
29
30tests_libtest_utils_a_SOURCES = tests/test-utils.c tests/test-utils.h