blob: 8c4ff44acdd65e12dad54af926ffa425e5a797ea [file] [log] [blame]
Patrick Venturef0c71df2019-06-26 19:39:36 -07001AM_DEFAULT_SOURCE_EXT = .cpp
2
3noinst_LTLIBRARIES = libfirmwareblob_common.la
4libfirmwareblob_common_la_SOURCES = \
Patrick Venturef0c71df2019-06-26 19:39:36 -07005 firmware_handler.cpp \
6 file_handler.cpp \
Patrick Venturef0c71df2019-06-26 19:39:36 -07007 prepare_systemd.cpp \
8 verify_systemd.cpp \
9 update_systemd.cpp
10
11if ENABLE_LPC_BRIDGE
12libfirmwareblob_common_la_SOURCES += lpc_handler.cpp
13if ENABLE_ASPEED_LPC
14libfirmwareblob_common_la_SOURCES += lpc_aspeed.cpp
15endif
16if ENABLE_NUVOTON_LPC
17libfirmwareblob_common_la_SOURCES += lpc_nuvoton.cpp
18endif
19endif
20
Patrick Venturef0c71df2019-06-26 19:39:36 -070021if ENABLE_ASPEED_P2A
22libfirmwareblob_common_la_SOURCES += pci_handler.cpp
23endif
Patrick Venturef0c71df2019-06-26 19:39:36 -070024
25libfirmwareblob_common_la_CXXFLAGS = \
26 -I$(top_srcdir) \
27 $(SDBUSPLUS_CFLAGS) \
28 $(PHOSPHOR_LOGGING_CFLAGS) \
29 $(CODE_COVERAGE_CXXFLAGS) \
30 -flto
31libfirmwareblob_common_la_LDFLAGS = \
32 $(SDBUSPLUS_LIBS) \
33 $(PHOSPHOR_LOGGING_LIBS) \
34 $(CODE_COVERAGE_LIBS) \
35 -lstdc++fs
Patrick Venture1ff1f932019-06-27 09:57:37 -070036libfirmwareblob_common_la_LIBADD = $(top_builddir)/libfirmware_common.la
Patrick Venturef0c71df2019-06-26 19:39:36 -070037
38libfirmwareblobdir = ${libdir}/ipmid-providers
39libfirmwareblob_LTLIBRARIES = libfirmwareblob.la
40libfirmwareblob_la_SOURCES = main.cpp
41libfirmwareblob_la_LIBADD = libfirmwareblob_common.la
42libfirmwareblob_la_LDFLAGS = \
43 $(SDBUSPLUS_LIBS) \
44 $(PHOSPHOR_LOGGING_LIBS) \
45 $(CODE_COVERAGE_LIBS) \
46 -lstdc++fs \
47 -version-info 0:0:0 -shared
48libfirmwareblob_la_CXXFLAGS = \
49 -I$(top_srcdir) \
50 $(SDBUSPLUS_CFLAGS) \
51 $(PHOSPHOR_LOGGING_CFLAGS) \
52 $(CODE_COVERAGE_CXXFLAGS) \
53 -flto
54
55SUBDIRS = . test