SOURCE  = makefile tcpchat.c
VERSION = 1.3

tcpchat: tcpchat.c makefile
	gcc -O3 -DNOMK tcpchat.c -o tcpchat

clean:
	rm -f tcpchat tcpchat.o tcpchat-$(VERSION).tgz

distrib: tcpchat-$(VERSION).tgz

tcpchat-$(VERSION).tgz: $(SOURCE)
	tar cvf - $(SOURCE) | gzip -9 -c >tcpchat-$(VERSION).tgz
