]> git.puffer.fish Git - mirror/frr.git/commitdiff
build: non-recursive nhrpd
authorDavid Lamparter <equinox@opensourcerouting.org>
Fri, 4 Aug 2017 07:34:44 +0000 (09:34 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Fri, 4 Aug 2017 09:09:50 +0000 (11:09 +0200)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Makefile.am
configure.ac
nhrpd/.gitignore
nhrpd/Makefile [new file with mode: 0644]
nhrpd/Makefile.am [deleted file]
nhrpd/subdir.am [new file with mode: 0644]

index a0c0d0ab09f2939250e9f8b1fc11770a8504a5ce..bd421c9dde6bab950a90aff70fd40c43d4ca5991 100644 (file)
@@ -35,16 +35,17 @@ include ospfd/subdir.am
 include ospf6d/subdir.am
 include ospfclient/subdir.am
 include isisd/subdir.am
+include nhrpd/subdir.am
 
 SUBDIRS = . @LIBRFP@ @RFPTEST@ \
         @BGPD@ @LDPD@ \
-         @PIMD@ @NHRPD@ @EIGRPD@ @BABELD@ \
+         @PIMD@ @EIGRPD@ @BABELD@ \
         @WATCHFRR@ @VTYSH@ @DOC@ \
          @SOLARIS@ tests tools
 
 DIST_SUBDIRS = . bgpd ldpd \
          watchfrr vtysh doc tests \
-         solaris pimd nhrpd eigrpd bgpd/rfp-example/librfp \
+         solaris pimd eigrpd bgpd/rfp-example/librfp \
          bgpd/rfp-example/rfptest tools babeld \
          # end
 
index a1d4f67511e352f1b4b33d5ac4edb30900980264..81ab9dc6822d41d001a159f693b434c5a552bb82 100755 (executable)
@@ -1352,7 +1352,6 @@ AC_SUBST(RFPINC)
 AC_SUBST(BABELD)
 AC_SUBST(BGPD)
 AC_SUBST(LDPD)
-AC_SUBST(NHRPD)
 AC_SUBST(EIGRPD)
 AC_SUBST(WATCHFRR)
 AC_SUBST(ISISD)
@@ -1811,7 +1810,6 @@ AC_CONFIG_FILES([Makefile
          babeld/Makefile
          pimd/Makefile
          eigrpd/Makefile
-         nhrpd/Makefile
          tools/Makefile
          redhat/frr.spec
          snapcraft/snapcraft.yaml
index 3d4d56d58937167938c270128e28ab6c83749cd1..3f47381278fd22c0ae9acb294ad226e47d1ca878 100644 (file)
@@ -1 +1,2 @@
+!Makefile
 nhrpd
diff --git a/nhrpd/Makefile b/nhrpd/Makefile
new file mode 100644 (file)
index 0000000..62c9546
--- /dev/null
@@ -0,0 +1,10 @@
+all: ALWAYS
+       @$(MAKE) -s -C .. nhrpd/nhrpd
+%: ALWAYS
+       @$(MAKE) -s -C .. nhrpd/$@
+
+Makefile:
+       #nothing
+ALWAYS:
+.PHONY: ALWAYS makefiles
+.SUFFIXES:
diff --git a/nhrpd/Makefile.am b/nhrpd/Makefile.am
deleted file mode 100644 (file)
index 64d9e09..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-## Process this file with automake to produce Makefile.in.
-
-AM_CPPFLAGS = -I.. -I$(top_srcdir) -I$(top_srcdir)/lib -I$(top_builddir)/lib -DQUAGGA_NO_DEPRECATED_INTERFACES
-DEFS = @DEFS@ @CARES_CFLAGS@ -DSYSCONFDIR=\"$(sysconfdir)/\"
-INSTALL_SDATA=@INSTALL@ -m 600
-
-AM_CFLAGS = $(PICFLAGS) $(WERROR)
-AM_LDFLAGS = $(PICLDFLAGS)
-
-sbin_PROGRAMS = nhrpd
-
-nhrpd_SOURCES = \
-       zbuf.c \
-       znl.c \
-       resolver.c \
-       linux.c \
-       netlink_arp.c \
-       netlink_gre.c \
-       vici.c \
-       reqid.c \
-       nhrp_event.c \
-       nhrp_packet.c \
-       nhrp_interface.c \
-       nhrp_vc.c \
-       nhrp_peer.c \
-       nhrp_cache.c \
-       nhrp_nhs.c \
-       nhrp_route.c \
-       nhrp_shortcut.c \
-       nhrp_vty.c \
-       nhrp_main.c
-
-nhrpd_LDADD = ../lib/libfrr.la @LIBCAP@ @CARES_LIBS@
-
-noinst_HEADERS = \
-       debug.h \
-       list.h \
-       netlink.h \
-       nhrp_protocol.h \
-       nhrpd.h \
-       os.h \
-       vici.h \
-       zbuf.h \
-       znl.h \
-       # end
-
-#dist_examples_DATA = nhrpd.conf.sample
diff --git a/nhrpd/subdir.am b/nhrpd/subdir.am
new file mode 100644 (file)
index 0000000..5b06946
--- /dev/null
@@ -0,0 +1,43 @@
+#
+# nhrpd
+#
+
+if NHRPD
+sbin_PROGRAMS += nhrpd/nhrpd
+endif
+
+nhrpd_nhrpd_LDADD = lib/libfrr.la @LIBCAP@ @CARES_LIBS@
+nhrpd_nhrpd_CFLAGS = $(AM_CFLAGS) @CARES_CFLAGS@
+nhrpd_nhrpd_SOURCES = \
+       nhrpd/linux.c \
+       nhrpd/netlink_arp.c \
+       nhrpd/netlink_gre.c \
+       nhrpd/nhrp_cache.c \
+       nhrpd/nhrp_event.c \
+       nhrpd/nhrp_interface.c \
+       nhrpd/nhrp_main.c \
+       nhrpd/nhrp_nhs.c \
+       nhrpd/nhrp_packet.c \
+       nhrpd/nhrp_peer.c \
+       nhrpd/nhrp_route.c \
+       nhrpd/nhrp_shortcut.c \
+       nhrpd/nhrp_vc.c \
+       nhrpd/nhrp_vty.c \
+       nhrpd/reqid.c \
+       nhrpd/resolver.c \
+       nhrpd/vici.c \
+       nhrpd/zbuf.c \
+       nhrpd/znl.c \
+       # end
+
+noinst_HEADERS += \
+       nhrpd/debug.h \
+       nhrpd/list.h \
+       nhrpd/netlink.h \
+       nhrpd/nhrp_protocol.h \
+       nhrpd/nhrpd.h \
+       nhrpd/os.h \
+       nhrpd/vici.h \
+       nhrpd/zbuf.h \
+       nhrpd/znl.h \
+       # end