]> git.proxmox.com Git - mirror_frr.git/blob - vtysh/Makefile.am
090382b99beab5fd6cd95845e8d49708d06f3fe6
[mirror_frr.git] / vtysh / Makefile.am
1 ## Process this file with Automake to create Makefile.in
2
3
4 if ENABLE_BGP_VNC
5 BGP_VNC_RFP_SRCDIR = @top_srcdir@/@LIBRFP@
6 BGP_VNC_RFP_INCDIR = -I$(BGP_VNC_RFP_SRCDIR)
7 BGP_VNC_RFP_SRC = $(BGP_VNC_RFP_SRCDIR)/*.c
8 BGP_VNC_RFAPI_SRCDIR = @top_srcdir@/bgpd/rfapi
9 BGP_VNC_RFAPI_INCDIR = -I$(BGP_VNC_RFAPI_SRCDIR) -I$(top_srcdir)/bgpd
10 BGP_VNC_RFAPI_SRC = $(BGP_VNC_RFAPI_SRCDIR)/*.c
11 else
12 BGP_VNC_RFP_INCDIR =
13 BGP_VNC_RFP_SRCDIR =
14 BGP_VNC_RFP_SRC =
15 BGP_VNC_RFAPI_INCDIR =
16 BGP_VNC_RFAPI_SRCDIR =
17 BGP_VNC_RFAPI_SRC =
18 endif
19 AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib \
20 $(BGP_VNC_RFAPI_INCDIR) $(BGP_VNC_RFP_INCDIR)
21 DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
22
23 LIBS = @LIBS@ @CURSES@ @LIBPAM@
24
25 AM_CFLAGS = $(WERROR)
26
27 bin_PROGRAMS = vtysh
28
29 vtysh_SOURCES = vtysh_main.c vtysh.c vtysh_user.c vtysh_config.c
30 nodist_vtysh_SOURCES = vtysh_cmd.c
31 CLEANFILES = vtysh_cmd.c
32 noinst_HEADERS = vtysh.h vtysh_user.h
33 vtysh_LDADD = ../lib/libzebra.la @LIBCAP@ @LIBREADLINE@
34
35 examplesdir = $(exampledir)
36 dist_examples_DATA = vtysh.conf.sample
37
38 EXTRA_DIST = extract.pl
39
40 vtysh_scan =
41
42 if PIMD
43 vtysh_scan += $(top_srcdir)/pimd/pim_cmd.c
44 endif
45
46 if BGPD
47 vtysh_scan += $(top_srcdir)/bgpd/*.c
48 endif
49
50 if ISISD
51 vtysh_scan += $(top_srcdir)/isisd/*.c
52 endif
53
54 if OSPFD
55 vtysh_scan += $(top_srcdir)/ospfd/*.c
56 endif
57
58 if OSPF6D
59 vtysh_scan += $(top_srcdir)/ospf6d/*.c
60 endif
61
62 if LDPD
63 vtysh_scan += $(top_srcdir)/ldpd/ldp_vty_cmds.c
64 endif
65
66 if RIPD
67 vtysh_scan += $(top_srcdir)/ripd/*.c
68 endif
69
70 if RIPNGD
71 vtysh_scan += $(top_srcdir)/ripngd/*.c
72 endif
73
74 vtysh_cmd_FILES = $(vtysh_scan) \
75 $(top_srcdir)/lib/keychain.c $(top_srcdir)/lib/routemap.c \
76 $(top_srcdir)/lib/filter.c $(top_srcdir)/lib/plist.c \
77 $(top_srcdir)/lib/distribute.c $(top_srcdir)/lib/if_rmap.c \
78 $(top_srcdir)/lib/vrf.c \
79 $(top_srcdir)/lib/vty.c $(top_srcdir)/zebra/debug.c \
80 $(top_srcdir)/lib/ns.c \
81 $(top_srcdir)/zebra/interface.c \
82 $(top_srcdir)/zebra/irdp_interface.c \
83 $(top_srcdir)/zebra/rtadv.c $(top_srcdir)/zebra/zebra_vty.c \
84 $(top_srcdir)/zebra/zserv.c $(top_srcdir)/zebra/router-id.c \
85 $(top_srcdir)/zebra/zebra_routemap.c \
86 $(top_srcdir)/zebra/zebra_fpm.c \
87 $(top_srcdir)/zebra/zebra_ptm.c \
88 $(top_srcdir)/zebra/zebra_mpls_vty.c \
89 $(top_srcdir)/watchfrr/watchfrr_vty.c \
90 $(BGP_VNC_RFAPI_SRC) $(BGP_VNC_RFP_SRC)
91
92 vtysh_cmd.c: $(vtysh_cmd_FILES) extract.pl
93 ./extract.pl $(vtysh_cmd_FILES) > vtysh_cmd.c