1 ## Process this file with automake to produce Makefile.in.
5 AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
7 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
8 AM_YFLAGS = -d -Dapi.prefix=@BISON_OPENBRACE@cmd_yy@BISON_CLOSEBRACE@ @BISON_VERBOSE@
10 command_lex.h: command_lex.c
11 @if test ! -f $@; then rm -f command_lex.c; else :; fi
12 @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) command_lex.c; else :; fi
13 command_parse.lo: command_lex.h
14 clippy-command_parse.$(OBJEXT): command_lex.h
16 lib_LTLIBRARIES = libfrr.la
17 libfrr_la_LDFLAGS = -version-info 0:0:0
20 network.c pid_output.c getopt.c getopt1.c \
21 checksum.c vector.c linklist.c vty.c openbsd-tree.c \
22 graph.c command_parse.y command_lex.l command_match.c \
25 sockunion.c prefix.c thread.c if.c buffer.c table.c hash.c \
26 filter.c routemap.c distribute.c stream.c log.c plist.c \
27 zclient.c sockopt.c md5.c if_rmap.c keychain.c privs.c \
28 sigevent.c pqueue.c jhash.c workqueue.c nexthop.c json.c \
29 ptm_lib.c csv.c bfd.c vrf.c systemd.c ns.c memory.c memory_vty.c \
30 imsg-buffer.c imsg.c skiplist.c \
46 BUILT_SOURCES = route_types.h gitversion.h command_parse.h command_lex.h
48 libfrr_la_LIBADD = @LIBCAP@
51 lib_LTLIBRARIES += libfrrsnmp.la
54 libfrrsnmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS)
55 libfrrsnmp_la_LDFLAGS = -version-info 0:0:0
56 libfrrsnmp_la_LIBADD = libfrr.la $(SNMP_LIBS)
57 libfrrsnmp_la_SOURCES = \
63 pkginclude_HEADERS = \
65 buffer.h checksum.h filter.h getopt.h hash.h \
66 if.h linklist.h log.h \
67 graph.h command_match.h \
70 memory.h network.h prefix.h routemap.h distribute.h sockunion.h \
71 stream.h table.h thread.h vector.h version.h vty.h zebra.h \
72 plist.h zclient.h sockopt.h smux.h md5.h if_rmap.h keychain.h \
73 privs.h sigevent.h pqueue.h jhash.h zassert.h \
74 workqueue.h route_types.h libospf.h nexthop.h json.h \
75 ptm_lib.h csv.h bfd.h vrf.h ns.h systemd.h bitfield.h \
76 fifo.h memory_vty.h mpls.h imsg.h openbsd-queue.h openbsd-tree.h \
77 skiplist.h qobj.h wheel.h \
97 noinst_PROGRAMS = grammar_sandbox
99 noinst_PROGRAMS += clippy
102 grammar_sandbox_SOURCES = grammar_sandbox_main.c
103 grammar_sandbox_LDADD = libfrr.la
116 clippy_CPPFLAGS = -D_GNU_SOURCE
117 clippy_CFLAGS = $(PYTHON_CFLAGS)
118 clippy_LDADD = $(PYTHON_LIBS)
119 clippy-command_graph.$(OBJEXT): route_types.h
121 plist.lo: plist_clippy.c
126 route_types.pl route_types.txt \
129 route_types.h: $(srcdir)/route_types.txt $(srcdir)/route_types.pl
130 @PERL@ $(srcdir)/route_types.pl < $(srcdir)/route_types.txt > $@
134 # bit of a trick here to always have up-to-date git stamps without triggering
135 # unneccessary rebuilds. .PHONY causes the .tmp file to be rebuilt always,
136 # but if we use that on gitversion.h it'll ripple through the .c file deps.
137 # (even if gitversion.h's file timestamp doesn't change, make will think it
138 # did, because of .PHONY...)
140 .PHONY: gitversion.h.tmp
141 .SILENT: gitversion.h gitversion.h.tmp
143 gitversion.h.tmp: $(srcdir)/../.git
144 @PERL@ $(srcdir)/gitversion.pl $(srcdir) > ${GITH}.tmp
145 gitversion.h: gitversion.h.tmp
146 { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp -v ${GITH}.tmp ${GITH}