blob: 7230193cd78ebaf94c92f3248871d91ba2a31255 [file] [log] [blame]
Jason Ling85e54f12020-11-05 18:47:21 -08001AM_DEFAULT_SOURCE_EXT = .cpp
2
3pkgdatadir = $(datadir)/phosphor-ipmi-flash
4dist_pkgdata_DATA =
5
6noinst_LTLIBRARIES = libversionblob_common.la
7libversionblob_common_la_SOURCES = \
Jason Lingc78bfc82020-11-05 18:58:16 -08008 version_handler.cpp \
Jason Ling85e54f12020-11-05 18:47:21 -08009 version_handlers_builder.cpp
10
11libversionblob_common_la_CXXFLAGS = \
12 -I$(top_srcdir) \
13 -I$(top_srcdir)/bmc \
14 $(SDBUSPLUS_CFLAGS) \
William A. Kennington III6ee93c62020-12-22 13:01:15 -080015 $(PHOSPHOR_LOGGING_CFLAGS) \
16 $(CODE_COVERAGE_CXXFLAGS) \
17 -flto
Jason Ling85e54f12020-11-05 18:47:21 -080018libversionblob_common_la_LDFLAGS = \
William A. Kennington III6ee93c62020-12-22 13:01:15 -080019 $(SDBUSPLUS_LIBS) \
20 $(PHOSPHOR_LOGGING_LIBS) \
21 $(CODE_COVERAGE_LIBS) \
22 -lstdc++fs
Jason Ling85e54f12020-11-05 18:47:21 -080023libversionblob_common_la_LIBADD = $(top_builddir)/libfirmware_common.la
24libversionblob_common_la_LIBADD += $(top_builddir)/bmc/libbmc_common.la
Jason Lingc78bfc82020-11-05 18:58:16 -080025
26libversionblobdir = ${libdir}/ipmid-providers
27libversionblob_LTLIBRARIES = libversionblob.la
28libversionblob_la_SOURCES = \
29 main.cpp
30libversionblob_la_LIBADD = libversionblob_common.la
31libversionblob_la_LDFLAGS = \
32 $(SDBUSPLUS_LIBS) \
33 $(PHOSPHOR_LOGGING_LIBS) \
34 $(CODE_COVERAGE_LIBS) \
35 -lstdc++fs \
36 -version-info 0:0:0 -shared
37libversionblob_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 Ling85e54f12020-11-05 18:47:21 -080044SUBDIRS = . test