2024-10-09 10:12:32 +03:00
|
|
|
#!/usr/bin/make
|
2024-10-20 04:09:51 +03:00
|
|
|
# ^^^^ help out editors which guess this file's type.
|
2004-06-30 15:41:55 +04:00
|
|
|
#
|
|
|
|
# Makefile for SQLITE
|
|
|
|
#
|
2024-10-09 10:12:32 +03:00
|
|
|
# This makefile is intended to be configured automatically using the
|
|
|
|
# configure script. Hand editing may not work as expected because
|
|
|
|
# certain blocks are added or removed depending on configure-time
|
|
|
|
# information.
|
2004-06-30 15:41:55 +04:00
|
|
|
#
|
2024-10-20 04:09:51 +03:00
|
|
|
|
|
|
|
########################################################################
|
|
|
|
#XX# Lines starting with #XX# are TODOs for the port to autosetup.
|
|
|
|
#
|
|
|
|
# Known TODOs/FIXMEs/TOIMPROVEs for the autosetup port, in no
|
|
|
|
# particular order...
|
|
|
|
#
|
|
|
|
# - libreadline detection and handling of its -I, -L, and -l flags.
|
|
|
|
# These can vary considerably across systems. e.g. some need -lncurses,
|
2024-10-20 04:34:13 +03:00
|
|
|
# and some don't know what an -lncurses is.
|
2024-10-20 04:09:51 +03:00
|
|
|
#
|
2024-10-20 04:34:13 +03:00
|
|
|
# - TEA pieces.
|
2024-10-20 04:09:51 +03:00
|
|
|
#
|
|
|
|
# - Replace the autotools-specific distribution deliverable(s).
|
|
|
|
#
|
|
|
|
# - Provide Makefile.msc, Makefile.linux-gcc, and any required similar
|
2024-10-20 04:34:13 +03:00
|
|
|
# makefile stubs for environments where the configure script will not
|
2024-10-20 04:09:51 +03:00
|
|
|
# run. The core makefile rules in main.mk "should" apply as-is for
|
2024-10-20 04:34:13 +03:00
|
|
|
# most platforms. We can potentially generate those makefiles, along
|
|
|
|
# with main.mk, like we do in the Fossil project.
|
2024-10-20 04:09:51 +03:00
|
|
|
#
|
|
|
|
# - Confirm whether cross-compilation works and patch it
|
|
|
|
# appropriately.
|
|
|
|
#
|
2024-10-20 05:47:56 +03:00
|
|
|
# - There are some lingering dependencies issues which cause a
|
|
|
|
# re-configure to trigger more often than it should. This is
|
|
|
|
# especially a problem in parallel builds, which may launch multiple
|
|
|
|
# re-configures in parallel. GNU Make offers ways of controlling
|
|
|
|
# that, but we're limited to POSIX Make compatibility here. The
|
|
|
|
# automatic reconfigures are not too onerous, though, because they're
|
|
|
|
# much, much faster than Autotools configure runs.
|
|
|
|
#
|
2024-09-26 17:09:23 +03:00
|
|
|
all:
|
2024-10-20 04:09:51 +03:00
|
|
|
clean:
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2024-10-20 04:09:51 +03:00
|
|
|
#
|
|
|
|
# Maintenance reminder: When using the X?=Y variable assignment
|
|
|
|
# formulation, please test the build with both GNU make and a POSIX
|
|
|
|
# make (e.g. BSD make, a.k.a. bmake). On at least one occassion, that
|
|
|
|
# formulation has led to inconsistent behavior between the two major
|
|
|
|
# make flavors when used with variable names which might sensibly be
|
|
|
|
# in the developer's environment (namely CC).
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# The top-most directory of the source tree. This is the directory
|
2024-09-25 17:38:46 +03:00
|
|
|
# that contains this "Makefile.in" and the "configure" script.
|
2004-06-30 15:41:55 +04:00
|
|
|
#
|
2024-09-25 17:38:46 +03:00
|
|
|
TOP = @abs_top_srcdir@
|
2024-10-20 04:09:51 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Just testing some default dir expansions...
|
2024-09-26 01:13:49 +03:00
|
|
|
# srcdir = @srcdir@
|
|
|
|
# top_srcdir = @top_srcdir@
|
|
|
|
# abs_top_srcdir = @abs_top_srcdir@
|
|
|
|
# abs_top_builddir = @abs_top_builddir@
|
2024-10-20 04:09:51 +03:00
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Some standard variables and programs
|
|
|
|
#
|
|
|
|
prefix ?= @prefix@
|
|
|
|
exec_prefix ?= @exec_prefix@
|
|
|
|
libdir ?= @libdir@
|
|
|
|
pkgconfigdir ?= $(libdir)/pkgconfig
|
|
|
|
bindir ?= @bindir@
|
|
|
|
includedir ?= @includedir@
|
|
|
|
INSTALL = @BIN_INSTALL@
|
2024-10-19 23:53:46 +03:00
|
|
|
AR = @AR@
|
|
|
|
CC = @CC@
|
2024-10-20 04:09:51 +03:00
|
|
|
#LD = @LD@ # isn't actually needed, at least on modern Unixes.
|
2024-09-25 17:58:09 +03:00
|
|
|
|
2024-10-20 04:09:51 +03:00
|
|
|
#
|
2004-06-30 15:41:55 +04:00
|
|
|
# C Compiler and options for use in building executables that
|
|
|
|
# will run on the platform that is doing the build.
|
|
|
|
#
|
2024-09-26 15:16:46 +03:00
|
|
|
BCC = @BUILD_CC@ @BUILD_CFLAGS@
|
2024-10-19 23:26:17 +03:00
|
|
|
|
2024-10-20 04:09:51 +03:00
|
|
|
#
|
|
|
|
# Rather that stuffing all CFLAGS and LDFLAGS into a single set, we
|
|
|
|
# break them down on a per-feature basis and expect the build targets
|
|
|
|
# to use the one(s) it needs.
|
|
|
|
#
|
|
|
|
LDFLAGS_ZLIB = @LDFLAGS_ZLIB@
|
|
|
|
LDFLAGS_MATH = @LDFLAGS_MATH@
|
|
|
|
LDFLAGS_RPATH = @LDFLAGS_RPATH@
|
|
|
|
LDFLAGS_READLINE = @LDFLAGS_READLINE@
|
|
|
|
LDFLAGS_PTHREAD = @LDFLAGS_PTHREAD@
|
|
|
|
LDFLAGS_SHOBJ = @SHOBJ_LDFLAGS@
|
|
|
|
|
|
|
|
ENABLE_SHARED = @ENABLE_SHARED@
|
|
|
|
HAVE_WASI_SDK = @HAVE_WASI_SDK@
|
|
|
|
|
2004-06-30 15:41:55 +04:00
|
|
|
#
|
2024-10-09 10:12:32 +03:00
|
|
|
# TCC is the C Compile and options for use in building executables that
|
|
|
|
# will run on the target platform. (BCC and TCC are usually the
|
|
|
|
# same unless your are cross-compiling.) Separate CC and CFLAGS macros
|
|
|
|
# are provide so that these aspects of the build process can be changed
|
|
|
|
# on the "make" command-line. Ex: "make CC=clang CFLAGS=-fsanitize=undefined"
|
|
|
|
#
|
2024-10-19 23:53:46 +03:00
|
|
|
CFLAGS = @CFLAGS@ @SH_CFLAGS@
|
2024-10-20 04:09:51 +03:00
|
|
|
TCC = $(CC) $(CFLAGS)
|
2024-09-26 15:16:46 +03:00
|
|
|
|
|
|
|
# Define -DNDEBUG to compile without debugging (i.e., for production usage)
|
|
|
|
# Omitting the define will cause extra debugging code to be inserted and
|
|
|
|
# includes extra comments when "EXPLAIN stmt" is used.
|
|
|
|
#
|
2024-10-20 04:09:51 +03:00
|
|
|
TCCX = $(TCC) @TARGET_DEBUG@
|
|
|
|
# Define this for the autoconf-based build, so that the code knows it
|
|
|
|
# can include the generated sqlite_cfg.h.
|
2024-10-19 23:26:17 +03:00
|
|
|
#
|
|
|
|
TCCX += -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite
|
|
|
|
#
|
|
|
|
# main.mk will fill out TCCX with some flags common to all builds.
|
|
|
|
|
|
|
|
#
|
2024-09-27 16:29:50 +03:00
|
|
|
# Compiler options needed for programs that use the readline() library.
|
|
|
|
#
|
2024-10-20 04:09:51 +03:00
|
|
|
CFLAGS_READLINE = -DHAVE_READLINE=@HAVE_READLINE@ @CFLAGS_READLINE@
|
|
|
|
#XX#CFLAGS_READLINE += -DHAVE_EDITLINE=@TARGET_HAVE_EDITLINE@
|
|
|
|
#XX#CFLAGS_READLINE += -DHAVE_LINENOISE=@TARGET_HAVE_LINENOISE@
|
2024-09-25 17:38:46 +03:00
|
|
|
#XX#
|
|
|
|
#XX## The library that programs using readline() must link against.
|
|
|
|
#XX##
|
|
|
|
#XX#LIBREADLINE = @TARGET_READLINE_LIBS@
|
|
|
|
#XX#
|
|
|
|
#XX## Should the database engine be compiled threadsafe
|
|
|
|
#XX##
|
|
|
|
#XX#TCC += -DSQLITE_THREADSAFE=@SQLITE_THREADSAFE@
|
2024-10-18 19:39:17 +03:00
|
|
|
|
|
|
|
#
|
2024-09-27 16:29:50 +03:00
|
|
|
# Any target libraries which libsqlite must be linked against
|
|
|
|
#
|
2024-10-18 19:39:17 +03:00
|
|
|
# With the autosetup build, the intended way to do this is to set
|
|
|
|
# those in $(LDFLAGS_libsqlite3) and include those flags for both
|
2024-10-19 15:47:06 +03:00
|
|
|
# $(libsqlite3.SO) and any apps which directly link in either
|
2024-10-18 19:39:17 +03:00
|
|
|
# sqlite3.o or its origin sources.
|
2024-10-19 21:31:47 +03:00
|
|
|
LIBS += @LIBS@
|
|
|
|
TLIBS = $(LIBS)
|
2024-09-28 17:51:10 +03:00
|
|
|
|
2024-10-18 01:19:37 +03:00
|
|
|
#
|
|
|
|
# JimTCL is part of the autosetup suite and is suitable for all
|
|
|
|
# current in-tree code-generation TCL jobs, but it requires that we
|
|
|
|
# build it with non-default flags. Note that the build tree will, if
|
|
|
|
# no system-level tclsh is found, also have a ./jimsh0. That one is a
|
|
|
|
# bare-bones build for the configure process, whereas we need to build
|
|
|
|
# it with another option enabled for use with the various code
|
|
|
|
# generators.
|
|
|
|
#
|
|
|
|
JIMSH = @srcdir@/jimsh
|
2024-10-19 21:31:47 +03:00
|
|
|
CFLAGS_JIMSH ?= @CFLAGS_JIMSH@
|
2024-10-18 01:19:37 +03:00
|
|
|
$(JIMSH): $(TOP)/autosetup/jimsh0.c
|
2024-10-19 23:53:46 +03:00
|
|
|
$(BCC) -o $(JIMSH) $(CFLAGS_JIMSH) $(TOP)/autosetup/jimsh0.c
|
2024-10-18 01:19:37 +03:00
|
|
|
|
|
|
|
# BTCLSH is the tclsh-compatible app used for running various code
|
|
|
|
# generators and other in-tree tools, as opposed to the TCL-based
|
|
|
|
# tests, which must be built and run using the canonical TCL
|
|
|
|
# distribution.
|
|
|
|
BTCLSH = @BTCLSH@
|
|
|
|
$(BTCLSH):
|
|
|
|
|
2024-09-26 02:09:38 +03:00
|
|
|
#
|
2024-10-20 04:09:51 +03:00
|
|
|
# $(CFLAGS_libsqlite3) must contain any CFLAGS which are relevant for
|
|
|
|
# compiling the library's own sources, including (sometimes) when
|
|
|
|
# compiling sqlite3.c directly in to another app. Most notably, it
|
|
|
|
# should always contain -DSQLITE_TEMP_STORE=N for the sake of
|
|
|
|
# historical build expecations.
|
|
|
|
#
|
|
|
|
# SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1
|
|
|
|
# to default to file, 2 to default to memory, and 3 to force temporary
|
2024-09-26 02:09:38 +03:00
|
|
|
# tables to always be in memory.
|
|
|
|
#
|
2024-10-20 04:09:51 +03:00
|
|
|
CFLAGS_libsqlite3 = -DSQLITE_TEMP_STORE=@TEMP_STORE@
|
2004-06-30 15:41:55 +04:00
|
|
|
|
2024-10-20 04:09:51 +03:00
|
|
|
#
|
2008-07-22 09:05:01 +04:00
|
|
|
# Enable/disable loadable extensions, and other optional features
|
2018-10-29 20:53:23 +03:00
|
|
|
# based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*).
|
|
|
|
# The same set of OMIT and ENABLE flags should be passed to the
|
2008-10-22 22:27:31 +04:00
|
|
|
# LEMON parser generator and the mkkeywordhash tool as well.
|
2024-08-29 21:32:56 +03:00
|
|
|
#
|
|
|
|
# Add OPTIONS=... on the command line to append additional options
|
2024-09-25 17:38:46 +03:00
|
|
|
# to the OPT_FEATURE_FLAGS. Note that some flags only work if
|
|
|
|
# the build is specifically configured to account for them.
|
2024-08-29 21:32:56 +03:00
|
|
|
#
|
|
|
|
OPT_FEATURE_FLAGS = @OPT_FEATURE_FLAGS@ $(OPTIONS)
|
2024-09-26 02:09:38 +03:00
|
|
|
|
|
|
|
TCC += $(OPT_FEATURE_FLAGS)
|
|
|
|
|
|
|
|
# Add in any optional parameters specified on the make commane line
|
|
|
|
# ie. make "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1".
|
|
|
|
TCC += $(OPTS)
|
|
|
|
|
|
|
|
# Add in compile-time options for some libraries used by extensions
|
2024-10-20 04:09:51 +03:00
|
|
|
#TCC += @CFLAGS_ZLIB@
|
2024-09-26 02:09:38 +03:00
|
|
|
|
|
|
|
# Version numbers and release number for the SQLite being compiled.
|
|
|
|
#
|
|
|
|
VERSION = @VERSION@
|
2024-09-26 15:16:46 +03:00
|
|
|
RELEASE = @RELEASE@
|
2024-09-26 02:09:38 +03:00
|
|
|
|
2024-10-19 16:44:16 +03:00
|
|
|
# Filename extensions for binaries and libraries
|
2024-09-26 02:09:38 +03:00
|
|
|
#
|
|
|
|
BEXE = @BUILD_EXEEXT@
|
|
|
|
TEXE = @TARGET_EXEEXT@
|
2024-09-30 17:33:36 +03:00
|
|
|
BDLL = @BUILD_DLLEXT@
|
|
|
|
TDLL = @TARGET_DLLEXT@
|
2024-09-30 22:01:41 +03:00
|
|
|
BLIB = @BUILD_LIBEXT@
|
|
|
|
TLIB = @TARGET_LIBEXT@
|
2024-09-26 02:09:38 +03:00
|
|
|
|
2024-09-27 04:00:32 +03:00
|
|
|
# The following variable is "1" if the configure script was able to locate
|
|
|
|
# the tclConfig.sh file. It is an empty string otherwise. When this
|
|
|
|
# variable is "1", the TCL extension library (libtclsqlite3.so) is built
|
|
|
|
# and installed.
|
2024-09-26 02:09:38 +03:00
|
|
|
#
|
2024-09-27 04:00:32 +03:00
|
|
|
HAVE_TCL = @HAVE_TCL@
|
|
|
|
|
|
|
|
# This is the command to use for tclsh - normally just "tclsh", but we may
|
2024-10-19 15:47:06 +03:00
|
|
|
# know the specific version we want to use. This must point to the canonical
|
|
|
|
# TCL interpreter, not JimTCL.
|
2024-09-27 04:00:32 +03:00
|
|
|
#
|
2024-09-27 05:35:41 +03:00
|
|
|
TCLSH_CMD = @TCLSH_CMD@
|
2024-10-09 07:01:14 +03:00
|
|
|
TCL_CONFIG_SH = @TCL_CONFIG_SH@
|
|
|
|
|
|
|
|
# TCL config info from tclConfig.sh
|
|
|
|
TCL_INCLUDE_SPEC = @TCL_INCLUDE_SPEC@
|
|
|
|
TCL_LIB_SPEC = @TCL_LIB_SPEC@
|
|
|
|
TCL_STUB_LIB_SPEC = @TCL_STUB_LIB_SPEC@
|
|
|
|
TCL_EXEC_PREFIX = @TCL_EXEC_PREFIX@
|
2024-10-09 07:27:03 +03:00
|
|
|
TCL_VERSION = @TCL_VERSION@
|
2024-10-19 21:31:47 +03:00
|
|
|
TCLLIB_RPATH = @TCLLIB_RPATH@
|
|
|
|
TCLLIBDIR = @TCLLIBDIR@
|
|
|
|
|
2024-09-27 04:00:32 +03:00
|
|
|
# Additional options when running tests using testrunner.tcl
|
|
|
|
# This is usually either blank, or else --status
|
|
|
|
#
|
|
|
|
TSTRNNR_OPTS = @TSTRNNR_OPTS@
|
|
|
|
|
2024-10-16 17:04:00 +03:00
|
|
|
# Where do we want to install the tcl plugin
|
|
|
|
#
|
|
|
|
TCLLIBDIR = @TCLLIBDIR@
|
2024-09-26 02:09:38 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# If gcov support was enabled by the configure script, add the appropriate
|
|
|
|
# flags here. It's not always as easy as just having the user add the right
|
|
|
|
# CFLAGS / LDFLAGS, because libtool wants to use CFLAGS when linking, which
|
|
|
|
# causes build errors with -fprofile-arcs -ftest-coverage with some GCCs.
|
|
|
|
# Supposedly GCC does the right thing if you use --coverage, but in
|
|
|
|
# practice it still fails. See:
|
|
|
|
#
|
|
|
|
# http://www.mail-archive.com/debian-gcc@lists.debian.org/msg26197.html
|
|
|
|
#
|
|
|
|
# for more info.
|
|
|
|
#
|
|
|
|
GCOV_CFLAGS1 = -DSQLITE_COVERAGE_TEST=1 -fprofile-arcs -ftest-coverage
|
|
|
|
GCOV_LDFLAGS1 = -lgcov
|
|
|
|
USE_GCOV = @USE_GCOV@
|
2024-09-30 22:01:41 +03:00
|
|
|
TCOMPILE_EXTRAS += $(GCOV_CFLAGS$(USE_GCOV))
|
|
|
|
TLINK_EXTRAS += $(GCOV_LDFLAGS$(USE_GCOV))
|
2024-09-26 02:09:38 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# You should not have to change anything below this line
|
|
|
|
################################################################################
|
|
|
|
#
|
2024-09-27 04:00:32 +03:00
|
|
|
|
|
|
|
# Vars with the AS_ prefix are specifically related to AutoSetup.
|
|
|
|
#
|
|
|
|
# AS_AUTO_DEF is the main configure script.
|
|
|
|
#
|
|
|
|
AS_AUTO_DEF = $(TOP)/auto.def
|
2024-10-20 04:09:51 +03:00
|
|
|
#
|
|
|
|
# Shell commands to re-run $(TOP)/configure with the same args it was
|
|
|
|
# invoked with to produce this makefile.
|
|
|
|
#
|
|
|
|
AS_AUTOREMAKE = @SQLITE_AUTOREMAKE@
|
2024-09-27 04:00:32 +03:00
|
|
|
|
2024-10-19 23:26:17 +03:00
|
|
|
USE_AMALGAMATION ?= @USE_AMALGAMATION@
|
|
|
|
AMALGAMATION_LINE_MACROS ?= --linemacros=@AMALGAMATION_LINE_MACROS@
|
2024-09-27 04:00:32 +03:00
|
|
|
|
2024-10-20 04:09:51 +03:00
|
|
|
#
|
|
|
|
# CFLAGS for sqlite3$(TEXE)
|
|
|
|
#
|
2024-10-19 23:26:17 +03:00
|
|
|
SHELL_OPT ?= @OPT_SHELL@
|
2024-09-26 02:09:38 +03:00
|
|
|
|
2024-09-27 04:00:32 +03:00
|
|
|
#
|
|
|
|
# This is the default Makefile target. The objects listed here
|
|
|
|
# are what get build when you type just "make" with no arguments.
|
|
|
|
#
|
|
|
|
|
2024-09-30 22:01:41 +03:00
|
|
|
Makefile: $(TOP)/Makefile.in $(AS_AUTO_DEF)
|
2024-10-19 21:31:47 +03:00
|
|
|
$(AS_AUTOREMAKE)
|
2024-09-27 04:00:32 +03:00
|
|
|
@touch $@
|
|
|
|
|
2024-09-30 22:01:41 +03:00
|
|
|
sqlite3.pc: $(TOP)/sqlite3.pc.in $(AS_AUTO_DEF)
|
2024-10-19 21:31:47 +03:00
|
|
|
$(AS_AUTOREMAKE)
|
2024-09-27 04:00:32 +03:00
|
|
|
@touch $@
|
2024-10-09 10:12:32 +03:00
|
|
|
install: install-pc
|
2024-09-27 04:00:32 +03:00
|
|
|
|
|
|
|
sqlite_cfg.h: $(TOP)/sqlite_cfg.h.in $(AS_AUTO_DEF)
|
2024-10-19 21:31:47 +03:00
|
|
|
$(AS_AUTOREMAKE)
|
2024-09-27 04:00:32 +03:00
|
|
|
@touch $@
|
|
|
|
|
2024-10-09 08:28:29 +03:00
|
|
|
#
|
|
|
|
# Fiddle app
|
|
|
|
#
|
2024-10-20 04:09:51 +03:00
|
|
|
# EMCC_WRAPPER must refer to the genuine emcc binary, or a
|
|
|
|
# call-compatible wrapper, e.g. $(TOP)/tool/emcc.sh. If it's empty,
|
|
|
|
# build components requiring Emscripten will not build.
|
|
|
|
#
|
|
|
|
EMCC_WRAPPER = @EMCC_WRAPPER@
|
2024-10-09 08:28:29 +03:00
|
|
|
fiddle: sqlite3.c shell.c
|
2024-10-19 21:31:47 +03:00
|
|
|
@if [ x = "x$(EMCC_WRAPPER)" ]; then \
|
|
|
|
echo "Emscripten's emcc not found. Cannot build fiddle." 1&>2; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
2024-10-20 04:09:51 +03:00
|
|
|
$(MAKE) -C ext/wasm fiddle emcc_opt=-Os
|
2024-10-09 08:28:29 +03:00
|
|
|
|
2024-10-19 15:47:06 +03:00
|
|
|
#
|
|
|
|
# Spell-checking for source comments
|
|
|
|
# The sources checked are either C sources or C source templates.
|
|
|
|
# Their comments are extracted and processed through aspell using
|
|
|
|
# a custom dictionary that contains scads of odd identifiers that
|
|
|
|
# find their way into the comments.
|
|
|
|
#
|
|
|
|
# Currently, this target is setup to be "made" in-tree only.
|
|
|
|
# The output is ephemeral. Redirect it to guide spelling fixups,
|
|
|
|
# either to correct spelling or add words to tool/custom.txt.
|
|
|
|
#
|
|
|
|
./custom.rws: ./tool/custom.txt
|
|
|
|
@echo 'Updating custom dictionary from tool/custom.txt'
|
2024-10-19 23:53:46 +03:00
|
|
|
aspell --lang=en create master ./custom.rws < ./tool/custom.txt
|
2024-10-19 15:47:06 +03:00
|
|
|
# Note that jimsh does not work here:
|
|
|
|
# https://github.com/msteveb/jimtcl/issues/319
|
|
|
|
misspell: ./custom.rws has_tclsh84
|
|
|
|
$(TCLSH_CMD) ./tool/spellsift.tcl ./src/*.c ./src/*.h ./src/*.in
|
|
|
|
|
2024-10-20 04:09:51 +03:00
|
|
|
#
|
|
|
|
# clean/distclean are mostly defined in main.mk. In this makefile we
|
2024-10-20 04:34:13 +03:00
|
|
|
# perform cleanup known to be relevant to (only) the autosetup-driven
|
|
|
|
# build.
|
2024-10-20 04:09:51 +03:00
|
|
|
#
|
|
|
|
clean-autosetup:
|
|
|
|
-gmake -C ext/wasm distclean 2>/dev/null; true
|
|
|
|
clean: clean-autosetup
|
|
|
|
|
|
|
|
distclean-autosetup: clean
|
|
|
|
rm -f sqlite_cfg.h config.log config.status $(JIMSH) Makefile sqlite3.pc
|
|
|
|
rm -f $(TOP)/tool/emcc.sh
|
|
|
|
-gmake -C ext/wasm distclean 2>/dev/null; true
|
|
|
|
distclean: distclean-autosetup
|
|
|
|
|
2024-10-19 23:26:17 +03:00
|
|
|
include $(TOP)/main.mk
|