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