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