blob: b1746be0295568dcfed6ceae4a38d209bfba0077 [file] [log] [blame]
Kun Yi0a940b92019-01-07 16:33:11 -08001PROTOC = protoc
2
3PROTOS_PATH = proto
4vpath %.proto $(PROTOS_PATH)
5
Kun Yi91beea62018-11-26 15:23:14 -08006AM_DEFAULT_SOURCE_EXT = .cpp
Kun Yi0a940b92019-01-07 16:33:11 -08007SUFFIXES = .proto .pb.cc
Kun Yi91beea62018-11-26 15:23:14 -08008
Kun Yi70059172019-02-22 16:31:42 -08009BOOST_CXX = \
10 -DBOOST_ERROR_CODE_HEADER_ONLY \
11 -DBOOST_SYSTEM_NO_DEPRECATED \
12 -DBOOST_ALL_NO_LIB
13
Kun Yi91beea62018-11-26 15:23:14 -080014libbinarystoredir = ${libdir}/ipmid-providers
15libbinarystore_LTLIBRARIES = libbinarystore.la
16libbinarystore_la_SOURCES = main.cpp \
Kun Yi0a940b92019-01-07 16:33:11 -080017 binaryblob.pb.cc \
Kun Yi2765b642019-01-16 11:11:24 -080018 binarystore.cpp \
19 sys.cpp \
Patrick Venture15f0f942020-07-09 09:38:18 -070020 sys_file_impl.cpp \
Kun Yi2765b642019-01-16 11:11:24 -080021 handler.cpp
Kun Yi0a940b92019-01-07 16:33:11 -080022
Kun Yi91beea62018-11-26 15:23:14 -080023libbinarystore_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080024 -version-info 0:0:0 -shared \
25 -lprotobuf
26
27libbinarystore_la_CXXFLAGS = -I$(srcdir) $(PHOSPHOR_LOGGING_CFLAGS) \
Kun Yi70059172019-02-22 16:31:42 -080028 $(BOOST_CXX) \
Kun Yi91beea62018-11-26 15:23:14 -080029 -flto
30
Kun Yi0a940b92019-01-07 16:33:11 -080031binaryblob.pb.h binaryblob.pb.cc: $(srcdir)/$(PROTOS_PATH)/binaryblob.proto
32 $(PROTOC) -I$(srcdir)/$(PROTOS_PATH) --cpp_out=. $<
33
34BUILT_SOURCES = binaryblob.pb.h binaryblob.pb.cc
35
Kun Yi91beea62018-11-26 15:23:14 -080036SUBDIRS = . test
Kun Yi0a940b92019-01-07 16:33:11 -080037
38ACLOCAL_AMFLAGS = -I m4