####### Change these for different location ######
BINDIR=/usr/local/bin
MANDIR=/usr/local/man
##################################################

CFLAGS=-Wall #-DDEBUG

all: tcp_repeater tcp_repeater.1 help

help:
	@echo "You can also do:"
	@echo "  make install - installs the thing under /usr/local/"

tcp_repeater: tcp_repeater.o

tcp_repeater.o: tcp_repeater.c tcp_repeater.h

install: tcp_repeater tcp_repeater.1
	install tcp_repeater ${BINDIR}
	install tcp_repeater.1 ${MANDIR}/man1
	@echo "To uninstall, please remove the files:"
	@echo "   ${BINDIR}/tcp_repeater"
	@echo "   ${MANDIR}/man1/tcp_repeater.1"

tgz: tcp_repeater tcp_repeater.1
	cd ..;tar --exclude tcp_repeater/tcp_repeater.o --exclude tcp_repeater/tcprepeater*tar.gz --exclude tcp_repeater/RCS --exclude tcp_repeater/.emacs.desktop -cvzf tcprepeater-0.99.1.tar.gz tcp_repeater/
	mv ../tcprepeater-0.99.1.tar.gz .

clean:
	rm -f tcp_repeater tcp_repeater.o tcp_repeater.c tcp_repeater.h tcp_repeater.1


