]> projects.mako.cc - wikiq/blobdiff - Makefile
change diff regex options from -n and -r to -N and -R
[wikiq] / Makefile
index bf436d02fd47dfc4bdf8705f64085cc6f009e13f..cc0e56f806924b23304046c2361bfdce5c541001 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,20 @@
-CXX = g++
-CFLAGS = -O3
+CXXFLAGS = -O3 
+CFLAGS = $(CXXFLAGS)
+OBJECTS = wikiq.o md5.o disorder.o 
 
 all: wikiq
 
 
 all: wikiq
 
-wikiq: wikiq.c
-       $(CXX) $(CFLAGS) wikiq.c -o wikiq -lexpat
+wikiq: $(OBJECTS)
+       $(CXX) $(CXXFLAGS) $(OBJECTS) -lpcrecpp -lpcre -lexpat -o wikiq
+
+disorder.o: disorder.h
+md5.o: md5.h
 
 clean:
 
 clean:
-       rm -f wikiq
+       rm -f wikiq $(OBJECTS)
+
+static: $(OBJECTS)
+       $(CXX) $(CXXFLAGS) $(OBJECTS) -static -lpcrecpp -lpcre -lexpat -o wikiq
 
 gprof:
        $(MAKE) CFLAGS=-pg wikiq
 
 gprof:
        $(MAKE) CFLAGS=-pg wikiq

Benjamin Mako Hill || Want to submit a patch?