X-Git-Url: https://projects.mako.cc/source/wikiq/blobdiff_plain/315071f4419c2e34fd367e09d24818807353c91e..23bc9bfafc9312bd4f8bb72f22e38c087ef0b0fa:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index 9419777..12459ed 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,22 @@ +CXX = g++ +CFLAGS = -O3 +OBJECTS = disorder.o md5.o + all: wikiq -wikiq: wikiq.c - gcc -O3 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 clean +.PHONY: all gprof