1999-01-10 00:18:32 +00:00
|
|
|
# Makefile for the BIRD Internet Routing Daemon
|
|
|
|
# (c) 1999 Martin Mares <mj@ucw.cz>
|
|
|
|
|
|
|
|
include Rules
|
|
|
|
|
|
|
|
srcdir_abs := $(shell cd $(srcdir) ; pwd)
|
|
|
|
|
1999-04-11 19:28:16 +00:00
|
|
|
.PHONY: all subdir depend clean distclean tags
|
1999-01-10 00:18:32 +00:00
|
|
|
|
1999-04-11 19:28:16 +00:00
|
|
|
all: .dep-stamp subdir $(exedir)/bird
|
1999-01-10 00:18:32 +00:00
|
|
|
|
1999-04-11 19:28:16 +00:00
|
|
|
subdir depend: .dir-stamp
|
1999-01-10 00:18:32 +00:00
|
|
|
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
|
1999-03-04 11:36:26 +00:00
|
|
|
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
1999-01-10 00:18:32 +00:00
|
|
|
|
|
|
|
.dir-stamp:
|
|
|
|
mkdir -p $(static-dirs)
|
|
|
|
touch .dir-stamp
|
|
|
|
|
|
|
|
.dep-stamp:
|
|
|
|
$(MAKE) depend
|
|
|
|
touch .dep-stamp
|
|
|
|
|
1999-04-11 19:28:16 +00:00
|
|
|
tags:
|
|
|
|
cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) -name *.[chY]`
|
|
|
|
|
1999-01-10 00:18:32 +00:00
|
|
|
clean:
|
1999-04-01 15:33:52 +00:00
|
|
|
find . -name "*.[oa]" -or -name core -or -name depend | xargs rm -f
|
1999-01-10 00:18:32 +00:00
|
|
|
rm -f $(exedir)/bird .dep-stamp
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f config.* configure sysdep/autoconf.h Makefile Rules
|
|
|
|
rm -rf .dir-stamp $(clean-dirs)
|