blob: 1f3cd2aa1e850b7ee647008d2706f6cecbc818bd [file] [log] [blame]
Jeremy Kerrb2ef62b2019-05-28 09:38:25 +08001ACLOCAL_AMFLAGS = -I m4
2
3# standalone compilation uses stdio
4libmctp_la_CPPFLAGS = -DMCTP_LOG_STDERR -DMCTP_FILEIO
5
6lib_LTLIBRARIES = libmctp.la
7libmctp_la_SOURCES = core.c alloc.c \
8 libmctp.h libmctp-alloc.h
9
10if LIBMCTP_BINDING_serial
11libmctp_la_SOURCES += serial.c libmctp-serial.h
12endif
13
14if LIBMCTP_BINDING_astlpc
15libmctp_la_SOURCES += astlpc.c libmctp-astlpc.h
16endif
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