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