diff options
| author | David Lamparter <equinox@diac24.net> | 2018-08-18 05:34:59 +0200 | 
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2018-10-25 17:30:21 +0200 | 
| commit | b1c41d1cf9ba8eb777d251a37765f36531854f78 (patch) | |
| tree | 262a1a67636bda14af23b492ecbfbad864d0cc11 /qpb | |
| parent | 9979b4a85be7ce7061a78f1ef1758952026eb98c (diff) | |
build: remove common.am
Fold things into where they make sense.
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'qpb')
| -rw-r--r-- | qpb/subdir.am | 36 | 
1 files changed, 36 insertions, 0 deletions
diff --git a/qpb/subdir.am b/qpb/subdir.am index 3c006fd221..0ed50c01be 100644 --- a/qpb/subdir.am +++ b/qpb/subdir.am @@ -23,3 +23,39 @@ CLEANFILES += \  endif  EXTRA_DIST += qpb/qpb.proto + +if HAVE_PROTOBUF + +# Uncomment to use an non-system version of libprotobuf-c. +# +# Q_PROTOBUF_C_CLIENT_INCLUDES = -I$(top_srcdir)/third-party/protobuf-c/src +# Q_PROTOBUF_C_CLIENT_LDOPTS = $(top_builddir)/third-party/protobuf-c/src/libprotobuf-c.la + +Q_PROTOBUF_C_CLIENT_INCLUDES= +Q_PROTOBUF_C_CLIENT_LDOPTS=-lprotobuf-c + +Q_PROTOC=protoc +Q_PROTOC_C=protoc-c + +# Rules +.proto.pb.h: +	$(Q_PROTOC) -I$(top_srcdir) --cpp_out=$(top_srcdir) $(top_srcdir)/$^ + +AM_V_PROTOC_C = $(am__v_PROTOC_C_$(V)) +am__v_PROTOC_C_ = $(am__v_PROTOC_C_$(AM_DEFAULT_VERBOSITY)) +am__v_PROTOC_C_0 = @echo "  PROTOC_C" $@; +am__v_PROTOC_C_1 = + +.proto.pb-c.c: +	$(AM_V_PROTOC_C)$(Q_PROTOC_C) -I$(top_srcdir) --c_out=$(top_srcdir) $(top_srcdir)/$^ +.pb-c.c.pb-c.h: +	@/bin/true + +# +# Information about how to link to various libraries. +# +Q_FRR_PB_CLIENT_LDOPTS = $(top_srcdir)/qpb/libfrr_pb.la $(Q_PROTOBUF_C_CLIENT_LDOPTS) + +Q_FPM_PB_CLIENT_LDOPTS = $(top_srcdir)/fpm/libfrrfpm_pb.la $(Q_FRR_PB_CLIENT_LDOPTS) + +endif  # HAVE_PROTOBUF  | 
