Revert "remove extra object from makefile"

This reverts commit 1825fbb43d007fe3c781010c4b70d7c6b003fd07.
make tty path a command line parameter