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 = \
24 lib/grammar_sandbox.c \
77 lib/plist_clippy.c: $(CLIPPY_DEPS)
78 lib/plist.lo: lib/plist_clippy.c
80 pkginclude_HEADERS += \
121 lib/openbsd-queue.h \
140 lib/srcdest_table.h \
159 nodist_pkginclude_HEADERS += \
174 lib_LTLIBRARIES += lib/libfrrsnmp.la
177 lib_libfrrsnmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS)
178 lib_libfrrsnmp_la_LDFLAGS = -version-info 0:0:0
179 lib_libfrrsnmp_la_LIBADD = lib/libfrr.la $(SNMP_LIBS)
180 lib_libfrrsnmp_la_SOURCES = \
190 lib_LTLIBRARIES += lib/libfrrzmq.la
191 pkginclude_HEADERS += lib/frr_zmq.h
194 lib_libfrrzmq_la_CFLAGS = $(WERROR) $(ZEROMQ_CFLAGS)
195 lib_libfrrzmq_la_LDFLAGS = -version-info 0:0:0
196 lib_libfrrzmq_la_LIBADD = lib/libfrr.la $(ZEROMQ_LIBS)
197 lib_libfrrzmq_la_SOURCES = \
205 lib/grammar_sandbox \
209 noinst_PROGRAMS += lib/clippy
211 $(HOSTTOOLS)lib/clippy:
212 @$(MAKE) -C $(top_builddir)/$(HOSTTOOLS) lib/route_types.h lib/clippy
215 lib_grammar_sandbox_SOURCES = \
216 lib/grammar_sandbox_main.c
217 lib_grammar_sandbox_LDADD = \
220 lib_clippy_CPPFLAGS = $(AM_CPPFLAGS) -D_GNU_SOURCE
221 lib_clippy_CFLAGS = $(PYTHON_CFLAGS)
222 lib_clippy_LDADD = $(PYTHON_LIBS)
223 lib_clippy_SOURCES = \
225 lib/command_graph.c \
227 lib/command_parse.y \
237 # generated sources & extra foo
241 lib/command_parse.h \
244 lib/route_types.txt \
252 ## force route_types.h
253 $(lib_clippy_OBJECTS): lib/route_types.h
254 $(lib_libfrr_la_OBJECTS): lib/route_types.h
256 AM_YFLAGS = -d -Dapi.prefix=@BISON_OPENBRACE@cmd_yy@BISON_CLOSEBRACE@ @BISON_VERBOSE@
258 lib/command_lex.h: lib/command_lex.c
259 @if test ! -f $@; then rm -f "lib/command_lex.c"; else :; fi
260 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) "lib/command_lex.c"; else :; fi
261 lib/command_lex.lo: lib/command_parse.h
262 lib/command_parse.lo: lib/command_lex.h
263 lib/lib_clippy-command_lex.$(OBJEXT): lib/command_parse.h
264 lib/lib_clippy-command_parse.$(OBJEXT): lib/command_lex.h
266 lib/route_types.h: $(top_srcdir)/lib/route_types.txt $(top_srcdir)/lib/route_types.pl
267 @PERL@ $(top_srcdir)/lib/route_types.pl < $(top_srcdir)/lib/route_types.txt > $@
270 # bit of a trick here to always have up-to-date git stamps without triggering
271 # unneccessary rebuilds. .PHONY causes the .tmp file to be rebuilt always,
272 # but if we use that on gitversion.h it'll ripple through the .c file deps.
273 # (even if gitversion.h's file timestamp doesn't change, make will think it
274 # did, because of .PHONY...)
276 .PHONY: lib/gitversion.h.tmp
277 .SILENT: lib/gitversion.h lib/gitversion.h.tmp
278 GITH=lib/gitversion.h
279 lib/gitversion.h.tmp: $(top_srcdir)/.git
280 @PERL@ $(top_srcdir)/lib/gitversion.pl $(top_srcdir) > ${GITH}.tmp
281 lib/gitversion.h: lib/gitversion.h.tmp
282 { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp ${GITH}.tmp ${GITH}
285 .PHONY: lib/gitversion.h