]> git.proxmox.com Git - mirror_frr.git/blame - qpb/subdir.am
zebra: Move sin6_masklen to earlier in the file
[mirror_frr.git] / qpb / subdir.am
CommitLineData
0f8b5fd5
DL
1if HAVE_PROTOBUF
2lib_LTLIBRARIES += qpb/libfrr_pb.la
3endif
4
2b2f275e
DL
5qpb_libfrr_pb_la_CPPFLAGS = $(AM_CPPFLAGS) $(PROTOBUF_C_CFLAGS)
6qpb_libfrr_pb_la_LIBADD = $(PROTOBUF_C_LIBS)
0f8b5fd5
DL
7qpb_libfrr_pb_la_LDFLAGS = -version-info 0:0:0
8
9qpb_libfrr_pb_la_SOURCES = \
2b2f275e
DL
10 qpb/qpb.c \
11 qpb/qpb_allocator.c \
12 # end
13nodist_qpb_libfrr_pb_la_SOURCES = \
14 qpb/qpb.pb-c.c \
15 # end
16
17noinst_HEADERS += \
0f8b5fd5
DL
18 qpb/linear_allocator.h \
19 qpb/qpb.h \
0f8b5fd5
DL
20 qpb/qpb_allocator.h \
21 # end
22
0f8b5fd5
DL
23CLEANFILES += \
24 qpb/qpb.pb-c.c \
25 qpb/qpb.pb-c.h \
26 # end
0f8b5fd5
DL
27
28EXTRA_DIST += qpb/qpb.proto
aad24c5b
DL
29
30if HAVE_PROTOBUF
31
aad24c5b
DL
32# Rules
33.proto.pb.h:
2b2f275e 34 $(PROTOC) -I$(top_srcdir) --cpp_out=$(top_srcdir) $(top_srcdir)/$^
aad24c5b
DL
35
36AM_V_PROTOC_C = $(am__v_PROTOC_C_$(V))
37am__v_PROTOC_C_ = $(am__v_PROTOC_C_$(AM_DEFAULT_VERBOSITY))
38am__v_PROTOC_C_0 = @echo " PROTOC_C" $@;
39am__v_PROTOC_C_1 =
40
41.proto.pb-c.c:
2b2f275e 42 $(AM_V_PROTOC_C)$(PROTOC_C) -I$(top_srcdir) --c_out=$(top_srcdir) $(top_srcdir)/$^
aad24c5b
DL
43.pb-c.c.pb-c.h:
44 @/bin/true
45
aad24c5b 46endif # HAVE_PROTOBUF