blob: 2ad19a087dd63c2d57157d35a52cc4733ef9deae [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
9libbinarystoredir = ${libdir}/ipmid-providers
10libbinarystore_LTLIBRARIES = libbinarystore.la
11libbinarystore_la_SOURCES = main.cpp \
Kun Yi0a940b92019-01-07 16:33:11 -080012 binaryblob.pb.cc \
Kun Yi2765b642019-01-16 11:11:24 -080013 binarystore.cpp \
14 sys.cpp \
15 sys_file.cpp \
16 handler.cpp
Kun Yi0a940b92019-01-07 16:33:11 -080017
Kun Yi91beea62018-11-26 15:23:14 -080018libbinarystore_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080019 -version-info 0:0:0 -shared \
20 -lprotobuf
21
22libbinarystore_la_CXXFLAGS = -I$(srcdir) $(PHOSPHOR_LOGGING_CFLAGS) \
Kun Yi91beea62018-11-26 15:23:14 -080023 -flto
24
Kun Yi0a940b92019-01-07 16:33:11 -080025binaryblob.pb.h binaryblob.pb.cc: $(srcdir)/$(PROTOS_PATH)/binaryblob.proto
26 $(PROTOC) -I$(srcdir)/$(PROTOS_PATH) --cpp_out=. $<
27
28BUILT_SOURCES = binaryblob.pb.h binaryblob.pb.cc
29
Kun Yi91beea62018-11-26 15:23:14 -080030SUBDIRS = . test
Kun Yi0a940b92019-01-07 16:33:11 -080031
32ACLOCAL_AMFLAGS = -I m4