blob: be3346c55f17765c0e26ebe501856f0535a4b10b [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
21if ENABLE_PCI_BRIDGE
22if ENABLE_ASPEED_P2A
23libfirmwareblob_common_la_SOURCES += pci_handler.cpp
24endif
25endif
26
27libfirmwareblob_common_la_CXXFLAGS = \
28 -I$(top_srcdir) \
29 $(SDBUSPLUS_CFLAGS) \
30 $(PHOSPHOR_LOGGING_CFLAGS) \
31 $(CODE_COVERAGE_CXXFLAGS) \
32 -flto
33libfirmwareblob_common_la_LDFLAGS = \
34 $(SDBUSPLUS_LIBS) \
35 $(PHOSPHOR_LOGGING_LIBS) \
36 $(CODE_COVERAGE_LIBS) \
37 -lstdc++fs
Patrick Venture1ff1f932019-06-27 09:57:37 -070038libfirmwareblob_common_la_LIBADD = $(top_builddir)/libfirmware_common.la
Patrick Venturef0c71df2019-06-26 19:39:36 -070039
40libfirmwareblobdir = ${libdir}/ipmid-providers
41libfirmwareblob_LTLIBRARIES = libfirmwareblob.la
42libfirmwareblob_la_SOURCES = main.cpp
43libfirmwareblob_la_LIBADD = libfirmwareblob_common.la
44libfirmwareblob_la_LDFLAGS = \
45 $(SDBUSPLUS_LIBS) \
46 $(PHOSPHOR_LOGGING_LIBS) \
47 $(CODE_COVERAGE_LIBS) \
48 -lstdc++fs \
49 -version-info 0:0:0 -shared
50libfirmwareblob_la_CXXFLAGS = \
51 -I$(top_srcdir) \
52 $(SDBUSPLUS_CFLAGS) \
53 $(PHOSPHOR_LOGGING_CFLAGS) \
54 $(CODE_COVERAGE_CXXFLAGS) \
55 -flto
56
57SUBDIRS = . test