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