blob: c46a8cd891f68df0b4f2626b69fafa0440605c75 [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 = \
5 $(top_srcdir)/util.cpp \
6 firmware_handler.cpp \
7 file_handler.cpp \
8 $(top_srcdir)/internal/sys.cpp \
9 prepare_systemd.cpp \
10 verify_systemd.cpp \
11 update_systemd.cpp
12
13if ENABLE_LPC_BRIDGE
14libfirmwareblob_common_la_SOURCES += lpc_handler.cpp
15if ENABLE_ASPEED_LPC
16libfirmwareblob_common_la_SOURCES += lpc_aspeed.cpp
17endif
18if ENABLE_NUVOTON_LPC
19libfirmwareblob_common_la_SOURCES += lpc_nuvoton.cpp
20endif
21endif
22
23if ENABLE_PCI_BRIDGE
24if ENABLE_ASPEED_P2A
25libfirmwareblob_common_la_SOURCES += pci_handler.cpp
26endif
27endif
28
29libfirmwareblob_common_la_CXXFLAGS = \
30 -I$(top_srcdir) \
31 $(SDBUSPLUS_CFLAGS) \
32 $(PHOSPHOR_LOGGING_CFLAGS) \
33 $(CODE_COVERAGE_CXXFLAGS) \
34 -flto
35libfirmwareblob_common_la_LDFLAGS = \
36 $(SDBUSPLUS_LIBS) \
37 $(PHOSPHOR_LOGGING_LIBS) \
38 $(CODE_COVERAGE_LIBS) \
39 -lstdc++fs
40
41libfirmwareblobdir = ${libdir}/ipmid-providers
42libfirmwareblob_LTLIBRARIES = libfirmwareblob.la
43libfirmwareblob_la_SOURCES = main.cpp
44libfirmwareblob_la_LIBADD = libfirmwareblob_common.la
45libfirmwareblob_la_LDFLAGS = \
46 $(SDBUSPLUS_LIBS) \
47 $(PHOSPHOR_LOGGING_LIBS) \
48 $(CODE_COVERAGE_LIBS) \
49 -lstdc++fs \
50 -version-info 0:0:0 -shared
51libfirmwareblob_la_CXXFLAGS = \
52 -I$(top_srcdir) \
53 $(SDBUSPLUS_CFLAGS) \
54 $(PHOSPHOR_LOGGING_CFLAGS) \
55 $(CODE_COVERAGE_CXXFLAGS) \
56 -flto
57
58SUBDIRS = . test