summaryrefslogtreecommitdiff
path: root/vtysh/Makefile.am
blob: 33064e1019f8031377e44ba17af99687e8fcec5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
## Process this file with Automake to create Makefile.in

INCLUDES = @INCLUDES@ -I.. -I$(top_srcdir) -I$(top_srcdir)/lib
DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"

LIBS = @LIBS@ @CURSES@ @LIBPAM@

bin_PROGRAMS = vtysh

vtysh_SOURCES = vtysh_main.c vtysh.c vtysh_user.c vtysh_config.c
nodist_vtysh_SOURCES = vtysh_cmd.c
noinst_HEADERS = vtysh.h vtysh_user.h
vtysh_LDADD = ../lib/libzebra.a @LIBCAP@

sysconf_DATA = vtysh.conf.sample

EXTRA_DIST = extract.pl vtysh.conf.sample

rebuild4:
	./extract.pl ../zebra/*.c ../ripd/*.c ../ospfd/*.c ../bgpd/*.c ../lib/keychain.c ../lib/routemap.c ../lib/filter.c ../lib/plist.c ../lib/distribute.c ../lib/if_rmap.c > vtysh_cmd.c

vtysh_cmd.c: ../zebra/*.c ../ripd/*.c ../ripngd/*.c ../ospfd/*.c \
     ../ospf6d/*.c ../bgpd/*.c ../lib/keychain.c ../lib/routemap.c \
     ../lib/filter.c ../lib/plist.c ../lib/distribute.c ../lib/if_rmap.c
	./extract.pl ../zebra/*.c ../ripd/*.c ../ripngd/*.c ../ospfd/*.c \
          ../ospf6d/*.c ../bgpd/*.c ../lib/keychain.c ../lib/routemap.c \
          ../lib/filter.c ../lib/plist.c ../lib/distribute.c \
          ../lib/if_rmap.c > vtysh_cmd.c