blob: 3a7c3d484fb9b12d6233097f396409d7f4960a1c [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 Jeffery457a6e52018-08-08 11:21:08 +093012 transport_mbox.c \
Andrew Jefferyf593b1b2018-08-08 11:01:04 +093013 windows.c \
Deepak Kodihalli393821d2017-04-28 04:44:38 -050014 mtd.c
Suraj Jitindar Singhe39c9162017-03-28 10:47:43 +110015mboxd_LDFLAGS = $(LIBSYSTEMD_LIBS)
16mboxd_CFLAGS = $(LIBSYSTEMD_CFLAGS)
Suraj Jitindar Singhddf0edb2017-03-28 10:50:40 +110017
Deepak Kodihalli393821d2017-04-28 04:44:38 -050018if VIRTUAL_PNOR_ENABLED
Andrew Jeffery53c21aa2018-03-26 11:56:16 +103019include vpnor/Makefile.am.include
Deepak Kodihalli6c2fa902017-05-01 06:36:02 -050020else
Andrew Jefferyeebc6bd2018-08-08 10:38:19 +093021mboxd_SOURCES += flash.c \
Andrew Jefferyc7d19472018-08-08 11:43:08 +093022 lpc_reset.c \
23 protocol_negotiate_version.c
Deepak Kodihalli393821d2017-04-28 04:44:38 -050024endif
25
Suraj Jitindar Singhddf0edb2017-03-28 10:50:40 +110026mboxctl_SOURCES = mboxctl.c
27mboxctl_LDFLAGS = $(LIBSYSTEMD_LIBS)
28mboxctl_CFLAGS = $(LIBSYSTEMD_CFLAGS)
Andrew Jeffery65e21622017-04-12 20:25:31 +093029
30@CODE_COVERAGE_RULES@
31
Andrew Jeffery85985912018-02-22 10:20:31 +103032check_PROGRAMS =
Andrew Jeffery17bbf452018-02-26 09:57:56 +103033XFAIL_TESTS =
Andrew Jeffery85985912018-02-22 10:20:31 +103034
Andrew Jefferyfd7e0d92018-08-02 11:57:04 +093035AM_LIBS = $(CODE_COVERAGE_LIBS)
36AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) -UNDEBUG
37AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
38AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
39
Andrew Jeffery5345c512018-02-21 21:36:59 +103040include test/Makefile.am.include
Andrew Jeffery30bcf842018-03-26 12:13:20 +103041include vpnor/test/Makefile.am.include
Deepak Kodihalli393821d2017-04-28 04:44:38 -050042
Andrew Jeffery62af1ba2017-04-24 13:36:46 +093043TESTS = $(check_PROGRAMS)
Andrew Jefferyc5578d82018-08-03 13:52:33 +093044
45cscope.files: clean-cscope cscopelist-unique
46
47cscopelist-unique: cscopelist
48 sort -u cscope.files > cscope.files.u && mv cscope.files.u cscope.files