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 = \
26 lib/grammar_sandbox.c \
83 lib/plist_clippy.c: $(CLIPPY_DEPS)
84 lib/plist.lo: lib/plist_clippy.c
85 lib/nexthop_group_clippy.c: $(CLIPPY_DEPS)
86 lib/nexthop_group.lo: lib/nexthop_group_clippy.c
88 pkginclude_HEADERS += \
100 lib/event_counter.h \
104 lib/freebsd-queue.h \
130 lib/nexthop_group.h \
132 lib/openbsd-queue.h \
152 lib/srcdest_table.h \
169 lib/logicalrouter.h \
172 nodist_pkginclude_HEADERS += \
187 lib_LTLIBRARIES += lib/libfrrsnmp.la
190 lib_libfrrsnmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS)
191 lib_libfrrsnmp_la_LDFLAGS = -version-info 0:0:0
192 lib_libfrrsnmp_la_LIBADD = lib/libfrr.la $(SNMP_LIBS)
193 lib_libfrrsnmp_la_SOURCES = \
203 lib_LTLIBRARIES += lib/libfrrzmq.la
204 pkginclude_HEADERS += lib/frr_zmq.h
207 lib_libfrrzmq_la_CFLAGS = $(WERROR) $(ZEROMQ_CFLAGS)
208 lib_libfrrzmq_la_LDFLAGS = -version-info 0:0:0
209 lib_libfrrzmq_la_LIBADD = lib/libfrr.la $(ZEROMQ_LIBS)
210 lib_libfrrzmq_la_SOURCES = \
218 lib/grammar_sandbox \
222 noinst_PROGRAMS += lib/clippy
224 $(HOSTTOOLS)lib/clippy:
225 @$(MAKE) -C $(top_builddir)/$(HOSTTOOLS) lib/route_types.h lib/clippy
228 lib_grammar_sandbox_SOURCES = \
229 lib/grammar_sandbox_main.c
230 lib_grammar_sandbox_LDADD = \
233 lib_clippy_CPPFLAGS = $(AM_CPPFLAGS) -D_GNU_SOURCE
234 lib_clippy_CFLAGS = $(PYTHON_CFLAGS)
235 lib_clippy_LDADD = $(PYTHON_LIBS)
236 lib_clippy_SOURCES = \
238 lib/command_graph.c \
240 lib/command_parse.y \
250 # generated sources & extra foo
254 lib/command_parse.h \
257 lib/route_types.txt \
265 ## force route_types.h
266 $(lib_clippy_OBJECTS): lib/route_types.h
267 $(lib_libfrr_la_OBJECTS): lib/route_types.h
269 AM_YFLAGS = -d -Dapi.prefix=@BISON_OPENBRACE@cmd_yy@BISON_CLOSEBRACE@ @BISON_VERBOSE@
271 lib/command_lex.h: lib/command_lex.c
272 @if test ! -f $@; then rm -f "lib/command_lex.c"; else :; fi
273 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) "lib/command_lex.c"; else :; fi
274 lib/command_lex.lo: lib/command_parse.h
275 lib/command_parse.lo: lib/command_lex.h
276 lib/lib_clippy-command_lex.$(OBJEXT): lib/command_parse.h
277 lib/lib_clippy-command_parse.$(OBJEXT): lib/command_lex.h
279 lib/route_types.h: $(top_srcdir)/lib/route_types.txt $(top_srcdir)/lib/route_types.pl
280 @PERL@ $(top_srcdir)/lib/route_types.pl < $(top_srcdir)/lib/route_types.txt > $@
283 # bit of a trick here to always have up-to-date git stamps without triggering
284 # unneccessary rebuilds. .PHONY causes the .tmp file to be rebuilt always,
285 # but if we use that on gitversion.h it'll ripple through the .c file deps.
286 # (even if gitversion.h's file timestamp doesn't change, make will think it
287 # did, because of .PHONY...)
289 .PHONY: lib/gitversion.h.tmp
290 .SILENT: lib/gitversion.h lib/gitversion.h.tmp
291 GITH=lib/gitversion.h
292 lib/gitversion.h.tmp: $(top_srcdir)/.git
293 @PERL@ $(top_srcdir)/lib/gitversion.pl $(top_srcdir) > ${GITH}.tmp
294 lib/gitversion.h: lib/gitversion.h.tmp
295 { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp ${GITH}.tmp ${GITH}
298 .PHONY: lib/gitversion.h