This repository has been archived by the owner on Sep 4, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile.am
67 lines (52 loc) · 1.61 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
ACLOCAL_AMFLAGS = -I m4
lib_LTLIBRARIES = libmctp.la
libmctp_la_SOURCES = core.c alloc.c log.c \
libmctp-alloc.h libmctp-log.h \
libmctp-cmds.h libmctp-vdpci.h
include_HEADERS = libmctp.h
if LIBMCTP_BINDING_serial
libmctp_la_SOURCES += serial.c
include_HEADERS += libmctp-serial.h
endif
if LIBMCTP_BINDING_astlpc
libmctp_la_SOURCES += astlpc.c
include_HEADERS += libmctp-astlpc.h
endif
if LIBMCTP_BINDING_astpcie
libmctp_la_SOURCES += astpcie.c
include_HEADERS += libmctp-astpcie.h
endif
if LIBMCTP_BINDING_smbus
libmctp_la_SOURCES += smbus.c
include_HEADERS += libmctp-smbus.h
endif
if LIBMCTP_BINDING_asti3c
libmctp_la_SOURCES += asti3c.c
include_HEADERS += libmctp-asti3c.h
endif
if HAVE_SYSTEMD
systemdsystemunit_DATA = \
mctp-demux.service
endif
bin_PROGRAMS = utils/mctp-demux-daemon
utils_mctp_demux_daemon_LDADD = libmctp.la
pkgconfig_DATA = libmctp.pc
if AUTOCONF_CODE_COVERAGE_2019_01_06
include $(top_srcdir)/aminclude_static.am
clean-local: code-coverage-clean
distclean-local: code-coverage-dist-clean
else
@CODE_COVERAGE_RULES@
endif
AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS)
AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
AM_LDFLAGS = $(CODE_COVERAGE_LDFLAGS)
TESTS = $(check_PROGRAMS)
check_PROGRAMS = tests/test_eid tests/test_seq tests/test_bridge \
tests/test_astlpc tests/test_serial \
tests/test_astpcie tests/test_cmds
# We set a global LDADD here, as there's no way to specify it for all
# tests. This means other targets' LDADDs need to be overridden.
LDADD = tests/libtest-utils.a libmctp.la
noinst_LIBRARIES = tests/libtest-utils.a
tests_libtest_utils_a_SOURCES = tests/test-utils.c tests/test-utils.h