all: tomlc99/libtoml.a ptQueue/out/ptQueue.a wsServer/libws.a flatcc

tomlc99:
	@git clone https://github.com/cktan/tomlc99

tomlc99/libtoml.a: tomlc99
	@make -C tomlc99 libtoml.a


flatcc_src:
	@git clone https://github.com/dvidelabs/flatcc

flatcc: flatcc/bin/flatcc
flatcc/lib/libflatccrt.a: flatcc/bin/flatcc

flatcc/bin/flatcc: flatcc_src
	@flatcc/scripts/initbuild.sh make
	@flatcc/scripts/build.sh


ptQueue:
	@git clone ssh://git@git.nikto-b.ru:2223/nikto_b/ptQueue.git

ptQueue/out/ptQueue.a: ptQueue
	@make -C ptQueue

wsServer:
	@git clone https://github.com/Theldus/wsServer

wsServer/libws.a: wsServer
	@make -C wsServer

clean:
	@rm -rf wsServer ptQueue tomlc99 flatcc


.PHONY: all clean

