diff options
author | David Lamparter <equinox@diac24.net> | 2018-08-15 23:55:22 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2018-09-08 21:26:54 +0200 |
commit | 8b7668eccecac31a0347c75be11580f7cf66bf06 (patch) | |
tree | 85ab51d8cff5e131d1a1f0fce37b112d4f336bac /vtysh/subdir.am | |
parent | build: non-recursive bgpd & rfp (diff) | |
download | frr-8b7668eccecac31a0347c75be11580f7cf66bf06.tar.xz frr-8b7668eccecac31a0347c75be11580f7cf66bf06.zip |
build: non-recursive vtysh
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to '')
-rw-r--r-- | vtysh/subdir.am (renamed from vtysh/Makefile.am) | 51 |
1 files changed, 31 insertions, 20 deletions
diff --git a/vtysh/Makefile.am b/vtysh/subdir.am index b8e4e3987..ca288ea9e 100644 --- a/vtysh/Makefile.am +++ b/vtysh/subdir.am @@ -1,25 +1,31 @@ -## Process this file with Automake to create Makefile.in +# +# vtysh +# -include ../common.am - -AM_CPPFLAGS += -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib \ - $(BGP_VNC_RFAPI_INCDIR) $(BGP_VNC_RFP_INCDIR) -DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" - -LIBS = @LIBS@ @CURSES@ @LIBPAM@ +if VTYSH +bin_PROGRAMS += vtysh/vtysh +dist_examples_DATA += vtysh/vtysh.conf.sample +endif -bin_PROGRAMS = vtysh +vtysh_vtysh_SOURCES = \ + vtysh/vtysh_main.c \ + 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 -vtysh_SOURCES = vtysh_main.c vtysh.c vtysh_user.c vtysh_config.c -nodist_vtysh_SOURCES = vtysh_cmd.c -CLEANFILES = vtysh_cmd.c -noinst_HEADERS = vtysh.h vtysh_user.h -vtysh_LDADD = ../lib/libfrr.la @LIBCAP@ @LIBREADLINE@ +noinst_HEADERS += \ + vtysh/vtysh.h \ + vtysh/vtysh_user.h \ + # end -examplesdir = $(exampledir) -dist_examples_DATA = vtysh.conf.sample +vtysh_vtysh_LDADD = lib/libfrr.la @LIBCAP@ @LIBREADLINE@ @LIBS@ @CURSES@ @LIBPAM@ -EXTRA_DIST = extract.pl +EXTRA_DIST += vtysh/extract.pl vtysh_scan = @@ -147,7 +153,7 @@ if BFDD vtysh_scan += $(top_srcdir)/bfdd/bfdd_vty.c 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/filter.c $(top_srcdir)/lib/plist.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 \ # end -vtysh_cmd.c: $(vtysh_cmd_FILES) extract.pl - ./extract.pl $(vtysh_cmd_FILES) > vtysh_cmd.c +AM_V_EXTRACT = $(am__v_EXTRACT_$(V)) +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 |