Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 1 | PROTOC = protoc |
| 2 | |
| 3 | PROTOS_PATH = proto |
| 4 | vpath %.proto $(PROTOS_PATH) |
| 5 | |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 6 | AM_DEFAULT_SOURCE_EXT = .cpp |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 7 | SUFFIXES = .proto .pb.cc |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 8 | |
Kun Yi | 7005917 | 2019-02-22 16:31:42 -0800 | [diff] [blame] | 9 | BOOST_CXX = \ |
| 10 | -DBOOST_ERROR_CODE_HEADER_ONLY \ |
| 11 | -DBOOST_SYSTEM_NO_DEPRECATED \ |
| 12 | -DBOOST_ALL_NO_LIB |
| 13 | |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 14 | libbinarystoredir = ${libdir}/ipmid-providers |
| 15 | libbinarystore_LTLIBRARIES = libbinarystore.la |
| 16 | libbinarystore_la_SOURCES = main.cpp \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 17 | binaryblob.pb.cc \ |
Kun Yi | 2765b64 | 2019-01-16 11:11:24 -0800 | [diff] [blame] | 18 | binarystore.cpp \ |
| 19 | sys.cpp \ |
| 20 | sys_file.cpp \ |
| 21 | handler.cpp |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 22 | |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 23 | libbinarystore_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 24 | -version-info 0:0:0 -shared \ |
| 25 | -lprotobuf |
| 26 | |
| 27 | libbinarystore_la_CXXFLAGS = -I$(srcdir) $(PHOSPHOR_LOGGING_CFLAGS) \ |
Kun Yi | 7005917 | 2019-02-22 16:31:42 -0800 | [diff] [blame] | 28 | $(BOOST_CXX) \ |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 29 | -flto |
| 30 | |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 31 | binaryblob.pb.h binaryblob.pb.cc: $(srcdir)/$(PROTOS_PATH)/binaryblob.proto |
| 32 | $(PROTOC) -I$(srcdir)/$(PROTOS_PATH) --cpp_out=. $< |
| 33 | |
| 34 | BUILT_SOURCES = binaryblob.pb.h binaryblob.pb.cc |
| 35 | |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 36 | SUBDIRS = . test |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 37 | |
| 38 | ACLOCAL_AMFLAGS = -I m4 |