]> git.proxmox.com Git - mirror_frr.git/blob - vtysh/Makefile.am
Merge branch 'cmaster-next' into vtysh-grammar
[mirror_frr.git] / vtysh / Makefile.am
1 ## Process this file with Automake to create Makefile.in
2
3 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
4 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
5
6 LIBS = @LIBS@ @CURSES@ @LIBPAM@
7
8 AM_CFLAGS = $(WERROR)
9
10 bin_PROGRAMS = vtysh
11
12 vtysh_SOURCES = vtysh_main.c vtysh.c vtysh_user.c vtysh_config.c
13 nodist_vtysh_SOURCES = vtysh_cmd.c
14 CLEANFILES = vtysh_cmd.c
15 noinst_HEADERS = vtysh.h vtysh_user.h
16 vtysh_LDADD = ../lib/libzebra.la @LIBCAP@ @LIBREADLINE@
17
18 examplesdir = $(exampledir)
19 dist_examples_DATA = vtysh.conf.sample
20
21 EXTRA_DIST = extract.pl
22
23 vtysh_scan =
24
25 if PIMD
26 vtysh_scan += $(top_srcdir)/pimd/pim_cmd.c
27 endif
28
29 if BGPD
30 vtysh_scan += $(top_srcdir)/bgpd/*.c
31 endif
32
33 if ISISD
34 vtysh_scan += $(top_srcdir)/isisd/*.c
35 endif
36
37 if OSPFD
38 vtysh_scan += $(top_srcdir)/ospfd/*.c
39 endif
40
41 if OSPF6D
42 vtysh_scan += $(top_srcdir)/ospf6d/*.c
43 endif
44
45 if RIPD
46 vtysh_scan += $(top_srcdir)/ripd/*.c
47 endif
48
49 if RIPNGD
50 vtysh_scan += $(top_srcdir)/ripngd/*.c
51 endif
52
53 vtysh_cmd_FILES = $(vtysh_scan) \
54 $(top_srcdir)/lib/keychain.c $(top_srcdir)/lib/routemap.c \
55 $(top_srcdir)/lib/filter.c $(top_srcdir)/lib/plist.c \
56 $(top_srcdir)/lib/distribute.c $(top_srcdir)/lib/if_rmap.c \
57 $(top_srcdir)/lib/vrf.c \
58 $(top_srcdir)/lib/vty.c $(top_srcdir)/zebra/debug.c \
59 $(top_srcdir)/lib/ns.c \
60 $(top_srcdir)/zebra/interface.c \
61 $(top_srcdir)/zebra/irdp_interface.c \
62 $(top_srcdir)/zebra/rtadv.c $(top_srcdir)/zebra/zebra_vty.c \
63 $(top_srcdir)/zebra/zserv.c $(top_srcdir)/zebra/router-id.c \
64 $(top_srcdir)/zebra/zebra_routemap.c \
65 $(top_srcdir)/zebra/zebra_fpm.c \
66 $(top_srcdir)/zebra/zebra_ptm.c
67
68 vtysh_cmd.c: $(vtysh_cmd_FILES) extract.pl
69 ./extract.pl $(vtysh_cmd_FILES) > vtysh_cmd.c