The "genkit" script is a Tcl script file which can be used to compile, link, and post-link a Tclkit binary for Unix platforms.
It can be found at https://www.equi4.com/pub/tk/tars/genkit
The 7 steps needed to use this script are described in great detail, see the Building Tclkit page.