X-Git-Url: https://projects.mako.cc/source/wikiq/blobdiff_plain/dd62dbb1c7db0544532a2a006a3e712aa28fd35e..b709f85fedff91f10850903a0ef609792ca65f51:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index eec9e75..b7df471 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,21 @@ +CXXFLAGS = -O3 +CFLAGS = $(CXXFLAGS) +OBJECTS = wikiq.o md5.o + all: wikiq -wikiq: wikiq.c - gcc wikiq.c -o wikiq -lexpat +wikiq: $(OBJECTS) + $(CXX) $(CXXFLAGS) $(OBJECTS) -lpcrecpp -lpcre -lexpat -o wikiq + +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