X-Git-Url: https://projects.mako.cc/source/wikiq/blobdiff_plain/dd62dbb1c7db0544532a2a006a3e712aa28fd35e..a8bbe4703654e6d6131368c0c42995f8933b3dce:/Makefile diff --git a/Makefile b/Makefile index eec9e75..e92da1f 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,22 @@ +CXX = g++ +CFLAGS = -O3 +OBJECTS = disorder.o md5.o + all: wikiq -wikiq: wikiq.c - gcc wikiq.c -o wikiq -lexpat +wikiq: wikiq.c $(OBJECTS) + $(CXX) $(CFLAGS) wikiq.c $(OBJECTS) -o wikiq -lexpat + +disorder.o: disorder.c disorder.h + $(CXX) $(CFLAGS) -c disorder.c + +md5.o: md5.c md5.h + $(CXX) $(CFLAGS) -c md5.c -lm + +clean: + rm -f wikiq $(OBJECTS) + +gprof: + $(MAKE) CFLAGS=-pg wikiq -.PHONY: all +.PHONY: all gprof