blob: 09add659100e4fd1bba936c1adeaea37237193b0 [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 \
7 mboxd_dbus.c \
Deepak Kodihalli393821d2017-04-28 04:44:38 -05008 mboxd_lpc.c \
9 mboxd_msg.c \
10 mboxd_windows.c \
11 mtd.c
Suraj Jitindar Singhe39c9162017-03-28 10:47:43 +110012mboxd_LDFLAGS = $(LIBSYSTEMD_LIBS)
13mboxd_CFLAGS = $(LIBSYSTEMD_CFLAGS)
Suraj Jitindar Singhddf0edb2017-03-28 10:50:40 +110014
Deepak Kodihalli393821d2017-04-28 04:44:38 -050015if VIRTUAL_PNOR_ENABLED
Ratan Guptab0327582017-06-28 18:26:14 +053016mboxd_SOURCES += pnor_partition_table.cpp \
17 mboxd_pnor_partition_table.cpp \
Ratan Guptac0ef9872017-06-06 14:31:37 +053018 mboxd_flash_virtual.cpp \
Deepak Kodihalli017e45c2017-07-12 01:06:30 -050019 pnor_partition.cpp \
20 mboxd_lpc_virtual.cpp
Ratan Guptab0327582017-06-28 18:26:14 +053021
22mboxd_LDFLAGS += -lstdc++fs \
23 $(SDBUSPLUS_LIBS) \
24 $(PHOSPHOR_LOGGING_LIBS) \
25 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
Deepak Kodihalli6c2fa902017-05-01 06:36:02 -050026else
Deepak Kodihalli017e45c2017-07-12 01:06:30 -050027mboxd_SOURCES += mboxd_flash_physical.c \
28 mboxd_lpc_physical.c
Deepak Kodihalli393821d2017-04-28 04:44:38 -050029endif
30
Suraj Jitindar Singhddf0edb2017-03-28 10:50:40 +110031mboxctl_SOURCES = mboxctl.c
32mboxctl_LDFLAGS = $(LIBSYSTEMD_LIBS)
33mboxctl_CFLAGS = $(LIBSYSTEMD_CFLAGS)
Andrew Jeffery65e21622017-04-12 20:25:31 +093034
35@CODE_COVERAGE_RULES@
36
Andrew Jeffery85985912018-02-22 10:20:31 +103037check_PROGRAMS =
38
Andrew Jeffery5345c512018-02-21 21:36:59 +103039include test/Makefile.am.include
Andrew Jeffery85985912018-02-22 10:20:31 +103040include test/vpnor/Makefile.am.include
Deepak Kodihalli393821d2017-04-28 04:44:38 -050041
Andrew Jeffery62af1ba2017-04-24 13:36:46 +093042TESTS = $(check_PROGRAMS)