X-Git-Url: https://projects.mako.cc/source/wikiq/blobdiff_plain/b685a77fb13d526f5b4b216844a216b0dbab1ed3..dbb6c62b620005faf7049c2e7d5625bfeb3a681e:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index eec9e75..cc0e56f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,22 @@ +CXXFLAGS = -O3 +CFLAGS = $(CXXFLAGS) +OBJECTS = wikiq.o md5.o disorder.o + all: wikiq -wikiq: wikiq.c - gcc 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 $(OBJECTS) + +static: $(OBJECTS) + $(CXX) $(CXXFLAGS) $(OBJECTS) -static -lpcrecpp -lpcre -lexpat -o wikiq + +gprof: + $(MAKE) CFLAGS=-pg wikiq -.PHONY: all +.PHONY: all gprof