ghostq: ghostq.cpp quickselect.cpp Heap.h sort.h makefile ghostq.proto do-gcc.sh mkstemp
	bash ./do-gcc.sh

ghostq.proto: ghostq.cpp
	./cpp-proto-gen.pl ghostq.cpp > ghostq.proto

tags: ghostq.cpp
	ctags --language-force=c++ ghostq.cpp


clean:
	rm -fv gcc-output.log ghostq ghostq.proto ghostq-cleansed.cpp

mkstemp:
	gcc mkstemp.c -o mkstemp
