blob: 983103ffff80f0702d83ab95c0255ac7f19079f2 [file] [log] [blame]
paul718e3742002-12-13 20:15:29 +00001## Process this file with Automake to create Makefile.in
2
David Lamparter237aac52014-06-28 22:23:10 +02003AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
paul718e3742002-12-13 20:15:29 +00004DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
5
6LIBS = @LIBS@ @CURSES@ @LIBPAM@
7
Paul Jakma52c0bc72015-08-20 21:30:17 +01008AM_CFLAGS = $(WERROR)
Paul P Komkoff Jr46bc0e42008-08-13 16:17:04 +01009
paul718e3742002-12-13 20:15:29 +000010bin_PROGRAMS = vtysh
11
paul1ac09d32003-10-22 02:51:04 +000012vtysh_SOURCES = vtysh_main.c vtysh.c vtysh_user.c vtysh_config.c
13nodist_vtysh_SOURCES = vtysh_cmd.c
gdtfc9d0742004-06-30 14:25:12 +000014CLEANFILES = vtysh_cmd.c
paul718e3742002-12-13 20:15:29 +000015noinst_HEADERS = vtysh.h vtysh_user.h
hassoc0689392005-08-25 12:00:58 +000016vtysh_LDADD = ../lib/libzebra.la @LIBCAP@ @LIBREADLINE@
paul718e3742002-12-13 20:15:29 +000017
gdtd6b72f72003-12-03 17:24:27 +000018examplesdir = $(exampledir)
19dist_examples_DATA = vtysh.conf.sample
paul718e3742002-12-13 20:15:29 +000020
gdtd6b72f72003-12-03 17:24:27 +000021EXTRA_DIST = extract.pl
paul718e3742002-12-13 20:15:29 +000022
hassob5d518f2005-04-07 17:07:39 +000023vtysh_cmd_FILES = $(top_srcdir)/bgpd/*.c $(top_srcdir)/isisd/*.c \
24 $(top_srcdir)/ospfd/*.c $(top_srcdir)/ospf6d/*.c \
25 $(top_srcdir)/ripd/*.c $(top_srcdir)/ripngd/*.c \
Leonard Herve596470f2009-08-11 15:45:26 -030026 $(top_srcdir)/pimd/pim_cmd.c \
Timo Teräsdafa05e2017-01-19 17:27:01 +020027 $(top_srcdir)/nhrpd/nhrp_vty.c \
hassob5d518f2005-04-07 17:07:39 +000028 $(top_srcdir)/lib/keychain.c $(top_srcdir)/lib/routemap.c \
29 $(top_srcdir)/lib/filter.c $(top_srcdir)/lib/plist.c \
30 $(top_srcdir)/lib/distribute.c $(top_srcdir)/lib/if_rmap.c \
Feng Lu55cfa2f2014-07-03 18:24:34 +080031 $(top_srcdir)/lib/vrf.c \
hassob5d518f2005-04-07 17:07:39 +000032 $(top_srcdir)/lib/vty.c $(top_srcdir)/zebra/debug.c \
33 $(top_srcdir)/zebra/interface.c \
34 $(top_srcdir)/zebra/irdp_interface.c \
35 $(top_srcdir)/zebra/rtadv.c $(top_srcdir)/zebra/zebra_vty.c \
Bartek Kania41dc3482008-10-04 17:12:24 +010036 $(top_srcdir)/zebra/zserv.c $(top_srcdir)/zebra/router-id.c \
Avneesh Sachdev5adc2522012-11-13 22:48:59 +000037 $(top_srcdir)/zebra/zebra_routemap.c \
38 $(top_srcdir)/zebra/zebra_fpm.c
paul718e3742002-12-13 20:15:29 +000039
Paul Jakmac7c5b022016-04-04 15:19:37 +010040vtysh_cmd.c: $(vtysh_cmd_FILES) extract.pl
41 ./extract.pl $(vtysh_cmd_FILES) > vtysh_cmd.c