blob: ac57ea2af97b055bc144c7e89c8e22fae36d3dc9 [file] [log] [blame]
Andrew Jeffery22778042017-01-13 22:37:26 +10301ACLOCAL_AMFLAGS = -I m4
Suraj Jitindar Singhddf0edb2017-03-28 10:50:40 +11002sbin_PROGRAMS = mboxd mboxctl
Andrew Jeffery22778042017-01-13 22:37:26 +10303
Deepak Kodihalli393821d2017-04-28 04:44:38 -05004mboxd_SOURCES = \
5 mboxd.c \
6 common.c \
Andrew Jeffery68023072018-08-06 10:08:11 +09307 control.c \
8 control_legacy.c \
Andrew Jeffery55f4d6f2018-08-06 12:26:44 +09309 control_dbus.c \
Andrew Jefferycd186112018-08-08 10:47:55 +093010 lpc.c \
Andrew Jeffery1e531af2018-08-07 13:32:57 +093011 protocol.c \
Andrew Jeffery23140be2018-09-05 14:15:07 +093012 transport_dbus.c \
Andrew Jeffery457a6e52018-08-08 11:21:08 +093013 transport_mbox.c \
Andrew Jefferyf593b1b2018-08-08 11:01:04 +093014 windows.c \
Deepak Kodihalli393821d2017-04-28 04:44:38 -050015 mtd.c
Suraj Jitindar Singhe39c9162017-03-28 10:47:43 +110016mboxd_LDFLAGS = $(LIBSYSTEMD_LIBS)
17mboxd_CFLAGS = $(LIBSYSTEMD_CFLAGS)
Suraj Jitindar Singhddf0edb2017-03-28 10:50:40 +110018
Evan Lojewskif1e547c2019-03-14 14:34:33 +103019# MTD Backing storage
20include mtd/Makefile.am.include
21
Evan Lojewskia0429782019-03-13 15:25:44 +103022# File Backing storage
23include file/Makefile.am.include
24
Deepak Kodihalli393821d2017-04-28 04:44:38 -050025if VIRTUAL_PNOR_ENABLED
Evan Lojewskif1e547c2019-03-14 14:34:33 +103026# VPNOR Backing storage
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103027include vpnor/Makefile.am.include
Deepak Kodihalli393821d2017-04-28 04:44:38 -050028endif
29
Suraj Jitindar Singhddf0edb2017-03-28 10:50:40 +110030mboxctl_SOURCES = mboxctl.c
31mboxctl_LDFLAGS = $(LIBSYSTEMD_LIBS)
32mboxctl_CFLAGS = $(LIBSYSTEMD_CFLAGS)
Andrew Jeffery65e21622017-04-12 20:25:31 +093033
Andrew Jeffery7e3f20d2019-08-02 13:34:44 +093034if AUTOCONF_CODE_COVERAGE_2019_01_06
35include $(top_srcdir)/aminclude_static.am
36clean-local: code-coverage-clean
37distclean-local: code-coverage-dist-clean
38else
Andrew Jeffery65e21622017-04-12 20:25:31 +093039@CODE_COVERAGE_RULES@
Andrew Jeffery7e3f20d2019-08-02 13:34:44 +093040endif
Andrew Jeffery65e21622017-04-12 20:25:31 +093041
Andrew Jeffery85985912018-02-22 10:20:31 +103042check_PROGRAMS =
Andrew Jeffery17bbf452018-02-26 09:57:56 +103043XFAIL_TESTS =
Andrew Jeffery85985912018-02-22 10:20:31 +103044
Andrew Jefferyfd7e0d92018-08-02 11:57:04 +093045AM_LIBS = $(CODE_COVERAGE_LIBS)
46AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) -UNDEBUG
47AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
48AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
49
Andrew Jeffery5345c512018-02-21 21:36:59 +103050include test/Makefile.am.include
Andrew Jeffery81059e32019-03-19 14:53:01 +103051
52if VIRTUAL_PNOR_ENABLED
Andrew Jeffery30bcf842018-03-26 12:13:20 +103053include vpnor/test/Makefile.am.include
Andrew Jeffery81059e32019-03-19 14:53:01 +103054endif
Deepak Kodihalli393821d2017-04-28 04:44:38 -050055
Andrew Jeffery62af1ba2017-04-24 13:36:46 +093056TESTS = $(check_PROGRAMS)
Andrew Jefferyc5578d82018-08-03 13:52:33 +093057
58cscope.files: clean-cscope cscopelist-unique
59
60cscopelist-unique: cscopelist
61 sort -u cscope.files > cscope.files.u && mv cscope.files.u cscope.files