X-Git-Url: https://projects.mako.cc/source/wikiq/blobdiff_plain/315071f4419c2e34fd367e09d24818807353c91e..d470ebe8c38c0df66a84db23ef32681278bda2fe:/Makefile?ds=inline diff --git a/Makefile b/Makefile index 9419777..b7df471 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,21 @@ +CXXFLAGS = -O3 +CFLAGS = $(CXXFLAGS) +OBJECTS = wikiq.o md5.o + all: wikiq -wikiq: wikiq.c - gcc -O3 wikiq.c -o wikiq -lexpat +wikiq: $(OBJECTS) + $(CXX) $(CXXFLAGS) $(OBJECTS) -lpcrecpp -lpcre -lexpat -o wikiq + +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 clean +.PHONY: all gprof