blob: dec3ff197a1e91b91ed57bd28f94d96aeeb36808 [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 \
William A. Kennington III6ee93c62020-12-22 13:01:15 -080014 $(CODE_COVERAGE_CXXFLAGS) \
15 -flto
Jason Ling85e54f12020-11-05 18:47:21 -080016libversionblob_common_la_LDFLAGS = \
William A. Kennington III6ee93c62020-12-22 13:01:15 -080017 $(CODE_COVERAGE_LIBS) \
18 -lstdc++fs
Jason Ling85e54f12020-11-05 18:47:21 -080019libversionblob_common_la_LIBADD = $(top_builddir)/libfirmware_common.la
20libversionblob_common_la_LIBADD += $(top_builddir)/bmc/libbmc_common.la
Jason Lingc78bfc82020-11-05 18:58:16 -080021
22libversionblobdir = ${libdir}/ipmid-providers
23libversionblob_LTLIBRARIES = libversionblob.la
24libversionblob_la_SOURCES = \
25 main.cpp
26libversionblob_la_LIBADD = libversionblob_common.la
27libversionblob_la_LDFLAGS = \
Jason Lingc78bfc82020-11-05 18:58:16 -080028 $(CODE_COVERAGE_LIBS) \
29 -lstdc++fs \
30 -version-info 0:0:0 -shared
31libversionblob_la_CXXFLAGS = \
32 -I$(top_srcdir) \
33 -I$(top_srcdir)/bmc \
Jason Lingc78bfc82020-11-05 18:58:16 -080034 $(CODE_COVERAGE_CXXFLAGS) \
35 -flto
William A. Kennington IIIabf17352020-12-22 21:07:11 -080036
Jason Ling85e54f12020-11-05 18:47:21 -080037SUBDIRS = . test