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 | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 12 | binaryblob.pb.cc \ |
Kun Yi | 2765b64 | 2019-01-16 11:11:24 -0800 | [diff] [blame] | 13 | binarystore.cpp \ |
| 14 | sys.cpp \ |
| 15 | sys_file.cpp \ |
| 16 | handler.cpp |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 17 | |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 18 | libbinarystore_la_LDFLAGS = $(PHOSPHOR_LOGGING_LIBS) \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 19 | -version-info 0:0:0 -shared \ |
| 20 | -lprotobuf |
| 21 | |
| 22 | libbinarystore_la_CXXFLAGS = -I$(srcdir) $(PHOSPHOR_LOGGING_CFLAGS) \ |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 23 | -flto |
| 24 | |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 25 | binaryblob.pb.h binaryblob.pb.cc: $(srcdir)/$(PROTOS_PATH)/binaryblob.proto |
| 26 | $(PROTOC) -I$(srcdir)/$(PROTOS_PATH) --cpp_out=. $< |
| 27 | |
| 28 | BUILT_SOURCES = binaryblob.pb.h binaryblob.pb.cc |
| 29 | |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 30 | SUBDIRS = . test |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 31 | |
| 32 | ACLOCAL_AMFLAGS = -I m4 |