sqlmath 0.0.1 → 2021.11.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npmignore +10 -0
- package/CHANGELOG.md +53 -2
- package/LICENSE +16 -22
- package/README.md +18 -219
- package/_binary_sqlmath_napi8_darwin_x64.node +0 -0
- package/_binary_sqlmath_napi8_linux_x64.node +0 -0
- package/_binary_sqlmath_napi8_win32_x64.node +0 -0
- package/jslint.mjs +10998 -0
- package/package.json +23 -8
- package/sqlmath.mjs +1713 -0
- package/.gitconfig +0 -25
- package/.github/workflows/ci.yml +0 -61
- package/.gitignore +0 -24
- package/extension-functions.c +0 -2047
- package/jslint_ci.sh +0 -1968
- package/node_sqlite3.cc +0 -11877
- package/sqlite-autoconf-3360000/INSTALL +0 -370
- package/sqlite-autoconf-3360000/Makefile.am +0 -20
- package/sqlite-autoconf-3360000/Makefile.fallback +0 -19
- package/sqlite-autoconf-3360000/Makefile.in +0 -1028
- package/sqlite-autoconf-3360000/Makefile.msc +0 -1037
- package/sqlite-autoconf-3360000/README.txt +0 -113
- package/sqlite-autoconf-3360000/Replace.cs +0 -223
- package/sqlite-autoconf-3360000/aclocal.m4 +0 -10199
- package/sqlite-autoconf-3360000/compile +0 -347
- package/sqlite-autoconf-3360000/config.guess +0 -1480
- package/sqlite-autoconf-3360000/config.sub +0 -1801
- package/sqlite-autoconf-3360000/configure +0 -16135
- package/sqlite-autoconf-3360000/configure.ac +0 -285
- package/sqlite-autoconf-3360000/depcomp +0 -791
- package/sqlite-autoconf-3360000/install-sh +0 -508
- package/sqlite-autoconf-3360000/ltmain.sh +0 -11156
- package/sqlite-autoconf-3360000/missing +0 -215
- package/sqlite-autoconf-3360000/shell.c +0 -22381
- package/sqlite-autoconf-3360000/sqlite3.1 +0 -286
- package/sqlite-autoconf-3360000/sqlite3.c +0 -235517
- package/sqlite-autoconf-3360000/sqlite3.h +0 -12353
- package/sqlite-autoconf-3360000/sqlite3.pc.in +0 -13
- package/sqlite-autoconf-3360000/sqlite3.rc +0 -83
- package/sqlite-autoconf-3360000/sqlite3ext.h +0 -663
- package/sqlite-autoconf-3360000/sqlite3rc.h +0 -3
- package/sqlite-autoconf-3360000/tea/Makefile.in +0 -440
- package/sqlite-autoconf-3360000/tea/README +0 -36
- package/sqlite-autoconf-3360000/tea/aclocal.m4 +0 -9
- package/sqlite-autoconf-3360000/tea/configure +0 -9989
- package/sqlite-autoconf-3360000/tea/configure.ac +0 -201
- package/sqlite-autoconf-3360000/tea/doc/sqlite3.n +0 -15
- package/sqlite-autoconf-3360000/tea/generic/tclsqlite3.c +0 -4016
- package/sqlite-autoconf-3360000/tea/license.terms +0 -6
- package/sqlite-autoconf-3360000/tea/pkgIndex.tcl.in +0 -7
- package/sqlite-autoconf-3360000/tea/tclconfig/install-sh +0 -528
- package/sqlite-autoconf-3360000/tea/tclconfig/tcl.m4 +0 -4168
- package/sqlite-autoconf-3360000/tea/win/makefile.vc +0 -419
- package/sqlite-autoconf-3360000/tea/win/nmakehlp.c +0 -815
- package/sqlite-autoconf-3360000/tea/win/rules.vc +0 -711
- package/sqlmath.js +0 -238
- package/test/backup.test.js +0 -279
- package/test/blob.test.js +0 -54
- package/test/cache.test.js +0 -42
- package/test/constants.test.js +0 -44
- package/test/database_fail.test.js +0 -153
- package/test/each.test.js +0 -39
- package/test/exec.test.js +0 -39
- package/test/extension.test.js +0 -26
- package/test/extension_functions.test.js +0 -29
- package/test/fts-content.test.js +0 -13
- package/test/interrupt.test.js +0 -80
- package/test/issue-108.test.js +0 -28
- package/test/json.test.js +0 -22
- package/test/map.test.js +0 -63
- package/test/named_columns.test.js +0 -38
- package/test/named_params.test.js +0 -69
- package/test/null_error.test.js +0 -41
- package/test/nw/.gitignore +0 -3
- package/test/nw/Makefile +0 -39
- package/test/nw/index.html +0 -14
- package/test/nw/package.json +0 -9
- package/test/open_close.test.js +0 -187
- package/test/other_objects.test.js +0 -98
- package/test/parallel_insert.test.js +0 -44
- package/test/prepare.test.js +0 -427
- package/test/profile.test.js +0 -57
- package/test/rerun.test.js +0 -50
- package/test/scheduling.test.js +0 -44
- package/test/serialization.test.js +0 -104
- package/test/support/createdb-electron.js +0 -10
- package/test/support/createdb.js +0 -47
- package/test/support/elmo.png +0 -0
- package/test/support/helper.js +0 -37
- package/test/support/script.sql +0 -70
- package/test/trace.test.js +0 -67
- package/test/unicode.test.js +0 -114
- package/test/upsert.test.js +0 -27
- package/test/verbose.test.js +0 -60
- package/test.js +0 -141
- package/test.slr.mjs +0 -212
|
@@ -1,440 +0,0 @@
|
|
|
1
|
-
# Makefile.in --
|
|
2
|
-
#
|
|
3
|
-
# This file is a Makefile for Sample TEA Extension. If it has the name
|
|
4
|
-
# "Makefile.in" then it is a template for a Makefile; to generate the
|
|
5
|
-
# actual Makefile, run "./configure", which is a configuration script
|
|
6
|
-
# generated by the "autoconf" program (constructs like "@foo@" will get
|
|
7
|
-
# replaced in the actual Makefile.
|
|
8
|
-
#
|
|
9
|
-
# Copyright (c) 1999 Scriptics Corporation.
|
|
10
|
-
# Copyright (c) 2002-2005 ActiveState Corporation.
|
|
11
|
-
#
|
|
12
|
-
# See the file "license.terms" for information on usage and redistribution
|
|
13
|
-
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
|
|
14
|
-
#
|
|
15
|
-
# RCS: @(#) $Id: Makefile.in,v 1.59 2005/07/26 19:17:02 mdejong Exp $
|
|
16
|
-
|
|
17
|
-
#========================================================================
|
|
18
|
-
# Add additional lines to handle any additional AC_SUBST cases that
|
|
19
|
-
# have been added in a customized configure script.
|
|
20
|
-
#========================================================================
|
|
21
|
-
|
|
22
|
-
#SAMPLE_NEW_VAR = @SAMPLE_NEW_VAR@
|
|
23
|
-
|
|
24
|
-
#========================================================================
|
|
25
|
-
# Nothing of the variables below this line should need to be changed.
|
|
26
|
-
# Please check the TARGETS section below to make sure the make targets
|
|
27
|
-
# are correct.
|
|
28
|
-
#========================================================================
|
|
29
|
-
|
|
30
|
-
#========================================================================
|
|
31
|
-
# The names of the source files is defined in the configure script.
|
|
32
|
-
# The object files are used for linking into the final library.
|
|
33
|
-
# This will be used when a dist target is added to the Makefile.
|
|
34
|
-
# It is not important to specify the directory, as long as it is the
|
|
35
|
-
# $(srcdir) or in the generic, win or unix subdirectory.
|
|
36
|
-
#========================================================================
|
|
37
|
-
|
|
38
|
-
PKG_SOURCES = @PKG_SOURCES@
|
|
39
|
-
PKG_OBJECTS = @PKG_OBJECTS@
|
|
40
|
-
|
|
41
|
-
PKG_STUB_SOURCES = @PKG_STUB_SOURCES@
|
|
42
|
-
PKG_STUB_OBJECTS = @PKG_STUB_OBJECTS@
|
|
43
|
-
|
|
44
|
-
#========================================================================
|
|
45
|
-
# PKG_TCL_SOURCES identifies Tcl runtime files that are associated with
|
|
46
|
-
# this package that need to be installed, if any.
|
|
47
|
-
#========================================================================
|
|
48
|
-
|
|
49
|
-
PKG_TCL_SOURCES = @PKG_TCL_SOURCES@
|
|
50
|
-
|
|
51
|
-
#========================================================================
|
|
52
|
-
# This is a list of public header files to be installed, if any.
|
|
53
|
-
#========================================================================
|
|
54
|
-
|
|
55
|
-
PKG_HEADERS = @PKG_HEADERS@
|
|
56
|
-
|
|
57
|
-
#========================================================================
|
|
58
|
-
# "PKG_LIB_FILE" refers to the library (dynamic or static as per
|
|
59
|
-
# configuration options) composed of the named objects.
|
|
60
|
-
#========================================================================
|
|
61
|
-
|
|
62
|
-
PKG_LIB_FILE = @PKG_LIB_FILE@
|
|
63
|
-
PKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@
|
|
64
|
-
|
|
65
|
-
lib_BINARIES = $(PKG_LIB_FILE)
|
|
66
|
-
BINARIES = $(lib_BINARIES)
|
|
67
|
-
|
|
68
|
-
SHELL = @SHELL@
|
|
69
|
-
|
|
70
|
-
srcdir = @srcdir@
|
|
71
|
-
prefix = @prefix@
|
|
72
|
-
exec_prefix = @exec_prefix@
|
|
73
|
-
|
|
74
|
-
bindir = @bindir@
|
|
75
|
-
libdir = @libdir@
|
|
76
|
-
datarootdir = @datarootdir@
|
|
77
|
-
datadir = @datadir@
|
|
78
|
-
mandir = @mandir@
|
|
79
|
-
includedir = @includedir@
|
|
80
|
-
|
|
81
|
-
DESTDIR =
|
|
82
|
-
|
|
83
|
-
PKG_DIR = $(PACKAGE_NAME)$(PACKAGE_VERSION)
|
|
84
|
-
pkgdatadir = $(datadir)/$(PKG_DIR)
|
|
85
|
-
pkglibdir = $(libdir)/$(PKG_DIR)
|
|
86
|
-
pkgincludedir = $(includedir)/$(PKG_DIR)
|
|
87
|
-
|
|
88
|
-
top_builddir = .
|
|
89
|
-
|
|
90
|
-
INSTALL = @INSTALL@
|
|
91
|
-
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
92
|
-
INSTALL_DATA = @INSTALL_DATA@
|
|
93
|
-
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
|
94
|
-
|
|
95
|
-
PACKAGE_NAME = @PACKAGE_NAME@
|
|
96
|
-
PACKAGE_VERSION = @PACKAGE_VERSION@
|
|
97
|
-
CC = @CC@
|
|
98
|
-
CFLAGS_DEFAULT = @CFLAGS_DEFAULT@
|
|
99
|
-
CFLAGS_WARNING = @CFLAGS_WARNING@
|
|
100
|
-
CLEANFILES = @CLEANFILES@
|
|
101
|
-
EXEEXT = @EXEEXT@
|
|
102
|
-
LDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@
|
|
103
|
-
MAKE_LIB = @MAKE_LIB@
|
|
104
|
-
MAKE_SHARED_LIB = @MAKE_SHARED_LIB@
|
|
105
|
-
MAKE_STATIC_LIB = @MAKE_STATIC_LIB@
|
|
106
|
-
MAKE_STUB_LIB = @MAKE_STUB_LIB@
|
|
107
|
-
OBJEXT = @OBJEXT@
|
|
108
|
-
RANLIB = @RANLIB@
|
|
109
|
-
RANLIB_STUB = @RANLIB_STUB@
|
|
110
|
-
SHLIB_CFLAGS = @SHLIB_CFLAGS@
|
|
111
|
-
SHLIB_LD = @SHLIB_LD@
|
|
112
|
-
SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
|
|
113
|
-
STLIB_LD = @STLIB_LD@
|
|
114
|
-
#TCL_DEFS = @TCL_DEFS@
|
|
115
|
-
TCL_BIN_DIR = @TCL_BIN_DIR@
|
|
116
|
-
TCL_SRC_DIR = @TCL_SRC_DIR@
|
|
117
|
-
#TK_BIN_DIR = @TK_BIN_DIR@
|
|
118
|
-
#TK_SRC_DIR = @TK_SRC_DIR@
|
|
119
|
-
|
|
120
|
-
# This is no longer necessary even for packages that use private Tcl headers
|
|
121
|
-
#TCL_TOP_DIR_NATIVE = @TCL_TOP_DIR_NATIVE@
|
|
122
|
-
# Not used, but retained for reference of what libs Tcl required
|
|
123
|
-
#TCL_LIBS = @TCL_LIBS@
|
|
124
|
-
|
|
125
|
-
#========================================================================
|
|
126
|
-
# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our
|
|
127
|
-
# package without installing. The other environment variables allow us
|
|
128
|
-
# to test against an uninstalled Tcl. Add special env vars that you
|
|
129
|
-
# require for testing here (like TCLX_LIBRARY).
|
|
130
|
-
#========================================================================
|
|
131
|
-
|
|
132
|
-
EXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR)
|
|
133
|
-
#EXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR)
|
|
134
|
-
TCLLIBPATH = $(top_builddir)
|
|
135
|
-
TCLSH_ENV = TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` \
|
|
136
|
-
@LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \
|
|
137
|
-
PATH="$(EXTRA_PATH):$(PATH)" \
|
|
138
|
-
TCLLIBPATH="$(TCLLIBPATH)"
|
|
139
|
-
# TK_LIBRARY=`@CYGPATH@ $(TK_SRC_DIR)/library`
|
|
140
|
-
|
|
141
|
-
TCLSH_PROG = @TCLSH_PROG@
|
|
142
|
-
TCLSH = $(TCLSH_ENV) $(TCLSH_PROG)
|
|
143
|
-
|
|
144
|
-
#WISH_PROG = @WISH_PROG@
|
|
145
|
-
#WISH = $(TCLSH_ENV) $(WISH_PROG)
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
SHARED_BUILD = @SHARED_BUILD@
|
|
149
|
-
|
|
150
|
-
INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ -I$(srcdir)/..
|
|
151
|
-
#INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@
|
|
152
|
-
|
|
153
|
-
PKG_CFLAGS = @PKG_CFLAGS@
|
|
154
|
-
|
|
155
|
-
# TCL_DEFS is not strictly need here, but if you remove it, then you
|
|
156
|
-
# must make sure that configure.in checks for the necessary components
|
|
157
|
-
# that your library may use. TCL_DEFS can actually be a problem if
|
|
158
|
-
# you do not compile with a similar machine setup as the Tcl core was
|
|
159
|
-
# compiled with.
|
|
160
|
-
#DEFS = $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS)
|
|
161
|
-
DEFS = @DEFS@ $(PKG_CFLAGS)
|
|
162
|
-
|
|
163
|
-
CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl
|
|
164
|
-
|
|
165
|
-
CPPFLAGS = @CPPFLAGS@
|
|
166
|
-
LIBS = @PKG_LIBS@ @LIBS@
|
|
167
|
-
AR = @AR@
|
|
168
|
-
CFLAGS = @CFLAGS@
|
|
169
|
-
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
|
170
|
-
|
|
171
|
-
#========================================================================
|
|
172
|
-
# Start of user-definable TARGETS section
|
|
173
|
-
#========================================================================
|
|
174
|
-
|
|
175
|
-
#========================================================================
|
|
176
|
-
# TEA TARGETS. Please note that the "libraries:" target refers to platform
|
|
177
|
-
# independent files, and the "binaries:" target inclues executable programs and
|
|
178
|
-
# platform-dependent libraries. Modify these targets so that they install
|
|
179
|
-
# the various pieces of your package. The make and install rules
|
|
180
|
-
# for the BINARIES that you specified above have already been done.
|
|
181
|
-
#========================================================================
|
|
182
|
-
|
|
183
|
-
all: binaries libraries doc
|
|
184
|
-
|
|
185
|
-
#========================================================================
|
|
186
|
-
# The binaries target builds executable programs, Windows .dll's, unix
|
|
187
|
-
# shared/static libraries, and any other platform-dependent files.
|
|
188
|
-
# The list of targets to build for "binaries:" is specified at the top
|
|
189
|
-
# of the Makefile, in the "BINARIES" variable.
|
|
190
|
-
#========================================================================
|
|
191
|
-
|
|
192
|
-
binaries: $(BINARIES)
|
|
193
|
-
|
|
194
|
-
libraries:
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
#========================================================================
|
|
198
|
-
# Your doc target should differentiate from doc builds (by the developer)
|
|
199
|
-
# and doc installs (see install-doc), which just install the docs on the
|
|
200
|
-
# end user machine when building from source.
|
|
201
|
-
#========================================================================
|
|
202
|
-
|
|
203
|
-
doc:
|
|
204
|
-
@echo "If you have documentation to create, place the commands to"
|
|
205
|
-
@echo "build the docs in the 'doc:' target. For example:"
|
|
206
|
-
@echo " xml2nroff sample.xml > sample.n"
|
|
207
|
-
@echo " xml2html sample.xml > sample.html"
|
|
208
|
-
|
|
209
|
-
install: all install-binaries install-libraries install-doc
|
|
210
|
-
|
|
211
|
-
install-binaries: binaries install-lib-binaries install-bin-binaries
|
|
212
|
-
|
|
213
|
-
#========================================================================
|
|
214
|
-
# This rule installs platform-independent files, such as header files.
|
|
215
|
-
# The list=...; for p in $$list handles the empty list case x-platform.
|
|
216
|
-
#========================================================================
|
|
217
|
-
|
|
218
|
-
install-libraries: libraries
|
|
219
|
-
@mkdir -p $(DESTDIR)$(includedir)
|
|
220
|
-
@echo "Installing header files in $(DESTDIR)$(includedir)"
|
|
221
|
-
@list='$(PKG_HEADERS)'; for i in $$list; do \
|
|
222
|
-
echo "Installing $(srcdir)/$$i" ; \
|
|
223
|
-
$(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir) ; \
|
|
224
|
-
done;
|
|
225
|
-
|
|
226
|
-
#========================================================================
|
|
227
|
-
# Install documentation. Unix manpages should go in the $(mandir)
|
|
228
|
-
# directory.
|
|
229
|
-
#========================================================================
|
|
230
|
-
|
|
231
|
-
install-doc: doc
|
|
232
|
-
@mkdir -p $(DESTDIR)$(mandir)/mann
|
|
233
|
-
@echo "Installing documentation in $(DESTDIR)$(mandir)"
|
|
234
|
-
@list='$(srcdir)/doc/*.n'; for i in $$list; do \
|
|
235
|
-
echo "Installing $$i"; \
|
|
236
|
-
rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
|
|
237
|
-
$(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
|
|
238
|
-
done
|
|
239
|
-
|
|
240
|
-
test: binaries libraries
|
|
241
|
-
@echo "SQLite TEA distribution does not include tests"
|
|
242
|
-
|
|
243
|
-
shell: binaries libraries
|
|
244
|
-
@$(TCLSH) $(SCRIPT)
|
|
245
|
-
|
|
246
|
-
gdb:
|
|
247
|
-
$(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT)
|
|
248
|
-
|
|
249
|
-
depend:
|
|
250
|
-
|
|
251
|
-
#========================================================================
|
|
252
|
-
# $(PKG_LIB_FILE) should be listed as part of the BINARIES variable
|
|
253
|
-
# mentioned above. That will ensure that this target is built when you
|
|
254
|
-
# run "make binaries".
|
|
255
|
-
#
|
|
256
|
-
# The $(PKG_OBJECTS) objects are created and linked into the final
|
|
257
|
-
# library. In most cases these object files will correspond to the
|
|
258
|
-
# source files above.
|
|
259
|
-
#========================================================================
|
|
260
|
-
|
|
261
|
-
$(PKG_LIB_FILE): $(PKG_OBJECTS)
|
|
262
|
-
-rm -f $(PKG_LIB_FILE)
|
|
263
|
-
${MAKE_LIB}
|
|
264
|
-
$(RANLIB) $(PKG_LIB_FILE)
|
|
265
|
-
|
|
266
|
-
$(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS)
|
|
267
|
-
-rm -f $(PKG_STUB_LIB_FILE)
|
|
268
|
-
${MAKE_STUB_LIB}
|
|
269
|
-
$(RANLIB_STUB) $(PKG_STUB_LIB_FILE)
|
|
270
|
-
|
|
271
|
-
#========================================================================
|
|
272
|
-
# We need to enumerate the list of .c to .o lines here.
|
|
273
|
-
#
|
|
274
|
-
# In the following lines, $(srcdir) refers to the toplevel directory
|
|
275
|
-
# containing your extension. If your sources are in a subdirectory,
|
|
276
|
-
# you will have to modify the paths to reflect this:
|
|
277
|
-
#
|
|
278
|
-
# sample.$(OBJEXT): $(srcdir)/generic/sample.c
|
|
279
|
-
# $(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/sample.c` -o $@
|
|
280
|
-
#
|
|
281
|
-
# Setting the VPATH variable to a list of paths will cause the makefile
|
|
282
|
-
# to look into these paths when resolving .c to .obj dependencies.
|
|
283
|
-
# As necessary, add $(srcdir):$(srcdir)/compat:....
|
|
284
|
-
#========================================================================
|
|
285
|
-
|
|
286
|
-
VPATH = $(srcdir):$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win
|
|
287
|
-
|
|
288
|
-
.c.@OBJEXT@:
|
|
289
|
-
$(COMPILE) -c `@CYGPATH@ $<` -o $@
|
|
290
|
-
|
|
291
|
-
#========================================================================
|
|
292
|
-
# Distribution creation
|
|
293
|
-
# You may need to tweak this target to make it work correctly.
|
|
294
|
-
#========================================================================
|
|
295
|
-
|
|
296
|
-
#COMPRESS = tar cvf $(PKG_DIR).tar $(PKG_DIR); compress $(PKG_DIR).tar
|
|
297
|
-
COMPRESS = gtar zcvf $(PKG_DIR).tar.gz $(PKG_DIR)
|
|
298
|
-
DIST_ROOT = /tmp/dist
|
|
299
|
-
DIST_DIR = $(DIST_ROOT)/$(PKG_DIR)
|
|
300
|
-
|
|
301
|
-
dist-clean:
|
|
302
|
-
rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.*
|
|
303
|
-
|
|
304
|
-
dist: dist-clean
|
|
305
|
-
mkdir -p $(DIST_DIR)
|
|
306
|
-
cp -p $(srcdir)/README* $(srcdir)/license* \
|
|
307
|
-
$(srcdir)/aclocal.m4 $(srcdir)/configure $(srcdir)/*.in \
|
|
308
|
-
$(DIST_DIR)/
|
|
309
|
-
chmod 664 $(DIST_DIR)/Makefile.in $(DIST_DIR)/aclocal.m4
|
|
310
|
-
chmod 775 $(DIST_DIR)/configure $(DIST_DIR)/configure.in
|
|
311
|
-
|
|
312
|
-
for i in $(srcdir)/*.[ch]; do \
|
|
313
|
-
if [ -f $$i ]; then \
|
|
314
|
-
cp -p $$i $(DIST_DIR)/ ; \
|
|
315
|
-
fi; \
|
|
316
|
-
done;
|
|
317
|
-
|
|
318
|
-
mkdir $(DIST_DIR)/tclconfig
|
|
319
|
-
cp $(srcdir)/tclconfig/install-sh $(srcdir)/tclconfig/tcl.m4 \
|
|
320
|
-
$(DIST_DIR)/tclconfig/
|
|
321
|
-
chmod 664 $(DIST_DIR)/tclconfig/tcl.m4
|
|
322
|
-
chmod +x $(DIST_DIR)/tclconfig/install-sh
|
|
323
|
-
|
|
324
|
-
list='demos doc generic library mac tests unix win'; \
|
|
325
|
-
for p in $$list; do \
|
|
326
|
-
if test -d $(srcdir)/$$p ; then \
|
|
327
|
-
mkdir $(DIST_DIR)/$$p; \
|
|
328
|
-
cp -p $(srcdir)/$$p/*.* $(DIST_DIR)/$$p/; \
|
|
329
|
-
fi; \
|
|
330
|
-
done
|
|
331
|
-
|
|
332
|
-
(cd $(DIST_ROOT); $(COMPRESS);)
|
|
333
|
-
|
|
334
|
-
#========================================================================
|
|
335
|
-
# End of user-definable section
|
|
336
|
-
#========================================================================
|
|
337
|
-
|
|
338
|
-
#========================================================================
|
|
339
|
-
# Don't modify the file to clean here. Instead, set the "CLEANFILES"
|
|
340
|
-
# variable in configure.in
|
|
341
|
-
#========================================================================
|
|
342
|
-
|
|
343
|
-
clean:
|
|
344
|
-
-test -z "$(BINARIES)" || rm -f $(BINARIES)
|
|
345
|
-
-rm -f *.$(OBJEXT) core *.core
|
|
346
|
-
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
|
347
|
-
|
|
348
|
-
distclean: clean
|
|
349
|
-
-rm -f *.tab.c
|
|
350
|
-
-rm -f $(CONFIG_CLEAN_FILES)
|
|
351
|
-
-rm -f config.h config.cache config.log config.status
|
|
352
|
-
|
|
353
|
-
#========================================================================
|
|
354
|
-
# Install binary object libraries. On Windows this includes both .dll and
|
|
355
|
-
# .lib files. Because the .lib files are not explicitly listed anywhere,
|
|
356
|
-
# we need to deduce their existence from the .dll file of the same name.
|
|
357
|
-
# Library files go into the lib directory.
|
|
358
|
-
# In addition, this will generate the pkgIndex.tcl
|
|
359
|
-
# file in the install location (assuming it can find a usable tclsh shell)
|
|
360
|
-
#
|
|
361
|
-
# You should not have to modify this target.
|
|
362
|
-
#========================================================================
|
|
363
|
-
|
|
364
|
-
install-lib-binaries: binaries
|
|
365
|
-
@mkdir -p $(DESTDIR)$(pkglibdir)
|
|
366
|
-
@list='$(lib_BINARIES)'; for p in $$list; do \
|
|
367
|
-
if test -f $$p; then \
|
|
368
|
-
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
|
|
369
|
-
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p; \
|
|
370
|
-
stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \
|
|
371
|
-
if test "x$$stub" = "xstub"; then \
|
|
372
|
-
echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \
|
|
373
|
-
$(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \
|
|
374
|
-
else \
|
|
375
|
-
echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \
|
|
376
|
-
$(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \
|
|
377
|
-
fi; \
|
|
378
|
-
ext=`echo $$p|sed -e "s/.*\.//"`; \
|
|
379
|
-
if test "x$$ext" = "xdll"; then \
|
|
380
|
-
lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
|
|
381
|
-
if test -f $$lib; then \
|
|
382
|
-
echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
|
|
383
|
-
$(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \
|
|
384
|
-
fi; \
|
|
385
|
-
fi; \
|
|
386
|
-
fi; \
|
|
387
|
-
done
|
|
388
|
-
@list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
|
|
389
|
-
if test -f $(srcdir)/$$p; then \
|
|
390
|
-
destp=`basename $$p`; \
|
|
391
|
-
echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \
|
|
392
|
-
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$destp; \
|
|
393
|
-
fi; \
|
|
394
|
-
done
|
|
395
|
-
@if test "x$(SHARED_BUILD)" = "x1"; then \
|
|
396
|
-
echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \
|
|
397
|
-
$(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \
|
|
398
|
-
fi
|
|
399
|
-
|
|
400
|
-
#========================================================================
|
|
401
|
-
# Install binary executables (e.g. .exe files and dependent .dll files)
|
|
402
|
-
# This is for files that must go in the bin directory (located next to
|
|
403
|
-
# wish and tclsh), like dependent .dll files on Windows.
|
|
404
|
-
#
|
|
405
|
-
# You should not have to modify this target, except to define bin_BINARIES
|
|
406
|
-
# above if necessary.
|
|
407
|
-
#========================================================================
|
|
408
|
-
|
|
409
|
-
install-bin-binaries: binaries
|
|
410
|
-
@mkdir -p $(DESTDIR)$(bindir)
|
|
411
|
-
@list='$(bin_BINARIES)'; for p in $$list; do \
|
|
412
|
-
if test -f $$p; then \
|
|
413
|
-
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p"; \
|
|
414
|
-
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p; \
|
|
415
|
-
fi; \
|
|
416
|
-
done
|
|
417
|
-
|
|
418
|
-
.SUFFIXES: .c .$(OBJEXT)
|
|
419
|
-
|
|
420
|
-
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|
421
|
-
cd $(top_builddir) \
|
|
422
|
-
&& CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
|
423
|
-
|
|
424
|
-
uninstall-binaries:
|
|
425
|
-
list='$(lib_BINARIES)'; for p in $$list; do \
|
|
426
|
-
rm -f $(DESTDIR)$(pkglibdir)/$$p; \
|
|
427
|
-
done
|
|
428
|
-
list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
|
|
429
|
-
p=`basename $$p`; \
|
|
430
|
-
rm -f $(DESTDIR)$(pkglibdir)/$$p; \
|
|
431
|
-
done
|
|
432
|
-
list='$(bin_BINARIES)'; for p in $$list; do \
|
|
433
|
-
rm -f $(DESTDIR)$(bindir)/$$p; \
|
|
434
|
-
done
|
|
435
|
-
|
|
436
|
-
.PHONY: all binaries clean depend distclean doc install libraries test
|
|
437
|
-
|
|
438
|
-
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
|
439
|
-
# Otherwise a system limit (for SysV at least) may be exceeded.
|
|
440
|
-
.NOEXPORT:
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
This is the SQLite extension for Tcl using the Tcl Extension
|
|
2
|
-
Architecture (TEA). For additional information on SQLite see
|
|
3
|
-
|
|
4
|
-
http://www.sqlite.org/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
UNIX BUILD
|
|
8
|
-
==========
|
|
9
|
-
|
|
10
|
-
Building under most UNIX systems is easy, just run the configure script
|
|
11
|
-
and then run make. For more information about the build process, see
|
|
12
|
-
the tcl/unix/README file in the Tcl src dist. The following minimal
|
|
13
|
-
example will install the extension in the /opt/tcl directory.
|
|
14
|
-
|
|
15
|
-
$ cd sqlite-*-tea
|
|
16
|
-
$ ./configure --prefix=/opt/tcl
|
|
17
|
-
$ make
|
|
18
|
-
$ make install
|
|
19
|
-
|
|
20
|
-
WINDOWS BUILD
|
|
21
|
-
=============
|
|
22
|
-
|
|
23
|
-
The recommended method to build extensions under windows is to use the
|
|
24
|
-
Msys + Mingw build process. This provides a Unix-style build while
|
|
25
|
-
generating native Windows binaries. Using the Msys + Mingw build tools
|
|
26
|
-
means that you can use the same configure script as per the Unix build
|
|
27
|
-
to create a Makefile. See the tcl/win/README file for the URL of
|
|
28
|
-
the Msys + Mingw download.
|
|
29
|
-
|
|
30
|
-
If you have VC++ then you may wish to use the files in the win
|
|
31
|
-
subdirectory and build the extension using just VC++. These files have
|
|
32
|
-
been designed to be as generic as possible but will require some
|
|
33
|
-
additional maintenance by the project developer to synchronise with
|
|
34
|
-
the TEA configure.in and Makefile.in files. Instructions for using the
|
|
35
|
-
VC++ makefile are written in the first part of the Makefile.vc
|
|
36
|
-
file.
|