summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2009-08-10 10:16:00 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2009-08-10 10:16:00 +0200
commitb92c8e30191dd757c76239076eda82d0065f2348 (patch)
tree10256b1c62f2fe346d321ec458016f384d794b65 /tools
parent54d70d3ebb20c36f483cde9d7d5b877772d4884e (diff)
parent71a9574a515613cded23b20f260a88784bcd4286 (diff)
downloadbird-b92c8e30191dd757c76239076eda82d0065f2348.tar
bird-b92c8e30191dd757c76239076eda82d0065f2348.zip
Merge branch 'master' into dev
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.in16
1 files changed, 12 insertions, 4 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in
index 6307cf0..eeef8f5 100644
--- a/tools/Makefile.in
+++ b/tools/Makefile.in
@@ -11,17 +11,25 @@ daemon: $(exedir)/bird
client: $(exedir)/birdc
-subdir depend: .dir-stamp
+bird-dep := $(addsuffix /all.o, $(static-dirs)) conf/all.o lib/birdlib.a
+
+$(bird-dep): sysdep/paths.h .dep-stamp subdir
+
+birdc-dep := client/all.o lib/birdlib.a
+
+$(birdc-dep): sysdep/paths.h .dep-stamp subdir
+
+subdir depend: sysdep/paths.h .dir-stamp
set -e ; for a in $(dynamic-dirs) ; do $(MAKE) -C $$a $@ ; done
set -e ; for a in $(static-dirs) $(client-dirs) ; do $(MAKE) -C $$a -f $(srcdir_abs)/$$a/Makefile $@ ; done
-$(exedir)/bird: $(addsuffix /all.o, $(static-dirs)) conf/all.o lib/birdlib.a
+$(exedir)/bird: $(bird-dep)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
-$(exedir)/birdc: client/all.o lib/birdlib.a
+$(exedir)/birdc: $(birdc-dep)
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS) $(CLIENT_LIBS)
-.dir-stamp:
+.dir-stamp: sysdep/paths.h
mkdir -p $(static-dirs) $(client-dirs) $(doc-dirs)
touch .dir-stamp