mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-04-28 21:20:48 +00:00
build: non-recursive vtysh
Signed-off-by: David Lamparter <equinox@diac24.net>
This commit is contained in:
parent
84d837b75d
commit
8b7668ecce
@ -125,12 +125,13 @@ include pbrd/subdir.am
|
|||||||
include staticd/subdir.am
|
include staticd/subdir.am
|
||||||
include bfdd/subdir.am
|
include bfdd/subdir.am
|
||||||
|
|
||||||
|
include vtysh/subdir.am
|
||||||
|
|
||||||
SUBDIRS = . \
|
SUBDIRS = . \
|
||||||
@VTYSH@ \
|
|
||||||
tests
|
tests
|
||||||
|
|
||||||
DIST_SUBDIRS = . \
|
DIST_SUBDIRS = . \
|
||||||
vtysh tests \
|
tests \
|
||||||
# end
|
# end
|
||||||
|
|
||||||
if PKGSRC
|
if PKGSRC
|
||||||
@ -169,9 +170,6 @@ EXTRA_DIST += \
|
|||||||
snapcraft/helpers \
|
snapcraft/helpers \
|
||||||
snapcraft/snap \
|
snapcraft/snap \
|
||||||
\
|
\
|
||||||
vtysh/Makefile.am \
|
|
||||||
vtysh/Makefile.in \
|
|
||||||
\
|
|
||||||
doc/Makefile \
|
doc/Makefile \
|
||||||
doc/developer/Makefile \
|
doc/developer/Makefile \
|
||||||
doc/manpages/Makefile \
|
doc/manpages/Makefile \
|
||||||
|
@ -1455,7 +1455,6 @@ fi
|
|||||||
AM_CONDITIONAL([ENABLE_BGP_VNC], [test x${enable_bgp_vnc} != xno])
|
AM_CONDITIONAL([ENABLE_BGP_VNC], [test x${enable_bgp_vnc} != xno])
|
||||||
|
|
||||||
AC_SUBST(SOLARIS)
|
AC_SUBST(SOLARIS)
|
||||||
AC_SUBST(VTYSH)
|
|
||||||
AC_SUBST(CURSES)
|
AC_SUBST(CURSES)
|
||||||
AC_CHECK_LIB(crypt, crypt, [],
|
AC_CHECK_LIB(crypt, crypt, [],
|
||||||
[AC_CHECK_LIB(crypto, DES_crypt)])
|
[AC_CHECK_LIB(crypto, DES_crypt)])
|
||||||
@ -2009,7 +2008,6 @@ AC_MSG_RESULT($ac_cv_htonl_works)
|
|||||||
AC_CONFIG_FILES([Makefile],[sed -e 's/^#AUTODERP# //' -i Makefile])
|
AC_CONFIG_FILES([Makefile],[sed -e 's/^#AUTODERP# //' -i Makefile])
|
||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
vtysh/Makefile
|
|
||||||
tests/Makefile
|
tests/Makefile
|
||||||
redhat/frr.spec
|
redhat/frr.spec
|
||||||
solaris/Makefile
|
solaris/Makefile
|
||||||
|
2
vtysh/.gitignore
vendored
2
vtysh/.gitignore
vendored
@ -1,4 +1,4 @@
|
|||||||
Makefile
|
!Makefile
|
||||||
Makefile.in
|
Makefile.in
|
||||||
*.o
|
*.o
|
||||||
vtysh
|
vtysh
|
||||||
|
10
vtysh/Makefile
Normal file
10
vtysh/Makefile
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
all: ALWAYS
|
||||||
|
@$(MAKE) -s -C .. vtysh/vtysh
|
||||||
|
%: ALWAYS
|
||||||
|
@$(MAKE) -s -C .. vtysh/$@
|
||||||
|
|
||||||
|
Makefile:
|
||||||
|
#nothing
|
||||||
|
ALWAYS:
|
||||||
|
.PHONY: ALWAYS makefiles
|
||||||
|
.SUFFIXES:
|
@ -29,7 +29,7 @@ print <<EOF;
|
|||||||
#include "command.h"
|
#include "command.h"
|
||||||
#include "linklist.h"
|
#include "linklist.h"
|
||||||
|
|
||||||
#include "vtysh.h"
|
#include "vtysh/vtysh.h"
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
@ -40,7 +40,7 @@ sub scan_file {
|
|||||||
|
|
||||||
$cppadd = $fabricd ? "-DFABRICD=1" : "";
|
$cppadd = $fabricd ? "-DFABRICD=1" : "";
|
||||||
|
|
||||||
open (FH, "@CPP@ -DHAVE_CONFIG_H -DVTYSH_EXTRACT_PL -I@top_builddir@ -I@srcdir@/ -I@srcdir@/.. -I@top_srcdir@/lib -I@top_builddir@/lib -I@top_srcdir@/bgpd -I@top_srcdir@/@LIBRFP@ -I@top_srcdir@/bgpd/rfapi @CPPFLAGS@ $cppadd $file |");
|
open (FH, "@CPP@ -DHAVE_CONFIG_H -DVTYSH_EXTRACT_PL -Ivtysh/@top_builddir@ -Ivtysh/@top_srcdir@ -Ivtysh/@top_srcdir@/lib -Ivtysh/@top_builddir@/lib -Ivtysh/@top_srcdir@/bgpd -Ivtysh/@top_srcdir@/bgpd/rfapi @CPPFLAGS@ $cppadd $file |");
|
||||||
local $/; undef $/;
|
local $/; undef $/;
|
||||||
$line = <FH>;
|
$line = <FH>;
|
||||||
close (FH);
|
close (FH);
|
||||||
|
@ -1,25 +1,31 @@
|
|||||||
## Process this file with Automake to create Makefile.in
|
#
|
||||||
|
# vtysh
|
||||||
|
#
|
||||||
|
|
||||||
include ../common.am
|
if VTYSH
|
||||||
|
bin_PROGRAMS += vtysh/vtysh
|
||||||
|
dist_examples_DATA += vtysh/vtysh.conf.sample
|
||||||
|
endif
|
||||||
|
|
||||||
AM_CPPFLAGS += -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib \
|
vtysh_vtysh_SOURCES = \
|
||||||
$(BGP_VNC_RFAPI_INCDIR) $(BGP_VNC_RFP_INCDIR)
|
vtysh/vtysh_main.c \
|
||||||
DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
|
vtysh/vtysh.c \
|
||||||
|
vtysh/vtysh_user.c \
|
||||||
|
vtysh/vtysh_config.c \
|
||||||
|
# end
|
||||||
|
nodist_vtysh_vtysh_SOURCES = \
|
||||||
|
vtysh/vtysh_cmd.c \
|
||||||
|
# end
|
||||||
|
CLEANFILES += vtysh/vtysh_cmd.c
|
||||||
|
|
||||||
LIBS = @LIBS@ @CURSES@ @LIBPAM@
|
noinst_HEADERS += \
|
||||||
|
vtysh/vtysh.h \
|
||||||
|
vtysh/vtysh_user.h \
|
||||||
|
# end
|
||||||
|
|
||||||
bin_PROGRAMS = vtysh
|
vtysh_vtysh_LDADD = lib/libfrr.la @LIBCAP@ @LIBREADLINE@ @LIBS@ @CURSES@ @LIBPAM@
|
||||||
|
|
||||||
vtysh_SOURCES = vtysh_main.c vtysh.c vtysh_user.c vtysh_config.c
|
EXTRA_DIST += vtysh/extract.pl
|
||||||
nodist_vtysh_SOURCES = vtysh_cmd.c
|
|
||||||
CLEANFILES = vtysh_cmd.c
|
|
||||||
noinst_HEADERS = vtysh.h vtysh_user.h
|
|
||||||
vtysh_LDADD = ../lib/libfrr.la @LIBCAP@ @LIBREADLINE@
|
|
||||||
|
|
||||||
examplesdir = $(exampledir)
|
|
||||||
dist_examples_DATA = vtysh.conf.sample
|
|
||||||
|
|
||||||
EXTRA_DIST = extract.pl
|
|
||||||
|
|
||||||
vtysh_scan =
|
vtysh_scan =
|
||||||
|
|
||||||
@ -147,7 +153,7 @@ if BFDD
|
|||||||
vtysh_scan += $(top_srcdir)/bfdd/bfdd_vty.c
|
vtysh_scan += $(top_srcdir)/bfdd/bfdd_vty.c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
vtysh_cmd_FILES = $(vtysh_scan) \
|
vtysh_vtysh_cmd_FILES = $(vtysh_scan) \
|
||||||
$(top_srcdir)/lib/keychain.c $(top_srcdir)/lib/routemap.c \
|
$(top_srcdir)/lib/keychain.c $(top_srcdir)/lib/routemap.c \
|
||||||
$(top_srcdir)/lib/filter.c $(top_srcdir)/lib/plist.c \
|
$(top_srcdir)/lib/filter.c $(top_srcdir)/lib/plist.c \
|
||||||
$(top_srcdir)/lib/distribute.c $(top_srcdir)/lib/if_rmap.c \
|
$(top_srcdir)/lib/distribute.c $(top_srcdir)/lib/if_rmap.c \
|
||||||
@ -167,5 +173,10 @@ vtysh_cmd_FILES = $(vtysh_scan) \
|
|||||||
$(top_srcdir)/watchfrr/watchfrr_vty.c \
|
$(top_srcdir)/watchfrr/watchfrr_vty.c \
|
||||||
# end
|
# end
|
||||||
|
|
||||||
vtysh_cmd.c: $(vtysh_cmd_FILES) extract.pl
|
AM_V_EXTRACT = $(am__v_EXTRACT_$(V))
|
||||||
./extract.pl $(vtysh_cmd_FILES) > vtysh_cmd.c
|
am__v_EXTRACT_ = $(am__v_EXTRACT_$(AM_DEFAULT_VERBOSITY))
|
||||||
|
am__v_EXTRACT_0 = @echo " EXTRACT " $@;
|
||||||
|
am__v_EXTRACT_1 =
|
||||||
|
|
||||||
|
vtysh/vtysh_cmd.c: $(vtysh_vtysh_cmd_FILES) vtysh/extract.pl
|
||||||
|
$(AM_V_EXTRACT) vtysh/extract.pl $(vtysh_vtysh_cmd_FILES) > vtysh/vtysh_cmd.c
|
Loading…
Reference in New Issue
Block a user