summaryrefslogtreecommitdiffstats
path: root/Rules
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-01-10 01:18:32 +0100
committerMartin Mares <mj@ucw.cz>1999-01-10 01:18:32 +0100
commit49e7e5ee0b2848f5bf120a962e2e7eb11b86566a (patch)
tree56e7c215f49ab59792b5cf0194fa5045a66943c7 /Rules
parent2f9bcf9713523f6fefecd143cc2aa2a8dda7f27f (diff)
downloadbird-49e7e5ee0b2848f5bf120a962e2e7eb11b86566a.tar
bird-49e7e5ee0b2848f5bf120a962e2e7eb11b86566a.zip
New makefiles. Includes support for out-of-source-tree builds.
Diffstat (limited to 'Rules')
-rw-r--r--Rules50
1 files changed, 0 insertions, 50 deletions
diff --git a/Rules b/Rules
deleted file mode 100644
index d038f80..0000000
--- a/Rules
+++ /dev/null
@@ -1,50 +0,0 @@
-# Makefile for the BIRD Internet Routing Daemon
-# (c) 1998 Martin Mares <mj@ucw.cz>
-
-THISDIR=$(shell pwd)
-RELDIR=$(subst $(TOPDIR)/,,$(THISDIR))
-ONAME=$(subst /,_,$(RELDIR)).o
-
-ifndef SRCS
-SRCS=$(subst .o,.c,$(OBJS))
-endif
-
-.PHONY: all this dep
-
-all:
- @echo "Please run the top-level Makefile instead."
- @exit 1
-
-ifdef OBJS
-
-ifdef LIB
-
-this: $(LIB)
-
-$(LIB): $(OBJS)
- rm -f $(LIB)
- ar rcs $(LIB) $(OBJS)
- ranlib $(LIB)
-
-else
-
-this: $(ONAME)
-
-$(ONAME): $(OBJS)
- $(LD) -r -o $(ONAME) $(OBJS)
-
-endif
-
-dep: $(SRCS)
- rm -f .depend
- for a in $(SRCS) ; do gcc $(CPPFLAGS) -MM $$a >>.depend ; done
-
-else
-
-dep:
-
-endif
-
-ifneq ($(wildcard .depend),)
-include .depend
-endif