blob: 6d0e42605fd02d356b0cf8e8e8d059c264727205 [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 Yi64dc05c2018-12-19 13:19:03 -080012 handler.cpp \
Kun Yi0a940b92019-01-07 16:33:11 -080013 binaryblob.pb.cc \
Kun Yi64dc05c2018-12-19 13:19:03 -080014 binarystore.cpp
Kun Yi0a940b92019-01-07 16:33:11 -080015
Kun Yi91beea62018-11-26 15:23:14 -080016libbinarystore_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \
Kun Yi0a940b92019-01-07 16:33:11 -080017 -version-info 0:0:0 -shared \
18 -lprotobuf
19
20libbinarystore_la_CXXFLAGS = -I$(srcdir) $(PHOSPHOR_LOGGING_CFLAGS) \
Kun Yi91beea62018-11-26 15:23:14 -080021 -flto
22
Kun Yi0a940b92019-01-07 16:33:11 -080023binaryblob.pb.h binaryblob.pb.cc: $(srcdir)/$(PROTOS_PATH)/binaryblob.proto
24 $(PROTOC) -I$(srcdir)/$(PROTOS_PATH) --cpp_out=. $<
25
26BUILT_SOURCES = binaryblob.pb.h binaryblob.pb.cc
27
Kun Yi91beea62018-11-26 15:23:14 -080028SUBDIRS = . test
Kun Yi0a940b92019-01-07 16:33:11 -080029
30ACLOCAL_AMFLAGS = -I m4