1## Process this file with Automake to create Makefile.in
2
3AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
4DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
5
6LIBS = @LIBS@ @CURSES@ @LIBPAM@
7
8AM_CFLAGS = $(PICFLAGS)
9AM_LDFLAGS = $(PILDFLAGS)
10
11bin_PROGRAMS = vtysh
12
13vtysh_SOURCES = vtysh_main.c vtysh.c vtysh_user.c vtysh_config.c
14nodist_vtysh_SOURCES = vtysh_cmd.c
15CLEANFILES = vtysh_cmd.c
16noinst_HEADERS = vtysh.h vtysh_user.h
17vtysh_LDADD = ../lib/libzebra.la @LIBCAP@ @LIBREADLINE@
18
19examplesdir = $(exampledir)
20dist_examples_DATA = vtysh.conf.sample
21
22EXTRA_DIST = extract.pl
23
24vtysh_cmd_FILES = $(top_srcdir)/bgpd/*.c $(top_srcdir)/isisd/*.c \
25		  $(top_srcdir)/ospfd/*.c $(top_srcdir)/ospf6d/*.c \
26		  $(top_srcdir)/ripd/*.c $(top_srcdir)/ripngd/*.c \
27		  $(top_srcdir)/babeld/*.c \
28		  $(top_srcdir)/pimd/pim_cmd.c \
29		  $(top_srcdir)/lib/keychain.c $(top_srcdir)/lib/routemap.c \
30		  $(top_srcdir)/lib/filter.c $(top_srcdir)/lib/plist.c \
31		  $(top_srcdir)/lib/distribute.c $(top_srcdir)/lib/if_rmap.c \
32		  $(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 \
36		  $(top_srcdir)/zebra/zserv.c $(top_srcdir)/zebra/router-id.c \
37		  $(top_srcdir)/zebra/zebra_routemap.c \
38	          $(top_srcdir)/zebra/zebra_fpm.c
39
40vtysh_cmd.c: $(vtysh_cmd_FILES)
41	./$(EXTRA_DIST) $(vtysh_cmd_FILES) > vtysh_cmd.c
42
43