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 = \
27 lib/grammar_sandbox.c \
85 lib/plist_clippy.c: $(CLIPPY_DEPS)
86 lib/plist.lo: lib/plist_clippy.c
87 lib/nexthop_group_clippy.c: $(CLIPPY_DEPS)
88 lib/nexthop_group.lo: lib/nexthop_group_clippy.c
90 pkginclude_HEADERS += \
102 lib/event_counter.h \
106 lib/freebsd-queue.h \
133 lib/nexthop_group.h \
135 lib/openbsd-queue.h \
155 lib/srcdest_table.h \
172 lib/logicalrouter.h \
177 nodist_pkginclude_HEADERS += \
192 lib_LTLIBRARIES += lib/libfrrsnmp.la
195 lib_libfrrsnmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS) -std=gnu99
196 lib_libfrrsnmp_la_LDFLAGS = -version-info 0:0:0
197 lib_libfrrsnmp_la_LIBADD = lib/libfrr.la $(SNMP_LIBS)
198 lib_libfrrsnmp_la_SOURCES = \
208 lib_LTLIBRARIES += lib/libfrrzmq.la
209 pkginclude_HEADERS += lib/frr_zmq.h
212 lib_libfrrzmq_la_CFLAGS = $(WERROR) $(ZEROMQ_CFLAGS)
213 lib_libfrrzmq_la_LDFLAGS = -version-info 0:0:0
214 lib_libfrrzmq_la_LIBADD = lib/libfrr.la $(ZEROMQ_LIBS)
215 lib_libfrrzmq_la_SOURCES = \
223 lib/grammar_sandbox \
227 noinst_PROGRAMS += lib/clippy
229 $(HOSTTOOLS)lib/clippy:
230 @$(MAKE) -C $(top_builddir)/$(HOSTTOOLS) lib/route_types.h lib/clippy
233 lib_grammar_sandbox_SOURCES = \
234 lib/grammar_sandbox_main.c
235 lib_grammar_sandbox_LDADD = \
238 lib_clippy_CPPFLAGS = $(AM_CPPFLAGS) -D_GNU_SOURCE -DBUILDING_CLIPPY @SAN_CLIPPY_FLAGS@
239 lib_clippy_CFLAGS = $(PYTHON_CFLAGS) @SAN_CLIPPY_FLAGS@
240 lib_clippy_LDADD = $(PYTHON_LIBS)
241 lib_clippy_SOURCES = \
243 lib/command_graph.c \
245 lib/command_parse.y \
255 # generated sources & extra foo
259 lib/command_parse.h \
262 lib/route_types.txt \
270 ## force route_types.h
271 $(lib_clippy_OBJECTS): lib/route_types.h
272 $(lib_libfrr_la_OBJECTS): lib/route_types.h
274 AM_YFLAGS = -d -Dapi.prefix=@BISON_OPENBRACE@cmd_yy@BISON_CLOSEBRACE@ @BISON_VERBOSE@
276 lib/command_lex.h: lib/command_lex.c
277 @if test ! -f $@; then rm -f "lib/command_lex.c"; else :; fi
278 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) "lib/command_lex.c"; else :; fi
279 lib/command_lex.lo: lib/command_parse.h
280 lib/command_parse.lo: lib/command_lex.h
281 lib/lib_clippy-command_lex.$(OBJEXT): lib/command_parse.h
282 lib/lib_clippy-command_parse.$(OBJEXT): lib/command_lex.h
284 lib/route_types.h: $(top_srcdir)/lib/route_types.txt $(top_srcdir)/lib/route_types.pl
285 @PERL@ $(top_srcdir)/lib/route_types.pl < $(top_srcdir)/lib/route_types.txt > $@
288 # bit of a trick here to always have up-to-date git stamps without triggering
289 # unneccessary rebuilds. .PHONY causes the .tmp file to be rebuilt always,
290 # but if we use that on gitversion.h it'll ripple through the .c file deps.
291 # (even if gitversion.h's file timestamp doesn't change, make will think it
292 # did, because of .PHONY...)
294 .PHONY: lib/gitversion.h.tmp
295 .SILENT: lib/gitversion.h lib/gitversion.h.tmp
296 GITH=lib/gitversion.h
297 lib/gitversion.h.tmp: $(top_srcdir)/.git
298 @PERL@ $(top_srcdir)/lib/gitversion.pl $(top_srcdir) > ${GITH}.tmp
299 lib/gitversion.h: lib/gitversion.h.tmp
300 { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp ${GITH}.tmp ${GITH}
303 .PHONY: lib/gitversion.h