]>
Commit | Line | Data |
---|---|---|
718e3744 | 1 | ## Process this file with Automake to create Makefile.in |
2 | ||
65efcfce LB |
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) | |
718e3744 | 21 | DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" |
22 | ||
23 | LIBS = @LIBS@ @CURSES@ @LIBPAM@ | |
24 | ||
95bb8305 | 25 | AM_CFLAGS = $(WERROR) |
46bc0e43 | 26 | |
718e3744 | 27 | bin_PROGRAMS = vtysh |
28 | ||
1ac09d3e | 29 | vtysh_SOURCES = vtysh_main.c vtysh.c vtysh_user.c vtysh_config.c |
30 | nodist_vtysh_SOURCES = vtysh_cmd.c | |
fc9d0745 | 31 | CLEANFILES = vtysh_cmd.c |
718e3744 | 32 | noinst_HEADERS = vtysh.h vtysh_user.h |
55c72803 | 33 | vtysh_LDADD = ../lib/libfrr.la @LIBCAP@ @LIBREADLINE@ |
718e3744 | 34 | |
d6b72f7a | 35 | examplesdir = $(exampledir) |
36 | dist_examples_DATA = vtysh.conf.sample | |
718e3744 | 37 | |
d6b72f7a | 38 | EXTRA_DIST = extract.pl |
718e3744 | 39 | |
9994130f DS |
40 | vtysh_scan = |
41 | ||
42 | if PIMD | |
43 | vtysh_scan += $(top_srcdir)/pimd/pim_cmd.c | |
44 | endif | |
45 | ||
46 | if BGPD | |
be0f8431 DS |
47 | vtysh_scan += $(top_srcdir)/bgpd/bgp_bfd.c |
48 | vtysh_scan += $(top_srcdir)/bgpd/bgp_debug.c | |
49 | vtysh_scan += $(top_srcdir)/bgpd/bgp_dump.c | |
be0f8431 DS |
50 | vtysh_scan += $(top_srcdir)/bgpd/bgp_evpn_vty.c |
51 | vtysh_scan += $(top_srcdir)/bgpd/bgp_filter.c | |
52 | vtysh_scan += $(top_srcdir)/bgpd/bgp_mplsvpn.c | |
1ac33779 | 53 | vtysh_scan += $(top_srcdir)/bgpd/bgp_nexthop.c |
be0f8431 DS |
54 | vtysh_scan += $(top_srcdir)/bgpd/bgp_route.c |
55 | vtysh_scan += $(top_srcdir)/bgpd/bgp_routemap.c | |
56 | vtysh_scan += $(top_srcdir)/bgpd/bgp_vty.c | |
9994130f DS |
57 | endif |
58 | ||
59 | if ISISD | |
be0f8431 DS |
60 | vtysh_scan += $(top_srcdir)/isisd/isis_redist.c |
61 | vtysh_scan += $(top_srcdir)/isisd/isis_spf.c | |
62 | vtysh_scan += $(top_srcdir)/isisd/isis_te.c | |
63 | vtysh_scan += $(top_srcdir)/isisd/isis_vty.c | |
64 | vtysh_scan += $(top_srcdir)/isisd/isisd.c | |
9994130f DS |
65 | endif |
66 | ||
67 | if OSPFD | |
be0f8431 DS |
68 | vtysh_scan += $(top_srcdir)/ospfd/ospf_bfd.c |
69 | vtysh_scan += $(top_srcdir)/ospfd/ospf_dump.c | |
70 | vtysh_scan += $(top_srcdir)/ospfd/ospf_opaque.c | |
71 | vtysh_scan += $(top_srcdir)/ospfd/ospf_ri.c | |
72 | vtysh_scan += $(top_srcdir)/ospfd/ospf_routemap.c | |
73 | vtysh_scan += $(top_srcdir)/ospfd/ospf_te.c | |
74 | vtysh_scan += $(top_srcdir)/ospfd/ospf_vty.c | |
9994130f DS |
75 | endif |
76 | ||
77 | if OSPF6D | |
be0f8431 | 78 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_abr.c |
7c680483 | 79 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_asbr.c |
be0f8431 DS |
80 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_area.c |
81 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_bfd.c | |
82 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_flood.c | |
83 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_interface.c | |
84 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_intra.c | |
85 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_lsa.c | |
86 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_message.c | |
87 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_neighbor.c | |
88 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_route.c | |
89 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_spf.c | |
90 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_top.c | |
91 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6_zebra.c | |
92 | vtysh_scan += $(top_srcdir)/ospf6d/ospf6d.c | |
9994130f DS |
93 | endif |
94 | ||
95 | if RIPD | |
be0f8431 DS |
96 | vtysh_scan += $(top_srcdir)/ripd/rip_debug.c |
97 | vtysh_scan += $(top_srcdir)/ripd/rip_interface.c | |
98 | vtysh_scan += $(top_srcdir)/ripd/rip_offset.c | |
99 | vtysh_scan += $(top_srcdir)/ripd/rip_zebra.c | |
100 | vtysh_scan += $(top_srcdir)/ripd/ripd.c | |
9994130f DS |
101 | endif |
102 | ||
103 | if RIPNGD | |
be0f8431 DS |
104 | vtysh_scan += $(top_srcdir)/ripngd/ripng_debug.c |
105 | vtysh_scan += $(top_srcdir)/ripngd/ripng_interface.c | |
106 | vtysh_scan += $(top_srcdir)/ripngd/ripng_offset.c | |
107 | vtysh_scan += $(top_srcdir)/ripngd/ripng_zebra.c | |
108 | vtysh_scan += $(top_srcdir)/ripngd/ripngd.c | |
9994130f DS |
109 | endif |
110 | ||
c740f7d3 RW |
111 | if LDPD |
112 | vtysh_scan += $(top_srcdir)/ldpd/ldp_vty_cmds.c | |
113 | endif | |
114 | ||
2fb975da TT |
115 | if NHRPD |
116 | vtysh_scan += $(top_srcdir)/nhrpd/nhrp_vty.c | |
117 | endif | |
118 | ||
7f57883e DS |
119 | if EIGRPD |
120 | vtysh_scan += $(top_srcdir)/eigrpd/eigrp_dump.c | |
2a23cf95 | 121 | #vtysh_scan += $(top_srcdir)/eigrpd/eigrp_routemap.c |
7f57883e DS |
122 | vtysh_scan += $(top_srcdir)/eigrpd/eigrp_vty.c |
123 | endif | |
124 | ||
ca10883e DS |
125 | if BABELD |
126 | vtysh_scan += $(top_srcdir)/babeld/babel_interface.c | |
127 | vtysh_scan += $(top_srcdir)/babeld/babel_zebra.c | |
128 | vtysh_scan += $(top_srcdir)/babeld/babeld.c | |
129 | endif | |
130 | ||
62ff928b DS |
131 | if SNMP |
132 | vtysh_scan += $(top_srcdir)/lib/agentx.c | |
133 | endif | |
134 | ||
9994130f | 135 | vtysh_cmd_FILES = $(vtysh_scan) \ |
b5d518fb | 136 | $(top_srcdir)/lib/keychain.c $(top_srcdir)/lib/routemap.c \ |
137 | $(top_srcdir)/lib/filter.c $(top_srcdir)/lib/plist.c \ | |
138 | $(top_srcdir)/lib/distribute.c $(top_srcdir)/lib/if_rmap.c \ | |
19dc275e | 139 | $(top_srcdir)/lib/vrf.c \ |
13460c44 FL |
140 | $(top_srcdir)/lib/vty.c $(top_srcdir)/zebra/debug.c \ |
141 | $(top_srcdir)/lib/ns.c \ | |
b5d518fb | 142 | $(top_srcdir)/zebra/interface.c \ |
143 | $(top_srcdir)/zebra/irdp_interface.c \ | |
144 | $(top_srcdir)/zebra/rtadv.c $(top_srcdir)/zebra/zebra_vty.c \ | |
41dc3488 | 145 | $(top_srcdir)/zebra/zserv.c $(top_srcdir)/zebra/router-id.c \ |
5adc2528 | 146 | $(top_srcdir)/zebra/zebra_routemap.c \ |
244c1cdc | 147 | $(top_srcdir)/zebra/zebra_fpm.c \ |
41675b4c | 148 | $(top_srcdir)/zebra/zebra_ptm.c \ |
65efcfce | 149 | $(top_srcdir)/zebra/zebra_mpls_vty.c \ |
9473e340 | 150 | $(top_srcdir)/watchfrr/watchfrr_vty.c \ |
65efcfce | 151 | $(BGP_VNC_RFAPI_SRC) $(BGP_VNC_RFP_SRC) |
b5d518fb | 152 | |
c740f7d3 RW |
153 | vtysh_cmd.c: $(vtysh_cmd_FILES) extract.pl |
154 | ./extract.pl $(vtysh_cmd_FILES) > vtysh_cmd.c |