]> projects.mako.cc - wikiq/blobdiff - Makefile
buffer storage of text data, structure cleanup
[wikiq] / Makefile
index 941977743c3728ab9f09a29470cc6d759cb94d2f..bf436d02fd47dfc4bdf8705f64085cc6f009e13f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,15 @@
+CXX = g++
+CFLAGS = -O3
+
 all: wikiq
 
 wikiq: wikiq.c
-       gcc -O3 wikiq.c -o wikiq -lexpat
+       $(CXX) $(CFLAGS) wikiq.c -o wikiq -lexpat
 
 clean:
        rm -f wikiq
 
-.PHONY: all clean
+gprof:
+       $(MAKE) CFLAGS=-pg wikiq
+
+.PHONY: all gprof

Benjamin Mako Hill || Want to submit a patch?