summaryrefslogtreecommitdiffstats
path: root/fpm/subdir.am
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2017-07-28 14:40:39 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2017-07-31 23:03:30 +0200
commit0f8b5fd5a05c1261061a94270218b701c1298719 (patch)
tree56f77d1193b5334247fc91e7d98e163a83c2347a /fpm/subdir.am
parentbuild: zebra: remove *_method Makefile hacks (diff)
downloadfrr-0f8b5fd5a05c1261061a94270218b701c1298719.tar.xz
frr-0f8b5fd5a05c1261061a94270218b701c1298719.zip
build: non-recursive qpb & fpm
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'fpm/subdir.am')
-rw-r--r--fpm/subdir.am23
1 files changed, 23 insertions, 0 deletions
diff --git a/fpm/subdir.am b/fpm/subdir.am
new file mode 100644
index 000000000..f81a84222
--- /dev/null
+++ b/fpm/subdir.am
@@ -0,0 +1,23 @@
+if FPM
+lib_LTLIBRARIES += fpm/libfrrfpm_pb.la
+endif
+
+fpm_libfrrfpm_pb_la_LDFLAGS = -version-info 0:0:0
+fpm_libfrrfpm_pb_la_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir) -I$(top_builddir)/lib \
+ $(Q_PROTOBUF_C_CLIENT_INCLUDES)
+fpm_libfrrfpm_pb_la_SOURCES = \
+ fpm/fpm.h \
+ fpm/fpm_pb.h \
+ fpm/fpm_pb.c \
+ # end
+
+if HAVE_PROTOBUF
+nodist_fpm_libfrrfpm_pb_la_SOURCES = fpm/fpm.pb-c.c
+BUILT_SOURCES += fpm/fpm.pb-c.c
+CLEANFILES += \
+ fpm/fpm.pb-c.c \
+ fpm/fpm.pb-c.h \
+ # end
+endif
+
+EXTRA_DIST += fpm/fpm.proto