summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fc279e2
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+SUBDIRS = kernel client server
+SRCDIR = .
+TO_TAR = ./{Makefile,README,COPYING,CREDITS,{kernel,client,server}/{*.c,*.h,Makefile},common/*.h}
+
+all-recursive:
+ for dir in $(SUBDIRS); do cd $$dir; $(MAKE) all; cd ..; done
+
+all-clean:
+ for dir in $(SUBDIRS); do cd $$dir; $(MAKE) clean; cd ..; done
+
+all: all-recursive
+
+clean: all-clean
+
+tar:
+ cd $(SRCDIR)
+ dirname=`basename $(PWD)`; cd ..; \
+ tar czfv $$dirname.tar.gz $$dirname/$(TO_TAR)