summaryrefslogtreecommitdiff
path: root/tools/Makefile.in
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-01-10 00:18:32 +0000
committerMartin Mares <mj@ucw.cz>1999-01-10 00:18:32 +0000
commit49e7e5ee0b2848f5bf120a962e2e7eb11b86566a (patch)
tree56e7c215f49ab59792b5cf0194fa5045a66943c7 /tools/Makefile.in
parent2f9bcf9713523f6fefecd143cc2aa2a8dda7f27f (diff)
New makefiles. Includes support for out-of-source-tree builds.
Diffstat (limited to 'tools/Makefile.in')
-rw-r--r--tools/Makefile.in33
1 files changed, 33 insertions, 0 deletions
diff --git a/tools/Makefile.in b/tools/Makefile.in
new file mode 100644
index 00000000..246872c0
--- /dev/null
+++ b/tools/Makefile.in
@@ -0,0 +1,33 @@
+# Makefile for the BIRD Internet Routing Daemon
+# (c) 1999 Martin Mares <mj@ucw.cz>
+
+include Rules
+
+srcdir_abs := $(shell cd $(srcdir) ; pwd)
+
+.PHONY: all subdir depend clean distclean
+
+all: .dir-stamp .dep-stamp subdir $(exedir)/bird
+
+subdir depend:
+ set -e ; for a in $(dynamic-dirs) ; do $(MAKE) -C $$a $@ ; done
+ set -e ; for a in $(static-dirs) ; do $(MAKE) -C $$a -f $(srcdir_abs)/$$a/Makefile $@ ; done
+
+$(exedir)/bird: $(addsuffix /all.o, $(static-dirs)) conf/all.o lib/birdlib.a
+ $(CC) $(LDFLAGS) -o $@ $^
+
+.dir-stamp:
+ mkdir -p $(static-dirs)
+ touch .dir-stamp
+
+.dep-stamp:
+ $(MAKE) depend
+ touch .dep-stamp
+
+clean:
+ rm -f `find . -name "*.[oa]" -or -name core -or -name depend`
+ rm -f $(exedir)/bird .dep-stamp
+
+distclean: clean
+ rm -f config.* configure sysdep/autoconf.h Makefile Rules
+ rm -rf .dir-stamp $(clean-dirs)