summaryrefslogtreecommitdiff
path: root/qpb/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'qpb/Makefile.am')
-rw-r--r--qpb/Makefile.am30
1 files changed, 30 insertions, 0 deletions
diff --git a/qpb/Makefile.am b/qpb/Makefile.am
new file mode 100644
index 0000000000..0fbda61f3c
--- /dev/null
+++ b/qpb/Makefile.am
@@ -0,0 +1,30 @@
+include ../common.am
+
+AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib $(Q_PROTOBUF_C_CLIENT_INCLUDES)
+
+PROTOBUF_INCLUDES=-I$(top_srcdir)
+PROTOBUF_PACKAGE = qpb
+
+lib_LTLIBRARIES = libquagga_pb.la
+libquagga_pb_la_LDFLAGS = -version-info 0:0:0
+
+if HAVE_PROTOBUF
+protobuf_srcs = \
+ qpb_allocator.c
+
+protobuf_srcs_nodist = \
+ qpb.pb-c.c
+endif
+
+libquagga_pb_la_SOURCES = \
+ linear_allocator.h \
+ qpb.h \
+ qpb.c \
+ qpb_allocator.h \
+ $(protobuf_srcs)
+
+nodist_libquagga_pb_la_SOURCES = $(protobuf_srcs_nodist)
+
+CLEANFILES = $(Q_CLEANFILES)
+BUILT_SOURCES = $(Q_PROTOBUF_SRCS)
+EXTRA_DIST = qpb.proto