X-Git-Url: https://projects.mako.cc/source/wikiq/blobdiff_plain/49f60e893acb91ef164f6051e9f2316c84931e00..b1d72e4b54fe293ecd442c6dedc0d91b3b2519b1:/Makefile diff --git a/Makefile b/Makefile index 41d75ca..cc0e56f 100644 --- a/Makefile +++ b/Makefile @@ -1,12 +1,22 @@ -CXX = g++ -CFLAGS = -O3 +CXXFLAGS = -O3 +CFLAGS = $(CXXFLAGS) +OBJECTS = wikiq.o md5.o disorder.o 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: - rm -f wikiq + 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