summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-04-22 14:58:34 +0200
committerMartin Mares <mj@ucw.cz>1998-04-22 14:58:34 +0200
commit58ef912c6babf1866193ab04674a5866dd761f13 (patch)
tree244af1a4acb9feac08b45800587a06653a6ff264 /Makefile
parentb60f7489148d021cb541414b8788f795ec4378fa (diff)
downloadbird-58ef912c6babf1866193ab04674a5866dd761f13.tar
bird-58ef912c6babf1866193ab04674a5866dd761f13.zip
First look at data structures. More to come tomorrow...
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0c62fe5
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,23 @@
+# Makefile for the BIRD Internet Routing Daemon
+# (c) 1998 Martin Mares <mj@ucw.cz>
+
+TOPDIR=$(shell pwd)
+CFLAGS=-O2 -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses -I$(TOPDIR)
+
+PROTOCOLS=
+DIRS=sysdep/linux nest $(protocols) lib
+ARCHS=$(join $(addsuffix /,$(DIRS)),$(subst /,_,$(addsuffix .a,$(DIRS))))
+
+export
+
+all: all-dirs bird
+
+all-dirs:
+ set -e ; for a in $(DIRS) ; do $(MAKE) -C $$a ; done
+
+bird: $(ARCHS)
+ $(CC) $(LDFLAGS) -o $@ $^
+
+clean:
+ rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core`
+ rm -f bird