]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Integrate RTRlib into BIRD's build system
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Sun, 27 Sep 2015 22:18:35 +0000 (00:18 +0200)
committerPavel Tvrdík <pawel.tvrdik@gmail.cz>
Sun, 27 Sep 2015 22:32:16 +0000 (00:32 +0200)
You need to do manually still:
 $ cd rtrlib && cmake .

tools/Makefile-top.in
tools/Makefile.in
tools/Rules.in

index cf59f7a1742717f5d3a70e4291f7a23be6513528..0244a5630835535f80caa94fe71a662bf95bcc7b 100644 (file)
@@ -4,6 +4,7 @@
 objdir=@objdir@
 
 all depend tags install install-docs:
+       $(MAKE) -C rtrlib
        $(MAKE) -C $(objdir) $@
 
 docs userdocs progdocs:
index 01bb7a7c1459bbbf12ba670baaf1af8e3c5cf956..f19aceb24f382516b10c3a416ca538812409df78 100644 (file)
@@ -13,7 +13,7 @@ birdc: $(exedir)/birdc
 
 birdcl: $(exedir)/birdcl
 
-bird-dep := $(addsuffix /all.o, $(static-dirs)) conf/all.o lib/birdlib.a
+bird-dep := $(addsuffix /all.o, $(static-dirs)) conf/all.o lib/birdlib.a ../rtrlib/librtr.a
 
 $(bird-dep): sysdep/paths.h .dep-stamp subdir
 
index f00c85d1e95bcf2acb8289e3b693a1193f25b421..ea05b287a558417230c09415c649530fd39eaf0b 100644 (file)
@@ -19,7 +19,7 @@ doc-dir-paths := $(doc-dirs)
 all-dirs:=$(static-dirs) $(dynamic-dirs) $(client-dirs) $(doc-dirs)
 clean-dirs:=$(all-dirs) proto sysdep
 
-CPPFLAGS=-I$(root-rel) -I$(srcdir) @CPPFLAGS@
+CPPFLAGS=-I$(root-rel) -I$(srcdir) -I$(srcdir)/rtrlib @CPPFLAGS@
 CFLAGS=$(CPPFLAGS) @CFLAGS@
 LDFLAGS=@LDFLAGS@
 LIBS=@LIBS@