diff options
Diffstat (limited to 'vtysh/subdir.am')
-rw-r--r-- | vtysh/subdir.am | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/vtysh/subdir.am b/vtysh/subdir.am new file mode 100644 index 0000000..6243616 --- /dev/null +++ b/vtysh/subdir.am @@ -0,0 +1,61 @@ +# +# vtysh +# + +if VTYSH +bin_PROGRAMS += vtysh/vtysh +man1 += $(MANBUILD)/vtysh.1 +endif + +clippy_scan += \ + vtysh/vtysh.c \ + # end + +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 + +noinst_HEADERS += \ + vtysh/vtysh.h \ + vtysh/vtysh_user.h \ + # end + +vtysh_vtysh_LDADD = lib/libfrr.la $(LIBCAP) $(LIBREADLINE) $(LIBS) $(LIBPAM) + +EXTRA_DIST += vtysh/daemons.pl + +BUILT_SOURCES += vtysh/vtysh_daemons.h + +# force vtysh_daemons.h +$(vtysh_vtysh_OBJECTS): vtysh/vtysh_daemons.h + +CLEANFILES += vtysh/vtysh_daemons.h +vtysh/vtysh_daemons.h: + $(PERL) $(top_srcdir)/vtysh/daemons.pl $(vtysh_daemons) > vtysh/vtysh_daemons.h + +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 = + +if ISISD +HAVE_ISISD = --have-isisd +else +HAVE_ISISD = +endif + +if FABRICD +HAVE_FABRICD = --have-fabricd +else +HAVE_FABRICD = +endif + +vtysh/vtysh_cmd.c: vtysh/extract.pl $(vtysh_scan) + $(AM_V_EXTRACT) $^ $(HAVE_ISISD) $(HAVE_FABRICD) > vtysh/vtysh_cmd.c |