]> projects.mako.cc - wikiq/blobdiff - Makefile
added (broken, but running) diff routines for block-level diffs
[wikiq] / Makefile
index 41d75cae0a174b9d75814b5133c97bd8d62611f5..e1d898a740de586ff5b22c5ae9cee7d56805d17e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,12 +1,22 @@
 CXX = g++
 CFLAGS = -O3
+OBJECTS = disorder.o md5.o
 
 all: wikiq
 
-wikiq: wikiq.c
-       $(CXX) $(CFLAGS) wikiq.c -o wikiq -lexpat
+wikiq: wikiq.cpp $(OBJECTS)
+       $(CXX) $(CFLAGS) wikiq.cpp $(OBJECTS) -o wikiq -lexpat
+
+disorder.o: disorder.c disorder.h
+       $(CXX) $(CFLAGS) -c disorder.c
+
+md5.o: md5.c md5.h
+       $(CXX) $(CFLAGS) -c md5.c -lm
 
 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?