include qpb/subdir.am
include fpm/subdir.am
+include ripd/subdir.am
+include ripngd/subdir.am
+
SUBDIRS = . @LIBRFP@ @RFPTEST@ \
- @BGPD@ @RIPD@ @RIPNGD@ @OSPFD@ @OSPF6D@ @LDPD@ \
+ @BGPD@ @OSPFD@ @OSPF6D@ @LDPD@ \
@ISISD@ @PIMD@ @NHRPD@ @EIGRPD@ @BABELD@ \
@WATCHFRR@ @VTYSH@ @OSPFCLIENT@ @DOC@ \
@SOLARIS@ tests tools
-DIST_SUBDIRS = . bgpd ripd ripngd ospfd ospf6d ldpd \
+DIST_SUBDIRS = . bgpd ospfd ospf6d ldpd \
isisd watchfrr vtysh ospfclient doc tests \
solaris pimd nhrpd eigrpd bgpd/rfp-example/librfp \
bgpd/rfp-example/rfptest tools babeld \
fi
AM_CONDITIONAL(BGPD, test "x$BGPD" = "xbgpd")
-if test "${enable_ripd}" = "no";then
- RIPD=""
-else
- RIPD="ripd"
-fi
-AM_CONDITIONAL(RIPD, test "x$RIPD" = "xripd")
+AM_CONDITIONAL(RIPD, test "${enable_ripd}" != "no")
if test "${enable_ospfd}" = "no";then
OSPFD=""
AM_CONDITIONAL(OSPFCLIENT, test "x$OSPFCLIENT" = "xospfclient")
-case "${enable_ripngd}" in
- "no" ) RIPNGD="";;
- * ) RIPNGD="ripngd";;
-esac
-AM_CONDITIONAL(RIPNGD, test "x$RIPNGD" = "xripngd")
+AM_CONDITIONAL(RIPNGD, test "${enable_ripngd}" != "no")
case "${enable_babeld}" in
"no" ) BABELD="";;
AC_SUBST(RFPINC)
AC_SUBST(BABELD)
AC_SUBST(BGPD)
-AC_SUBST(RIPD)
-AC_SUBST(RIPNGD)
AC_SUBST(OSPFD)
AC_SUBST(OSPF6D)
AC_SUBST(LDPD)
)
AC_MSG_RESULT($ac_cv_htonl_works)
-AC_CONFIG_FILES([Makefile ripd/Makefile
- ripngd/Makefile bgpd/Makefile ospfd/Makefile watchfrr/Makefile
+AC_CONFIG_FILES([Makefile
+ bgpd/Makefile ospfd/Makefile watchfrr/Makefile
ospf6d/Makefile ldpd/Makefile isisd/Makefile vtysh/Makefile
doc/Makefile ospfclient/Makefile tests/Makefile
bgpd/rfp-example/rfptest/Makefile bgpd/rfp-example/librfp/Makefile
-Makefile
+!Makefile
Makefile.in
*.o
ripd
--- /dev/null
+all: ALWAYS
+ @$(MAKE) -s -C .. ripd/ripd
+%: ALWAYS
+ @$(MAKE) -s -C .. ripd/$@
+
+Makefile:
+ #nothing
+ALWAYS:
+.PHONY: ALWAYS makefiles
+.SUFFIXES:
+++ /dev/null
-## Process this file with automake to produce Makefile.in.
-
-AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
-DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
-INSTALL_SDATA=@INSTALL@ -m 600
-
-AM_CFLAGS = $(WERROR)
-
-noinst_LIBRARIES = librip.a
-module_LTLIBRARIES =
-sbin_PROGRAMS = ripd
-
-librip_a_SOURCES = \
- rip_memory.c \
- ripd.c rip_zebra.c rip_interface.c rip_debug.c \
- rip_routemap.c rip_peer.c rip_offset.c
-
-noinst_HEADERS = \
- rip_memory.h \
- ripd.h rip_debug.h rip_interface.h
-
-ripd_SOURCES = \
- rip_main.c $(librip_a_SOURCES)
-
-ripd_LDADD = ../lib/libfrr.la @LIBCAP@
-
-if SNMP
-module_LTLIBRARIES += ripd_snmp.la
-endif
-ripd_snmp_la_SOURCES = rip_snmp.c
-ripd_snmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS)
-ripd_snmp_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
-ripd_snmp_la_LIBADD = ../lib/libfrrsnmp.la
-
-examplesdir = $(exampledir)
-dist_examples_DATA = ripd.conf.sample
-
-EXTRA_DIST = RIPv2-MIB.txt
-
--- /dev/null
+#
+# ripd
+#
+
+if RIPD
+noinst_LIBRARIES += ripd/librip.a
+sbin_PROGRAMS += ripd/ripd
+dist_examples_DATA += ripd/ripd.conf.sample
+if SNMP
+module_LTLIBRARIES += ripd/ripd_snmp.la
+endif
+endif
+
+ripd_librip_a_SOURCES = \
+ ripd/rip_debug.c \
+ ripd/rip_interface.c \
+ ripd/rip_memory.c \
+ ripd/rip_offset.c \
+ ripd/rip_peer.c \
+ ripd/rip_routemap.c \
+ ripd/rip_zebra.c \
+ ripd/ripd.c \
+ # end
+
+noinst_HEADERS += \
+ ripd/rip_debug.h \
+ ripd/rip_interface.h \
+ ripd/rip_memory.h \
+ ripd/ripd.h \
+ # end
+
+ripd_ripd_LDADD = ripd/librip.a lib/libfrr.la @LIBCAP@
+ripd_ripd_SOURCES = \
+ ripd/rip_main.c \
+ # end
+
+ripd_ripd_snmp_la_SOURCES = ripd/rip_snmp.c
+ripd_ripd_snmp_la_CFLAGS = $(WERROR) $(SNMP_CFLAGS)
+ripd_ripd_snmp_la_LDFLAGS = -avoid-version -module -shared -export-dynamic
+ripd_ripd_snmp_la_LIBADD = lib/libfrrsnmp.la
+
+EXTRA_DIST += ripd/RIPv2-MIB.txt
-Makefile
+!Makefile
Makefile.in
*.o
ripngd
--- /dev/null
+all: ALWAYS
+ @$(MAKE) -s -C .. ripngd/ripngd
+%: ALWAYS
+ @$(MAKE) -s -C .. ripngd/$@
+
+Makefile:
+ #nothing
+ALWAYS:
+.PHONY: ALWAYS makefiles
+.SUFFIXES:
+++ /dev/null
-## Process this file with automake to produce Makefile.in.
-
-AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib
-DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
-INSTALL_SDATA=@INSTALL@ -m 600
-
-AM_CFLAGS = $(WERROR)
-
-noinst_LIBRARIES = libripng.a
-sbin_PROGRAMS = ripngd
-
-libripng_a_SOURCES = \
- ripng_memory.c \
- ripng_interface.c ripngd.c ripng_zebra.c ripng_route.c ripng_debug.c \
- ripng_routemap.c ripng_offset.c ripng_peer.c ripng_nexthop.c
-
-noinst_HEADERS = \
- ripng_memory.h \
- ripng_debug.h ripng_route.h ripngd.h ripng_nexthop.h
-
-ripngd_SOURCES = \
- ripng_main.c $(libripng_a_SOURCES)
-
-ripngd_LDADD = ../lib/libfrr.la @LIBCAP@
-
-examplesdir = $(exampledir)
-dist_examples_DATA = ripngd.conf.sample
-
--- /dev/null
+#
+# ripngd
+#
+
+if RIPNGD
+noinst_LIBRARIES += ripngd/libripng.a
+sbin_PROGRAMS += ripngd/ripngd
+endif
+
+ripngd_libripng_a_SOURCES = \
+ ripngd/ripng_debug.c \
+ ripngd/ripng_interface.c \
+ ripngd/ripng_memory.c \
+ ripngd/ripng_nexthop.c \
+ ripngd/ripng_offset.c \
+ ripngd/ripng_peer.c \
+ ripngd/ripng_route.c \
+ ripngd/ripng_routemap.c \
+ ripngd/ripng_zebra.c \
+ ripngd/ripngd.c \
+ # end
+
+noinst_HEADERS += \
+ ripngd/ripng_debug.h \
+ ripngd/ripng_memory.h \
+ ripngd/ripng_nexthop.h \
+ ripngd/ripng_route.h \
+ ripngd/ripngd.h \
+ # end
+
+ripngd_ripngd_LDADD = ripngd/libripng.a lib/libfrr.la @LIBCAP@
+ripngd_ripngd_SOURCES = \
+ ripngd/ripng_main.c \
+ # end
+
+dist_examples_DATA += ripngd/ripngd.conf.sample