]> projects.mako.cc - wikiq/blobdiff - Makefile
regex against article diffs and checksum-based revert detection
[wikiq] / Makefile
index bf436d02fd47dfc4bdf8705f64085cc6f009e13f..12459edfc806e0a20ed8d487256272c94d2e430a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,20 @@
 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) -lpcrecpp -lexpat wikiq.cpp $(OBJECTS) -o wikiq
+
+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

Benjamin Mako Hill || Want to submit a patch?