default:
	make tftp

all:
	make clean
	make tftp

tftp:tftp.o
	c++ tftp.o -o tftp

tftp.o:tftp.cpp tftp.h
	c++ tftp.cpp -c 

test:
	./tftp GET 127.0.0.1 hello.txt
	cat hello.txt
	./tftp PUT 127.0.0.1 love.txt
	cat /tftpboot/love.txt
	echo "LOVE" > /tftpboot/love.txt

clean:
	rm -f *.o core tftp
