blob: 6d0e42605fd02d356b0cf8e8e8d059c264727205 [file] [log] [blame]
PROTOC = protoc
PROTOS_PATH = proto
vpath %.proto $(PROTOS_PATH)
AM_DEFAULT_SOURCE_EXT = .cpp
SUFFIXES = .proto .pb.cc
libbinarystoredir = ${libdir}/ipmid-providers
libbinarystore_LTLIBRARIES = libbinarystore.la
libbinarystore_la_SOURCES = main.cpp \
handler.cpp \
binaryblob.pb.cc \
binarystore.cpp
libbinarystore_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
-version-info 0:0:0 -shared \
-lprotobuf
libbinarystore_la_CXXFLAGS = -I$(srcdir) $(PHOSPHOR_LOGGING_CFLAGS) \
-flto
binaryblob.pb.h binaryblob.pb.cc: $(srcdir)/$(PROTOS_PATH)/binaryblob.proto
$(PROTOC) -I$(srcdir)/$(PROTOS_PATH) --cpp_out=. $<
BUILT_SOURCES = binaryblob.pb.h binaryblob.pb.cc
SUBDIRS = . test
ACLOCAL_AMFLAGS = -I m4