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