diff options
author | Martin Mares <mj@ucw.cz> | 1998-05-15 09:56:13 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-05-15 09:56:13 +0200 |
commit | 25697773b529d80278679978b7416ca9c87e15e9 (patch) | |
tree | 8ca875571e57475a15e978abae76aeda58d82149 /Makefile | |
parent | 62aa008abd627c6862310daf65ffd337a920bdbb (diff) | |
download | bird-25697773b529d80278679978b7416ca9c87e15e9.tar bird-25697773b529d80278679978b7416ca9c87e15e9.zip |
The library is now glued together from generic and OS-dependent parts
by the `mergedirs' script. Few more IP address manipulation functions
and some fixes.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 19 |
1 files changed, 14 insertions, 5 deletions
@@ -2,32 +2,41 @@ # (c) 1998 Martin Mares <mj@ucw.cz> TOPDIR=$(shell pwd) +OBJDIR=obj + CPPFLAGS=-I$(TOPDIR)/sysdep/linux -I$(TOPDIR) OPT=-O2 DEBUG=-g#gdb CFLAGS=$(OPT) $(DEBUG) -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses PROTOCOLS= -DIRS=nest $(PROTOCOLS) lib sysdep/linux sysdep/unix -ARCHS=$(join $(addsuffix /,$(DIRS)),$(subst /,_,$(addsuffix .a,$(DIRS)))) +LIBDIRS=sysdep/linux sysdep/unix lib +STDDIRS=nest $(PROTOCOLS) +DIRS=$(STDDIRS) $(OBJDIR)/lib +PARTOBJS=$(join $(addsuffix /,$(STDDIRS)),$(subst /,_,$(addsuffix .o,$(STDDIRS)))) +LIBS=$(OBJDIR)/lib/birdlib.a export all: .dep all-dirs bird all-dirs: - set -e ; for a in $(DIRS) ; do $(MAKE) -C $$a ; done + set -e ; for a in $(DIRS) ; do $(MAKE) -C $$a all ; done -bird: $(ARCHS) +bird: $(PARTOBJS) $(LIBS) $(CC) $(LDFLAGS) -o $@ $^ .dep: $(MAKE) dep - touch .dep dep: + mkdir -p $(OBJDIR) + tools/mergedirs $(OBJDIR) $(LIBDIRS) +# for a in $(STDDIRS) ; do mkdir -p $(OBJDIR)/$$a ; done set -e ; for a in $(DIRS) ; do $(MAKE) -C $$a dep ; done + touch .dep clean: + rm -rf obj rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*` rm -f bird .dep |