all:
	$(CC) $(CFLAGS) -o dispatch-example async-worker.cpp async-Dispatch-example.cpp -lzmq -lOpenThreads -luuid -lrt
	$(CC) $(CFLAGS) -o worker-example async-worker.cpp async-Worker-example.cpp -lzmq -lOpenThreads -luuid -lrt
	$(CC) $(CFLAGS) -o static-worker-example async-worker.cpp async-StaticWorker-example.cpp -lzmq -lOpenThreads -luuid -lrt

	@echo "8x --- Dispatch example: --- x8"
	@echo

	./dispatch-example

	@echo
	@sleep 5
	@echo
	@echo "8x --- Worker example: --- x8"
	@echo

	./worker-example

	@echo
	@sleep 5
	@echo
	@echo "8x --- StaticWorker example: --- x8"
	@echo

	./static-worker-example

	@echo
	@sleep 5
	@echo
	@echo "Documentation can be regenerated with Doxygen using 'make dox'"
	@echo "Prior documentation can be found in ./manual"

dox:
	doxygen Doxyfile

