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 \
84 lib/plist_clippy.c: $(CLIPPY_DEPS)
85 lib/plist.lo: lib/plist_clippy.c
86 lib/nexthop_group_clippy.c: $(CLIPPY_DEPS)
87 lib/nexthop_group.lo: lib/nexthop_group_clippy.c
89 pkginclude_HEADERS += \
101 lib/event_counter.h \
105 lib/freebsd-queue.h \
131 lib/nexthop_group.h \
133 lib/openbsd-queue.h \
153 lib/srcdest_table.h \
170 lib/logicalrouter.h \
175 nodist_pkginclude_HEADERS += \
190 lib_LTLIBRARIES += lib/libfrrsnmp.la
193 lib_libfrrsnmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS)
194 lib_libfrrsnmp_la_LDFLAGS = -version-info 0:0:0
195 lib_libfrrsnmp_la_LIBADD = lib/libfrr.la $(SNMP_LIBS)
196 lib_libfrrsnmp_la_SOURCES = \
206 lib_LTLIBRARIES += lib/libfrrzmq.la
207 pkginclude_HEADERS += lib/frr_zmq.h
210 lib_libfrrzmq_la_CFLAGS = $(WERROR) $(ZEROMQ_CFLAGS)
211 lib_libfrrzmq_la_LDFLAGS = -version-info 0:0:0
212 lib_libfrrzmq_la_LIBADD = lib/libfrr.la $(ZEROMQ_LIBS)
213 lib_libfrrzmq_la_SOURCES = \
221 lib/grammar_sandbox \
225 noinst_PROGRAMS += lib/clippy
227 $(HOSTTOOLS)lib/clippy:
228 @$(MAKE) -C $(top_builddir)/$(HOSTTOOLS) lib/route_types.h lib/clippy
231 lib_grammar_sandbox_SOURCES = \
232 lib/grammar_sandbox_main.c
233 lib_grammar_sandbox_LDADD = \
236 lib_clippy_CPPFLAGS = $(AM_CPPFLAGS) -D_GNU_SOURCE -DBUILDING_CLIPPY
237 lib_clippy_CFLAGS = $(PYTHON_CFLAGS)
238 lib_clippy_LDADD = $(PYTHON_LIBS)
239 lib_clippy_SOURCES = \
241 lib/command_graph.c \
243 lib/command_parse.y \
253 # generated sources & extra foo
257 lib/command_parse.h \
260 lib/route_types.txt \
268 ## force route_types.h
269 $(lib_clippy_OBJECTS): lib/route_types.h
270 $(lib_libfrr_la_OBJECTS): lib/route_types.h
272 AM_YFLAGS = -d -Dapi.prefix=@BISON_OPENBRACE@cmd_yy@BISON_CLOSEBRACE@ @BISON_VERBOSE@
274 lib/command_lex.h: lib/command_lex.c
275 @if test ! -f $@; then rm -f "lib/command_lex.c"; else :; fi
276 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) "lib/command_lex.c"; else :; fi
277 lib/command_lex.lo: lib/command_parse.h
278 lib/command_parse.lo: lib/command_lex.h
279 lib/lib_clippy-command_lex.$(OBJEXT): lib/command_parse.h
280 lib/lib_clippy-command_parse.$(OBJEXT): lib/command_lex.h
282 lib/route_types.h: $(top_srcdir)/lib/route_types.txt $(top_srcdir)/lib/route_types.pl
283 @PERL@ $(top_srcdir)/lib/route_types.pl < $(top_srcdir)/lib/route_types.txt > $@
286 # bit of a trick here to always have up-to-date git stamps without triggering
287 # unneccessary rebuilds. .PHONY causes the .tmp file to be rebuilt always,
288 # but if we use that on gitversion.h it'll ripple through the .c file deps.
289 # (even if gitversion.h's file timestamp doesn't change, make will think it
290 # did, because of .PHONY...)
292 .PHONY: lib/gitversion.h.tmp
293 .SILENT: lib/gitversion.h lib/gitversion.h.tmp
294 GITH=lib/gitversion.h
295 lib/gitversion.h.tmp: $(top_srcdir)/.git
296 @PERL@ $(top_srcdir)/lib/gitversion.pl $(top_srcdir) > ${GITH}.tmp
297 lib/gitversion.h: lib/gitversion.h.tmp
298 { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp ${GITH}.tmp ${GITH}
301 .PHONY: lib/gitversion.h