SQLite Forum

Setting TOP variable does not set tcl scripts correctly
You should not need to modify any TCL scripts. Here is an invocation that will build the amalgamation then the shell, provided it is run from a cmd.exe session that has had its environment set to make MSVC CLI tools usable:<code>
  cd \<top of SQLite source tree from sqlite.org\>
  md bld
  cd bld
  nmake /f ..\\Makefile.msc sqlite3.c TOP=..
  nmake /f ..\\Makefile.msc sqlite3.exe TOP=..
</code>. Replace "\<top of SQLite source tree from sqlite.org\>" with the pathname which specifies the root of the retrieved SQLite library source tree.