]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/Makefile.am
Merge branch 'frr/pull/236' ("tools: frr-reload.py needs to treat "mpls" as a single...
[mirror_frr.git] / lib / Makefile.am
index 72395068137f86669e2d180ceaaff10353450917..a9fe646938f4738823ab9c6dc288acbbf3787b57 100644 (file)
@@ -1,34 +1,46 @@
 ## Process this file with automake to produce Makefile.in.
 
-AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib \
-             -DVTY_DEPRECATE_INDEX
+AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
 AM_CFLAGS = $(WERROR)
 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
+AM_YFLAGS = -d -Dapi.prefix=@BISON_OPENBRACE@cmd_yy@BISON_CLOSEBRACE@ @BISON_VERBOSE@
 
-lib_LTLIBRARIES = libzebra.la
-libzebra_la_LDFLAGS = -version-info 0:0:0 
+command_lex.h: command_lex.c
+       @if test ! -f $@; then rm -f command_lex.c; else :; fi
+       @if test ! -f $@; then $(MAKE) $(AM_MAKEFLAGS) command_lex.c; else :; fi
+command_parse.lo: command_lex.h
 
-libzebra_la_SOURCES = \
+lib_LTLIBRARIES = libfrr.la
+libfrr_la_LDFLAGS = -version-info 0:0:0 
+
+libfrr_la_SOURCES = \
        network.c pid_output.c getopt.c getopt1.c \
-       checksum.c vector.c linklist.c vty.c command.c \
+       checksum.c vector.c linklist.c vty.c \
+       graph.c command_parse.y command_lex.l command_match.c \
+       command.c \
        sockunion.c prefix.c thread.c if.c buffer.c table.c hash.c \
        filter.c routemap.c distribute.c stream.c log.c plist.c \
        zclient.c sockopt.c smux.c agentx.c snmp.c md5.c if_rmap.c keychain.c privs.c \
        sigevent.c pqueue.c jhash.c workqueue.c nexthop.c json.c \
        ptm_lib.c csv.c bfd.c vrf.c systemd.c ns.c memory.c memory_vty.c \
        imsg-buffer.c imsg.c skiplist.c \
-       qobj.c \
+       qobj.c wheel.c \
        event_counter.c \
+       grammar_sandbox.c \
+       srcdest_table.c \
+       spf_backoff.c \
        strlcpy.c \
        strlcat.c
 
-BUILT_SOURCES = route_types.h gitversion.h
+BUILT_SOURCES = route_types.h gitversion.h command_parse.h command_lex.h
 
-libzebra_la_LIBADD = @LIBCAP@
+libfrr_la_LIBADD = @LIBCAP@
 
 pkginclude_HEADERS = \
-       buffer.h checksum.h command.h filter.h getopt.h hash.h \
+       buffer.h checksum.h filter.h getopt.h hash.h \
        if.h linklist.h log.h \
+       graph.h command_match.h \
+       command.h \
        memory.h network.h prefix.h routemap.h distribute.h sockunion.h \
        stream.h table.h thread.h vector.h version.h vty.h zebra.h \
        plist.h zclient.h sockopt.h smux.h md5.h if_rmap.h keychain.h \
@@ -36,14 +48,23 @@ pkginclude_HEADERS = \
        workqueue.h route_types.h libospf.h nexthop.h json.h \
        ptm_lib.h csv.h bfd.h vrf.h ns.h systemd.h bitfield.h \
        fifo.h memory_vty.h mpls.h imsg.h openbsd-queue.h openbsd-tree.h \
-       skiplist.h qobj.h \
-       event_counter.h
+       skiplist.h qobj.h wheel.h \
+       event_counter.h \
+       monotime.h \
+       spf_backoff.h \
+       srcdest_table.h
 
 noinst_HEADERS = \
        plist_int.h
 
+noinst_PROGRAMS = grammar_sandbox
+
+grammar_sandbox_SOURCES = grammar_sandbox_main.c
+grammar_sandbox_LDADD = libfrr.la
+
 EXTRA_DIST = \
        queue.h \
+       command_lex.h \
        route_types.pl route_types.txt \
        gitversion.pl
 
@@ -64,7 +85,7 @@ GITH=gitversion.h
 gitversion.h.tmp: $(srcdir)/../.git
        @PERL@ $(srcdir)/gitversion.pl $(srcdir) > ${GITH}.tmp
 gitversion.h: gitversion.h.tmp
-       { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp -v ${GITH}.tmp ${GITH} 
+       { test -f ${GITH} && diff -s -q ${GITH}.tmp ${GITH}; } || cp -v ${GITH}.tmp ${GITH}
 
 else
 .PHONY: gitversion.h