mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 01:31:55 +00:00
7a2105becd
over EFence and also hopefully smaller memory overhead, but sadly it's non-free for commercial use). If the DMALLOC_OPTIONS environment variable is not set, switch on `reasonable' checks by default. Also introduced mb_allocz() for cleared mb_alloc().
34 lines
840 B
Makefile
34 lines
840 B
Makefile
# 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 $@ $^ $(LIBS)
|
|
|
|
.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)
|