Skip to content

Commit b6f5781

Browse files
committed
build: non-recursive babeld & eigrpd
Signed-off-by: David Lamparter <[email protected]>
1 parent 30237d2 commit b6f5781

10 files changed

+137
-99
lines changed

Makefile.am

+5-3
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,19 @@ include ospfclient/subdir.am
3838
include isisd/subdir.am
3939
include nhrpd/subdir.am
4040
include ldpd/subdir.am
41+
include babeld/subdir.am
42+
include eigrpd/subdir.am
4143

4244
SUBDIRS = . @LIBRFP@ @RFPTEST@ \
4345
@BGPD@ \
44-
@PIMD@ @EIGRPD@ @BABELD@ \
46+
@PIMD@ \
4547
@WATCHFRR@ @VTYSH@ @DOC@ \
4648
@SOLARIS@ tests tools
4749

4850
DIST_SUBDIRS = . bgpd \
4951
watchfrr vtysh doc tests \
50-
solaris pimd eigrpd bgpd/rfp-example/librfp \
51-
bgpd/rfp-example/rfptest tools babeld \
52+
solaris pimd bgpd/rfp-example/librfp \
53+
bgpd/rfp-example/rfptest tools \
5254
# end
5355

5456
if PKGSRC

babeld/.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
!*.c
33
!*.h
44
!LICENCE
5-
!Makefile.am
5+
!Makefile
6+
!subdir.am
67
!babeld.conf.sample
7-
!.gitignore
8+
!.gitignore

babeld/Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
all: ALWAYS
2+
@$(MAKE) -s -C .. babeld/babeld
3+
%: ALWAYS
4+
@$(MAKE) -s -C .. babeld/$@
5+
6+
Makefile:
7+
#nothing
8+
ALWAYS:
9+
.PHONY: ALWAYS makefiles
10+
.SUFFIXES:

babeld/Makefile.am

-29
This file was deleted.

babeld/subdir.am

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
#
2+
# babeld
3+
#
4+
5+
if BABELD
6+
noinst_LIBRARIES += babeld/libbabel.a
7+
sbin_PROGRAMS += babeld/babeld
8+
dist_examples_DATA += babeld/babeld.conf.sample
9+
endif
10+
11+
babeld_libbabel_a_SOURCES = \
12+
babeld/babel_filter.c \
13+
babeld/babel_interface.c \
14+
babeld/babel_memory.c \
15+
babeld/babel_zebra.c \
16+
babeld/babeld.c \
17+
babeld/kernel.c \
18+
babeld/message.c \
19+
babeld/neighbour.c \
20+
babeld/net.c \
21+
babeld/resend.c \
22+
babeld/route.c \
23+
babeld/source.c \
24+
babeld/util.c \
25+
babeld/xroute.c \
26+
# end
27+
28+
noinst_HEADERS += \
29+
babeld/babel_filter.h \
30+
babeld/babel_interface.h \
31+
babeld/babel_main.h \
32+
babeld/babel_memory.h \
33+
babeld/babel_zebra.h \
34+
babeld/babeld.h \
35+
babeld/kernel.h \
36+
babeld/message.h \
37+
babeld/neighbour.h \
38+
babeld/net.h \
39+
babeld/resend.h \
40+
babeld/route.h \
41+
babeld/source.h \
42+
babeld/util.h \
43+
babeld/xroute.h \
44+
# end
45+
46+
babeld_babeld_SOURCES = babeld/babel_main.c
47+
babeld_babeld_LDADD = babeld/libbabel.a lib/libfrr.la @LIBCAP@

configure.ac

+2-18
Original file line numberDiff line numberDiff line change
@@ -1274,12 +1274,7 @@ case "$host_os" in
12741274
esac
12751275
AM_CONDITIONAL(NHRPD, test "x$NHRPD" = "xnhrpd")
12761276

1277-
if test "${enable_eigrpd}" = "no";then
1278-
EIGRPD=""
1279-
else
1280-
EIGRPD="eigrpd"
1281-
fi
1282-
AM_CONDITIONAL(EIGRPD, test "x$EIGRPD" = "xeigrpd")
1277+
AM_CONDITIONAL(EIGRPD, test "${enable_eigrpd}" != "no")
12831278

12841279
if test "${enable_watchfrr}" = "no";then
12851280
WATCHFRR=""
@@ -1298,15 +1293,8 @@ if test "${enable_ospfapi}" != "no";then
12981293
fi
12991294

13001295
AM_CONDITIONAL(OSPFCLIENT, test "x$OSPFCLIENT" = "xospfclient")
1301-
13021296
AM_CONDITIONAL(RIPNGD, test "${enable_ripngd}" != "no")
1303-
1304-
case "${enable_babeld}" in
1305-
"no" ) BABELD="";;
1306-
* ) BABELD="babeld";;
1307-
esac
1308-
AM_CONDITIONAL(BABELD, test "x$BABELD" = "xbabeld")
1309-
1297+
AM_CONDITIONAL(BABELD, test "${enable_babeld}" != "no")
13101298
AM_CONDITIONAL(OSPF6D, test "${enable_ospf6d}" != "no")
13111299
AM_CONDITIONAL(ISISD, test "${enable_isisd}" != "no")
13121300

@@ -1347,9 +1335,7 @@ AC_SUBST(DOC)
13471335
AC_SUBST(RFPTEST)
13481336
AC_SUBST(LIBRFP)
13491337
AC_SUBST(RFPINC)
1350-
AC_SUBST(BABELD)
13511338
AC_SUBST(BGPD)
1352-
AC_SUBST(EIGRPD)
13531339
AC_SUBST(WATCHFRR)
13541340
AC_SUBST(ISISD)
13551341
AC_SUBST(PIMD)
@@ -1804,9 +1790,7 @@ AC_CONFIG_FILES([Makefile
18041790
vtysh/Makefile
18051791
doc/Makefile tests/Makefile
18061792
bgpd/rfp-example/rfptest/Makefile bgpd/rfp-example/librfp/Makefile
1807-
babeld/Makefile
18081793
pimd/Makefile
1809-
eigrpd/Makefile
18101794
tools/Makefile
18111795
redhat/frr.spec
18121796
snapcraft/snapcraft.yaml

eigrpd/.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Makefile
1+
!Makefile
22
Makefile.in
33
*.o
44
*.a

eigrpd/Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
all: ALWAYS
2+
@$(MAKE) -s -C .. eigrpd/eigrpd
3+
%: ALWAYS
4+
@$(MAKE) -s -C .. eigrpd/$@
5+
6+
Makefile:
7+
#nothing
8+
ALWAYS:
9+
.PHONY: ALWAYS makefiles
10+
.SUFFIXES:

eigrpd/Makefile.am

-46
This file was deleted.

eigrpd/subdir.am

+59
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
#
2+
# eigrpd
3+
#
4+
5+
if EIGRPD
6+
noinst_LIBRARIES += eigrpd/libeigrp.a
7+
sbin_PROGRAMS += eigrpd/eigrpd
8+
dist_examples_DATA += eigrpd/eigrpd.conf.sample
9+
endif
10+
11+
eigrpd_libeigrp_a_SOURCES = \
12+
eigrpd/eigrp_dump.c \
13+
eigrpd/eigrp_filter.c \
14+
eigrpd/eigrp_fsm.c \
15+
eigrpd/eigrp_hello.c \
16+
eigrpd/eigrp_interface.c \
17+
eigrpd/eigrp_memory.c \
18+
eigrpd/eigrp_neighbor.c \
19+
eigrpd/eigrp_network.c \
20+
eigrpd/eigrp_packet.c \
21+
eigrpd/eigrp_query.c \
22+
eigrpd/eigrp_reply.c \
23+
eigrpd/eigrp_siaquery.c \
24+
eigrpd/eigrp_siareply.c \
25+
eigrpd/eigrp_snmp.c \
26+
eigrpd/eigrp_topology.c \
27+
eigrpd/eigrp_update.c \
28+
eigrpd/eigrp_vty.c \
29+
eigrpd/eigrp_zebra.c \
30+
eigrpd/eigrpd.c \
31+
# end
32+
33+
eigrpdheaderdir = $(pkgincludedir)/eigrpd
34+
eigrpdheader_HEADERS = \
35+
eigrpd/eigrp_dump.h \
36+
eigrpd/eigrp_topology.h \
37+
eigrpd/eigrpd.h \
38+
# end
39+
40+
noinst_HEADERS += \
41+
eigrpd/eigrp_const.h \
42+
eigrpd/eigrp_filter.h \
43+
eigrpd/eigrp_fsm.h \
44+
eigrpd/eigrp_interface.h \
45+
eigrpd/eigrp_macros.h \
46+
eigrpd/eigrp_memory.h \
47+
eigrpd/eigrp_neighbor.h \
48+
eigrpd/eigrp_network.h \
49+
eigrpd/eigrp_packet.h \
50+
eigrpd/eigrp_snmp.h \
51+
eigrpd/eigrp_structs.h \
52+
eigrpd/eigrp_vty.h \
53+
eigrpd/eigrp_zebra.h \
54+
# end
55+
56+
eigrpd_eigrpd_SOURCES = eigrpd/eigrp_main.c
57+
eigrpd_eigrpd_LDADD = eigrpd/libeigrp.a lib/libfrr.la @LIBCAP@
58+
59+
EXTRA_DIST += eigrpd/EIGRP-MIB.txt

0 commit comments

Comments
 (0)