]> projects.mako.cc - wikiq/blobdiff - Makefile
added shannon_H entropy metric for each revision
[wikiq] / Makefile
index 41d75cae0a174b9d75814b5133c97bd8d62611f5..fc80d1a7864e3d3bc2a9fa4338e69962feea5b37 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,19 @@
 CXX = g++
 CFLAGS = -O3
+OBJECTS = disorder.o
 
 all: wikiq
 
-wikiq: wikiq.c
-       $(CXX) $(CFLAGS) wikiq.c -o wikiq -lexpat
+wikiq: wikiq.c $(OBJECTS)
+       $(CXX) $(CFLAGS) wikiq.c $(OBJECTS) -o wikiq -lexpat
+
+disorder.o: disorder.c
+       $(CXX) $(CFLAGS) -c disorder.c
 
 clean:
-       rm -f wikiq
+       rm -f wikiq $(OBJECTS)
+
+gprof:
+       $(MAKE) CFLAGS=-pg wikiq
 
-.PHONY: all
+.PHONY: all gprof

Benjamin Mako Hill || Want to submit a patch?