summaryrefslogtreecommitdiffstats
path: root/Rules
diff options
context:
space:
mode:
Diffstat (limited to 'Rules')
-rw-r--r--Rules12
1 files changed, 12 insertions, 0 deletions
diff --git a/Rules b/Rules
new file mode 100644
index 0000000..f6baacd
--- /dev/null
+++ b/Rules
@@ -0,0 +1,12 @@
+# Makefile for the BIRD Internet Routing Daemon
+# (c) 1998 Martin Mares <mj@ucw.cz>
+
+THISDIR=$(shell pwd)
+RELDIR=$(subst $(TOPDIR)/,,$(THISDIR))
+ANAME=$(subst /,_,$(RELDIR)).a
+
+all: $(ANAME)
+
+$(ANAME): $(OBJS)
+ rm -f $(ANAME)
+ ar rcs $(ANAME) $(OBJS)