diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2017-08-04 16:49:15 +0200 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2017-08-04 19:09:14 +0200 |
commit | b6f5781c33d29092a3c3dc40778a6e926a65f65a (patch) | |
tree | 8cd875c111e4be07bafc29362779207dc69ebdab /babeld | |
parent | build: non-recursive ldpd (diff) | |
download | frr-b6f5781c33d29092a3c3dc40778a6e926a65f65a.tar.xz frr-b6f5781c33d29092a3c3dc40778a6e926a65f65a.zip |
build: non-recursive babeld & eigrpd
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'babeld')
-rw-r--r-- | babeld/.gitignore | 5 | ||||
-rw-r--r-- | babeld/Makefile | 10 | ||||
-rw-r--r-- | babeld/Makefile.am | 29 | ||||
-rw-r--r-- | babeld/subdir.am | 47 |
4 files changed, 60 insertions, 31 deletions
diff --git a/babeld/.gitignore b/babeld/.gitignore index 8384763a6..fbdb90f67 100644 --- a/babeld/.gitignore +++ b/babeld/.gitignore @@ -2,6 +2,7 @@ !*.c !*.h !LICENCE -!Makefile.am +!Makefile +!subdir.am !babeld.conf.sample -!.gitignore
\ No newline at end of file +!.gitignore diff --git a/babeld/Makefile b/babeld/Makefile new file mode 100644 index 000000000..ae125e6e4 --- /dev/null +++ b/babeld/Makefile @@ -0,0 +1,10 @@ +all: ALWAYS + @$(MAKE) -s -C .. babeld/babeld +%: ALWAYS + @$(MAKE) -s -C .. babeld/$@ + +Makefile: + #nothing +ALWAYS: +.PHONY: ALWAYS makefiles +.SUFFIXES: diff --git a/babeld/Makefile.am b/babeld/Makefile.am deleted file mode 100644 index 39f748e7f..000000000 --- a/babeld/Makefile.am +++ /dev/null @@ -1,29 +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 -DEFS = @DEFS@ -DSYSCONFDIR=\"$(sysconfdir)/\" -INSTALL_SDATA=@INSTALL@ -m 600 - -AM_CFLAGS = $(PICFLAGS) $(WERROR) -AM_LDFLAGS = $(PILDFLAGS) - -noinst_LIBRARIES = libbabel.a -sbin_PROGRAMS = babeld - -libbabel_a_SOURCES = \ - babel_zebra.c net.c kernel.c util.c source.c neighbour.c \ - route.c xroute.c message.c resend.c babel_interface.c babeld.c \ - babel_filter.c babel_memory.c - -noinst_HEADERS = \ - babel_zebra.h net.h kernel.h util.h source.h neighbour.h \ - route.h xroute.h message.h resend.h babel_interface.h babeld.h \ - babel_filter.h babel_main.h babel_memory.h - -babeld_SOURCES = \ - babel_main.c $(libbabel_a_SOURCES) - -babeld_LDADD = ../lib/libfrr.la @LIBCAP@ - -examplesdir = $(exampledir) -dist_examples_DATA = babeld.conf.sample diff --git a/babeld/subdir.am b/babeld/subdir.am new file mode 100644 index 000000000..c44cb275c --- /dev/null +++ b/babeld/subdir.am @@ -0,0 +1,47 @@ +# +# babeld +# + +if BABELD +noinst_LIBRARIES += babeld/libbabel.a +sbin_PROGRAMS += babeld/babeld +dist_examples_DATA += babeld/babeld.conf.sample +endif + +babeld_libbabel_a_SOURCES = \ + babeld/babel_filter.c \ + babeld/babel_interface.c \ + babeld/babel_memory.c \ + babeld/babel_zebra.c \ + babeld/babeld.c \ + babeld/kernel.c \ + babeld/message.c \ + babeld/neighbour.c \ + babeld/net.c \ + babeld/resend.c \ + babeld/route.c \ + babeld/source.c \ + babeld/util.c \ + babeld/xroute.c \ + # end + +noinst_HEADERS += \ + babeld/babel_filter.h \ + babeld/babel_interface.h \ + babeld/babel_main.h \ + babeld/babel_memory.h \ + babeld/babel_zebra.h \ + babeld/babeld.h \ + babeld/kernel.h \ + babeld/message.h \ + babeld/neighbour.h \ + babeld/net.h \ + babeld/resend.h \ + babeld/route.h \ + babeld/source.h \ + babeld/util.h \ + babeld/xroute.h \ + # end + +babeld_babeld_SOURCES = babeld/babel_main.c +babeld_babeld_LDADD = babeld/libbabel.a lib/libfrr.la @LIBCAP@ |