Jason Ling | 85e54f1 | 2020-11-05 18:47:21 -0800 | [diff] [blame] | 1 | AM_DEFAULT_SOURCE_EXT = .cpp |
| 2 | |
| 3 | pkgdatadir = $(datadir)/phosphor-ipmi-flash |
| 4 | dist_pkgdata_DATA = |
| 5 | |
| 6 | noinst_LTLIBRARIES = libversionblob_common.la |
| 7 | libversionblob_common_la_SOURCES = \ |
Jason Ling | c78bfc8 | 2020-11-05 18:58:16 -0800 | [diff] [blame] | 8 | version_handler.cpp \ |
Jason Ling | 85e54f1 | 2020-11-05 18:47:21 -0800 | [diff] [blame] | 9 | version_handlers_builder.cpp |
| 10 | |
| 11 | libversionblob_common_la_CXXFLAGS = \ |
| 12 | -I$(top_srcdir) \ |
| 13 | -I$(top_srcdir)/bmc \ |
| 14 | $(SDBUSPLUS_CFLAGS) \ |
William A. Kennington III | 6ee93c6 | 2020-12-22 13:01:15 -0800 | [diff] [blame] | 15 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 16 | $(CODE_COVERAGE_CXXFLAGS) \ |
| 17 | -flto |
Jason Ling | 85e54f1 | 2020-11-05 18:47:21 -0800 | [diff] [blame] | 18 | libversionblob_common_la_LDFLAGS = \ |
William A. Kennington III | 6ee93c6 | 2020-12-22 13:01:15 -0800 | [diff] [blame] | 19 | $(SDBUSPLUS_LIBS) \ |
| 20 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 21 | $(CODE_COVERAGE_LIBS) \ |
| 22 | -lstdc++fs |
Jason Ling | 85e54f1 | 2020-11-05 18:47:21 -0800 | [diff] [blame] | 23 | libversionblob_common_la_LIBADD = $(top_builddir)/libfirmware_common.la |
| 24 | libversionblob_common_la_LIBADD += $(top_builddir)/bmc/libbmc_common.la |
Jason Ling | c78bfc8 | 2020-11-05 18:58:16 -0800 | [diff] [blame] | 25 | |
| 26 | libversionblobdir = ${libdir}/ipmid-providers |
| 27 | libversionblob_LTLIBRARIES = libversionblob.la |
| 28 | libversionblob_la_SOURCES = \ |
| 29 | main.cpp |
| 30 | libversionblob_la_LIBADD = libversionblob_common.la |
| 31 | libversionblob_la_LDFLAGS = \ |
| 32 | $(SDBUSPLUS_LIBS) \ |
| 33 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 34 | $(CODE_COVERAGE_LIBS) \ |
| 35 | -lstdc++fs \ |
| 36 | -version-info 0:0:0 -shared |
| 37 | libversionblob_la_CXXFLAGS = \ |
| 38 | -I$(top_srcdir) \ |
| 39 | -I$(top_srcdir)/bmc \ |
| 40 | $(SDBUSPLUS_CFLAGS) \ |
| 41 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 42 | $(CODE_COVERAGE_CXXFLAGS) \ |
| 43 | -flto |
Jason Ling | 85e54f1 | 2020-11-05 18:47:21 -0800 | [diff] [blame] | 44 | SUBDIRS = . test |