]> git.proxmox.com Git - mirror_frr.git/blame - vtysh/Makefile.am
eigrp: Initial Commit
[mirror_frr.git] / vtysh / Makefile.am
CommitLineData
718e3744 1## Process this file with Automake to create Makefile.in
2
65efcfce
LB
3
4if ENABLE_BGP_VNC
5BGP_VNC_RFP_SRCDIR = @top_srcdir@/@LIBRFP@
6BGP_VNC_RFP_INCDIR = -I$(BGP_VNC_RFP_SRCDIR)
7BGP_VNC_RFP_SRC = $(BGP_VNC_RFP_SRCDIR)/*.c
8BGP_VNC_RFAPI_SRCDIR = @top_srcdir@/bgpd/rfapi
9BGP_VNC_RFAPI_INCDIR = -I$(BGP_VNC_RFAPI_SRCDIR) -I$(top_srcdir)/bgpd
10BGP_VNC_RFAPI_SRC = $(BGP_VNC_RFAPI_SRCDIR)/*.c
11else
12BGP_VNC_RFP_INCDIR =
13BGP_VNC_RFP_SRCDIR =
14BGP_VNC_RFP_SRC =
15BGP_VNC_RFAPI_INCDIR =
16BGP_VNC_RFAPI_SRCDIR =
17BGP_VNC_RFAPI_SRC =
18endif
19AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib \
20 $(BGP_VNC_RFAPI_INCDIR) $(BGP_VNC_RFP_INCDIR)
718e3744 21DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
22
23LIBS = @LIBS@ @CURSES@ @LIBPAM@
24
95bb8305 25AM_CFLAGS = $(WERROR)
46bc0e43 26
718e3744 27bin_PROGRAMS = vtysh
28
1ac09d3e 29vtysh_SOURCES = vtysh_main.c vtysh.c vtysh_user.c vtysh_config.c
30nodist_vtysh_SOURCES = vtysh_cmd.c
fc9d0745 31CLEANFILES = vtysh_cmd.c
718e3744 32noinst_HEADERS = vtysh.h vtysh_user.h
55c72803 33vtysh_LDADD = ../lib/libfrr.la @LIBCAP@ @LIBREADLINE@
718e3744 34
d6b72f7a 35examplesdir = $(exampledir)
36dist_examples_DATA = vtysh.conf.sample
718e3744 37
d6b72f7a 38EXTRA_DIST = extract.pl
718e3744 39
9994130f
DS
40vtysh_scan =
41
42if PIMD
43vtysh_scan += $(top_srcdir)/pimd/pim_cmd.c
44endif
45
46if BGPD
47vtysh_scan += $(top_srcdir)/bgpd/*.c
48endif
49
50if ISISD
51vtysh_scan += $(top_srcdir)/isisd/*.c
52endif
53
54if OSPFD
55vtysh_scan += $(top_srcdir)/ospfd/*.c
56endif
57
58if OSPF6D
59vtysh_scan += $(top_srcdir)/ospf6d/*.c
60endif
61
62if RIPD
63vtysh_scan += $(top_srcdir)/ripd/*.c
64endif
65
66if RIPNGD
67vtysh_scan += $(top_srcdir)/ripngd/*.c
68endif
69
2fb975da
TT
70if NHRPD
71vtysh_scan += $(top_srcdir)/nhrpd/nhrp_vty.c
72endif
73
7f57883e
DS
74if EIGRPD
75vtysh_scan += $(top_srcdir)/eigrpd/eigrp_dump.c
76vtysh_scan += $(top_srcdir)/eigrpd/eigrp_routemap.c
77vtysh_scan += $(top_srcdir)/eigrpd/eigrp_vty.c
78endif
79
9994130f 80vtysh_cmd_FILES = $(vtysh_scan) \
b5d518fb 81 $(top_srcdir)/lib/keychain.c $(top_srcdir)/lib/routemap.c \
82 $(top_srcdir)/lib/filter.c $(top_srcdir)/lib/plist.c \
83 $(top_srcdir)/lib/distribute.c $(top_srcdir)/lib/if_rmap.c \
19dc275e 84 $(top_srcdir)/lib/vrf.c \
13460c44
FL
85 $(top_srcdir)/lib/vty.c $(top_srcdir)/zebra/debug.c \
86 $(top_srcdir)/lib/ns.c \
b5d518fb 87 $(top_srcdir)/zebra/interface.c \
88 $(top_srcdir)/zebra/irdp_interface.c \
89 $(top_srcdir)/zebra/rtadv.c $(top_srcdir)/zebra/zebra_vty.c \
41dc3488 90 $(top_srcdir)/zebra/zserv.c $(top_srcdir)/zebra/router-id.c \
5adc2528 91 $(top_srcdir)/zebra/zebra_routemap.c \
244c1cdc 92 $(top_srcdir)/zebra/zebra_fpm.c \
41675b4c 93 $(top_srcdir)/zebra/zebra_ptm.c \
65efcfce 94 $(top_srcdir)/zebra/zebra_mpls_vty.c \
9473e340 95 $(top_srcdir)/watchfrr/watchfrr_vty.c \
65efcfce 96 $(BGP_VNC_RFAPI_SRC) $(BGP_VNC_RFP_SRC)
b5d518fb 97
7758fe9f
DL
98# this is slightly iffy... ldp_vty_cmds.c can be located in either
99# $srcdir or $builddir depending on whether it's coming pre-built from a
100# dist tarball or being built. automake uses VPATH to find it, but that
101# doesn't work here...
102# so after running "make ldp_vty_cmds.c", the file can be in either of the
103# two directories. we need to do some magic to find out which.
104vtysh_cmd_DEPS = $(vtysh_cmd_FILES)
105if LDPD
106$(top_builddir)/ldpd/ldp_vty_cmds.c:
107 make -C "$(top_builddir)/ldpd" ldp_vty_cmds.c
108vtysh_cmd_DEPS += $(top_builddir)/ldpd/ldp_vty_cmds.c
109endif
110
111vtysh_cmd.c: $(vtysh_cmd_DEPS) extract.pl
112 if test -n "${LDPD}"; then \
113 ldpcmds="$(top_srcdir)/ldpd/ldp_vty_cmds.c"; \
114 test -f "$(top_builddir)/ldpd/ldp_vty_cmds.c" && ldpcmds="$(top_builddir)/ldpd/ldp_vty_cmds.c"; \
115 fi; \
116 ./extract.pl $(vtysh_cmd_FILES) $${ldpcmds} > vtysh_cmd.c