X-Git-Url: https://projects.mako.cc/source/wikiq/blobdiff_plain/4ea02e87e6e73828bf7a6037c45c0b602998f15e..a8bbe4703654e6d6131368c0c42995f8933b3dce:/Makefile?ds=sidebyside diff --git a/Makefile b/Makefile index bf436d0..e92da1f 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,20 @@ CXX = g++ CFLAGS = -O3 +OBJECTS = disorder.o md5.o all: wikiq -wikiq: wikiq.c - $(CXX) $(CFLAGS) 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 + rm -f wikiq $(OBJECTS) gprof: $(MAKE) CFLAGS=-pg wikiq