X-Git-Url: https://projects.mako.cc/source/wikiq/blobdiff_plain/4ea02e87e6e73828bf7a6037c45c0b602998f15e..HEAD:/Makefile diff --git a/Makefile b/Makefile index bf436d0..b7df471 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,19 @@ -CXX = g++ -CFLAGS = -O3 +CXXFLAGS = -O3 +CFLAGS = $(CXXFLAGS) +OBJECTS = wikiq.o md5.o all: wikiq -wikiq: wikiq.c - $(CXX) $(CFLAGS) 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