X-Git-Url: https://projects.mako.cc/source/wikiq/blobdiff_plain/4ea02e87e6e73828bf7a6037c45c0b602998f15e..692cfae7c8427e2d2e46dbe652e9119036907508:/Makefile diff --git a/Makefile b/Makefile index bf436d0..12459ed 100644 --- 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