summaryrefslogtreecommitdiff
path: root/Makefile
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 /Makefile
parent2f9bcf9713523f6fefecd143cc2aa2a8dda7f27f (diff)
New makefiles. Includes support for out-of-source-tree builds.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile44
1 files changed, 0 insertions, 44 deletions
diff --git a/Makefile b/Makefile
deleted file mode 100644
index d2c04e6c..00000000
--- a/Makefile
+++ /dev/null
@@ -1,44 +0,0 @@
-# Makefile for the BIRD Internet Routing Daemon
-# (c) 1998 Martin Mares <mj@ucw.cz>
-
-TOPDIR=$(shell pwd)
-OBJDIR=obj
-
-CPPFLAGS=-I$(TOPDIR)/$(OBJDIR) -I$(TOPDIR)
-OPT=-O2
-DEBUG=-g#gdb
-CFLAGS=$(OPT) $(DEBUG) -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
-
-PROTOCOLS=rip static
-LIBDIRS=sysdep/linux sysdep/unix lib
-BASEDIRS=nest $(addprefix proto/,$(PROTOCOLS))
-STDDIRS=$(BASEDIRS) $(OBJDIR)/conf
-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 this ; done
-
-bird: $(PARTOBJS) $(LIBS)
- $(CC) $(LDFLAGS) -o $@ $^
-
-.dep:
- $(MAKE) 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
- rm -f config.log config.cache config.status configure sysdep/autoconf.h