X-Git-Url: https://projects.mako.cc/source/wikiq/blobdiff_plain/49f60e893acb91ef164f6051e9f2316c84931e00..e861323a25caf19a4dbda73b69f6400b5f183da3:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 41d75ca..12459ed 100644 --- 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) -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 -.PHONY: all +.PHONY: all gprof