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 | |
| 9 | libbinarystoredir = ${libdir}/ipmid-providers |
| 10 | libbinarystore_LTLIBRARIES = libbinarystore.la |
| 11 | libbinarystore_la_SOURCES = main.cpp \ |
Kun Yi | 64dc05c | 2018-12-19 13:19:03 -0800 | [diff] [blame] | 12 | handler.cpp \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 13 | binaryblob.pb.cc \ |
Kun Yi | 64dc05c | 2018-12-19 13:19:03 -0800 | [diff] [blame] | 14 | binarystore.cpp |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 15 | |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 16 | libbinarystore_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 17 | -version-info 0:0:0 -shared \ |
| 18 | -lprotobuf |
| 19 | |
| 20 | libbinarystore_la_CXXFLAGS = -I$(srcdir) $(PHOSPHOR_LOGGING_CFLAGS) \ |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 21 | -flto |
| 22 | |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 23 | binaryblob.pb.h binaryblob.pb.cc: $(srcdir)/$(PROTOS_PATH)/binaryblob.proto |
| 24 | $(PROTOC) -I$(srcdir)/$(PROTOS_PATH) --cpp_out=. $< |
| 25 | |
| 26 | BUILT_SOURCES = binaryblob.pb.h binaryblob.pb.cc |
| 27 | |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 28 | SUBDIRS = . test |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 29 | |
| 30 | ACLOCAL_AMFLAGS = -I m4 |