4 lib_LTLIBRARIES += lib/libfrr.la
5 lib_libfrr_la_LDFLAGS = -version-info 0:0:0
6 lib_libfrr_la_LIBADD = @LIBCAP@
8 lib_libfrr_la_SOURCES = \
25 lib/grammar_sandbox.c \
81 lib/plist_clippy.c: $(CLIPPY_DEPS)
82 lib/plist.lo: lib/plist_clippy.c
84 pkginclude_HEADERS += \
126 lib/openbsd-queue.h \
146 lib/srcdest_table.h \
163 lib/logicalrouter.h \
166 nodist_pkginclude_HEADERS += \
181 lib_LTLIBRARIES += lib/libfrrsnmp.la
184 lib_libfrrsnmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS)
185 lib_libfrrsnmp_la_LDFLAGS = -version-info 0:0:0
186 lib_libfrrsnmp_la_LIBADD = lib/libfrr.la $(SNMP_LIBS)
187 lib_libfrrsnmp_la_SOURCES = \
197 lib_LTLIBRARIES += lib/libfrrzmq.la
198 pkginclude_HEADERS += lib/frr_zmq.h
201 lib_libfrrzmq_la_CFLAGS = $(WERROR) $(ZEROMQ_CFLAGS)
202 lib_libfrrzmq_la_LDFLAGS = -version-info 0:0:0
203 lib_libfrrzmq_la_LIBADD = lib/libfrr.la $(ZEROMQ_LIBS)
204 lib_libfrrzmq_la_SOURCES = \
212 lib/grammar_sandbox \
216 noinst_PROGRAMS += lib/clippy
218 $(HOSTTOOLS)lib/clippy:
219 @$(MAKE) -C $(top_builddir)/$(HOSTTOOLS) lib/route_types.h lib/clippy
222 lib_grammar_sandbox_SOURCES = \
223 lib/grammar_sandbox_main.c
224 lib_grammar_sandbox_LDADD = \
227 lib_clippy_CPPFLAGS = $(AM_CPPFLAGS) -D_GNU_SOURCE
228 lib_clippy_CFLAGS = $(PYTHON_CFLAGS)
229 lib_clippy_LDADD = $(PYTHON_LIBS)
230 lib_clippy_SOURCES = \
232 lib/command_graph.c \
234 lib/command_parse.y \
244 # generated sources & extra foo
248 lib/command_parse.h \
251 lib/route_types.txt \
259 ## force route_types.h
260 $(lib_clippy_OBJECTS): lib/route_types.h
261 $(lib_libfrr_la_OBJECTS): lib/route_types.h
263 AM_YFLAGS = -d -Dapi.prefix=@BISON_OPENBRACE@cmd_yy@BISON_CLOSEBRACE@ @BISON_VERBOSE@
265 lib/command_lex.h: lib/command_lex.c
266 @if test ! -f $@; then rm -f "lib/command_lex.c"; else :; fi
267 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) "lib/command_lex.c"; else :; fi
268 lib/command_lex.lo: lib/command_parse.h
269 lib/command_parse.lo: lib/command_lex.h
270 lib/lib_clippy-command_lex.$(OBJEXT): lib/command_parse.h
271 lib/lib_clippy-command_parse.$(OBJEXT): lib/command_lex.h
273 lib/route_types.h: $(top_srcdir)/lib/route_types.txt $(top_srcdir)/lib/route_types.pl
274 @PERL@ $(top_srcdir)/lib/route_types.pl < $(top_srcdir)/lib/route_types.txt > $@
277 # bit of a trick here to always have up-to-date git stamps without triggering
278 # unneccessary rebuilds. .PHONY causes the .tmp file to be rebuilt always,
279 # but if we use that on gitversion.h it'll ripple through the .c file deps.
280 # (even if gitversion.h's file timestamp doesn't change, make will think it
281 # did, because of .PHONY...)
283 .PHONY: lib/gitversion.h.tmp
284 .SILENT: lib/gitversion.h lib/gitversion.h.tmp
285 GITH=lib/gitversion.h
286 lib/gitversion.h.tmp: $(top_srcdir)/.git
287 @PERL@ $(top_srcdir)/lib/gitversion.pl $(top_srcdir) > ${GITH}.tmp
288 lib/gitversion.h: lib/gitversion.h.tmp
289 { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp ${GITH}.tmp ${GITH}
292 .PHONY: lib/gitversion.h