]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # Automake fragment intended to be shared by Makefile.am files in the | |
3 | # tree. | |
4 | # | |
5 | ||
6 | AM_V_CLIPPY = $(am__v_CLIPPY_$(V)) | |
7 | am__v_CLIPPY_ = $(am__v_CLIPPY_$(AM_DEFAULT_VERBOSITY)) | |
8 | am__v_CLIPPY_0 = @echo " CLIPPY " $@; | |
9 | am__v_CLIPPY_1 = | |
10 | ||
11 | CLIPPY_SUPPRESSIONS = LSAN_OPTIONS="suppressions=$(top_builddir)/tools/lsan-suppressions.txt" | |
12 | CLIPPY_DEPS = $(HOSTTOOLS)lib/clippy $(top_srcdir)/python/clidef.py | |
13 | ||
14 | SUFFIXES = _clippy.c .proto .pb-c.c .pb-c.h .pb.h | |
15 | .c_clippy.c: | |
16 | @{ test -x $(top_builddir)/$(HOSTTOOLS)lib/clippy || $(MAKE) -C $(top_builddir)/$(HOSTTOOLS) lib/clippy; } | |
17 | $(AM_V_CLIPPY) $(CLIPPY_SUPPRESSIONS) $(top_builddir)/$(HOSTTOOLS)lib/clippy $(top_srcdir)/python/clidef.py -o $@ $< | |
18 | ||
19 | ## automake's "ylwrap" is a great piece of GNU software... not. | |
20 | .l.c: | |
21 | $(AM_V_LEX)$(am__skiplex) $(LEXCOMPILE) $< | |
22 | .y.c: | |
23 | $(AM_V_YACC)$(am__skipyacc) $(YACCCOMPILE) $< | |
24 | ||
25 | ||
26 | if HAVE_PROTOBUF | |
27 | ||
28 | # Uncomment to use an non-system version of libprotobuf-c. | |
29 | # | |
30 | # Q_PROTOBUF_C_CLIENT_INCLUDES = -I$(top_srcdir)/third-party/protobuf-c/src | |
31 | # Q_PROTOBUF_C_CLIENT_LDOPTS = $(top_builddir)/third-party/protobuf-c/src/libprotobuf-c.la | |
32 | ||
33 | Q_PROTOBUF_C_CLIENT_INCLUDES= | |
34 | Q_PROTOBUF_C_CLIENT_LDOPTS=-lprotobuf-c | |
35 | ||
36 | Q_PROTOC=protoc | |
37 | Q_PROTOC_C=protoc-c | |
38 | ||
39 | # Rules | |
40 | .proto.pb.h: | |
41 | $(Q_PROTOC) -I$(top_srcdir) --cpp_out=$(top_srcdir) $(top_srcdir)/$^ | |
42 | ||
43 | AM_V_PROTOC_C = $(am__v_PROTOC_C_$(V)) | |
44 | am__v_PROTOC_C_ = $(am__v_PROTOC_C_$(AM_DEFAULT_VERBOSITY)) | |
45 | am__v_PROTOC_C_0 = @echo " PROTOC_C" $@; | |
46 | am__v_PROTOC_C_1 = | |
47 | ||
48 | .proto.pb-c.c: | |
49 | $(AM_V_PROTOC_C)$(Q_PROTOC_C) -I$(top_srcdir) --c_out=$(top_srcdir) $(top_srcdir)/$^ | |
50 | .pb-c.c.pb-c.h: | |
51 | @/bin/true | |
52 | ||
53 | # | |
54 | # Information about how to link to various libraries. | |
55 | # | |
56 | Q_FRR_PB_CLIENT_LDOPTS = $(top_srcdir)/qpb/libfrr_pb.la $(Q_PROTOBUF_C_CLIENT_LDOPTS) | |
57 | ||
58 | Q_FPM_PB_CLIENT_LDOPTS = $(top_srcdir)/fpm/libfrrfpm_pb.la $(Q_FRR_PB_CLIENT_LDOPTS) | |
59 | ||
60 | endif # HAVE_PROTOBUF |