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