General make cleanups. Start adding a sanity-check mechanism to main.mk which does basic validation of the vars it expects to be set by the file which includes it. Get Makefile.linux-gcc working for the core-most rules.

FossilOrigin-Name: 85b2c73ccb85d7f5830a6fac692b380c5c79e7a54ee3fc6fc37343fa23816ef8
This commit is contained in:
stephan 2024-10-24 03:14:40 +00:00
parent 4dadb531b0
commit 8c97ad8834
6 changed files with 177 additions and 8200 deletions

View File

@ -164,7 +164,7 @@ $(BTCLSH):
#
# $(CFLAGS_libsqlite3) is documented in main.mk.
#
CFLAGS_libsqlite3 = -DSQLITE_TEMP_STORE=@TEMP_STORE@
CFLAGS_libsqlite3 = $(CFLAGS) -DSQLITE_TEMP_STORE=@TEMP_STORE@
OPT_FEATURE_FLAGS = @OPT_FEATURE_FLAGS@ $(OPTIONS)
@ -332,4 +332,11 @@ distclean-autosetup: clean
-gmake -C ext/wasm distclean 2>/dev/null; true
distclean: distclean-autosetup
#
# tool/version-info: a utility for emitting sqlite3 version info
# in various forms.
#
version-info$(TEXE): $(TOP)/tool/version-info.c Makefile sqlite3.h
$(TLINK) $(ST_OPT) -o $@ $(TOP)/tool/version-info.c
include $(TOP)/main.mk

View File

@ -10,100 +10,16 @@
# alternative. Create a copy of this file, edit the parameters
# below and type "make".
#
#### The toplevel directory of the source tree. This is the directory
# that contains this "Makefile.in" and the "configure.in" script.
#
TOP = ../sqlite
TOP ?= .
#### C Compiler and options for use in building executables that
# will run on the platform that is doing the build.
#
BCC = gcc -g -O0
#BCC = /opt/ancic/bin/c89 -0
#### If you want the SQLite library to be safe for use within a
# multi-threaded program, then define the following macro
# appropriately:
#
#THREADSAFE = -DTHREADSAFE=1
THREADSAFE = -DTHREADSAFE=0
#### Specify any extra linker options needed to make the library
# thread safe
#
THREADLIB = -lpthread -lm -ldl
#THREADLIB =
#### Specify any extra libraries needed to access required functions.
#
#TLIBS = -lrt # fdatasync on Solaris 8
TLIBS =
#### Leave SQLITE_DEBUG undefined for maximum speed. Use SQLITE_DEBUG=1
# to check for memory leaks. Use SQLITE_DEBUG=2 to print a log of all
# malloc()s and free()s in order to track down memory leaks.
#
# SQLite uses some expensive assert() statements in the inner loop.
# You can make the library go almost twice as fast if you compile
# with -DNDEBUG=1
#
OPTS += -DSQLITE_DEBUG=1
OPTS += -DSQLITE_ENABLE_WHERETRACE
OPTS += -DSQLITE_ENABLE_SELECTTRACE
#### The suffix to add to executable files. ".exe" for windows.
# Nothing for unix.
#
#EXE = .exe
EXE =
#### C Compile and options for use in building executables that
# will run on the target platform. This is usually the same
# as BCC, unless you are cross-compiling.
#
TCC = gcc -O0
#TCC = gcc -g -O0 -Wall
#TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
#TCC = /opt/mingw/bin/i386-mingw32-gcc -O6
#TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive
#### Tools used to build a static library.
#
AR = ar cr
#AR = /opt/mingw/bin/i386-mingw32-ar cr
RANLIB = ranlib
#RANLIB = /opt/mingw/bin/i386-mingw32-ranlib
MKSHLIB = gcc -shared
SO = so
SHPREFIX = lib
# SO = dll
# SHPREFIX =
#### Extra compiler options needed for programs that use the TCL library.
#
TCL_FLAGS = -I/home/drh/tcl/include/tcl8.6
#### Linker options needed to link against the TCL library.
#
#LIBTCL = -ltcl -lm -ldl
LIBTCL = /home/drh/tcl/lib/libtcl8.6.a -lm -lpthread -ldl -lz
#### Additional objects for SQLite library when TCL support is enabled.
#TCLOBJ =
TCLOBJ = tclsqlite.o
#### Compiler options needed for programs that use the readline() library.
#
READLINE_FLAGS =
#READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline
#### Linker options needed by programs using readline() must link against.
#
LIBREADLINE =
#LIBREADLINE = -static -lreadline -ltermcap
CFLAGS += -fPIC
# You should not have to change anything below this line
###############################################################################
include $(TOP)/main.mk
sqlite_cfg.h:
touch $@

7972
aclocal.m4 vendored

File diff suppressed because it is too large Load Diff

281
main.mk
View File

@ -27,7 +27,8 @@ RELEASE ?= MAJOR.MINOR.PATCH
#
# The toplevel directory of the source tree. For canonical builds
# this is the directory that contains this "Makefile.in" and the
# "configure.in" script.
# "configure.in" script. For out-of-tree builds, this will differ
# from $(PWD).
TOP ?= $(PWD)
#
# $(BCC) =
@ -46,7 +47,8 @@ BCC ?= $(CC)
TCC ?= $(BCC)
#
# $(AR) =
# Tool used to build a static library from object files.
# Tool used to build a static library from object files, including
# its arguments needed for doing so.
#
AR ?= ar
#
@ -191,7 +193,7 @@ all: sqlite3.h sqlite3.c
#
# $(INSTALL) invocation for use with non-executable files.
#
INSTALL_noexec = $(INSTALL) -m 0644
INSTALL.noexec = $(INSTALL) -m 0644
# ^^^ do not use GNU-specific flags to $(INSTALL), e.g. --mode=...
#
@ -246,7 +248,7 @@ TLINK.shared = $(TLINK) $(LDFLAGS_SHOBJ)
# to default to file, 2 to default to memory, and 3 to force temporary
# tables to always be in memory.
#
CFLAGS_libsqlite3 ?= -DSQLITE_TEMP_STORE=1
CFLAGS_libsqlite3 ?= $(CFLAGS) -DSQLITE_TEMP_STORE=1
#
# LDFLAGS_libsqlite3 should be used with any target which either
@ -261,7 +263,7 @@ LDFLAGS_libsqlite3 = \
$(LDFLAGS_DLOPEN)
#
# install-dir.XYZ = dirs for installation.
# $(install-dir.XYZ) = dirs for installation.
#
# Design note: these should arguably all be defined with surrounding
# double-quotes so that targets which have spaces in their paths will
@ -282,6 +284,28 @@ install-dir.all = $(install-dir.bin) $(install-dir.include) \
$(install-dir.all):
$(INSTALL) -d $@
#
# $(MAKE_SANITY_CHECK) = a set of checks for various make vars which
# must be provided to this file before including it. If any are
# missing, this target fails. It does (almost) no semantic validation,
# only checks to see that appropriate vars are not empty.
#
# Note that $(MAKEFILE_LIST) is a GNU-make-ism but its use is harmless
# in other flavors of Make.
#
MAKE_SANITY_CHECK = .main.mk.checks
$(MAKE_SANITY_CHECK): $(MAKEFILE_LIST)
@if [ x = "x$(TOP)" ]; then echo "Missing TOP var" 1>&2; exit 1; fi
@if [ ! -d "$(TOP)" ]; then echo "TOP is not a directory" 1>&2; exit 1; fi
@if [ x = "x$(BCC)" ]; then echo "Missing BCC var" 1>&2; exit 1; fi
@if [ x = "x$(TCC)" ]; then echo "Missing TCC var" 1>&2; exit 1; fi
@if [ x = "x$(RELEASE)" ]; then echo "Missing RELEASE var" 1>&2; exit 1; fi
@if [ x = "x$(BTCLSH)" ]; then echo "Missing BTCLSH var" 1>&2; exit 1; fi
touch $@
clean-sanity-check:
rm -f $(MAKE_SANITY_CHECK)
clean: clean-sanity-check
#
# Object files for the SQLite library (non-amalgamation).
#
@ -320,6 +344,8 @@ LIBOBJS1 = sqlite3.o
#
LIBOBJ = $(LIBOBJS$(USE_AMALGAMATION))
$(LIBOBJ): $(MAKE_SANITY_CHECK)
# All of the source code files.
#
SRC = \
@ -769,7 +795,7 @@ FUZZCHECK_SRC += $(TOP)/ext/misc/randomjson.c
DBFUZZ_OPT =
ST_OPT = -DSQLITE_OS_KV_OPTIONAL
$(TCLSH_CMD):
has_tclsh84:
sh $(TOP)/tool/cktclsh.sh 8.4 $(TCLSH_CMD)
touch has_tclsh84
@ -791,7 +817,8 @@ has_tclconfig:
# files are automatically generated. This target takes care of
# all that automatic generation.
#
.target_source: $(SRC) $(TOP)/tool/vdbe-compress.tcl fts5.c $(BTCLSH) # has_tclsh84
.target_source: $(MAKE_SANITY_CHECK) $(SRC) $(TOP)/tool/vdbe-compress.tcl \
fts5.c $(BTCLSH) # has_tclsh84
rm -rf tsrc
mkdir tsrc
cp -f $(SRC) tsrc
@ -806,16 +833,17 @@ libsqlite3.SO = libsqlite3$(TDLL)
# Rules to build the LEMON compiler generator
#
lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
lemon$(BEXE): $(MAKE_SANITY_CHECK) $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
$(BCC) -o $@ $(TOP)/tool/lemon.c
cp $(TOP)/tool/lempar.c .
# Rules to build the program that generates the source-id
#
mksourceid$(BEXE): $(TOP)/tool/mksourceid.c
mksourceid$(BEXE): $(MAKE_SANITY_CHECK) $(TOP)/tool/mksourceid.c
$(BCC) -o $@ $(TOP)/tool/mksourceid.c
sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest mksourceid$(BEXE) \
sqlite3.h: $(MAKE_SANITY_CHECK) $(TOP)/src/sqlite.h.in \
$(TOP)/manifest mksourceid$(BEXE) \
$(TOP)/VERSION $(BTCLSH) # has_tclsh84
$(BTCLSH) $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h
@ -843,7 +871,8 @@ sqlite3ext.h: .target_source
# parse.o
# opcodes.o
#
parse.o: parse.c $(HDR)
DEPS_OBJ_COMMON = $(MAKE_SANITY_CHECK) $(HDR)
parse.o: parse.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c parse.c
opcodes.o: opcodes.c
@ -851,257 +880,257 @@ opcodes.o: opcodes.c
# Rules to build individual *.o files from files in the src directory.
#
alter.o: $(TOP)/src/alter.c $(HDR)
alter.o: $(TOP)/src/alter.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/alter.c
analyze.o: $(TOP)/src/analyze.c $(HDR)
analyze.o: $(TOP)/src/analyze.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/analyze.c
attach.o: $(TOP)/src/attach.c $(HDR)
attach.o: $(TOP)/src/attach.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/attach.c
auth.o: $(TOP)/src/auth.c $(HDR)
auth.o: $(TOP)/src/auth.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/auth.c
backup.o: $(TOP)/src/backup.c $(HDR)
backup.o: $(TOP)/src/backup.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/backup.c
bitvec.o: $(TOP)/src/bitvec.c $(HDR)
bitvec.o: $(TOP)/src/bitvec.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/bitvec.c
btmutex.o: $(TOP)/src/btmutex.c $(HDR)
btmutex.o: $(TOP)/src/btmutex.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/btmutex.c
btree.o: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h
btree.o: $(TOP)/src/btree.c $(DEPS_OBJ_COMMON) $(TOP)/src/pager.h
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/btree.c
build.o: $(TOP)/src/build.c $(HDR)
build.o: $(TOP)/src/build.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/build.c
callback.o: $(TOP)/src/callback.c $(HDR)
callback.o: $(TOP)/src/callback.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/callback.c
complete.o: $(TOP)/src/complete.c $(HDR)
complete.o: $(TOP)/src/complete.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/complete.c
ctime.o: $(TOP)/src/ctime.c $(HDR)
ctime.o: $(TOP)/src/ctime.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/ctime.c
date.o: $(TOP)/src/date.c $(HDR)
date.o: $(TOP)/src/date.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/date.c
dbpage.o: $(TOP)/src/dbpage.c $(HDR)
dbpage.o: $(TOP)/src/dbpage.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/dbpage.c
dbstat.o: $(TOP)/src/dbstat.c $(HDR)
dbstat.o: $(TOP)/src/dbstat.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/dbstat.c
delete.o: $(TOP)/src/delete.c $(HDR)
delete.o: $(TOP)/src/delete.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/delete.c
expr.o: $(TOP)/src/expr.c $(HDR)
expr.o: $(TOP)/src/expr.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/expr.c
fault.o: $(TOP)/src/fault.c $(HDR)
fault.o: $(TOP)/src/fault.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/fault.c
fkey.o: $(TOP)/src/fkey.c $(HDR)
fkey.o: $(TOP)/src/fkey.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/fkey.c
func.o: $(TOP)/src/func.c $(HDR)
func.o: $(TOP)/src/func.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/func.c
global.o: $(TOP)/src/global.c $(HDR)
global.o: $(TOP)/src/global.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/global.c
hash.o: $(TOP)/src/hash.c $(HDR)
hash.o: $(TOP)/src/hash.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/hash.c
insert.o: $(TOP)/src/insert.c $(HDR)
insert.o: $(TOP)/src/insert.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/insert.c
json.o: $(TOP)/src/json.c $(HDR)
json.o: $(TOP)/src/json.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/json.c
legacy.o: $(TOP)/src/legacy.c $(HDR)
legacy.o: $(TOP)/src/legacy.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/legacy.c
loadext.o: $(TOP)/src/loadext.c $(HDR)
loadext.o: $(TOP)/src/loadext.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/loadext.c
main.o: $(TOP)/src/main.c $(HDR)
main.o: $(TOP)/src/main.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/main.c
malloc.o: $(TOP)/src/malloc.c $(HDR)
malloc.o: $(TOP)/src/malloc.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/malloc.c
mem0.o: $(TOP)/src/mem0.c $(HDR)
mem0.o: $(TOP)/src/mem0.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/mem0.c
mem1.o: $(TOP)/src/mem1.c $(HDR)
mem1.o: $(TOP)/src/mem1.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/mem1.c
mem2.o: $(TOP)/src/mem2.c $(HDR)
mem2.o: $(TOP)/src/mem2.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/mem2.c
mem3.o: $(TOP)/src/mem3.c $(HDR)
mem3.o: $(TOP)/src/mem3.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/mem3.c
mem5.o: $(TOP)/src/mem5.c $(HDR)
mem5.o: $(TOP)/src/mem5.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/mem5.c
memdb.o: $(TOP)/src/memdb.c $(HDR)
memdb.o: $(TOP)/src/memdb.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/memdb.c
memjournal.o: $(TOP)/src/memjournal.c $(HDR)
memjournal.o: $(TOP)/src/memjournal.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/memjournal.c
mutex.o: $(TOP)/src/mutex.c $(HDR)
mutex.o: $(TOP)/src/mutex.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/mutex.c
mutex_noop.o: $(TOP)/src/mutex_noop.c $(HDR)
mutex_noop.o: $(TOP)/src/mutex_noop.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/mutex_noop.c
mutex_unix.o: $(TOP)/src/mutex_unix.c $(HDR)
mutex_unix.o: $(TOP)/src/mutex_unix.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/mutex_unix.c
mutex_w32.o: $(TOP)/src/mutex_w32.c $(HDR)
mutex_w32.o: $(TOP)/src/mutex_w32.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/mutex_w32.c
notify.o: $(TOP)/src/notify.c $(HDR)
notify.o: $(TOP)/src/notify.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/notify.c
pager.o: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h
pager.o: $(TOP)/src/pager.c $(DEPS_OBJ_COMMON) $(TOP)/src/pager.h
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/pager.c
pcache.o: $(TOP)/src/pcache.c $(HDR) $(TOP)/src/pcache.h
pcache.o: $(TOP)/src/pcache.c $(DEPS_OBJ_COMMON) $(TOP)/src/pcache.h
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/pcache.c
pcache1.o: $(TOP)/src/pcache1.c $(HDR) $(TOP)/src/pcache.h
pcache1.o: $(TOP)/src/pcache1.c $(DEPS_OBJ_COMMON) $(TOP)/src/pcache.h
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/pcache1.c
os.o: $(TOP)/src/os.c $(HDR)
os.o: $(TOP)/src/os.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/os.c
os_kv.o: $(TOP)/src/os_kv.c $(HDR)
os_kv.o: $(TOP)/src/os_kv.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/os_kv.c
os_unix.o: $(TOP)/src/os_unix.c $(HDR)
os_unix.o: $(TOP)/src/os_unix.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/os_unix.c
os_win.o: $(TOP)/src/os_win.c $(HDR)
os_win.o: $(TOP)/src/os_win.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/os_win.c
pragma.o: $(TOP)/src/pragma.c $(HDR)
pragma.o: $(TOP)/src/pragma.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/pragma.c
prepare.o: $(TOP)/src/prepare.c $(HDR)
prepare.o: $(TOP)/src/prepare.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/prepare.c
printf.o: $(TOP)/src/printf.c $(HDR)
printf.o: $(TOP)/src/printf.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/printf.c
random.o: $(TOP)/src/random.c $(HDR)
random.o: $(TOP)/src/random.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/random.c
resolve.o: $(TOP)/src/resolve.c $(HDR)
resolve.o: $(TOP)/src/resolve.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/resolve.c
rowset.o: $(TOP)/src/rowset.c $(HDR)
rowset.o: $(TOP)/src/rowset.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/rowset.c
select.o: $(TOP)/src/select.c $(HDR)
select.o: $(TOP)/src/select.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/select.c
status.o: $(TOP)/src/status.c $(HDR)
status.o: $(TOP)/src/status.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/status.c
sqlite3.o: sqlite3.h sqlite3.c
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c sqlite3.c
table.o: $(TOP)/src/table.c $(HDR)
table.o: $(TOP)/src/table.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/table.c
threads.o: $(TOP)/src/threads.c $(HDR)
threads.o: $(TOP)/src/threads.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/threads.c
tokenize.o: $(TOP)/src/tokenize.c keywordhash.h $(HDR)
tokenize.o: $(TOP)/src/tokenize.c keywordhash.h $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/tokenize.c
treeview.o: $(TOP)/src/treeview.c $(HDR)
treeview.o: $(TOP)/src/treeview.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/treeview.c
trigger.o: $(TOP)/src/trigger.c $(HDR)
trigger.o: $(TOP)/src/trigger.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/trigger.c
update.o: $(TOP)/src/update.c $(HDR)
update.o: $(TOP)/src/update.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/update.c
upsert.o: $(TOP)/src/upsert.c $(HDR)
upsert.o: $(TOP)/src/upsert.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/upsert.c
utf.o: $(TOP)/src/utf.c $(HDR)
utf.o: $(TOP)/src/utf.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/utf.c
util.o: $(TOP)/src/util.c $(HDR)
util.o: $(TOP)/src/util.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/util.c
vacuum.o: $(TOP)/src/vacuum.c $(HDR)
vacuum.o: $(TOP)/src/vacuum.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/vacuum.c
vdbe.o: $(TOP)/src/vdbe.c $(HDR)
vdbe.o: $(TOP)/src/vdbe.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/vdbe.c
vdbeapi.o: $(TOP)/src/vdbeapi.c $(HDR)
vdbeapi.o: $(TOP)/src/vdbeapi.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/vdbeapi.c
vdbeaux.o: $(TOP)/src/vdbeaux.c $(HDR)
vdbeaux.o: $(TOP)/src/vdbeaux.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/vdbeaux.c
vdbeblob.o: $(TOP)/src/vdbeblob.c $(HDR)
vdbeblob.o: $(TOP)/src/vdbeblob.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/vdbeblob.c
vdbemem.o: $(TOP)/src/vdbemem.c $(HDR)
vdbemem.o: $(TOP)/src/vdbemem.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/vdbemem.c
vdbesort.o: $(TOP)/src/vdbesort.c $(HDR)
vdbesort.o: $(TOP)/src/vdbesort.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/vdbesort.c
vdbetrace.o: $(TOP)/src/vdbetrace.c $(HDR)
vdbetrace.o: $(TOP)/src/vdbetrace.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/vdbetrace.c
vdbevtab.o: $(TOP)/src/vdbevtab.c $(HDR)
vdbevtab.o: $(TOP)/src/vdbevtab.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/vdbevtab.c
vtab.o: $(TOP)/src/vtab.c $(HDR)
vtab.o: $(TOP)/src/vtab.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/vtab.c
wal.o: $(TOP)/src/wal.c $(HDR)
wal.o: $(TOP)/src/wal.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/wal.c
walker.o: $(TOP)/src/walker.c $(HDR)
walker.o: $(TOP)/src/walker.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/walker.c
where.o: $(TOP)/src/where.c $(HDR)
where.o: $(TOP)/src/where.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/where.c
wherecode.o: $(TOP)/src/wherecode.c $(HDR)
wherecode.o: $(TOP)/src/wherecode.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/wherecode.c
whereexpr.o: $(TOP)/src/whereexpr.c $(HDR)
whereexpr.o: $(TOP)/src/whereexpr.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/whereexpr.c
window.o: $(TOP)/src/window.c $(HDR)
window.o: $(TOP)/src/window.c $(DEPS_OBJ_COMMON)
$(TCC.sqlite) $(CFLAGS_libsqlite3) -c $(TOP)/src/window.c
tclsqlite.o: $(TOP)/src/tclsqlite.c $(HDR)
tclsqlite.o: $(TOP)/src/tclsqlite.c $(DEPS_OBJ_COMMON)
$(TCOMPILE) -DUSE_TCL_STUBS=1 $(TCL_INCLUDE_SPEC) $(CFLAGS_intree_includes) \
-c $(TOP)/src/tclsqlite.c
tclsqlite-shell.o: $(TOP)/src/tclsqlite.c $(HDR)
tclsqlite-shell.o: $(TOP)/src/tclsqlite.c $(DEPS_OBJ_COMMON)
$(TCOMPILE) -DTCLSH -o $@ -c $(TOP)/src/tclsqlite.c $(TCL_INCLUDE_SPEC)
tclsqlite-stubs.o: $(TOP)/src/tclsqlite.c $(HDR)
tclsqlite-stubs.o: $(TOP)/src/tclsqlite.c $(DEPS_OBJ_COMMON)
$(TCOMPILE) -DUSE_TCL_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c $(TCL_INCLUDE_SPEC)
tclsqlite3$(TEXE): has_tclconfig tclsqlite-shell.o $(libsqlite3.LIB)
@ -1186,14 +1215,14 @@ install: install-so-$(ENABLE_SHARED)
# Install $(libsqlite3.LIB)
#
install-lib: $(install-dir.lib) $(libsqlite3.LIB)
$(INSTALL_noexec) $(libsqlite3.LIB) $(install-dir.lib)
$(INSTALL.noexec) $(libsqlite3.LIB) $(install-dir.lib)
install: install-lib
#
# Install C header files
#
install-includes: sqlite3.h $(install-dir.include)
$(INSTALL_noexec) sqlite3.h "$(TOP)/src/sqlite3ext.h" $(install-dir.include)
$(INSTALL.noexec) sqlite3.h "$(TOP)/src/sqlite3ext.h" $(install-dir.include)
install: install-includes
#
@ -1216,7 +1245,7 @@ install-tcl-1: install-lib $(libtclsqlite3.SO) pkgIndex.tcl
@if [ "x$(DESTDIR)" = "x$(install.tcldir)" ]; then echo "TCLLIBDIR is not set." 1>&2; exit 1; fi
$(INSTALL) -d $(install.tcldir)
$(INSTALL) $(libtclsqlite3.SO) $(install.tcldir)
$(INSTALL_noexec) pkgIndex.tcl $(install.tcldir)
$(INSTALL.noexec) pkgIndex.tcl $(install.tcldir)
install-tcl-0 install-tcl-:
install: install-tcl-$(HAVE_TCL)
@ -1286,10 +1315,10 @@ fts5.c: $(FTS5_SRC) $(BTCLSH) # has_tclsh84
$(BTCLSH) $(TOP)/ext/fts5/tool/mkfts5c.tcl
cp $(TOP)/ext/fts5/fts5.h .
fts5.o: fts5.c $(HDR) $(EXTHDR)
fts5.o: fts5.c $(DEPS_OBJ_COMMON) $(EXTHDR)
$(TCC.extension) -c fts5.c
sqlite3rbu.o: $(TOP)/ext/rbu/sqlite3rbu.c $(HDR) $(EXTHDR)
sqlite3rbu.o: $(TOP)/ext/rbu/sqlite3rbu.c $(DEPS_OBJ_COMMON) $(EXTHDR)
$(TCC.extension) -c $(TOP)/ext/rbu/sqlite3rbu.c
@ -1658,14 +1687,14 @@ install-rsync: sqlite3_rsync$(TEXE) $(install-dir.bin)
#install: install-rsync
install-man1: $(install-dir.man1)
$(INSTALL_noexec) $(TOP)/sqlite3.1 $(install-dir.man1)
$(INSTALL.noexec) $(TOP)/sqlite3.1 $(install-dir.man1)
install: install-man1
#
# sqlite3.pc is typically generated by the configure script but could
# conceivably be generated by hand.
install-pc: sqlite3.pc $(install-dir.pkgconfig)
$(INSTALL_noexec) sqlite3.pc $(install-dir.pkgconfig)
$(INSTALL.noexec) sqlite3.pc $(install-dir.pkgconfig)
scrub$(TEXE): $(TOP)/ext/misc/scrub.c sqlite3.o
$(TLINK) -o $@ -I. -DSCRUB_STANDALONE \
@ -1816,67 +1845,61 @@ shell.c: $(SHELL_DEP) $(TOP)/tool/mkshellc.tcl $(BTCLSH) # has_tclsh84
#
# Rules to build the extension objects.
#
icu.o: $(TOP)/ext/icu/icu.c $(HDR) $(EXTHDR)
DEPS_EXT_COMMON = $(DEPS_OBJ_COMMON) $(EXTHDR)
icu.o: $(TOP)/ext/icu/icu.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/icu/icu.c
fts3.o: $(TOP)/ext/fts3/fts3.c $(HDR) $(EXTHDR)
fts3.o: $(TOP)/ext/fts3/fts3.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3.c
fts3_aux.o: $(TOP)/ext/fts3/fts3_aux.c $(HDR) $(EXTHDR)
fts3_aux.o: $(TOP)/ext/fts3/fts3_aux.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3_aux.c
fts3_expr.o: $(TOP)/ext/fts3/fts3_expr.c $(HDR) $(EXTHDR)
fts3_expr.o: $(TOP)/ext/fts3/fts3_expr.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3_expr.c
fts3_hash.o: $(TOP)/ext/fts3/fts3_hash.c $(HDR) $(EXTHDR)
fts3_hash.o: $(TOP)/ext/fts3/fts3_hash.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3_hash.c
fts3_icu.o: $(TOP)/ext/fts3/fts3_icu.c $(HDR) $(EXTHDR)
fts3_icu.o: $(TOP)/ext/fts3/fts3_icu.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3_icu.c
fts3_porter.o: $(TOP)/ext/fts3/fts3_porter.c $(HDR) $(EXTHDR)
fts3_porter.o: $(TOP)/ext/fts3/fts3_porter.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3_porter.c
fts3_snippet.o: $(TOP)/ext/fts3/fts3_snippet.c $(HDR) $(EXTHDR)
fts3_snippet.o: $(TOP)/ext/fts3/fts3_snippet.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3_snippet.c
fts3_tokenizer.o: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR) $(EXTHDR)
fts3_tokenizer.o: $(TOP)/ext/fts3/fts3_tokenizer.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3_tokenizer.c
fts3_tokenizer1.o: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR) $(EXTHDR)
fts3_tokenizer1.o: $(TOP)/ext/fts3/fts3_tokenizer1.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3_tokenizer1.c
fts3_tokenize_vtab.o: $(TOP)/ext/fts3/fts3_tokenize_vtab.c $(HDR) $(EXTHDR)
fts3_tokenize_vtab.o: $(TOP)/ext/fts3/fts3_tokenize_vtab.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3_tokenize_vtab.c
fts3_unicode.o: $(TOP)/ext/fts3/fts3_unicode.c $(HDR) $(EXTHDR)
fts3_unicode.o: $(TOP)/ext/fts3/fts3_unicode.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3_unicode.c
fts3_unicode2.o: $(TOP)/ext/fts3/fts3_unicode2.c $(HDR) $(EXTHDR)
fts3_unicode2.o: $(TOP)/ext/fts3/fts3_unicode2.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3_unicode2.c
fts3_write.o: $(TOP)/ext/fts3/fts3_write.c $(HDR) $(EXTHDR)
fts3_write.o: $(TOP)/ext/fts3/fts3_write.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/fts3/fts3_write.c
rtree.o: $(TOP)/ext/rtree/rtree.c $(HDR) $(EXTHDR)
rtree.o: $(TOP)/ext/rtree/rtree.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/rtree/rtree.c
userauth.o: $(TOP)/ext/userauth/userauth.c $(HDR) $(EXTHDR)
userauth.o: $(TOP)/ext/userauth/userauth.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/userauth/userauth.c
sqlite3session.o: $(TOP)/ext/session/sqlite3session.c $(HDR) $(EXTHDR)
sqlite3session.o: $(TOP)/ext/session/sqlite3session.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/session/sqlite3session.c
stmt.o: $(TOP)/ext/misc/stmt.c
stmt.o: $(TOP)/ext/misc/stmt.c $(DEPS_EXT_COMMON)
$(TCC.extension) -c $(TOP)/ext/misc/stmt.c
#
# tool/version-info: a utility for emitting sqlite3 version info
# in various forms.
#
version-info$(TEXE): $(TOP)/tool/version-info.c Makefile sqlite3.h
$(TLINK) $(ST_OPT) -o $@ $(TOP)/tool/version-info.c
#
# Windows section
#
@ -1914,8 +1937,12 @@ tidy:
rm -f mptester$(TEXE) rbu$(TEXE) srcck1$(TEXE)
rm -f fuzzershell$(TEXE) fuzzcheck$(TEXE) sqldiff$(TEXE) dbhash$(TEXE)
rm -f dbfuzz$(TEXE) dbfuzz2$(TEXE)
rm -fr dbfuzz2-dir
rm -f fuzzcheck-asan$(TEXE) fuzzcheck-ubsan$(TEXE) ossshell$(TEXE)
rm -f sessionfuzz$(TEXE)
rm -f scrub$(TEXE) showshm$(TEXE) sqlite3_checker$(TEXE) loadfts$(EXE)
rm -f index_usage$(TEXE) kvtest$(TEXE) startup$(TEXE) threadtest3$(TEXE)
rm -f sessionfuzz$(TEXE) changesetfuzz$(TEXE)
rm -f dbdump$(TEXE) dbtotxt$(TEXE) atrc$(TEXX)
rm -f threadtest5$(TEXE)
rm -f src-verify$(BEXE) has_tclsh* has_tclconfig
rm -f tclsqlite3.c

View File

@ -1,14 +1,13 @@
C Rename\ssome\sbuild\svars\sfor\slegibility.\sFix\shwaci-make-from-dot-in\swhen\sthe\sinput\sfile\slist\sis\smulti-line.
D 2024-10-24T01:26:50.001
C General\smake\scleanups.\sStart\sadding\sa\ssanity-check\smechanism\sto\smain.mk\swhich\sdoes\sbasic\svalidation\sof\sthe\svars\sit\sexpects\sto\sbe\sset\sby\sthe\sfile\swhich\sincludes\sit.\sGet\sMakefile.linux-gcc\sworking\sfor\sthe\score-most\srules.
D 2024-10-24T03:14:40.105
F .fossil-settings/empty-dirs dbb81e8fc0401ac46a1491ab34a7f2c7c0452f2f06b54ebb845d024ca8283ef1
F .fossil-settings/ignore-glob 35175cdfcf539b2318cb04a9901442804be81cd677d8b889fcc9149c21f239ea
F LICENSE.md df5091916dbb40e6e9686186587125e1b2ff51f022cc334e886c19a0e9982724
F Makefile.in 4b18845678335be6e56dbe6257a8a777d416ead26c72dd71a08b0bb1a0d59575
F Makefile.linux-gcc f3842a0b1efbfbb74ac0ef60e56b301836d05b4d867d014f714fa750048f1ab6
F Makefile.in b59fc1da692960f2d4cb15fa05c5bafb5b289dda360f34562b5a97c6ddbdda7e
F Makefile.linux-gcc db3a57a7b34ebd24e1b18fc42c84339aeef7c4eced534db1817bc3c38895165e
F Makefile.msc 58b69eda1faad5d475092b8aeffab9156ee4901a82db089b166607f2ec907ee4
F README.md c3c0f19532ce28f6297a71870f3c7b424729f0e6d9ab889616d3587dd2332159
F VERSION 0db40f92c04378404eb45bff93e9e42c148c7e54fd3da99469ed21e22411f5a6
F aclocal.m4 a5c22d164aff7ed549d53a90fa56d56955281f50
F art/icon-243x273.gif 9750b734f82fdb3dc43127753d5e6fbf3b62c9f4e136c2fbf573b2f57ea87af5
F art/icon-80x90.gif 65509ce3e5f86a9cd64fe7fca2d23954199f31fe44c1e09e208c80fb83d87031
F art/sqlite370.eps aa97a671332b432a54e1d74ff5e8775be34200c2
@ -708,7 +707,7 @@ F ext/wasm/wasmfs.make bc8bb227f35d5bd3863a7bd2233437c37472a0d81585979f058f9b9b5
F install-sh 9d4de14ab9fb0facae2f48780b874848cbf2f895 x
F ltmain.sh 3ff0879076df340d2e23ae905484d8c15d5fdea8
F magic.txt 5ade0bc977aa135e79e3faaea894d5671b26107cc91e70783aa7dc83f22f3ba0
F main.mk 244408dfbc1891f8a2dae883e07953218370007fcd20db49ec6f00cf6b3e3913
F main.mk 1a29e60e6fa8dfec772d5a8b80e4a975692f7dd38f5bf72eeff45d46974ef561
F mptest/config01.test 3c6adcbc50b991866855f1977ff172eb6d901271
F mptest/config02.test 4415dfe36c48785f751e16e32c20b077c28ae504
F mptest/crash01.test 61e61469e257df0850df4293d7d4d6c2af301421
@ -2237,8 +2236,8 @@ F vsixtest/vsixtest.tcl 6195aba1f12a5e10efc2b8c0009532167be5e301abe5b31385638080
F vsixtest/vsixtest.vcxproj.data 2ed517e100c66dc455b492e1a33350c1b20fbcdc
F vsixtest/vsixtest.vcxproj.filters 37e51ffedcdb064aad6ff33b6148725226cd608e
F vsixtest/vsixtest_TemporaryKey.pfx e5b1b036facdb453873e7084e1cae9102ccc67a0
P 182dac1c46f8ada2e1f3abd4959ac72f0ecfd451b41fbe699f5077f338ae7d62
R 243b1b295b7d39496ee8f02f5822532a
P fdb584421578cae825365d457cd533721839e3503f3744c77832c5925815b537
R 60a889aacfbf201fc2f3a1db7c7c07ee
U stephan
Z 76aba5b639a66a5a98cbfb78d58f5288
Z 88aaad170bee1bcadb1054f45af7ff25
# Remove this line to create a well-formed Fossil manifest.

View File

@ -1 +1 @@
fdb584421578cae825365d457cd533721839e3503f3744c77832c5925815b537
85b2c73ccb85d7f5830a6fac692b380c5c79e7a54ee3fc6fc37343fa23816ef8