--- /dev/null
+#------------------------------------------------------------- -*- makefile -*-\r
+#\r
+# Sample makefile for building Tcl extensions.\r
+#\r
+# Basic build, test and install\r
+# nmake /s /nologo /f makefile.vc INSTALLDIR=c:\path\to\tcl\r
+# nmake /s /nologo /f makefile.vc INSTALLDIR=c:\path\to\tcl test\r
+# nmake /s /nologo /f makefile.vc INSTALLDIR=c:\path\to\tcl install\r
+#\r
+# For other build options (debug, static etc.)\r
+# See TIP 477 (https://core.tcl.tk/tips/doc/trunk/tip/477.md) for\r
+# detailed documentation.\r
+#\r
+# See the file "license.terms" for information on usage and redistribution\r
+# of this file, and for a DISCLAIMER OF ALL WARRANTIES.\r
+#\r
+#------------------------------------------------------------------------------\r
+\r
+# PROJECT is sqlite, not sqlite3 to match TEA AC_INIT definition.\r
+# This makes the generated DLL name also consistent between the two\r
+# except for the "t" suffix which is the convention for nmake builds.\r
+PROJECT = sqlite\r
+PRJ_PACKAGE_TCLNAME = sqlite3\r
+\r
+!include "rules-ext.vc"\r
+\r
+PRJ_OBJS = $(TMP_DIR)\tclsqlite3.obj\r
+\r
+# Preprocessor macros specific to sqlite3.\r
+PRJ_DEFINES = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \\r
+ -DSQLITE_ENABLE_DBPAGE_VTAB=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 \\r
+ -DSQLITE_ENABLE_FTS3_PARENTHESIS=1 -DSQLITE_ENABLE_FTS4=1 \\r
+ -DSQLITE_ENABLE_FTS5=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 \\r
+ -DSQLITE_ENABLE_JSON1=1 -DSQLITE_LIKE_DOESNT_MATCH_BLOBS=1 \\r
+ -DSQLITE_3_SUFFIX_ONLY=1 -DSQLITE_ENABLE_RTREE=1 \\r
+ -DSQLITE_UNTESTABLE=1 -DSQLITE_OMIT_LOOKASIDE=1 \\r
+ -DSQLITE_SECURE_DELETE=1 -DSQLITE_SOUNDEX=1 -DSQLITE_ENABLE_GEOPOLY=1 \\r
+ -DSQLITE_ENABLE_UPDATE_DELETE_LIMIT=1 \\r
+ -DSQLITE_ENABLE_MATH_FUNCTIONS=1 -DDSQLITE_USE_ALLOCA=1 \\r
+ -DSQLITE_ENABLE_STAT4=1 -DSQLITE_OMIT_DEPRECATED=1 \\r
+ -DSQLITE_WIN32_GETVERSIONEX=0 -DSQLITE_WIN32_NO_ANSI=1\r
+\r
+# Standard targets to build, install, test etc.\r
+!include "$(_RULESDIR)\targets.vc"\r
+\r
+# The built-in pkgindex does no suffice for our extension as\r
+# the PROJECT name (sqlite) is not same as init function name (Sqlite3)\r
+pkgindex:\r
+ @echo if {[package vsatisfies [package provide Tcl] 9.0-]} { > $(OUT_DIR)\pkgIndex.tcl\r
+ @echo package ifneeded $(PRJ_PACKAGE_TCLNAME) $(DOTVERSION) \\r
+ [list load [file join $$dir $(PRJLIBNAME9)] [string totitle $(PRJ_PACKAGE_TCLNAME)]] >> $(OUT_DIR)\pkgIndex.tcl\r
+ @echo } else { >> $(OUT_DIR)\pkgIndex.tcl\r
+ @echo package ifneeded $(PRJ_PACKAGE_TCLNAME) $(DOTVERSION) \\r
+ [list load [file join $$dir $(PRJLIBNAME8)] [string totitle $(PRJ_PACKAGE_TCLNAME)]] >> $(OUT_DIR)\pkgIndex.tcl\r
+ @echo } >> $(OUT_DIR)\pkgIndex.tcl\r
+\r
+# Install the manpage though on Windows, doubt it does much good\r
+install: default-install-docs-n\r
+\r