blob: 7e0338459db16d5a5e4914cb1533d7994658d036 [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 \
Patrick Venture33740b92019-06-28 19:22:21 -07009 update_systemd.cpp \
10 lpc_handler.cpp
Patrick Venturef0c71df2019-06-26 19:39:36 -070011
Patrick Venturef0c71df2019-06-26 19:39:36 -070012if ENABLE_ASPEED_LPC
13libfirmwareblob_common_la_SOURCES += lpc_aspeed.cpp
14endif
Patrick Venture33740b92019-06-28 19:22:21 -070015
Patrick Venturef0c71df2019-06-26 19:39:36 -070016if ENABLE_NUVOTON_LPC
17libfirmwareblob_common_la_SOURCES += lpc_nuvoton.cpp
18endif
Patrick Venturef0c71df2019-06-26 19:39:36 -070019
Patrick Venturef0c71df2019-06-26 19:39:36 -070020if ENABLE_ASPEED_P2A
21libfirmwareblob_common_la_SOURCES += pci_handler.cpp
22endif
Patrick Venturef0c71df2019-06-26 19:39:36 -070023
24libfirmwareblob_common_la_CXXFLAGS = \
25 -I$(top_srcdir) \
26 $(SDBUSPLUS_CFLAGS) \
27 $(PHOSPHOR_LOGGING_CFLAGS) \
28 $(CODE_COVERAGE_CXXFLAGS) \
29 -flto
30libfirmwareblob_common_la_LDFLAGS = \
31 $(SDBUSPLUS_LIBS) \
32 $(PHOSPHOR_LOGGING_LIBS) \
33 $(CODE_COVERAGE_LIBS) \
34 -lstdc++fs
Patrick Venture1ff1f932019-06-27 09:57:37 -070035libfirmwareblob_common_la_LIBADD = $(top_builddir)/libfirmware_common.la
Patrick Venturef0c71df2019-06-26 19:39:36 -070036
37libfirmwareblobdir = ${libdir}/ipmid-providers
38libfirmwareblob_LTLIBRARIES = libfirmwareblob.la
39libfirmwareblob_la_SOURCES = main.cpp
40libfirmwareblob_la_LIBADD = libfirmwareblob_common.la
41libfirmwareblob_la_LDFLAGS = \
42 $(SDBUSPLUS_LIBS) \
43 $(PHOSPHOR_LOGGING_LIBS) \
44 $(CODE_COVERAGE_LIBS) \
45 -lstdc++fs \
46 -version-info 0:0:0 -shared
47libfirmwareblob_la_CXXFLAGS = \
48 -I$(top_srcdir) \
49 $(SDBUSPLUS_CFLAGS) \
50 $(PHOSPHOR_LOGGING_CFLAGS) \
51 $(CODE_COVERAGE_CXXFLAGS) \
52 -flto
53
54SUBDIRS = . test