summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..fa2d1bc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,34 @@
+VERSION=201000618
+DIST=mcwm-$(VERSION)
+DISTFILES=LICENSE Makefile README TODO WISHLIST config.h mcwm.c
+
+CC=gcc
+CFLAGS=-g -std=c99 -Wall -I/usr/local/include -L/usr/local/lib -lxcb \
+ -lxcb-keysyms
+
+# Define -DDEBUG for lots of debug information.
+
+#CFLAGS=-g -std=c99 -Wall -I/usr/local/include -L/usr/local/lib -lxcb -lxcb-keysyms \
+# -DDMALLOC -DMALLOC_FUNC_CHECK -ldmalloc
+
+
+RM=/bin/rm
+
+TARGETS=mcwm
+
+all: $(TARGETS)
+
+$(DIST).tar.bz2:
+ mkdir $(DIST)
+ cp $(DISTFILES) $(DIST)/
+ tar cf $(DIST).tar --exclude .git $(DIST)
+ bzip2 -9 $(DIST).tar
+ $(RM) -rf $(DIST)
+
+dist: $(DIST).tar.bz2
+
+clean:
+ $(RM) -f $(TARGETS)
+
+distclean: clean
+ $(RM) -f $(DIST).tar.bz2