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