Makefile
author Mahlon E. Smith <mahlon@laika.com>
Sun, 18 Feb 2018 18:16:37 -0800
changeset 8 1ef3f2d6d10e
parent 5 a1276c3d39eb
child 9 aa9d537f7067
permissions -rw-r--r--
Multiple changes. - There's still a delay somewhere with threading in the socket read() that impacts simultaneous client connections. After a bunch of experimenting with Channel message passing, rip it all out in favor of a simple fork()ing server. - Remove the color option, just check stdout for a tty instead to make it automatic. - Better error handling for malformed packets/samples.


FILES = netdata_tsrelay.nim

default: development

debug: ${FILES}
	nim --assertions:on --threads:on --nimcache:.cache c ${FILES}

development: ${FILES}
	# can use gdb with this...
	nim --debugInfo --threads:on --linedir:on -d:testing -d:nimTypeNames --nimcache:.cache c ${FILES}

debugger: ${FILES}
	nim --debugger:on --threads:on --nimcache:.cache c ${FILES}

release: ${FILES}
	nim -d:release --opt:speed --parallelBuild:0 --threads:on --nimcache:.cache c ${FILES}

docs:
	nim doc ${FILES}
	#nim buildIndex ${FILES}

clean:
	cat .hgignore | xargs rm -rf