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