]> projects.mako.cc - wikiq/blobdiff - Makefile
Merge branch 'patch-3' of github.com:nemobis/wikiq
[wikiq] / Makefile
index eec9e75f64bba39161410ec220c538e051a715d5..b7df4717f1748f2c548b6ac42bed89844d2c1370 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,21 @@
+CXXFLAGS = -O3 
+CFLAGS = $(CXXFLAGS)
+OBJECTS = wikiq.o md5.o 
+
 all: wikiq
 
 all: wikiq
 
-wikiq: wikiq.c
-       gcc wikiq.c -o wikiq -lexpat
+wikiq: $(OBJECTS)
+       $(CXX) $(CXXFLAGS) $(OBJECTS) -lpcrecpp -lpcre -lexpat -o wikiq
+
+md5.o: md5.h
+
+clean:
+       rm -f wikiq $(OBJECTS)
+
+static: $(OBJECTS)
+       $(CXX) $(CXXFLAGS) $(OBJECTS) -static -lpcrecpp -lpcre -lexpat -o wikiq
+
+gprof:
+       $(MAKE) CFLAGS=-pg wikiq
 
 
-.PHONY: all
+.PHONY: all gprof

Benjamin Mako Hill || Want to submit a patch?