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