drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1 | #!/usr/make |
| 2 | # |
| 3 | # Makefile for SQLITE |
| 4 | # |
| 5 | # This makefile is suppose to be configured automatically using the |
| 6 | # autoconf. But if that does not work for you, you can configure |
| 7 | # the makefile manually. Just set the parameters below to values that |
| 8 | # work well for your system. |
| 9 | # |
| 10 | # If the configure script does not work out-of-the-box, you might |
| 11 | # be able to get it to work by giving it some hints. See the comment |
| 12 | # at the beginning of configure.in for additional information. |
| 13 | # |
| 14 | |
| 15 | # The toplevel directory of the source tree. This is the directory |
| 16 | # that contains this "Makefile.in" and the "configure.in" script. |
| 17 | # |
drh | b43be55 | 2015-01-15 15:47:06 +0000 | [diff] [blame] | 18 | TOP = @abs_srcdir@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 19 | |
| 20 | # C Compiler and options for use in building executables that |
| 21 | # will run on the platform that is doing the build. |
| 22 | # |
| 23 | BCC = @BUILD_CC@ @BUILD_CFLAGS@ |
| 24 | |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 25 | # TCC is the C Compile and options for use in building executables that |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 26 | # will run on the target platform. (BCC and TCC are usually the |
drh | 149735d | 2015-01-01 19:53:10 +0000 | [diff] [blame] | 27 | # same unless your are cross-compiling.) Separate CC and CFLAGS macros |
| 28 | # are provide so that these aspects of the build process can be changed |
| 29 | # on the "make" command-line. Ex: "make CC=clang CFLAGS=-fsanitize=undefined" |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 30 | # |
drh | 149735d | 2015-01-01 19:53:10 +0000 | [diff] [blame] | 31 | CC = @CC@ |
| 32 | CFLAGS = @CPPFLAGS@ @CFLAGS@ |
drh | f7af7a1 | 2015-01-08 20:06:06 +0000 | [diff] [blame] | 33 | TCC = ${CC} ${CFLAGS} -I. -I${TOP}/src -I${TOP}/ext/rtree -I${TOP}/ext/icu |
drh | 498dcae | 2013-03-13 11:42:00 +0000 | [diff] [blame] | 34 | TCC += -I${TOP}/ext/fts3 -I${TOP}/ext/async -I${TOP}/ext/session |
dan | 49f6a0d | 2018-11-28 08:24:41 +0000 | [diff] [blame] | 35 | TCC += -I${TOP}/ext/userauth |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 36 | |
mlcreech | 1e12d43 | 2008-05-07 02:42:01 +0000 | [diff] [blame] | 37 | # Define this for the autoconf-based build, so that the code knows it can |
| 38 | # include the generated config.h |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 39 | # |
mistachkin | 1b904bf | 2012-01-14 03:34:24 +0000 | [diff] [blame] | 40 | TCC += -D_HAVE_SQLITE_CONFIG_H -DBUILD_sqlite |
mlcreech | 1e12d43 | 2008-05-07 02:42:01 +0000 | [diff] [blame] | 41 | |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 42 | # Define -DNDEBUG to compile without debugging (i.e., for production usage) |
| 43 | # Omitting the define will cause extra debugging code to be inserted and |
| 44 | # includes extra comments when "EXPLAIN stmt" is used. |
| 45 | # |
drh | 05c7e0b | 2015-01-10 14:27:17 +0000 | [diff] [blame] | 46 | TCC += @TARGET_DEBUG@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 47 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 48 | # Compiler options needed for programs that use the TCL library. |
| 49 | # |
drh | 9346836 | 2004-12-10 03:08:12 +0000 | [diff] [blame] | 50 | TCC += @TCL_INCLUDE_SPEC@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 51 | |
| 52 | # The library that programs using TCL must link against. |
| 53 | # |
mistachkin | f344a5e | 2012-12-06 00:16:51 +0000 | [diff] [blame] | 54 | LIBTCL = @TCL_LIB_SPEC@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 55 | |
| 56 | # Compiler options needed for programs that use the readline() library. |
| 57 | # |
| 58 | READLINE_FLAGS = -DHAVE_READLINE=@TARGET_HAVE_READLINE@ @TARGET_READLINE_INC@ |
drh | e44b835 | 2015-10-30 14:25:57 +0000 | [diff] [blame] | 59 | READLINE_FLAGS += -DHAVE_EDITLINE=@TARGET_HAVE_EDITLINE@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 60 | |
| 61 | # The library that programs using readline() must link against. |
| 62 | # |
| 63 | LIBREADLINE = @TARGET_READLINE_LIBS@ |
| 64 | |
| 65 | # Should the database engine be compiled threadsafe |
| 66 | # |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 67 | TCC += -DSQLITE_THREADSAFE=@SQLITE_THREADSAFE@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 68 | |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 69 | # Any target libraries which libsqlite must be linked against |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 70 | # |
drh | 45fac88 | 2015-10-09 01:42:49 +0000 | [diff] [blame] | 71 | TLIBS = @LIBS@ $(LIBS) |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 72 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 73 | # Flags controlling use of the in memory btree implementation |
| 74 | # |
danielk1977 | b06a0b6 | 2008-06-26 10:54:12 +0000 | [diff] [blame] | 75 | # SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 76 | # default to file, 2 to default to memory, and 3 to force temporary |
| 77 | # tables to always be in memory. |
| 78 | # |
danielk1977 | b06a0b6 | 2008-06-26 10:54:12 +0000 | [diff] [blame] | 79 | TEMP_STORE = -DSQLITE_TEMP_STORE=@TEMP_STORE@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 80 | |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 81 | # Enable/disable loadable extensions, and other optional features |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 82 | # based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*). |
| 83 | # The same set of OMIT and ENABLE flags should be passed to the |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 84 | # LEMON parser generator and the mkkeywordhash tool as well. |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 85 | OPT_FEATURE_FLAGS = @OPT_FEATURE_FLAGS@ |
| 86 | |
| 87 | TCC += $(OPT_FEATURE_FLAGS) |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 88 | |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 89 | # Add in any optional parameters specified on the make commane line |
| 90 | # ie. make "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1". |
| 91 | TCC += $(OPTS) |
| 92 | |
drh | 56c9311 | 2017-11-24 16:55:48 +0000 | [diff] [blame] | 93 | # Add in compile-time options for some libraries used by extensions |
| 94 | TCC += @HAVE_ZLIB@ |
| 95 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 96 | # Version numbers and release number for the SQLite being compiled. |
| 97 | # |
| 98 | VERSION = @VERSION@ |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 99 | VERSION_NUMBER = @VERSION_NUMBER@ |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 100 | RELEASE = @RELEASE@ |
| 101 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 102 | # Filename extensions |
| 103 | # |
| 104 | BEXE = @BUILD_EXEEXT@ |
| 105 | TEXE = @TARGET_EXEEXT@ |
| 106 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 107 | # The following variable is "1" if the configure script was able to locate |
| 108 | # the tclConfig.sh file. It is an empty string otherwise. When this |
| 109 | # variable is "1", the TCL extension library (libtclsqlite3.so) is built |
| 110 | # and installed. |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 111 | # |
| 112 | HAVE_TCL = @HAVE_TCL@ |
| 113 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 114 | # This is the command to use for tclsh - normally just "tclsh", but we may |
| 115 | # know the specific version we want to use |
| 116 | # |
| 117 | TCLSH_CMD = @TCLSH_CMD@ |
| 118 | |
vapier | 6d120f3 | 2009-01-28 04:46:14 +0000 | [diff] [blame] | 119 | # Where do we want to install the tcl plugin |
| 120 | # |
| 121 | TCLLIBDIR = @TCLLIBDIR@ |
| 122 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 123 | # The suffix used on shared libraries. Ex: ".dll", ".so", ".dylib" |
| 124 | # |
| 125 | SHLIB_SUFFIX = @TCL_SHLIB_SUFFIX@ |
| 126 | |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 127 | # If gcov support was enabled by the configure script, add the appropriate |
| 128 | # flags here. It's not always as easy as just having the user add the right |
| 129 | # CFLAGS / LDFLAGS, because libtool wants to use CFLAGS when linking, which |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 130 | # causes build errors with -fprofile-arcs -ftest-coverage with some GCCs. |
| 131 | # Supposedly GCC does the right thing if you use --coverage, but in |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 132 | # practice it still fails. See: |
| 133 | # |
| 134 | # http://www.mail-archive.com/debian-gcc@lists.debian.org/msg26197.html |
| 135 | # |
| 136 | # for more info. |
| 137 | # |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 138 | GCOV_CFLAGS1 = -DSQLITE_COVERAGE_TEST=1 -fprofile-arcs -ftest-coverage |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 139 | GCOV_LDFLAGS1 = -lgcov |
| 140 | USE_GCOV = @USE_GCOV@ |
| 141 | LTCOMPILE_EXTRAS += $(GCOV_CFLAGS$(USE_GCOV)) |
| 142 | LTLINK_EXTRAS += $(GCOV_LDFLAGS$(USE_GCOV)) |
| 143 | |
| 144 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 145 | # The directory into which to store package information for |
| 146 | |
| 147 | # Some standard variables and programs |
| 148 | # |
mlcreech | 3c080bc | 2008-03-07 02:20:56 +0000 | [diff] [blame] | 149 | prefix = @prefix@ |
| 150 | exec_prefix = @exec_prefix@ |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 151 | libdir = @libdir@ |
danielk1977 | 94bdf89 | 2008-08-04 04:28:18 +0000 | [diff] [blame] | 152 | pkgconfigdir = $(libdir)/pkgconfig |
mlcreech | c55771f | 2008-03-06 08:09:12 +0000 | [diff] [blame] | 153 | bindir = @bindir@ |
| 154 | includedir = @includedir@ |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 155 | INSTALL = @INSTALL@ |
| 156 | LIBTOOL = ./libtool |
| 157 | ALLOWRELEASE = @ALLOWRELEASE@ |
| 158 | |
| 159 | # libtool compile/link/install |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 160 | LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(TCC) $(LTCOMPILE_EXTRAS) |
shane | b0650c2 | 2008-10-12 01:49:41 +0000 | [diff] [blame] | 161 | LTLINK = $(LIBTOOL) --mode=link $(TCC) $(LTCOMPILE_EXTRAS) @LDFLAGS@ $(LTLINK_EXTRAS) |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 162 | LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) |
| 163 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 164 | # You should not have to change anything below this line |
| 165 | ############################################################################### |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 166 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 167 | USE_AMALGAMATION = @USE_AMALGAMATION@ |
| 168 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 169 | # Object files for the SQLite library (non-amalgamation). |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 170 | # |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 171 | LIBOBJS0 = alter.lo analyze.lo attach.lo auth.lo \ |
| 172 | backup.lo bitvec.lo btmutex.lo btree.lo build.lo \ |
drh | a43c8c8 | 2017-10-11 13:48:11 +0000 | [diff] [blame] | 173 | callback.lo complete.lo ctime.lo \ |
| 174 | date.lo dbpage.lo dbstat.lo delete.lo \ |
drh | 3edd8a5 | 2010-10-21 12:34:29 +0000 | [diff] [blame] | 175 | expr.lo fault.lo fkey.lo \ |
drh | d97f3d7 | 2012-05-28 15:32:09 +0000 | [diff] [blame] | 176 | fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \ |
| 177 | fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \ |
dan | d7a959c | 2013-04-22 15:30:37 +0000 | [diff] [blame] | 178 | fts3_tokenize_vtab.lo \ |
drh | d97f3d7 | 2012-05-28 15:32:09 +0000 | [diff] [blame] | 179 | fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \ |
dan | 3e65f89 | 2015-06-25 20:36:36 +0000 | [diff] [blame] | 180 | fts5.lo \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 181 | func.lo global.lo hash.lo \ |
drh | c2f18ad | 2016-03-05 15:35:09 +0000 | [diff] [blame] | 182 | icu.lo insert.lo json1.lo legacy.lo loadext.lo \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 183 | main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \ |
drh | ac442f4 | 2018-01-03 01:28:46 +0000 | [diff] [blame] | 184 | memdb.lo memjournal.lo \ |
drh | 83905c9 | 2012-06-21 13:00:37 +0000 | [diff] [blame] | 185 | mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \ |
| 186 | notify.lo opcodes.lo os.lo os_unix.lo os_win.lo \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 187 | pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \ |
drh | 498dcae | 2013-03-13 11:42:00 +0000 | [diff] [blame] | 188 | random.lo resolve.lo rowset.lo rtree.lo \ |
drh | c6603af | 2017-06-29 14:33:51 +0000 | [diff] [blame] | 189 | sqlite3session.lo select.lo sqlite3rbu.lo status.lo stmt.lo \ |
drh | 38b4149 | 2015-06-08 15:08:15 +0000 | [diff] [blame] | 190 | table.lo threads.lo tokenize.lo treeview.lo trigger.lo \ |
dan | 49f6a0d | 2018-11-28 08:24:41 +0000 | [diff] [blame] | 191 | update.lo userauth.lo upsert.lo util.lo vacuum.lo \ |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 192 | vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \ |
drh | 51f1c6f | 2020-05-01 18:58:21 +0000 | [diff] [blame] | 193 | vdbetrace.lo vdbevtab.lo \ |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 194 | wal.lo walker.lo where.lo wherecode.lo whereexpr.lo \ |
dan | d31e7ad | 2018-06-09 17:58:51 +0000 | [diff] [blame] | 195 | window.lo utf.lo vtab.lo |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 196 | |
| 197 | # Object files for the amalgamation. |
| 198 | # |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 199 | LIBOBJS1 = sqlite3.lo |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 200 | |
| 201 | # Determine the real value of LIBOBJ based on the 'configure' script |
| 202 | # |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 203 | LIBOBJ = $(LIBOBJS$(USE_AMALGAMATION)) |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 204 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 205 | |
| 206 | # All of the source code files. |
| 207 | # |
| 208 | SRC = \ |
drh | d0e4a6c | 2005-02-15 20:47:57 +0000 | [diff] [blame] | 209 | $(TOP)/src/alter.c \ |
drh | 9f18e8a | 2005-07-08 12:13:04 +0000 | [diff] [blame] | 210 | $(TOP)/src/analyze.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 211 | $(TOP)/src/attach.c \ |
| 212 | $(TOP)/src/auth.c \ |
danielk1977 | 0410302 | 2009-02-03 16:51:24 +0000 | [diff] [blame] | 213 | $(TOP)/src/backup.c \ |
mlcreech | e0414bb | 2008-02-26 03:45:59 +0000 | [diff] [blame] | 214 | $(TOP)/src/bitvec.c \ |
drh | 900b31e | 2007-08-28 02:27:51 +0000 | [diff] [blame] | 215 | $(TOP)/src/btmutex.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 216 | $(TOP)/src/btree.c \ |
| 217 | $(TOP)/src/btree.h \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 218 | $(TOP)/src/btreeInt.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 219 | $(TOP)/src/build.c \ |
danielk1977 | fd9a0a4 | 2005-05-24 12:01:00 +0000 | [diff] [blame] | 220 | $(TOP)/src/callback.c \ |
drh | a2b902d | 2005-08-14 17:53:20 +0000 | [diff] [blame] | 221 | $(TOP)/src/complete.c \ |
shaneh | dc97a8c | 2010-02-23 20:08:35 +0000 | [diff] [blame] | 222 | $(TOP)/src/ctime.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 223 | $(TOP)/src/date.c \ |
drh | a43c8c8 | 2017-10-11 13:48:11 +0000 | [diff] [blame] | 224 | $(TOP)/src/dbpage.c \ |
drh | 1a4a680 | 2015-05-04 18:31:09 +0000 | [diff] [blame] | 225 | $(TOP)/src/dbstat.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 226 | $(TOP)/src/delete.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 227 | $(TOP)/src/expr.c \ |
drh | 643167f | 2008-01-22 21:30:53 +0000 | [diff] [blame] | 228 | $(TOP)/src/fault.c \ |
dan | 3be7d6e | 2009-09-19 17:59:59 +0000 | [diff] [blame] | 229 | $(TOP)/src/fkey.c \ |
drh | 70a8ca3 | 2008-08-21 18:49:27 +0000 | [diff] [blame] | 230 | $(TOP)/src/func.c \ |
drh | 40257ff | 2008-06-13 18:24:27 +0000 | [diff] [blame] | 231 | $(TOP)/src/global.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 232 | $(TOP)/src/hash.c \ |
| 233 | $(TOP)/src/hash.h \ |
shane | 9bcbdad | 2008-05-29 20:22:37 +0000 | [diff] [blame] | 234 | $(TOP)/src/hwtime.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 235 | $(TOP)/src/insert.c \ |
| 236 | $(TOP)/src/legacy.c \ |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 237 | $(TOP)/src/loadext.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 238 | $(TOP)/src/main.c \ |
drh | 9e91c75 | 2007-05-07 13:11:10 +0000 | [diff] [blame] | 239 | $(TOP)/src/malloc.c \ |
drh | d1370b6 | 2008-10-28 18:58:20 +0000 | [diff] [blame] | 240 | $(TOP)/src/mem0.c \ |
drh | 4bfc8a9 | 2007-08-27 23:38:43 +0000 | [diff] [blame] | 241 | $(TOP)/src/mem1.c \ |
| 242 | $(TOP)/src/mem2.c \ |
drh | 9c7a60d | 2007-10-19 17:47:24 +0000 | [diff] [blame] | 243 | $(TOP)/src/mem3.c \ |
mlcreech | fcfe27d | 2008-03-02 05:34:10 +0000 | [diff] [blame] | 244 | $(TOP)/src/mem5.c \ |
drh | ac442f4 | 2018-01-03 01:28:46 +0000 | [diff] [blame] | 245 | $(TOP)/src/memdb.c \ |
danielk1977 | 6553c5c | 2008-10-21 04:30:31 +0000 | [diff] [blame] | 246 | $(TOP)/src/memjournal.c \ |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 247 | $(TOP)/src/msvc.h \ |
drh | 4bfc8a9 | 2007-08-27 23:38:43 +0000 | [diff] [blame] | 248 | $(TOP)/src/mutex.c \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 249 | $(TOP)/src/mutex.h \ |
drh | 18472fa | 2008-10-07 15:25:48 +0000 | [diff] [blame] | 250 | $(TOP)/src/mutex_noop.c \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 251 | $(TOP)/src/mutex_unix.c \ |
| 252 | $(TOP)/src/mutex_w32.c \ |
danielk1977 | d52acb3 | 2009-03-16 14:48:18 +0000 | [diff] [blame] | 253 | $(TOP)/src/notify.c \ |
drh | 054889e | 2005-11-30 03:20:31 +0000 | [diff] [blame] | 254 | $(TOP)/src/os.c \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 255 | $(TOP)/src/os.h \ |
| 256 | $(TOP)/src/os_common.h \ |
mistachkin | f74b9e0 | 2013-11-26 01:00:31 +0000 | [diff] [blame] | 257 | $(TOP)/src/os_setup.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 258 | $(TOP)/src/os_unix.c \ |
| 259 | $(TOP)/src/os_win.c \ |
mistachkin | 8bc5262 | 2013-11-25 09:36:07 +0000 | [diff] [blame] | 260 | $(TOP)/src/os_win.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 261 | $(TOP)/src/pager.c \ |
| 262 | $(TOP)/src/pager.h \ |
| 263 | $(TOP)/src/parse.y \ |
danielk1977 | 8c0a791 | 2008-08-20 14:49:23 +0000 | [diff] [blame] | 264 | $(TOP)/src/pcache.c \ |
| 265 | $(TOP)/src/pcache.h \ |
danielk1977 | bc2ca9e | 2008-11-13 14:28:28 +0000 | [diff] [blame] | 266 | $(TOP)/src/pcache1.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 267 | $(TOP)/src/pragma.c \ |
drh | 67e65e5 | 2015-02-02 21:34:54 +0000 | [diff] [blame] | 268 | $(TOP)/src/pragma.h \ |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 269 | $(TOP)/src/prepare.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 270 | $(TOP)/src/printf.c \ |
| 271 | $(TOP)/src/random.c \ |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 272 | $(TOP)/src/resolve.c \ |
drh | 3d4501e | 2008-12-04 20:40:10 +0000 | [diff] [blame] | 273 | $(TOP)/src/rowset.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 274 | $(TOP)/src/select.c \ |
drh | f714199 | 2008-06-19 00:16:08 +0000 | [diff] [blame] | 275 | $(TOP)/src/status.c \ |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 276 | $(TOP)/src/shell.c.in \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 277 | $(TOP)/src/sqlite.h.in \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 278 | $(TOP)/src/sqlite3ext.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 279 | $(TOP)/src/sqliteInt.h \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 280 | $(TOP)/src/sqliteLimit.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 281 | $(TOP)/src/table.c \ |
| 282 | $(TOP)/src/tclsqlite.c \ |
drh | 45fac88 | 2015-10-09 01:42:49 +0000 | [diff] [blame] | 283 | $(TOP)/src/threads.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 284 | $(TOP)/src/tokenize.c \ |
drh | 38b4149 | 2015-06-08 15:08:15 +0000 | [diff] [blame] | 285 | $(TOP)/src/treeview.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 286 | $(TOP)/src/trigger.c \ |
| 287 | $(TOP)/src/utf.c \ |
| 288 | $(TOP)/src/update.c \ |
drh | fcfd756 | 2018-04-12 21:42:51 +0000 | [diff] [blame] | 289 | $(TOP)/src/upsert.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 290 | $(TOP)/src/util.c \ |
| 291 | $(TOP)/src/vacuum.c \ |
| 292 | $(TOP)/src/vdbe.c \ |
| 293 | $(TOP)/src/vdbe.h \ |
| 294 | $(TOP)/src/vdbeapi.c \ |
| 295 | $(TOP)/src/vdbeaux.c \ |
danielk1977 | 6338c76 | 2007-05-17 16:38:30 +0000 | [diff] [blame] | 296 | $(TOP)/src/vdbeblob.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 297 | $(TOP)/src/vdbemem.c \ |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 298 | $(TOP)/src/vdbesort.c \ |
drh | c7bc4fd | 2009-11-25 18:03:42 +0000 | [diff] [blame] | 299 | $(TOP)/src/vdbetrace.c \ |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 300 | $(TOP)/src/vdbevtab.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 301 | $(TOP)/src/vdbeInt.h \ |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 302 | $(TOP)/src/vtab.c \ |
drh | 8cd5b25 | 2015-03-02 22:06:43 +0000 | [diff] [blame] | 303 | $(TOP)/src/vxworks.h \ |
drh | c438efd | 2010-04-26 00:19:45 +0000 | [diff] [blame] | 304 | $(TOP)/src/wal.c \ |
| 305 | $(TOP)/src/wal.h \ |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 306 | $(TOP)/src/walker.c \ |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 307 | $(TOP)/src/where.c \ |
drh | 6f82e85 | 2015-06-06 20:12:09 +0000 | [diff] [blame] | 308 | $(TOP)/src/wherecode.c \ |
drh | 6c1f4ef | 2015-06-08 14:23:15 +0000 | [diff] [blame] | 309 | $(TOP)/src/whereexpr.c \ |
dan | d31e7ad | 2018-06-09 17:58:51 +0000 | [diff] [blame] | 310 | $(TOP)/src/whereInt.h \ |
| 311 | $(TOP)/src/window.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 312 | |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 313 | # Source code for extensions |
| 314 | # |
| 315 | SRC += \ |
| 316 | $(TOP)/ext/fts1/fts1.c \ |
| 317 | $(TOP)/ext/fts1/fts1.h \ |
| 318 | $(TOP)/ext/fts1/fts1_hash.c \ |
| 319 | $(TOP)/ext/fts1/fts1_hash.h \ |
| 320 | $(TOP)/ext/fts1/fts1_porter.c \ |
| 321 | $(TOP)/ext/fts1/fts1_tokenizer.h \ |
| 322 | $(TOP)/ext/fts1/fts1_tokenizer1.c |
mlcreech | 47524b8 | 2008-03-02 05:40:05 +0000 | [diff] [blame] | 323 | SRC += \ |
| 324 | $(TOP)/ext/fts2/fts2.c \ |
| 325 | $(TOP)/ext/fts2/fts2.h \ |
| 326 | $(TOP)/ext/fts2/fts2_hash.c \ |
| 327 | $(TOP)/ext/fts2/fts2_hash.h \ |
| 328 | $(TOP)/ext/fts2/fts2_icu.c \ |
| 329 | $(TOP)/ext/fts2/fts2_porter.c \ |
| 330 | $(TOP)/ext/fts2/fts2_tokenizer.h \ |
| 331 | $(TOP)/ext/fts2/fts2_tokenizer.c \ |
| 332 | $(TOP)/ext/fts2/fts2_tokenizer1.c |
| 333 | SRC += \ |
| 334 | $(TOP)/ext/fts3/fts3.c \ |
| 335 | $(TOP)/ext/fts3/fts3.h \ |
dan | 16708c4 | 2009-11-19 15:25:25 +0000 | [diff] [blame] | 336 | $(TOP)/ext/fts3/fts3Int.h \ |
shaneh | d01f9cb | 2011-02-09 15:25:17 +0000 | [diff] [blame] | 337 | $(TOP)/ext/fts3/fts3_aux.c \ |
shane | 5df7c0f | 2009-01-02 15:47:01 +0000 | [diff] [blame] | 338 | $(TOP)/ext/fts3/fts3_expr.c \ |
mlcreech | 47524b8 | 2008-03-02 05:40:05 +0000 | [diff] [blame] | 339 | $(TOP)/ext/fts3/fts3_hash.c \ |
| 340 | $(TOP)/ext/fts3/fts3_hash.h \ |
| 341 | $(TOP)/ext/fts3/fts3_icu.c \ |
| 342 | $(TOP)/ext/fts3/fts3_porter.c \ |
dan | 16708c4 | 2009-11-19 15:25:25 +0000 | [diff] [blame] | 343 | $(TOP)/ext/fts3/fts3_snippet.c \ |
mlcreech | 47524b8 | 2008-03-02 05:40:05 +0000 | [diff] [blame] | 344 | $(TOP)/ext/fts3/fts3_tokenizer.h \ |
| 345 | $(TOP)/ext/fts3/fts3_tokenizer.c \ |
dan | 16708c4 | 2009-11-19 15:25:25 +0000 | [diff] [blame] | 346 | $(TOP)/ext/fts3/fts3_tokenizer1.c \ |
dan | d7a959c | 2013-04-22 15:30:37 +0000 | [diff] [blame] | 347 | $(TOP)/ext/fts3/fts3_tokenize_vtab.c \ |
drh | d97f3d7 | 2012-05-28 15:32:09 +0000 | [diff] [blame] | 348 | $(TOP)/ext/fts3/fts3_unicode.c \ |
| 349 | $(TOP)/ext/fts3/fts3_unicode2.c \ |
dan | 16708c4 | 2009-11-19 15:25:25 +0000 | [diff] [blame] | 350 | $(TOP)/ext/fts3/fts3_write.c |
mlcreech | 47524b8 | 2008-03-02 05:40:05 +0000 | [diff] [blame] | 351 | SRC += \ |
danielk1977 | 1c82665 | 2008-09-08 08:08:09 +0000 | [diff] [blame] | 352 | $(TOP)/ext/icu/sqliteicu.h \ |
mlcreech | 47524b8 | 2008-03-02 05:40:05 +0000 | [diff] [blame] | 353 | $(TOP)/ext/icu/icu.c |
shane | ca57b87 | 2008-05-28 17:31:17 +0000 | [diff] [blame] | 354 | SRC += \ |
| 355 | $(TOP)/ext/rtree/rtree.h \ |
drh | 748b8fd | 2018-05-25 19:22:47 +0000 | [diff] [blame] | 356 | $(TOP)/ext/rtree/rtree.c \ |
| 357 | $(TOP)/ext/rtree/geopoly.c |
drh | 498dcae | 2013-03-13 11:42:00 +0000 | [diff] [blame] | 358 | SRC += \ |
| 359 | $(TOP)/ext/session/sqlite3session.c \ |
| 360 | $(TOP)/ext/session/sqlite3session.h |
drh | adf3bf5 | 2015-05-19 22:42:23 +0000 | [diff] [blame] | 361 | SRC += \ |
dan | 49f6a0d | 2018-11-28 08:24:41 +0000 | [diff] [blame] | 362 | $(TOP)/ext/userauth/userauth.c \ |
| 363 | $(TOP)/ext/userauth/sqlite3userauth.h |
| 364 | SRC += \ |
drh | cfb8f8d | 2015-07-23 20:44:49 +0000 | [diff] [blame] | 365 | $(TOP)/ext/rbu/sqlite3rbu.h \ |
| 366 | $(TOP)/ext/rbu/sqlite3rbu.c |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 367 | SRC += \ |
drh | f00f530 | 2017-06-28 15:47:29 +0000 | [diff] [blame] | 368 | $(TOP)/ext/misc/json1.c \ |
drh | c6603af | 2017-06-29 14:33:51 +0000 | [diff] [blame] | 369 | $(TOP)/ext/misc/stmt.c |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 370 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 371 | # Generated source code files |
| 372 | # |
| 373 | SRC += \ |
| 374 | keywordhash.h \ |
| 375 | opcodes.c \ |
| 376 | opcodes.h \ |
| 377 | parse.c \ |
| 378 | parse.h \ |
| 379 | config.h \ |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 380 | shell.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 381 | sqlite3.h |
| 382 | |
| 383 | # Source code to the test files. |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 384 | # |
| 385 | TESTSRC = \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 386 | $(TOP)/src/test1.c \ |
| 387 | $(TOP)/src/test2.c \ |
| 388 | $(TOP)/src/test3.c \ |
| 389 | $(TOP)/src/test4.c \ |
| 390 | $(TOP)/src/test5.c \ |
drh | 9c06c95 | 2005-11-26 00:25:00 +0000 | [diff] [blame] | 391 | $(TOP)/src/test6.c \ |
drh | 7910e76 | 2006-01-09 23:50:11 +0000 | [diff] [blame] | 392 | $(TOP)/src/test7.c \ |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 393 | $(TOP)/src/test8.c \ |
danielk1977 | a713f2c | 2007-03-29 12:19:11 +0000 | [diff] [blame] | 394 | $(TOP)/src/test9.c \ |
drh | 1409be6 | 2006-08-23 20:07:20 +0000 | [diff] [blame] | 395 | $(TOP)/src/test_autoext.c \ |
drh | 7910e76 | 2006-01-09 23:50:11 +0000 | [diff] [blame] | 396 | $(TOP)/src/test_async.c \ |
danielk1977 | 0410302 | 2009-02-03 16:51:24 +0000 | [diff] [blame] | 397 | $(TOP)/src/test_backup.c \ |
drh | ddebf16 | 2016-03-04 02:59:35 +0000 | [diff] [blame] | 398 | $(TOP)/src/test_bestindex.c \ |
drh | 5de7d96 | 2014-12-05 00:17:39 +0000 | [diff] [blame] | 399 | $(TOP)/src/test_blob.c \ |
drh | 16a9b83 | 2007-05-05 18:39:25 +0000 | [diff] [blame] | 400 | $(TOP)/src/test_btree.c \ |
drh | c797d4d | 2007-05-08 01:08:49 +0000 | [diff] [blame] | 401 | $(TOP)/src/test_config.c \ |
dan | 000f95b | 2016-09-09 20:00:40 +0000 | [diff] [blame] | 402 | $(TOP)/src/test_delete.c \ |
shaneh | 84aab39 | 2010-05-06 15:35:59 +0000 | [diff] [blame] | 403 | $(TOP)/src/test_demovfs.c \ |
danielk1977 | bf26097 | 2008-01-22 11:50:13 +0000 | [diff] [blame] | 404 | $(TOP)/src/test_devsym.c \ |
drh | 7015698 | 2013-03-03 20:26:46 +0000 | [diff] [blame] | 405 | $(TOP)/src/test_fs.c \ |
drh | 984bfaa | 2008-03-19 16:08:53 +0000 | [diff] [blame] | 406 | $(TOP)/src/test_func.c \ |
drh | 1592659 | 2007-04-06 15:02:13 +0000 | [diff] [blame] | 407 | $(TOP)/src/test_hexio.c \ |
shane | 8e28379 | 2009-08-21 02:07:09 +0000 | [diff] [blame] | 408 | $(TOP)/src/test_init.c \ |
drh | 522efc6 | 2009-11-10 17:24:37 +0000 | [diff] [blame] | 409 | $(TOP)/src/test_intarray.c \ |
danielk1977 | f310751 | 2008-12-22 10:58:46 +0000 | [diff] [blame] | 410 | $(TOP)/src/test_journal.c \ |
drh | 4bfc8a9 | 2007-08-27 23:38:43 +0000 | [diff] [blame] | 411 | $(TOP)/src/test_malloc.c \ |
drh | c318f73 | 2017-10-13 15:06:06 +0000 | [diff] [blame] | 412 | $(TOP)/src/test_md5.c \ |
drh | 5af3ebd | 2010-11-05 00:00:42 +0000 | [diff] [blame] | 413 | $(TOP)/src/test_multiplex.c \ |
shane | c6f66c5 | 2008-07-08 22:15:49 +0000 | [diff] [blame] | 414 | $(TOP)/src/test_mutex.c \ |
danielk1977 | 20e987a | 2007-10-05 15:04:12 +0000 | [diff] [blame] | 415 | $(TOP)/src/test_onefile.c \ |
mlcreech | ede2627 | 2008-04-13 23:13:39 +0000 | [diff] [blame] | 416 | $(TOP)/src/test_osinst.c \ |
drh | b232c23 | 2008-11-19 01:20:26 +0000 | [diff] [blame] | 417 | $(TOP)/src/test_pcache.c \ |
drh | 51e79a7 | 2010-10-06 20:25:00 +0000 | [diff] [blame] | 418 | $(TOP)/src/test_quota.c \ |
dan | 9508daa | 2010-08-28 18:58:00 +0000 | [diff] [blame] | 419 | $(TOP)/src/test_rtree.c \ |
danielk1977 | 954ce99 | 2006-06-15 15:59:19 +0000 | [diff] [blame] | 420 | $(TOP)/src/test_schema.c \ |
drh | 2d02a67 | 2006-01-25 15:55:37 +0000 | [diff] [blame] | 421 | $(TOP)/src/test_server.c \ |
drh | 01a109e | 2010-11-24 13:04:22 +0000 | [diff] [blame] | 422 | $(TOP)/src/test_superlock.c \ |
drh | 8689bc3 | 2011-04-01 20:54:38 +0000 | [diff] [blame] | 423 | $(TOP)/src/test_syscall.c \ |
drh | c318f73 | 2017-10-13 15:06:06 +0000 | [diff] [blame] | 424 | $(TOP)/src/test_tclsh.c \ |
drh | 4be8b51 | 2006-06-13 23:51:34 +0000 | [diff] [blame] | 425 | $(TOP)/src/test_tclvar.c \ |
shane | 8e28379 | 2009-08-21 02:07:09 +0000 | [diff] [blame] | 426 | $(TOP)/src/test_thread.c \ |
dan | 1d07f1d | 2019-04-01 17:24:20 +0000 | [diff] [blame] | 427 | $(TOP)/src/test_vdbecov.c \ |
shaneh | 84aab39 | 2010-05-06 15:35:59 +0000 | [diff] [blame] | 428 | $(TOP)/src/test_vfs.c \ |
mistachkin | 92af1eb | 2015-11-30 23:29:07 +0000 | [diff] [blame] | 429 | $(TOP)/src/test_windirent.c \ |
dan | 660af93 | 2018-06-18 16:55:22 +0000 | [diff] [blame] | 430 | $(TOP)/src/test_window.c \ |
dan | 807d0fc | 2011-05-17 14:41:36 +0000 | [diff] [blame] | 431 | $(TOP)/src/test_wsd.c \ |
dan | 99ebad9 | 2011-06-13 09:11:01 +0000 | [diff] [blame] | 432 | $(TOP)/ext/fts3/fts3_term.c \ |
drh | 498dcae | 2013-03-13 11:42:00 +0000 | [diff] [blame] | 433 | $(TOP)/ext/fts3/fts3_test.c \ |
drh | adf3bf5 | 2015-05-19 22:42:23 +0000 | [diff] [blame] | 434 | $(TOP)/ext/session/test_session.c \ |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 435 | $(TOP)/ext/rbu/test_rbu.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 436 | |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 437 | # Statically linked extensions |
| 438 | # |
| 439 | TESTSRC += \ |
drh | 138bd6d | 2017-05-03 12:15:20 +0000 | [diff] [blame] | 440 | $(TOP)/ext/expert/sqlite3expert.c \ |
| 441 | $(TOP)/ext/expert/test_expert.c \ |
drh | 8416fc7 | 2013-04-25 16:42:55 +0000 | [diff] [blame] | 442 | $(TOP)/ext/misc/amatch.c \ |
larrybr | 1b22ad8 | 2021-03-06 23:36:47 +0000 | [diff] [blame] | 443 | $(TOP)/ext/misc/appendvfs.c \ |
drh | 2e3f87a | 2016-07-03 02:35:47 +0000 | [diff] [blame] | 444 | $(TOP)/ext/misc/carray.c \ |
dan | c30b78f | 2020-11-18 18:36:43 +0000 | [diff] [blame] | 445 | $(TOP)/ext/misc/cksumvfs.c \ |
drh | 8416fc7 | 2013-04-25 16:42:55 +0000 | [diff] [blame] | 446 | $(TOP)/ext/misc/closure.c \ |
drh | 35db31b | 2016-06-02 23:13:21 +0000 | [diff] [blame] | 447 | $(TOP)/ext/misc/csv.c \ |
drh | beb9def | 2020-06-22 19:12:23 +0000 | [diff] [blame] | 448 | $(TOP)/ext/misc/decimal.c \ |
drh | 1728bcb | 2014-11-10 16:49:56 +0000 | [diff] [blame] | 449 | $(TOP)/ext/misc/eval.c \ |
drh | 9b84f03 | 2018-09-16 16:18:01 +0000 | [diff] [blame] | 450 | $(TOP)/ext/misc/explain.c \ |
drh | 51ed298 | 2014-06-16 12:44:32 +0000 | [diff] [blame] | 451 | $(TOP)/ext/misc/fileio.c \ |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 452 | $(TOP)/ext/misc/fuzzer.c \ |
dan | 3e65f89 | 2015-06-25 20:36:36 +0000 | [diff] [blame] | 453 | $(TOP)/ext/fts5/fts5_tcl.c \ |
dan | d3789c0 | 2015-08-04 20:29:00 +0000 | [diff] [blame] | 454 | $(TOP)/ext/fts5/fts5_test_mi.c \ |
dan | 2cfe049 | 2016-01-14 20:05:59 +0000 | [diff] [blame] | 455 | $(TOP)/ext/fts5/fts5_test_tok.c \ |
drh | 8416fc7 | 2013-04-25 16:42:55 +0000 | [diff] [blame] | 456 | $(TOP)/ext/misc/ieee754.c \ |
dan | 460f1fa | 2017-09-18 16:28:56 +0000 | [diff] [blame] | 457 | $(TOP)/ext/misc/mmapwarm.c \ |
drh | ea41dc4 | 2013-04-25 19:31:33 +0000 | [diff] [blame] | 458 | $(TOP)/ext/misc/nextchar.c \ |
drh | 91694db | 2018-01-08 20:04:57 +0000 | [diff] [blame] | 459 | $(TOP)/ext/misc/normalize.c \ |
drh | def3367 | 2013-05-28 20:25:54 +0000 | [diff] [blame] | 460 | $(TOP)/ext/misc/percentile.c \ |
dan | 9c039d9 | 2019-01-14 20:44:00 +0000 | [diff] [blame] | 461 | $(TOP)/ext/misc/prefixes.c \ |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 462 | $(TOP)/ext/misc/regexp.c \ |
drh | 6bada27 | 2016-08-09 21:08:42 +0000 | [diff] [blame] | 463 | $(TOP)/ext/misc/remember.c \ |
drh | 398f872 | 2015-08-19 13:54:20 +0000 | [diff] [blame] | 464 | $(TOP)/ext/misc/series.c \ |
drh | b7045ab | 2013-04-25 14:59:01 +0000 | [diff] [blame] | 465 | $(TOP)/ext/misc/spellfix.c \ |
drh | 5f8cdac | 2013-10-14 21:14:42 +0000 | [diff] [blame] | 466 | $(TOP)/ext/misc/totype.c \ |
dan | d8ecefa | 2017-07-15 20:48:30 +0000 | [diff] [blame] | 467 | $(TOP)/ext/misc/unionvtab.c \ |
drh | 411dfd4 | 2018-01-05 19:49:54 +0000 | [diff] [blame] | 468 | $(TOP)/ext/misc/wholenumber.c \ |
dan | 49f6a0d | 2018-11-28 08:24:41 +0000 | [diff] [blame] | 469 | $(TOP)/ext/misc/zipfile.c \ |
| 470 | $(TOP)/ext/userauth/userauth.c |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 471 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 472 | # Source code to the library files needed by the test fixture |
| 473 | # |
| 474 | TESTSRC2 = \ |
| 475 | $(TOP)/src/attach.c \ |
| 476 | $(TOP)/src/backup.c \ |
| 477 | $(TOP)/src/bitvec.c \ |
| 478 | $(TOP)/src/btree.c \ |
| 479 | $(TOP)/src/build.c \ |
| 480 | $(TOP)/src/ctime.c \ |
| 481 | $(TOP)/src/date.c \ |
drh | a43c8c8 | 2017-10-11 13:48:11 +0000 | [diff] [blame] | 482 | $(TOP)/src/dbpage.c \ |
drh | 1a4a680 | 2015-05-04 18:31:09 +0000 | [diff] [blame] | 483 | $(TOP)/src/dbstat.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 484 | $(TOP)/src/expr.c \ |
| 485 | $(TOP)/src/func.c \ |
drh | eea8eb6 | 2018-11-26 18:09:15 +0000 | [diff] [blame] | 486 | $(TOP)/src/global.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 487 | $(TOP)/src/insert.c \ |
| 488 | $(TOP)/src/wal.c \ |
mistachkin | 0600663 | 2013-05-15 20:35:13 +0000 | [diff] [blame] | 489 | $(TOP)/src/main.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 490 | $(TOP)/src/mem5.c \ |
| 491 | $(TOP)/src/os.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 492 | $(TOP)/src/os_unix.c \ |
| 493 | $(TOP)/src/os_win.c \ |
| 494 | $(TOP)/src/pager.c \ |
| 495 | $(TOP)/src/pragma.c \ |
| 496 | $(TOP)/src/prepare.c \ |
| 497 | $(TOP)/src/printf.c \ |
| 498 | $(TOP)/src/random.c \ |
| 499 | $(TOP)/src/pcache.c \ |
| 500 | $(TOP)/src/pcache1.c \ |
| 501 | $(TOP)/src/select.c \ |
| 502 | $(TOP)/src/tokenize.c \ |
| 503 | $(TOP)/src/utf.c \ |
| 504 | $(TOP)/src/util.c \ |
| 505 | $(TOP)/src/vdbeapi.c \ |
| 506 | $(TOP)/src/vdbeaux.c \ |
| 507 | $(TOP)/src/vdbe.c \ |
| 508 | $(TOP)/src/vdbemem.c \ |
| 509 | $(TOP)/src/vdbetrace.c \ |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 510 | $(TOP)/src/vdbevtab.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 511 | $(TOP)/src/where.c \ |
drh | 6f82e85 | 2015-06-06 20:12:09 +0000 | [diff] [blame] | 512 | $(TOP)/src/wherecode.c \ |
drh | 6c1f4ef | 2015-06-08 14:23:15 +0000 | [diff] [blame] | 513 | $(TOP)/src/whereexpr.c \ |
dan | d31e7ad | 2018-06-09 17:58:51 +0000 | [diff] [blame] | 514 | $(TOP)/src/window.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 515 | parse.c \ |
| 516 | $(TOP)/ext/fts3/fts3.c \ |
shaneh | d01f9cb | 2011-02-09 15:25:17 +0000 | [diff] [blame] | 517 | $(TOP)/ext/fts3/fts3_aux.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 518 | $(TOP)/ext/fts3/fts3_expr.c \ |
shaneh | 671b522 | 2011-05-12 21:01:12 +0000 | [diff] [blame] | 519 | $(TOP)/ext/fts3/fts3_term.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 520 | $(TOP)/ext/fts3/fts3_tokenizer.c \ |
| 521 | $(TOP)/ext/fts3/fts3_write.c \ |
drh | 498dcae | 2013-03-13 11:42:00 +0000 | [diff] [blame] | 522 | $(TOP)/ext/async/sqlite3async.c \ |
dan | 380c7ce | 2017-07-14 19:12:26 +0000 | [diff] [blame] | 523 | $(TOP)/ext/session/sqlite3session.c \ |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 524 | $(TOP)/ext/misc/stmt.c |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 525 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 526 | # Header files used by all library source files. |
| 527 | # |
| 528 | HDR = \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 529 | $(TOP)/src/btree.h \ |
drh | a315289 | 2007-05-05 11:48:52 +0000 | [diff] [blame] | 530 | $(TOP)/src/btreeInt.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 531 | $(TOP)/src/hash.h \ |
shane | 9bcbdad | 2008-05-29 20:22:37 +0000 | [diff] [blame] | 532 | $(TOP)/src/hwtime.h \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 533 | keywordhash.h \ |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 534 | $(TOP)/src/msvc.h \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 535 | $(TOP)/src/mutex.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 536 | opcodes.h \ |
| 537 | $(TOP)/src/os.h \ |
| 538 | $(TOP)/src/os_common.h \ |
mistachkin | f74b9e0 | 2013-11-26 01:00:31 +0000 | [diff] [blame] | 539 | $(TOP)/src/os_setup.h \ |
mistachkin | 8bc5262 | 2013-11-25 09:36:07 +0000 | [diff] [blame] | 540 | $(TOP)/src/os_win.h \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 541 | $(TOP)/src/pager.h \ |
| 542 | $(TOP)/src/pcache.h \ |
| 543 | parse.h \ |
drh | 67e65e5 | 2015-02-02 21:34:54 +0000 | [diff] [blame] | 544 | $(TOP)/src/pragma.h \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 545 | sqlite3.h \ |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 546 | $(TOP)/src/sqlite3ext.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 547 | $(TOP)/src/sqliteInt.h \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 548 | $(TOP)/src/sqliteLimit.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 549 | $(TOP)/src/vdbe.h \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 550 | $(TOP)/src/vdbeInt.h \ |
drh | 8cd5b25 | 2015-03-02 22:06:43 +0000 | [diff] [blame] | 551 | $(TOP)/src/vxworks.h \ |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 552 | $(TOP)/src/whereInt.h \ |
mlcreech | 2379706 | 2008-03-20 02:25:35 +0000 | [diff] [blame] | 553 | config.h |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 554 | |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 555 | # Header files used by extensions |
| 556 | # |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 557 | EXTHDR += \ |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 558 | $(TOP)/ext/fts1/fts1.h \ |
| 559 | $(TOP)/ext/fts1/fts1_hash.h \ |
| 560 | $(TOP)/ext/fts1/fts1_tokenizer.h |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 561 | EXTHDR += \ |
mlcreech | 47524b8 | 2008-03-02 05:40:05 +0000 | [diff] [blame] | 562 | $(TOP)/ext/fts2/fts2.h \ |
| 563 | $(TOP)/ext/fts2/fts2_hash.h \ |
| 564 | $(TOP)/ext/fts2/fts2_tokenizer.h |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 565 | EXTHDR += \ |
mlcreech | 47524b8 | 2008-03-02 05:40:05 +0000 | [diff] [blame] | 566 | $(TOP)/ext/fts3/fts3.h \ |
dan | 16708c4 | 2009-11-19 15:25:25 +0000 | [diff] [blame] | 567 | $(TOP)/ext/fts3/fts3Int.h \ |
mlcreech | 47524b8 | 2008-03-02 05:40:05 +0000 | [diff] [blame] | 568 | $(TOP)/ext/fts3/fts3_hash.h \ |
| 569 | $(TOP)/ext/fts3/fts3_tokenizer.h |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 570 | EXTHDR += \ |
drh | 748b8fd | 2018-05-25 19:22:47 +0000 | [diff] [blame] | 571 | $(TOP)/ext/rtree/rtree.h \ |
| 572 | $(TOP)/ext/rtree/geopoly.c |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 573 | EXTHDR += \ |
danielk1977 | 1c82665 | 2008-09-08 08:08:09 +0000 | [diff] [blame] | 574 | $(TOP)/ext/icu/sqliteicu.h |
dan | 9508daa | 2010-08-28 18:58:00 +0000 | [diff] [blame] | 575 | EXTHDR += \ |
| 576 | $(TOP)/ext/rtree/sqlite3rtree.h |
dan | 49f6a0d | 2018-11-28 08:24:41 +0000 | [diff] [blame] | 577 | EXTHDR += \ |
| 578 | $(TOP)/ext/userauth/sqlite3userauth.h |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 579 | |
mistachkin | d4ab103 | 2015-05-11 16:27:33 +0000 | [diff] [blame] | 580 | # executables needed for testing |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 581 | # |
| 582 | TESTPROGS = \ |
| 583 | testfixture$(TEXE) \ |
| 584 | sqlite3$(TEXE) \ |
| 585 | sqlite3_analyzer$(TEXE) \ |
drh | 290fcaa | 2016-06-08 01:03:05 +0000 | [diff] [blame] | 586 | sqldiff$(TEXE) \ |
drh | dd2a43a | 2017-12-14 19:24:00 +0000 | [diff] [blame] | 587 | dbhash$(TEXE) \ |
| 588 | sqltclsh$(TEXE) |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 589 | |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 590 | # Databases containing fuzzer test cases |
| 591 | # |
| 592 | FUZZDATA = \ |
| 593 | $(TOP)/test/fuzzdata1.db \ |
| 594 | $(TOP)/test/fuzzdata2.db \ |
drh | 64ff56f | 2015-09-23 11:59:50 +0000 | [diff] [blame] | 595 | $(TOP)/test/fuzzdata3.db \ |
drh | 362b66f | 2016-11-14 18:27:41 +0000 | [diff] [blame] | 596 | $(TOP)/test/fuzzdata4.db \ |
drh | 5ecf903 | 2018-05-08 12:49:53 +0000 | [diff] [blame] | 597 | $(TOP)/test/fuzzdata5.db \ |
drh | 05209e9 | 2018-10-31 01:12:06 +0000 | [diff] [blame] | 598 | $(TOP)/test/fuzzdata6.db \ |
drh | a47e709 | 2019-01-25 04:00:14 +0000 | [diff] [blame] | 599 | $(TOP)/test/fuzzdata7.db \ |
| 600 | $(TOP)/test/fuzzdata8.db |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 601 | |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 602 | # Standard options to testfixture |
| 603 | # |
| 604 | TESTOPTS = --verbose=file --output=test-out.txt |
| 605 | |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 606 | # Extra compiler options for various shell tools |
| 607 | # |
drh | 74cf74a | 2016-02-09 17:12:22 +0000 | [diff] [blame] | 608 | SHELL_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS4 |
drh | d99c7b7 | 2018-01-10 19:15:21 +0000 | [diff] [blame] | 609 | #SHELL_OPT += -DSQLITE_ENABLE_FTS5 |
| 610 | SHELL_OPT += -DSQLITE_ENABLE_RTREE |
drh | 74cf74a | 2016-02-09 17:12:22 +0000 | [diff] [blame] | 611 | SHELL_OPT += -DSQLITE_ENABLE_EXPLAIN_COMMENTS |
drh | cc15313 | 2016-08-04 12:35:17 +0000 | [diff] [blame] | 612 | SHELL_OPT += -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION |
drh | c6603af | 2017-06-29 14:33:51 +0000 | [diff] [blame] | 613 | SHELL_OPT += -DSQLITE_ENABLE_STMTVTAB |
drh | ca5cf12 | 2017-10-11 17:13:29 +0000 | [diff] [blame] | 614 | SHELL_OPT += -DSQLITE_ENABLE_DBPAGE_VTAB |
| 615 | SHELL_OPT += -DSQLITE_ENABLE_DBSTAT_VTAB |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 616 | SHELL_OPT += -DSQLITE_ENABLE_BYTECODE_VTAB |
drh | 092457b | 2017-12-29 15:04:49 +0000 | [diff] [blame] | 617 | SHELL_OPT += -DSQLITE_ENABLE_OFFSET_SQL_FUNC |
drh | 60f34ae | 2018-10-30 13:19:49 +0000 | [diff] [blame] | 618 | SHELL_OPT += -DSQLITE_ENABLE_DESERIALIZE |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 619 | FUZZERSHELL_OPT = -DSQLITE_ENABLE_JSON1 |
drh | 362b66f | 2016-11-14 18:27:41 +0000 | [diff] [blame] | 620 | FUZZCHECK_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMSYS5 -DSQLITE_OSS_FUZZ |
drh | a6bf20b | 2017-03-10 17:03:11 +0000 | [diff] [blame] | 621 | FUZZCHECK_OPT += -DSQLITE_MAX_MEMORY=50000000 |
drh | cc39896 | 2018-02-20 15:23:37 +0000 | [diff] [blame] | 622 | FUZZCHECK_OPT += -DSQLITE_PRINTF_PRECISION_LIMIT=1000 |
drh | a47e709 | 2019-01-25 04:00:14 +0000 | [diff] [blame] | 623 | FUZZCHECK_OPT += -DSQLITE_ENABLE_DESERIALIZE |
| 624 | FUZZCHECK_OPT += -DSQLITE_ENABLE_FTS4 |
drh | 856408a | 2020-05-15 01:02:00 +0000 | [diff] [blame] | 625 | FUZZCHECK_OPT += -DSQLITE_ENABLE_FTS3_PARENTHESIS |
drh | a47e709 | 2019-01-25 04:00:14 +0000 | [diff] [blame] | 626 | #FUZZCHECK_OPT += -DSQLITE_ENABLE_FTS5 |
| 627 | FUZZCHECK_OPT += -DSQLITE_ENABLE_RTREE |
| 628 | FUZZCHECK_OPT += -DSQLITE_ENABLE_GEOPOLY |
| 629 | FUZZCHECK_OPT += -DSQLITE_ENABLE_DBSTAT_VTAB |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 630 | FUZZCHECK_OPT += -DSQLITE_ENABLE_BYTECODE_VTAB |
drh | 362b66f | 2016-11-14 18:27:41 +0000 | [diff] [blame] | 631 | FUZZCHECK_SRC = $(TOP)/test/fuzzcheck.c $(TOP)/test/ossfuzz.c |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 632 | DBFUZZ_OPT = |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 633 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 634 | # This is the default Makefile target. The objects listed here |
| 635 | # are what get build when you type just "make" with no arguments. |
| 636 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 637 | all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 638 | |
| 639 | Makefile: $(TOP)/Makefile.in |
| 640 | ./config.status |
| 641 | |
vapier | 2574da5 | 2009-01-26 20:59:02 +0000 | [diff] [blame] | 642 | sqlite3.pc: $(TOP)/sqlite3.pc.in |
| 643 | ./config.status |
| 644 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 645 | libsqlite3.la: $(LIBOBJ) |
mistachkin | 691d4c9 | 2013-10-11 22:19:55 +0000 | [diff] [blame] | 646 | $(LTLINK) -no-undefined -o $@ $(LIBOBJ) $(TLIBS) \ |
mlcreech | 289234c | 2008-03-13 19:55:20 +0000 | [diff] [blame] | 647 | ${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8" |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 648 | |
| 649 | libtclsqlite3.la: tclsqlite.lo libsqlite3.la |
mistachkin | 691d4c9 | 2013-10-11 22:19:55 +0000 | [diff] [blame] | 650 | $(LTLINK) -no-undefined -o $@ tclsqlite.lo \ |
drh | 0fcf237 | 2008-07-25 12:49:44 +0000 | [diff] [blame] | 651 | libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \ |
vapier | 6d120f3 | 2009-01-28 04:46:14 +0000 | [diff] [blame] | 652 | -rpath "$(TCLLIBDIR)" \ |
| 653 | -version-info "8:6:8" \ |
| 654 | -avoid-version |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 655 | |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 656 | sqlite3$(TEXE): shell.c sqlite3.c |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 657 | $(LTLINK) $(READLINE_FLAGS) $(SHELL_OPT) -o $@ \ |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 658 | shell.c sqlite3.c \ |
mlcreech | 289234c | 2008-03-13 19:55:20 +0000 | [diff] [blame] | 659 | $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)" |
drh | c9a67a8 | 2007-12-13 18:20:46 +0000 | [diff] [blame] | 660 | |
drh | be11ade | 2016-06-24 02:50:44 +0000 | [diff] [blame] | 661 | sqldiff$(TEXE): $(TOP)/tool/sqldiff.c sqlite3.lo sqlite3.h |
| 662 | $(LTLINK) -o $@ $(TOP)/tool/sqldiff.c sqlite3.lo $(TLIBS) |
drh | d62c0f4 | 2015-04-09 13:34:29 +0000 | [diff] [blame] | 663 | |
drh | be11ade | 2016-06-24 02:50:44 +0000 | [diff] [blame] | 664 | dbhash$(TEXE): $(TOP)/tool/dbhash.c sqlite3.lo sqlite3.h |
| 665 | $(LTLINK) -o $@ $(TOP)/tool/dbhash.c sqlite3.lo $(TLIBS) |
drh | 290fcaa | 2016-06-08 01:03:05 +0000 | [diff] [blame] | 666 | |
drh | be11ade | 2016-06-24 02:50:44 +0000 | [diff] [blame] | 667 | scrub$(TEXE): $(TOP)/ext/misc/scrub.c sqlite3.lo |
drh | da110bf | 2016-05-05 17:15:23 +0000 | [diff] [blame] | 668 | $(LTLINK) -o $@ -I. -DSCRUB_STANDALONE \ |
drh | be11ade | 2016-06-24 02:50:44 +0000 | [diff] [blame] | 669 | $(TOP)/ext/misc/scrub.c sqlite3.lo $(TLIBS) |
drh | da110bf | 2016-05-05 17:15:23 +0000 | [diff] [blame] | 670 | |
drh | cc5f8a4 | 2016-02-06 22:32:06 +0000 | [diff] [blame] | 671 | srcck1$(BEXE): $(TOP)/tool/srcck1.c |
| 672 | $(BCC) -o srcck1$(BEXE) $(TOP)/tool/srcck1.c |
| 673 | |
| 674 | sourcetest: srcck1$(BEXE) sqlite3.c |
| 675 | ./srcck1 sqlite3.c |
| 676 | |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 677 | fuzzershell$(TEXE): $(TOP)/tool/fuzzershell.c sqlite3.c sqlite3.h |
| 678 | $(LTLINK) -o $@ $(FUZZERSHELL_OPT) \ |
| 679 | $(TOP)/tool/fuzzershell.c sqlite3.c $(TLIBS) |
drh | 268e72f | 2015-04-17 14:30:49 +0000 | [diff] [blame] | 680 | |
drh | 362b66f | 2016-11-14 18:27:41 +0000 | [diff] [blame] | 681 | fuzzcheck$(TEXE): $(FUZZCHECK_SRC) sqlite3.c sqlite3.h |
| 682 | $(LTLINK) -o $@ $(FUZZCHECK_OPT) $(FUZZCHECK_SRC) sqlite3.c $(TLIBS) |
| 683 | |
| 684 | ossshell$(TEXE): $(TOP)/test/ossfuzz.c $(TOP)/test/ossshell.c sqlite3.c sqlite3.h |
drh | 59d705a | 2017-03-17 14:15:06 +0000 | [diff] [blame] | 685 | $(LTLINK) -o $@ $(FUZZCHECK_OPT) $(TOP)/test/ossshell.c \ |
| 686 | $(TOP)/test/ossfuzz.c sqlite3.c $(TLIBS) |
drh | bc94dbb | 2013-04-08 14:28:33 +0000 | [diff] [blame] | 687 | |
drh | f94c190 | 2018-03-07 20:48:21 +0000 | [diff] [blame] | 688 | sessionfuzz$(TEXE): $(TOP)/test/sessionfuzz.c sqlite3.c sqlite3.h |
drh | bc1be95 | 2018-12-13 12:28:01 +0000 | [diff] [blame] | 689 | $(LTLINK) -o $@ $(TOP)/test/sessionfuzz.c $(TLIBS) |
drh | f94c190 | 2018-03-07 20:48:21 +0000 | [diff] [blame] | 690 | |
drh | 6918e2f | 2016-12-17 20:27:22 +0000 | [diff] [blame] | 691 | dbfuzz$(TEXE): $(TOP)/test/dbfuzz.c sqlite3.c sqlite3.h |
| 692 | $(LTLINK) -o $@ $(DBFUZZ_OPT) $(TOP)/test/dbfuzz.c sqlite3.c $(TLIBS) |
| 693 | |
drh | 977e5dc | 2018-10-27 16:02:16 +0000 | [diff] [blame] | 694 | DBFUZZ2_OPTS = \ |
| 695 | -DSQLITE_THREADSAFE=0 \ |
| 696 | -DSQLITE_OMIT_LOAD_EXTENSION \ |
| 697 | -DSQLITE_ENABLE_DESERIALIZE \ |
| 698 | -DSQLITE_DEBUG \ |
| 699 | -DSQLITE_ENABLE_DBSTAT_VTAB \ |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 700 | -DSQLITE_ENABLE_BYTECODE_VTAB \ |
drh | 977e5dc | 2018-10-27 16:02:16 +0000 | [diff] [blame] | 701 | -DSQLITE_ENABLE_RTREE \ |
| 702 | -DSQLITE_ENABLE_FTS4 \ |
drh | e65b9c6 | 2019-01-11 13:03:06 +0000 | [diff] [blame] | 703 | -DSQLITE_ENABLE_FTS5 |
drh | 977e5dc | 2018-10-27 16:02:16 +0000 | [diff] [blame] | 704 | |
drh | e65b9c6 | 2019-01-11 13:03:06 +0000 | [diff] [blame] | 705 | dbfuzz2$(TEXE): $(TOP)/test/dbfuzz2.c sqlite3.c sqlite3.h |
| 706 | $(CC) $(OPT_FEATURE_FLAGS) $(OPTS) -I. -g -O0 \ |
| 707 | -DSTANDALONE -o dbfuzz2 \ |
| 708 | $(DBFUZZ2_OPTS) $(TOP)/test/dbfuzz2.c sqlite3.c $(TLIBS) |
| 709 | mkdir -p dbfuzz2-dir |
| 710 | cp $(TOP)/test/dbfuzz2-seed* dbfuzz2-dir |
| 711 | |
| 712 | dbfuzz2-asan: $(TOP)/test/dbfuzz2.c sqlite3.c sqlite3.h |
drh | 69a66a7 | 2018-12-13 12:37:13 +0000 | [diff] [blame] | 713 | clang-6.0 $(OPT_FEATURE_FLAGS) $(OPTS) -I. -g -O0 \ |
drh | e65b9c6 | 2019-01-11 13:03:06 +0000 | [diff] [blame] | 714 | -fsanitize=fuzzer,undefined,address -o dbfuzz2-asan \ |
| 715 | $(DBFUZZ2_OPTS) $(TOP)/test/dbfuzz2.c sqlite3.c $(TLIBS) |
| 716 | mkdir -p dbfuzz2-dir |
| 717 | cp $(TOP)/test/dbfuzz2-seed* dbfuzz2-dir |
| 718 | |
| 719 | dbfuzz2-msan: $(TOP)/test/dbfuzz2.c sqlite3.c sqlite3.h |
| 720 | clang-6.0 $(OPT_FEATURE_FLAGS) $(OPTS) -I. -g -O0 \ |
| 721 | -fsanitize=fuzzer,undefined,memory -o dbfuzz2-msan \ |
| 722 | $(DBFUZZ2_OPTS) $(TOP)/test/dbfuzz2.c sqlite3.c $(TLIBS) |
drh | 977e5dc | 2018-10-27 16:02:16 +0000 | [diff] [blame] | 723 | mkdir -p dbfuzz2-dir |
| 724 | cp $(TOP)/test/dbfuzz2-seed* dbfuzz2-dir |
| 725 | |
drh | be11ade | 2016-06-24 02:50:44 +0000 | [diff] [blame] | 726 | mptester$(TEXE): sqlite3.lo $(TOP)/mptest/mptest.c |
| 727 | $(LTLINK) -o $@ -I. $(TOP)/mptest/mptest.c sqlite3.lo \ |
drh | bc94dbb | 2013-04-08 14:28:33 +0000 | [diff] [blame] | 728 | $(TLIBS) -rpath "$(libdir)" |
| 729 | |
drh | b6750b1 | 2015-05-05 01:09:06 +0000 | [diff] [blame] | 730 | MPTEST1=./mptester$(TEXE) mptest.db $(TOP)/mptest/crash01.test --repeat 20 |
| 731 | MPTEST2=./mptester$(TEXE) mptest.db $(TOP)/mptest/multiwrite01.test --repeat 20 |
| 732 | mptest: mptester$(TEXE) |
drh | cc285c5 | 2015-03-11 14:34:38 +0000 | [diff] [blame] | 733 | rm -f mptest.db |
| 734 | $(MPTEST1) --journalmode DELETE |
| 735 | $(MPTEST2) --journalmode WAL |
| 736 | $(MPTEST1) --journalmode WAL |
| 737 | $(MPTEST2) --journalmode PERSIST |
| 738 | $(MPTEST1) --journalmode PERSIST |
| 739 | $(MPTEST2) --journalmode TRUNCATE |
| 740 | $(MPTEST1) --journalmode TRUNCATE |
| 741 | $(MPTEST2) --journalmode DELETE |
| 742 | |
drh | bc94dbb | 2013-04-08 14:28:33 +0000 | [diff] [blame] | 743 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 744 | # This target creates a directory named "tsrc" and fills it with |
| 745 | # copies of all of the C source code and header files needed to |
| 746 | # build on the target system. Some of the C source code and header |
| 747 | # files are automatically generated. This target takes care of |
| 748 | # all that automatic generation. |
| 749 | # |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 750 | .target_source: $(SRC) $(TOP)/tool/vdbe-compress.tcl fts5.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 751 | rm -rf tsrc |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 752 | mkdir tsrc |
| 753 | cp -f $(SRC) tsrc |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 754 | rm tsrc/sqlite.h.in tsrc/parse.y |
drh | 2dc0648 | 2013-12-11 00:59:10 +0000 | [diff] [blame] | 755 | $(TCLSH_CMD) $(TOP)/tool/vdbe-compress.tcl $(OPTS) <tsrc/vdbe.c >vdbe.new |
drh | 856c103 | 2009-06-02 15:21:42 +0000 | [diff] [blame] | 756 | mv vdbe.new tsrc/vdbe.c |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 757 | cp fts5.c fts5.h tsrc |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 758 | touch .target_source |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 759 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 760 | sqlite3.c: .target_source $(TOP)/tool/mksqlite3c.tcl |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 761 | $(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl |
drh | 6f09910 | 2017-10-31 12:20:43 +0000 | [diff] [blame] | 762 | cp tsrc/sqlite3ext.h . |
drh | e191e2c | 2013-03-19 15:23:18 +0000 | [diff] [blame] | 763 | cp $(TOP)/ext/session/sqlite3session.h . |
drh | 93d5753 | 2007-04-05 18:34:58 +0000 | [diff] [blame] | 764 | |
drh | 2f20e13 | 2015-09-26 17:44:59 +0000 | [diff] [blame] | 765 | sqlite3ext.h: .target_source |
| 766 | cp tsrc/sqlite3ext.h . |
| 767 | |
drh | f4fd9ed | 2011-11-07 16:46:43 +0000 | [diff] [blame] | 768 | tclsqlite3.c: sqlite3.c |
| 769 | echo '#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c |
| 770 | cat sqlite3.c >>tclsqlite3.c |
| 771 | echo '#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c |
| 772 | cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c |
| 773 | |
drh | 07516dd | 2011-07-22 11:16:39 +0000 | [diff] [blame] | 774 | sqlite3-all.c: sqlite3.c $(TOP)/tool/split-sqlite3c.tcl |
| 775 | $(TCLSH_CMD) $(TOP)/tool/split-sqlite3c.tcl |
| 776 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 777 | # Rule to build the amalgamation |
| 778 | # |
| 779 | sqlite3.lo: sqlite3.c |
| 780 | $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c |
| 781 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 782 | # Rules to build the LEMON compiler generator |
| 783 | # |
drh | 82415f2 | 2015-11-09 19:33:42 +0000 | [diff] [blame] | 784 | lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c |
mlcreech | 1428b37 | 2008-03-13 23:28:22 +0000 | [diff] [blame] | 785 | $(BCC) -o $@ $(TOP)/tool/lemon.c |
drh | 82415f2 | 2015-11-09 19:33:42 +0000 | [diff] [blame] | 786 | cp $(TOP)/tool/lempar.c . |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 787 | |
drh | f39e0ed | 2017-08-22 19:19:00 +0000 | [diff] [blame] | 788 | # Rules to build the program that generates the source-id |
| 789 | # |
| 790 | mksourceid$(BEXE): $(TOP)/tool/mksourceid.c |
| 791 | $(BCC) -o $@ $(TOP)/tool/mksourceid.c |
| 792 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 793 | # Rules to build individual *.o files from generated *.c files. This |
| 794 | # applies to: |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 795 | # |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 796 | # parse.o |
| 797 | # opcodes.o |
| 798 | # |
| 799 | parse.lo: parse.c $(HDR) |
| 800 | $(LTCOMPILE) $(TEMP_STORE) -c parse.c |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 801 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 802 | opcodes.lo: opcodes.c |
| 803 | $(LTCOMPILE) $(TEMP_STORE) -c opcodes.c |
| 804 | |
| 805 | # Rules to build individual *.o files from files in the src directory. |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 806 | # |
drh | d0e4a6c | 2005-02-15 20:47:57 +0000 | [diff] [blame] | 807 | alter.lo: $(TOP)/src/alter.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 808 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/alter.c |
drh | d0e4a6c | 2005-02-15 20:47:57 +0000 | [diff] [blame] | 809 | |
drh | 9f18e8a | 2005-07-08 12:13:04 +0000 | [diff] [blame] | 810 | analyze.lo: $(TOP)/src/analyze.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 811 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/analyze.c |
drh | 9f18e8a | 2005-07-08 12:13:04 +0000 | [diff] [blame] | 812 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 813 | attach.lo: $(TOP)/src/attach.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 814 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/attach.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 815 | |
| 816 | auth.lo: $(TOP)/src/auth.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 817 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/auth.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 818 | |
rse | 973402e | 2009-02-20 22:27:41 +0000 | [diff] [blame] | 819 | backup.lo: $(TOP)/src/backup.c $(HDR) |
| 820 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/backup.c |
| 821 | |
mlcreech | 5b9d867 | 2008-02-27 03:22:49 +0000 | [diff] [blame] | 822 | bitvec.lo: $(TOP)/src/bitvec.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 823 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/bitvec.c |
mlcreech | 5b9d867 | 2008-02-27 03:22:49 +0000 | [diff] [blame] | 824 | |
drh | 900b31e | 2007-08-28 02:27:51 +0000 | [diff] [blame] | 825 | btmutex.lo: $(TOP)/src/btmutex.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 826 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btmutex.c |
drh | 900b31e | 2007-08-28 02:27:51 +0000 | [diff] [blame] | 827 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 828 | btree.lo: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 829 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btree.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 830 | |
| 831 | build.lo: $(TOP)/src/build.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 832 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/build.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 833 | |
danielk1977 | fd9a0a4 | 2005-05-24 12:01:00 +0000 | [diff] [blame] | 834 | callback.lo: $(TOP)/src/callback.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 835 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/callback.c |
danielk1977 | fd9a0a4 | 2005-05-24 12:01:00 +0000 | [diff] [blame] | 836 | |
drh | a2b902d | 2005-08-14 17:53:20 +0000 | [diff] [blame] | 837 | complete.lo: $(TOP)/src/complete.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 838 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/complete.c |
drh | a2b902d | 2005-08-14 17:53:20 +0000 | [diff] [blame] | 839 | |
shaneh | dc97a8c | 2010-02-23 20:08:35 +0000 | [diff] [blame] | 840 | ctime.lo: $(TOP)/src/ctime.c $(HDR) |
| 841 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/ctime.c |
| 842 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 843 | date.lo: $(TOP)/src/date.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 844 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/date.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 845 | |
drh | a43c8c8 | 2017-10-11 13:48:11 +0000 | [diff] [blame] | 846 | dbpage.lo: $(TOP)/src/dbpage.c $(HDR) |
| 847 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/dbpage.c |
| 848 | |
drh | 1a4a680 | 2015-05-04 18:31:09 +0000 | [diff] [blame] | 849 | dbstat.lo: $(TOP)/src/dbstat.c $(HDR) |
| 850 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/dbstat.c |
| 851 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 852 | delete.lo: $(TOP)/src/delete.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 853 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/delete.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 854 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 855 | expr.lo: $(TOP)/src/expr.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 856 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/expr.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 857 | |
drh | 643167f | 2008-01-22 21:30:53 +0000 | [diff] [blame] | 858 | fault.lo: $(TOP)/src/fault.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 859 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fault.c |
drh | 643167f | 2008-01-22 21:30:53 +0000 | [diff] [blame] | 860 | |
dan | 3be7d6e | 2009-09-19 17:59:59 +0000 | [diff] [blame] | 861 | fkey.lo: $(TOP)/src/fkey.c $(HDR) |
| 862 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fkey.c |
| 863 | |
drh | 70a8ca3 | 2008-08-21 18:49:27 +0000 | [diff] [blame] | 864 | func.lo: $(TOP)/src/func.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 865 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/func.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 866 | |
drh | 40257ff | 2008-06-13 18:24:27 +0000 | [diff] [blame] | 867 | global.lo: $(TOP)/src/global.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 868 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/global.c |
drh | 40257ff | 2008-06-13 18:24:27 +0000 | [diff] [blame] | 869 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 870 | hash.lo: $(TOP)/src/hash.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 871 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/hash.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 872 | |
| 873 | insert.lo: $(TOP)/src/insert.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 874 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/insert.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 875 | |
| 876 | legacy.lo: $(TOP)/src/legacy.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 877 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/legacy.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 878 | |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 879 | loadext.lo: $(TOP)/src/loadext.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 880 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/loadext.c |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 881 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 882 | main.lo: $(TOP)/src/main.c $(HDR) |
| 883 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/main.c |
| 884 | |
drh | a315289 | 2007-05-05 11:48:52 +0000 | [diff] [blame] | 885 | malloc.lo: $(TOP)/src/malloc.c $(HDR) |
| 886 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/malloc.c |
| 887 | |
drh | d1370b6 | 2008-10-28 18:58:20 +0000 | [diff] [blame] | 888 | mem0.lo: $(TOP)/src/mem0.c $(HDR) |
| 889 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem0.c |
| 890 | |
drh | 4bfc8a9 | 2007-08-27 23:38:43 +0000 | [diff] [blame] | 891 | mem1.lo: $(TOP)/src/mem1.c $(HDR) |
| 892 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem1.c |
| 893 | |
| 894 | mem2.lo: $(TOP)/src/mem2.c $(HDR) |
| 895 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem2.c |
| 896 | |
drh | 9c7a60d | 2007-10-19 17:47:24 +0000 | [diff] [blame] | 897 | mem3.lo: $(TOP)/src/mem3.c $(HDR) |
| 898 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem3.c |
| 899 | |
mlcreech | fcfe27d | 2008-03-02 05:34:10 +0000 | [diff] [blame] | 900 | mem5.lo: $(TOP)/src/mem5.c $(HDR) |
| 901 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem5.c |
| 902 | |
drh | ac442f4 | 2018-01-03 01:28:46 +0000 | [diff] [blame] | 903 | memdb.lo: $(TOP)/src/memdb.c $(HDR) |
| 904 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/memdb.c |
| 905 | |
danielk1977 | 6553c5c | 2008-10-21 04:30:31 +0000 | [diff] [blame] | 906 | memjournal.lo: $(TOP)/src/memjournal.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 907 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/memjournal.c |
danielk1977 | 6553c5c | 2008-10-21 04:30:31 +0000 | [diff] [blame] | 908 | |
drh | 4bfc8a9 | 2007-08-27 23:38:43 +0000 | [diff] [blame] | 909 | mutex.lo: $(TOP)/src/mutex.c $(HDR) |
| 910 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex.c |
| 911 | |
drh | 18472fa | 2008-10-07 15:25:48 +0000 | [diff] [blame] | 912 | mutex_noop.lo: $(TOP)/src/mutex_noop.c $(HDR) |
| 913 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_noop.c |
| 914 | |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 915 | mutex_unix.lo: $(TOP)/src/mutex_unix.c $(HDR) |
| 916 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_unix.c |
| 917 | |
| 918 | mutex_w32.lo: $(TOP)/src/mutex_w32.c $(HDR) |
| 919 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_w32.c |
| 920 | |
danielk1977 | d52acb3 | 2009-03-16 14:48:18 +0000 | [diff] [blame] | 921 | notify.lo: $(TOP)/src/notify.c $(HDR) |
| 922 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/notify.c |
| 923 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 924 | pager.lo: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 925 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pager.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 926 | |
danielk1977 | 8c0a791 | 2008-08-20 14:49:23 +0000 | [diff] [blame] | 927 | pcache.lo: $(TOP)/src/pcache.c $(HDR) $(TOP)/src/pcache.h |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 928 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache.c |
danielk1977 | 8c0a791 | 2008-08-20 14:49:23 +0000 | [diff] [blame] | 929 | |
danielk1977 | bc2ca9e | 2008-11-13 14:28:28 +0000 | [diff] [blame] | 930 | pcache1.lo: $(TOP)/src/pcache1.c $(HDR) $(TOP)/src/pcache.h |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 931 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache1.c |
danielk1977 | bc2ca9e | 2008-11-13 14:28:28 +0000 | [diff] [blame] | 932 | |
drh | 054889e | 2005-11-30 03:20:31 +0000 | [diff] [blame] | 933 | os.lo: $(TOP)/src/os.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 934 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os.c |
drh | 054889e | 2005-11-30 03:20:31 +0000 | [diff] [blame] | 935 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 936 | os_unix.lo: $(TOP)/src/os_unix.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 937 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_unix.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 938 | |
| 939 | os_win.lo: $(TOP)/src/os_win.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 940 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_win.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 941 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 942 | pragma.lo: $(TOP)/src/pragma.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 943 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pragma.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 944 | |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 945 | prepare.lo: $(TOP)/src/prepare.c $(HDR) |
| 946 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/prepare.c |
| 947 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 948 | printf.lo: $(TOP)/src/printf.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 949 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/printf.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 950 | |
| 951 | random.lo: $(TOP)/src/random.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 952 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/random.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 953 | |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 954 | resolve.lo: $(TOP)/src/resolve.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 955 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/resolve.c |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 956 | |
drh | 3d4501e | 2008-12-04 20:40:10 +0000 | [diff] [blame] | 957 | rowset.lo: $(TOP)/src/rowset.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 958 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/rowset.c |
drh | 3d4501e | 2008-12-04 20:40:10 +0000 | [diff] [blame] | 959 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 960 | select.lo: $(TOP)/src/select.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 961 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/select.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 962 | |
drh | f714199 | 2008-06-19 00:16:08 +0000 | [diff] [blame] | 963 | status.lo: $(TOP)/src/status.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 964 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/status.c |
drh | f714199 | 2008-06-19 00:16:08 +0000 | [diff] [blame] | 965 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 966 | table.lo: $(TOP)/src/table.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 967 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/table.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 968 | |
drh | f51446a | 2012-07-21 19:40:42 +0000 | [diff] [blame] | 969 | threads.lo: $(TOP)/src/threads.c $(HDR) |
| 970 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/threads.c |
| 971 | |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 972 | tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 973 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/tokenize.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 974 | |
drh | 38b4149 | 2015-06-08 15:08:15 +0000 | [diff] [blame] | 975 | treeview.lo: $(TOP)/src/treeview.c $(HDR) |
| 976 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/treeview.c |
| 977 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 978 | trigger.lo: $(TOP)/src/trigger.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 979 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/trigger.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 980 | |
| 981 | update.lo: $(TOP)/src/update.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 982 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/update.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 983 | |
drh | fcfd756 | 2018-04-12 21:42:51 +0000 | [diff] [blame] | 984 | upsert.lo: $(TOP)/src/upsert.c $(HDR) |
| 985 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/upsert.c |
| 986 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 987 | utf.lo: $(TOP)/src/utf.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 988 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/utf.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 989 | |
| 990 | util.lo: $(TOP)/src/util.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 991 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/util.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 992 | |
| 993 | vacuum.lo: $(TOP)/src/vacuum.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 994 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vacuum.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 995 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 996 | vdbe.lo: $(TOP)/src/vdbe.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 997 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbe.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 998 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 999 | vdbeapi.lo: $(TOP)/src/vdbeapi.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1000 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeapi.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1001 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 1002 | vdbeaux.lo: $(TOP)/src/vdbeaux.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1003 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeaux.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1004 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 1005 | vdbeblob.lo: $(TOP)/src/vdbeblob.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1006 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeblob.c |
danielk1977 | 6338c76 | 2007-05-17 16:38:30 +0000 | [diff] [blame] | 1007 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 1008 | vdbemem.lo: $(TOP)/src/vdbemem.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1009 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbemem.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1010 | |
dan | a9f39fd | 2011-08-12 16:34:42 +0000 | [diff] [blame] | 1011 | vdbesort.lo: $(TOP)/src/vdbesort.c $(HDR) |
| 1012 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbesort.c |
| 1013 | |
drh | c7bc4fd | 2009-11-25 18:03:42 +0000 | [diff] [blame] | 1014 | vdbetrace.lo: $(TOP)/src/vdbetrace.c $(HDR) |
| 1015 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbetrace.c |
| 1016 | |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 1017 | vdbevtab.lo: $(TOP)/src/vdbevtab.c $(HDR) |
| 1018 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbevtab.c |
| 1019 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 1020 | vtab.lo: $(TOP)/src/vtab.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1021 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vtab.c |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 1022 | |
drh | c438efd | 2010-04-26 00:19:45 +0000 | [diff] [blame] | 1023 | wal.lo: $(TOP)/src/wal.c $(HDR) |
| 1024 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wal.c |
| 1025 | |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 1026 | walker.lo: $(TOP)/src/walker.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1027 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/walker.c |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 1028 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1029 | where.lo: $(TOP)/src/where.c $(HDR) |
drh | 8b72747 | 2009-01-19 18:18:40 +0000 | [diff] [blame] | 1030 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/where.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1031 | |
drh | 6f82e85 | 2015-06-06 20:12:09 +0000 | [diff] [blame] | 1032 | wherecode.lo: $(TOP)/src/wherecode.c $(HDR) |
| 1033 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wherecode.c |
| 1034 | |
drh | 6c1f4ef | 2015-06-08 14:23:15 +0000 | [diff] [blame] | 1035 | whereexpr.lo: $(TOP)/src/whereexpr.c $(HDR) |
| 1036 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/whereexpr.c |
| 1037 | |
dan | d31e7ad | 2018-06-09 17:58:51 +0000 | [diff] [blame] | 1038 | window.lo: $(TOP)/src/window.c $(HDR) |
| 1039 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/window.c |
| 1040 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1041 | tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR) |
| 1042 | $(LTCOMPILE) -DUSE_TCL_STUBS=1 -c $(TOP)/src/tclsqlite.c |
| 1043 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 1044 | tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR) |
drh | 96a206f | 2017-10-13 20:14:06 +0000 | [diff] [blame] | 1045 | $(LTCOMPILE) -DTCLSH -o $@ -c $(TOP)/src/tclsqlite.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1046 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 1047 | tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR) |
shaneh | 8128bb2 | 2010-08-19 14:41:58 +0000 | [diff] [blame] | 1048 | $(LTCOMPILE) -DUSE_TCL_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 1049 | |
mlcreech | 1428b37 | 2008-03-13 23:28:22 +0000 | [diff] [blame] | 1050 | tclsqlite3$(TEXE): tclsqlite-shell.lo libsqlite3.la |
| 1051 | $(LTLINK) -o $@ tclsqlite-shell.lo \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1052 | libsqlite3.la $(LIBTCL) |
| 1053 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1054 | # Rules to build opcodes.c and opcodes.h |
| 1055 | # |
drh | 7651e0a | 2015-10-07 12:11:36 +0000 | [diff] [blame] | 1056 | opcodes.c: opcodes.h $(TOP)/tool/mkopcodec.tcl |
| 1057 | $(TCLSH_CMD) $(TOP)/tool/mkopcodec.tcl opcodes.h >opcodes.c |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1058 | |
drh | b15393b | 2015-10-07 02:52:09 +0000 | [diff] [blame] | 1059 | opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/tool/mkopcodeh.tcl |
| 1060 | cat parse.h $(TOP)/src/vdbe.c | $(TCLSH_CMD) $(TOP)/tool/mkopcodeh.tcl >opcodes.h |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1061 | |
| 1062 | # Rules to build parse.c and parse.h - the outputs of lemon. |
| 1063 | # |
| 1064 | parse.h: parse.c |
| 1065 | |
drh | f1722ba | 2019-04-05 20:56:46 +0000 | [diff] [blame] | 1066 | parse.c: $(TOP)/src/parse.y lemon$(BEXE) |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1067 | cp $(TOP)/src/parse.y . |
drh | fe03dac | 2019-11-26 02:22:39 +0000 | [diff] [blame] | 1068 | ./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) -S parse.y |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1069 | |
drh | f39e0ed | 2017-08-22 19:19:00 +0000 | [diff] [blame] | 1070 | sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest mksourceid$(BEXE) $(TOP)/VERSION |
drh | 16b92ee | 2011-07-22 10:33:04 +0000 | [diff] [blame] | 1071 | $(TCLSH_CMD) $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1072 | |
mistachkin | 7cff0e3 | 2020-06-19 15:33:23 +0000 | [diff] [blame] | 1073 | sqlite3rc.h: $(TOP)/src/sqlite3.rc $(TOP)/VERSION |
| 1074 | echo '#ifndef SQLITE_RESOURCE_VERSION' >$@ |
| 1075 | echo -n '#define SQLITE_RESOURCE_VERSION ' >>$@ |
| 1076 | cat $(TOP)/VERSION | $(TCLSH_CMD) $(TOP)/tool/replace.tcl exact . , >>$@ |
| 1077 | echo '#endif' >>sqlite3rc.h |
| 1078 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1079 | keywordhash.h: $(TOP)/tool/mkkeywordhash.c |
| 1080 | $(BCC) -o mkkeywordhash$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)/tool/mkkeywordhash.c |
| 1081 | ./mkkeywordhash$(BEXE) >keywordhash.h |
| 1082 | |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 1083 | # Source files that go into making shell.c |
| 1084 | SHELL_SRC = \ |
| 1085 | $(TOP)/src/shell.c.in \ |
drh | 8682e12 | 2018-01-07 20:38:10 +0000 | [diff] [blame] | 1086 | $(TOP)/ext/misc/appendvfs.c \ |
drh | 8cda77d | 2020-06-24 15:06:29 +0000 | [diff] [blame] | 1087 | $(TOP)/ext/misc/completion.c \ |
drh | beb9def | 2020-06-22 19:12:23 +0000 | [diff] [blame] | 1088 | $(TOP)/ext/misc/decimal.c \ |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 1089 | $(TOP)/ext/misc/fileio.c \ |
drh | 8cda77d | 2020-06-24 15:06:29 +0000 | [diff] [blame] | 1090 | $(TOP)/ext/misc/ieee754.c \ |
drh | d36f588 | 2020-11-25 16:28:04 +0000 | [diff] [blame] | 1091 | $(TOP)/ext/misc/series.c \ |
drh | 8cda77d | 2020-06-24 15:06:29 +0000 | [diff] [blame] | 1092 | $(TOP)/ext/misc/shathree.c \ |
drh | c932033 | 2018-01-05 16:23:43 +0000 | [diff] [blame] | 1093 | $(TOP)/ext/misc/sqlar.c \ |
drh | f05dd03 | 2020-04-14 15:53:58 +0000 | [diff] [blame] | 1094 | $(TOP)/ext/misc/uint.c \ |
drh | c932033 | 2018-01-05 16:23:43 +0000 | [diff] [blame] | 1095 | $(TOP)/ext/expert/sqlite3expert.c \ |
| 1096 | $(TOP)/ext/expert/sqlite3expert.h \ |
| 1097 | $(TOP)/ext/misc/zipfile.c \ |
drh | 50b910a | 2019-01-21 14:55:03 +0000 | [diff] [blame] | 1098 | $(TOP)/ext/misc/memtrace.c \ |
drh | c932033 | 2018-01-05 16:23:43 +0000 | [diff] [blame] | 1099 | $(TOP)/src/test_windirent.c |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 1100 | |
| 1101 | shell.c: $(SHELL_SRC) $(TOP)/tool/mkshellc.tcl |
| 1102 | $(TCLSH_CMD) $(TOP)/tool/mkshellc.tcl >shell.c |
| 1103 | |
| 1104 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1105 | |
| 1106 | |
| 1107 | # Rules to build the extension objects. |
| 1108 | # |
| 1109 | icu.lo: $(TOP)/ext/icu/icu.c $(HDR) $(EXTHDR) |
| 1110 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/icu/icu.c |
| 1111 | |
| 1112 | fts2.lo: $(TOP)/ext/fts2/fts2.c $(HDR) $(EXTHDR) |
| 1113 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2.c |
| 1114 | |
| 1115 | fts2_hash.lo: $(TOP)/ext/fts2/fts2_hash.c $(HDR) $(EXTHDR) |
| 1116 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_hash.c |
| 1117 | |
| 1118 | fts2_icu.lo: $(TOP)/ext/fts2/fts2_icu.c $(HDR) $(EXTHDR) |
| 1119 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_icu.c |
| 1120 | |
| 1121 | fts2_porter.lo: $(TOP)/ext/fts2/fts2_porter.c $(HDR) $(EXTHDR) |
| 1122 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_porter.c |
| 1123 | |
| 1124 | fts2_tokenizer.lo: $(TOP)/ext/fts2/fts2_tokenizer.c $(HDR) $(EXTHDR) |
| 1125 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer.c |
| 1126 | |
| 1127 | fts2_tokenizer1.lo: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR) $(EXTHDR) |
| 1128 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer1.c |
| 1129 | |
| 1130 | fts3.lo: $(TOP)/ext/fts3/fts3.c $(HDR) $(EXTHDR) |
| 1131 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3.c |
| 1132 | |
shaneh | d01f9cb | 2011-02-09 15:25:17 +0000 | [diff] [blame] | 1133 | fts3_aux.lo: $(TOP)/ext/fts3/fts3_aux.c $(HDR) $(EXTHDR) |
| 1134 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_aux.c |
| 1135 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1136 | fts3_expr.lo: $(TOP)/ext/fts3/fts3_expr.c $(HDR) $(EXTHDR) |
| 1137 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_expr.c |
| 1138 | |
| 1139 | fts3_hash.lo: $(TOP)/ext/fts3/fts3_hash.c $(HDR) $(EXTHDR) |
| 1140 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_hash.c |
| 1141 | |
| 1142 | fts3_icu.lo: $(TOP)/ext/fts3/fts3_icu.c $(HDR) $(EXTHDR) |
| 1143 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_icu.c |
| 1144 | |
shaneh | 671b522 | 2011-05-12 21:01:12 +0000 | [diff] [blame] | 1145 | fts3_porter.lo: $(TOP)/ext/fts3/fts3_porter.c $(HDR) $(EXTHDR) |
| 1146 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_porter.c |
| 1147 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1148 | fts3_snippet.lo: $(TOP)/ext/fts3/fts3_snippet.c $(HDR) $(EXTHDR) |
| 1149 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_snippet.c |
| 1150 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1151 | fts3_tokenizer.lo: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR) $(EXTHDR) |
| 1152 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer.c |
| 1153 | |
| 1154 | fts3_tokenizer1.lo: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR) $(EXTHDR) |
| 1155 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer1.c |
| 1156 | |
dan | cf5db44 | 2013-05-16 18:33:06 +0000 | [diff] [blame] | 1157 | fts3_tokenize_vtab.lo: $(TOP)/ext/fts3/fts3_tokenize_vtab.c $(HDR) $(EXTHDR) |
| 1158 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenize_vtab.c |
dan | d7a959c | 2013-04-22 15:30:37 +0000 | [diff] [blame] | 1159 | |
dan | 4b8213d | 2012-06-09 18:52:29 +0000 | [diff] [blame] | 1160 | fts3_unicode.lo: $(TOP)/ext/fts3/fts3_unicode.c $(HDR) $(EXTHDR) |
| 1161 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode.c |
| 1162 | |
| 1163 | fts3_unicode2.lo: $(TOP)/ext/fts3/fts3_unicode2.c $(HDR) $(EXTHDR) |
| 1164 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode2.c |
| 1165 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1166 | fts3_write.lo: $(TOP)/ext/fts3/fts3_write.c $(HDR) $(EXTHDR) |
| 1167 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_write.c |
| 1168 | |
| 1169 | rtree.lo: $(TOP)/ext/rtree/rtree.c $(HDR) $(EXTHDR) |
| 1170 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/rtree/rtree.c |
| 1171 | |
drh | 37f6ffb | 2019-03-08 20:26:12 +0000 | [diff] [blame] | 1172 | userauth.lo: $(TOP)/ext/userauth/userauth.c $(HDR) $(EXTHDR) |
dan | 49f6a0d | 2018-11-28 08:24:41 +0000 | [diff] [blame] | 1173 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/userauth/userauth.c |
| 1174 | |
drh | 37f6ffb | 2019-03-08 20:26:12 +0000 | [diff] [blame] | 1175 | sqlite3session.lo: $(TOP)/ext/session/sqlite3session.c $(HDR) $(EXTHDR) |
drh | 498dcae | 2013-03-13 11:42:00 +0000 | [diff] [blame] | 1176 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/session/sqlite3session.c |
| 1177 | |
drh | c306e08 | 2015-10-08 23:37:00 +0000 | [diff] [blame] | 1178 | json1.lo: $(TOP)/ext/misc/json1.c |
| 1179 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/misc/json1.c |
| 1180 | |
drh | c6603af | 2017-06-29 14:33:51 +0000 | [diff] [blame] | 1181 | stmt.lo: $(TOP)/ext/misc/stmt.c |
| 1182 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/misc/stmt.c |
drh | f00f530 | 2017-06-28 15:47:29 +0000 | [diff] [blame] | 1183 | |
dan | 3e65f89 | 2015-06-25 20:36:36 +0000 | [diff] [blame] | 1184 | # FTS5 things |
| 1185 | # |
| 1186 | FTS5_SRC = \ |
| 1187 | $(TOP)/ext/fts5/fts5.h \ |
| 1188 | $(TOP)/ext/fts5/fts5Int.h \ |
| 1189 | $(TOP)/ext/fts5/fts5_aux.c \ |
| 1190 | $(TOP)/ext/fts5/fts5_buffer.c \ |
| 1191 | $(TOP)/ext/fts5/fts5_main.c \ |
| 1192 | $(TOP)/ext/fts5/fts5_config.c \ |
| 1193 | $(TOP)/ext/fts5/fts5_expr.c \ |
| 1194 | $(TOP)/ext/fts5/fts5_hash.c \ |
| 1195 | $(TOP)/ext/fts5/fts5_index.c \ |
| 1196 | fts5parse.c fts5parse.h \ |
| 1197 | $(TOP)/ext/fts5/fts5_storage.c \ |
| 1198 | $(TOP)/ext/fts5/fts5_tokenize.c \ |
| 1199 | $(TOP)/ext/fts5/fts5_unicode2.c \ |
| 1200 | $(TOP)/ext/fts5/fts5_varint.c \ |
| 1201 | $(TOP)/ext/fts5/fts5_vocab.c \ |
| 1202 | |
drh | fa53284 | 2019-12-26 01:10:17 +0000 | [diff] [blame] | 1203 | fts5parse.c: $(TOP)/ext/fts5/fts5parse.y lemon$(BEXE) |
dan | 08e7199 | 2015-05-19 11:38:32 +0000 | [diff] [blame] | 1204 | cp $(TOP)/ext/fts5/fts5parse.y . |
| 1205 | rm -f fts5parse.h |
drh | fe03dac | 2019-11-26 02:22:39 +0000 | [diff] [blame] | 1206 | ./lemon$(BEXE) $(OPTS) -S fts5parse.y |
dan | 08e7199 | 2015-05-19 11:38:32 +0000 | [diff] [blame] | 1207 | |
| 1208 | fts5parse.h: fts5parse.c |
| 1209 | |
dan | 3e65f89 | 2015-06-25 20:36:36 +0000 | [diff] [blame] | 1210 | fts5.c: $(FTS5_SRC) |
| 1211 | $(TCLSH_CMD) $(TOP)/ext/fts5/tool/mkfts5c.tcl |
dan | a153bbc | 2015-07-02 20:12:34 +0000 | [diff] [blame] | 1212 | cp $(TOP)/ext/fts5/fts5.h . |
dan | 3e65f89 | 2015-06-25 20:36:36 +0000 | [diff] [blame] | 1213 | |
| 1214 | fts5.lo: fts5.c $(HDR) $(EXTHDR) |
| 1215 | $(LTCOMPILE) -DSQLITE_CORE -c fts5.c |
| 1216 | |
drh | 7647377 | 2016-01-14 13:22:24 +0000 | [diff] [blame] | 1217 | sqlite3rbu.lo: $(TOP)/ext/rbu/sqlite3rbu.c $(HDR) $(EXTHDR) |
| 1218 | $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/rbu/sqlite3rbu.c |
| 1219 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1220 | |
| 1221 | # Rules to build the 'testfixture' application. |
| 1222 | # |
| 1223 | # If using the amalgamation, use sqlite3.c directly to build the test |
| 1224 | # fixture. Otherwise link against libsqlite3.la. (This distinction is |
| 1225 | # necessary because the test fixture requires non-API symbols which are |
| 1226 | # hidden when the library is built via the amalgamation). |
| 1227 | # |
drh | 96a206f | 2017-10-13 20:14:06 +0000 | [diff] [blame] | 1228 | TESTFIXTURE_FLAGS = -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 |
| 1229 | TESTFIXTURE_FLAGS += -DTCLSH_INIT_PROC=sqlite3TestInit |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1230 | TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE |
drh | 0bab6c3 | 2011-09-23 16:34:49 +0000 | [diff] [blame] | 1231 | TESTFIXTURE_FLAGS += -DBUILD_sqlite |
drh | dbc4916 | 2016-03-02 03:28:07 +0000 | [diff] [blame] | 1232 | TESTFIXTURE_FLAGS += -DSQLITE_SERIES_CONSTRAINT_VERIFY=1 |
drh | 9878fef | 2016-03-04 03:43:10 +0000 | [diff] [blame] | 1233 | TESTFIXTURE_FLAGS += -DSQLITE_DEFAULT_PAGE_SIZE=1024 |
drh | c6603af | 2017-06-29 14:33:51 +0000 | [diff] [blame] | 1234 | TESTFIXTURE_FLAGS += -DSQLITE_ENABLE_STMTVTAB |
drh | 1df6470 | 2017-10-13 15:56:26 +0000 | [diff] [blame] | 1235 | TESTFIXTURE_FLAGS += -DSQLITE_ENABLE_DBPAGE_VTAB |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 1236 | TESTFIXTURE_FLAGS += -DSQLITE_ENABLE_BYTECODE_VTAB |
drh | 1641f11 | 2018-12-13 21:05:45 +0000 | [diff] [blame] | 1237 | TESTFIXTURE_FLAGS += -DSQLITE_ENABLE_DESERIALIZE |
dan | c30b78f | 2020-11-18 18:36:43 +0000 | [diff] [blame] | 1238 | TESTFIXTURE_FLAGS += -DSQLITE_CKSUMVFS_STATIC |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1239 | |
| 1240 | TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.la |
| 1241 | TESTFIXTURE_SRC1 = sqlite3.c |
drh | e191e2c | 2013-03-19 15:23:18 +0000 | [diff] [blame] | 1242 | TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c |
| 1243 | TESTFIXTURE_SRC += $(TESTFIXTURE_SRC$(USE_AMALGAMATION)) |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1244 | |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 1245 | testfixture$(TEXE): $(TESTFIXTURE_SRC) |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1246 | $(LTLINK) -DSQLITE_NO_SYNC=1 $(TEMP_STORE) $(TESTFIXTURE_FLAGS) \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 1247 | -o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1248 | |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1249 | coretestprogs: $(TESTPROGS) |
| 1250 | |
| 1251 | testprogs: coretestprogs srcck1$(BEXE) fuzzcheck$(TEXE) sessionfuzz$(TEXE) |
| 1252 | |
drh | 5bfff9d | 2015-01-08 01:05:42 +0000 | [diff] [blame] | 1253 | # A very detailed test running most or all test cases |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 1254 | fulltest: $(TESTPROGS) fuzztest |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 1255 | ./testfixture$(TEXE) $(TOP)/test/all.test $(TESTOPTS) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1256 | |
drh | 5bfff9d | 2015-01-08 01:05:42 +0000 | [diff] [blame] | 1257 | # Really really long testing |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 1258 | soaktest: $(TESTPROGS) |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 1259 | ./testfixture$(TEXE) $(TOP)/test/all.test -soak=1 $(TESTOPTS) |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1260 | |
mistachkin | d4ab103 | 2015-05-11 16:27:33 +0000 | [diff] [blame] | 1261 | # Do extra testing but not everything. |
drh | a523e31 | 2015-07-24 17:26:13 +0000 | [diff] [blame] | 1262 | fulltestonly: $(TESTPROGS) fuzztest |
mistachkin | c60941f | 2012-09-13 01:51:02 +0000 | [diff] [blame] | 1263 | ./testfixture$(TEXE) $(TOP)/test/full.test |
| 1264 | |
drh | e1a71a5 | 2015-04-24 16:09:12 +0000 | [diff] [blame] | 1265 | # Fuzz testing |
drh | f94c190 | 2018-03-07 20:48:21 +0000 | [diff] [blame] | 1266 | fuzztest: fuzzcheck$(TEXE) $(FUZZDATA) sessionfuzz$(TEXE) $(TOP)/test/sessionfuzz-data1.db |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 1267 | ./fuzzcheck$(TEXE) $(FUZZDATA) |
drh | f94c190 | 2018-03-07 20:48:21 +0000 | [diff] [blame] | 1268 | ./sessionfuzz$(TEXE) run $(TOP)/test/sessionfuzz-data1.db |
drh | f332071 | 2015-04-25 13:39:29 +0000 | [diff] [blame] | 1269 | |
drh | f94c190 | 2018-03-07 20:48:21 +0000 | [diff] [blame] | 1270 | valgrindfuzz: fuzzcheck$(TEXT) $(FUZZDATA) sessionfuzz$(TEXE) $(TOP)/test/sessionfuzz-data1.db |
dan | 0bff34a | 2021-03-03 16:46:03 +0000 | [diff] [blame] | 1271 | valgrind ./fuzzcheck$(TEXE) --cell-size-check --limit-mem 10M $(FUZZDATA) |
drh | f94c190 | 2018-03-07 20:48:21 +0000 | [diff] [blame] | 1272 | valgrind ./sessionfuzz$(TEXE) run $(TOP)/test/sessionfuzz-data1.db |
drh | d1f2f9b | 2015-06-08 19:15:50 +0000 | [diff] [blame] | 1273 | |
drh | c06e543 | 2016-12-14 11:23:51 +0000 | [diff] [blame] | 1274 | # The veryquick.test TCL tests. |
| 1275 | # |
| 1276 | tcltest: ./testfixture$(TEXE) |
| 1277 | ./testfixture$(TEXE) $(TOP)/test/veryquick.test $(TESTOPTS) |
drh | 362b66f | 2016-11-14 18:27:41 +0000 | [diff] [blame] | 1278 | |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 1279 | # Minimal testing that runs in less than 3 minutes |
| 1280 | # |
| 1281 | quicktest: ./testfixture$(TEXE) |
| 1282 | ./testfixture$(TEXE) $(TOP)/test/extraquick.test $(TESTOPTS) |
| 1283 | |
| 1284 | # This is the common case. Run many tests that do not take too long, |
| 1285 | # including fuzzcheck, sqlite3_analyzer, and sqldiff tests. |
drh | 5bfff9d | 2015-01-08 01:05:42 +0000 | [diff] [blame] | 1286 | # |
drh | c0efa4d | 2019-10-09 13:52:31 +0000 | [diff] [blame] | 1287 | test: fuzztest sourcetest $(TESTPROGS) tcltest |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1288 | |
drh | 5bfff9d | 2015-01-08 01:05:42 +0000 | [diff] [blame] | 1289 | # Run a test using valgrind. This can take a really long time |
| 1290 | # because valgrind is so much slower than a native machine. |
| 1291 | # |
drh | d1f2f9b | 2015-06-08 19:15:50 +0000 | [diff] [blame] | 1292 | valgrindtest: $(TESTPROGS) valgrindfuzz |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 1293 | OMIT_MISUSE=1 valgrind -v ./testfixture$(TEXE) $(TOP)/test/permutations.test valgrind $(TESTOPTS) |
drh | 8a2a0f5 | 2015-01-07 14:09:41 +0000 | [diff] [blame] | 1294 | |
drh | 5bfff9d | 2015-01-08 01:05:42 +0000 | [diff] [blame] | 1295 | # A very fast test that checks basic sanity. The name comes from |
| 1296 | # the 60s-era electronics testing: "Turn it on and see if smoke |
| 1297 | # comes out." |
| 1298 | # |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 1299 | smoketest: $(TESTPROGS) fuzzcheck$(TEXE) |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 1300 | ./testfixture$(TEXE) $(TOP)/test/main.test $(TESTOPTS) |
drh | 5bfff9d | 2015-01-08 01:05:42 +0000 | [diff] [blame] | 1301 | |
drh | 9776784 | 2020-05-29 19:39:35 +0000 | [diff] [blame] | 1302 | shelltest: $(TESTPROGS) |
| 1303 | ./testfixture$(TEXT) $(TOP)/test/permutations.test shell |
| 1304 | |
drh | 903b230 | 2017-10-13 18:58:55 +0000 | [diff] [blame] | 1305 | sqlite3_analyzer.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqlite3_analyzer.c.in |
| 1306 | $(TCLSH_CMD) $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqlite3_analyzer.c.in >sqlite3_analyzer.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1307 | |
drh | 8d43aa1 | 2011-09-21 18:29:49 +0000 | [diff] [blame] | 1308 | sqlite3_analyzer$(TEXE): sqlite3_analyzer.c |
drh | c42cdce | 2011-09-21 17:04:21 +0000 | [diff] [blame] | 1309 | $(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1310 | |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1311 | sqltclsh.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/sqltclsh.tcl $(TOP)/ext/misc/appendvfs.c $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqltclsh.c.in |
drh | dd2a43a | 2017-12-14 19:24:00 +0000 | [diff] [blame] | 1312 | $(TCLSH_CMD) $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqltclsh.c.in >sqltclsh.c |
| 1313 | |
| 1314 | sqltclsh$(TEXE): sqltclsh.c |
| 1315 | $(LTLINK) sqltclsh.c -o $@ $(LIBTCL) $(TLIBS) |
| 1316 | |
drh | 138bd6d | 2017-05-03 12:15:20 +0000 | [diff] [blame] | 1317 | sqlite3_expert$(TEXE): $(TOP)/ext/expert/sqlite3expert.h $(TOP)/ext/expert/sqlite3expert.c $(TOP)/ext/expert/expert.c sqlite3.c |
| 1318 | $(LTLINK) $(TOP)/ext/expert/sqlite3expert.h $(TOP)/ext/expert/sqlite3expert.c $(TOP)/ext/expert/expert.c sqlite3.c -o sqlite3_expert $(TLIBS) |
| 1319 | |
drh | 2737fa0 | 2017-10-31 15:49:19 +0000 | [diff] [blame] | 1320 | CHECKER_DEPS =\ |
| 1321 | $(TOP)/tool/mkccode.tcl \ |
| 1322 | sqlite3.c \ |
| 1323 | $(TOP)/src/tclsqlite.c \ |
| 1324 | $(TOP)/ext/repair/sqlite3_checker.tcl \ |
| 1325 | $(TOP)/ext/repair/checkindex.c \ |
drh | 927dd51 | 2017-10-31 18:09:40 +0000 | [diff] [blame] | 1326 | $(TOP)/ext/repair/checkfreelist.c \ |
drh | 2737fa0 | 2017-10-31 15:49:19 +0000 | [diff] [blame] | 1327 | $(TOP)/ext/misc/btreeinfo.c \ |
| 1328 | $(TOP)/ext/repair/sqlite3_checker.c.in |
| 1329 | |
| 1330 | sqlite3_checker.c: $(CHECKER_DEPS) |
| 1331 | $(TCLSH_CMD) $(TOP)/tool/mkccode.tcl $(TOP)/ext/repair/sqlite3_checker.c.in >$@ |
| 1332 | |
| 1333 | sqlite3_checker$(TEXE): sqlite3_checker.c |
| 1334 | $(LTLINK) sqlite3_checker.c -o $@ $(LIBTCL) $(TLIBS) |
| 1335 | |
drh | 688633c | 2017-03-13 19:26:34 +0000 | [diff] [blame] | 1336 | dbdump$(TEXE): $(TOP)/ext/misc/dbdump.c sqlite3.lo |
| 1337 | $(LTLINK) -DDBDUMP_STANDALONE -o $@ \ |
| 1338 | $(TOP)/ext/misc/dbdump.c sqlite3.lo $(TLIBS) |
| 1339 | |
drh | 3374648 | 2018-12-13 15:06:26 +0000 | [diff] [blame] | 1340 | dbtotxt$(TEXE): $(TOP)/tool/dbtotxt.c |
| 1341 | $(LTLINK)-o $@ $(TOP)/tool/dbtotxt.c |
| 1342 | |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 1343 | showdb$(TEXE): $(TOP)/tool/showdb.c sqlite3.lo |
| 1344 | $(LTLINK) -o $@ $(TOP)/tool/showdb.c sqlite3.lo $(TLIBS) |
| 1345 | |
| 1346 | showstat4$(TEXE): $(TOP)/tool/showstat4.c sqlite3.lo |
| 1347 | $(LTLINK) -o $@ $(TOP)/tool/showstat4.c sqlite3.lo $(TLIBS) |
| 1348 | |
| 1349 | showjournal$(TEXE): $(TOP)/tool/showjournal.c sqlite3.lo |
| 1350 | $(LTLINK) -o $@ $(TOP)/tool/showjournal.c sqlite3.lo $(TLIBS) |
| 1351 | |
| 1352 | showwal$(TEXE): $(TOP)/tool/showwal.c sqlite3.lo |
| 1353 | $(LTLINK) -o $@ $(TOP)/tool/showwal.c sqlite3.lo $(TLIBS) |
| 1354 | |
drh | 666fb69 | 2017-10-30 23:25:06 +0000 | [diff] [blame] | 1355 | showshm$(TEXE): $(TOP)/tool/showshm.c |
| 1356 | $(LTLINK) -o $@ $(TOP)/tool/showshm.c |
| 1357 | |
drh | 731dd6e | 2018-12-04 16:51:42 +0000 | [diff] [blame] | 1358 | index_usage$(TEXE): $(TOP)/tool/index_usage.c sqlite3.lo |
drh | 5a9c6bc | 2019-01-30 14:01:43 +0000 | [diff] [blame] | 1359 | $(LTLINK) $(SHELL_OPT) -o $@ $(TOP)/tool/index_usage.c sqlite3.lo $(TLIBS) |
drh | 731dd6e | 2018-12-04 16:51:42 +0000 | [diff] [blame] | 1360 | |
drh | 9f674f2 | 2014-08-18 20:23:29 +0000 | [diff] [blame] | 1361 | changeset$(TEXE): $(TOP)/ext/session/changeset.c sqlite3.lo |
| 1362 | $(LTLINK) -o $@ $(TOP)/ext/session/changeset.c sqlite3.lo $(TLIBS) |
| 1363 | |
dan | f095a1a | 2018-11-05 20:37:33 +0000 | [diff] [blame] | 1364 | changesetfuzz$(TEXE): $(TOP)/ext/session/changesetfuzz.c sqlite3.lo |
| 1365 | $(LTLINK) -o $@ $(TOP)/ext/session/changesetfuzz.c sqlite3.lo $(TLIBS) |
| 1366 | |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 1367 | rollback-test$(TEXE): $(TOP)/tool/rollback-test.c sqlite3.lo |
| 1368 | $(LTLINK) -o $@ $(TOP)/tool/rollback-test.c sqlite3.lo $(TLIBS) |
drh | 9ac3c1e | 2013-11-07 18:37:31 +0000 | [diff] [blame] | 1369 | |
drh | 355f2e0 | 2018-08-23 20:09:19 +0000 | [diff] [blame] | 1370 | atrc$(TEXX): $(TOP)/test/atrc.c sqlite3.lo |
| 1371 | $(LTLINK) -o $@ $(TOP)/test/atrc.c sqlite3.lo $(TLIBS) |
| 1372 | |
drh | 267a13f | 2014-06-18 18:10:12 +0000 | [diff] [blame] | 1373 | LogEst$(TEXE): $(TOP)/tool/logest.c sqlite3.h |
| 1374 | $(LTLINK) -I. -o $@ $(TOP)/tool/logest.c |
drh | 9ac3c1e | 2013-11-07 18:37:31 +0000 | [diff] [blame] | 1375 | |
drh | be11ade | 2016-06-24 02:50:44 +0000 | [diff] [blame] | 1376 | wordcount$(TEXE): $(TOP)/test/wordcount.c sqlite3.lo |
| 1377 | $(LTLINK) -o $@ $(TOP)/test/wordcount.c sqlite3.lo $(TLIBS) |
drh | 9ac3c1e | 2013-11-07 18:37:31 +0000 | [diff] [blame] | 1378 | |
drh | d1b2566 | 2017-01-23 19:11:38 +0000 | [diff] [blame] | 1379 | speedtest1$(TEXE): $(TOP)/test/speedtest1.c sqlite3.c |
| 1380 | $(LTLINK) $(ST_OPT) -o $@ $(TOP)/test/speedtest1.c sqlite3.c $(TLIBS) |
| 1381 | |
drh | 33e1ec2 | 2021-01-01 15:13:17 +0000 | [diff] [blame] | 1382 | startup$(TEXE): $(TOP)/test/startup.c sqlite3.c |
drh | 266f0f4 | 2021-01-01 18:32:15 +0000 | [diff] [blame] | 1383 | $(CC) -Os -g -DSQLITE_THREADSAFE=0 -o $@ $(TOP)/test/startup.c sqlite3.c $(TLIBS) |
drh | 33e1ec2 | 2021-01-01 15:13:17 +0000 | [diff] [blame] | 1384 | |
drh | d1b2566 | 2017-01-23 19:11:38 +0000 | [diff] [blame] | 1385 | KV_OPT += -DSQLITE_DIRECT_OVERFLOW_READ |
| 1386 | |
| 1387 | kvtest$(TEXE): $(TOP)/test/kvtest.c sqlite3.c |
| 1388 | $(LTLINK) $(KV_OPT) -o $@ $(TOP)/test/kvtest.c sqlite3.c $(TLIBS) |
drh | ad1ca9a | 2013-11-23 04:16:58 +0000 | [diff] [blame] | 1389 | |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1390 | rbu$(EXE): $(TOP)/ext/rbu/rbu.c $(TOP)/ext/rbu/sqlite3rbu.c sqlite3.lo |
drh | 7647377 | 2016-01-14 13:22:24 +0000 | [diff] [blame] | 1391 | $(LTLINK) -I. -o $@ $(TOP)/ext/rbu/rbu.c sqlite3.lo $(TLIBS) |
| 1392 | |
| 1393 | loadfts$(EXE): $(TOP)/tool/loadfts.c libsqlite3.la |
| 1394 | $(LTLINK) $(TOP)/tool/loadfts.c libsqlite3.la -o $@ $(TLIBS) |
| 1395 | |
drh | 00fa334 | 2014-12-23 19:52:26 +0000 | [diff] [blame] | 1396 | # This target will fail if the SQLite amalgamation contains any exported |
| 1397 | # symbols that do not begin with "sqlite3_". It is run as part of the |
| 1398 | # releasetest.tcl script. |
| 1399 | # |
drh | b283a0c | 2016-04-26 13:13:53 +0000 | [diff] [blame] | 1400 | VALIDIDS=' sqlite3(changeset|changegroup|session)?_' |
dan | 579d41d | 2019-04-11 06:50:52 +0000 | [diff] [blame] | 1401 | checksymbols: sqlite3.o |
| 1402 | nm -g --defined-only sqlite3.o |
| 1403 | nm -g --defined-only sqlite3.o | egrep -v $(VALIDIDS); test $$? -ne 0 |
drh | 277b4e4 | 2014-12-29 02:55:58 +0000 | [diff] [blame] | 1404 | echo '0 errors out of 1 tests' |
drh | 00fa334 | 2014-12-23 19:52:26 +0000 | [diff] [blame] | 1405 | |
drh | 07f7656 | 2016-02-09 22:39:39 +0000 | [diff] [blame] | 1406 | # Build the amalgamation-autoconf package. The amalamgation-tarball target builds |
| 1407 | # a tarball named for the version number. Ex: sqlite-autoconf-3110000.tar.gz. |
| 1408 | # The snapshot-tarball target builds a tarball named by the SHA1 hash |
drh | b43be55 | 2015-01-15 15:47:06 +0000 | [diff] [blame] | 1409 | # |
mistachkin | 7cff0e3 | 2020-06-19 15:33:23 +0000 | [diff] [blame] | 1410 | amalgamation-tarball: sqlite3.c sqlite3rc.h |
drh | 07f7656 | 2016-02-09 22:39:39 +0000 | [diff] [blame] | 1411 | TOP=$(TOP) sh $(TOP)/tool/mkautoconfamal.sh --normal |
| 1412 | |
mistachkin | 7cff0e3 | 2020-06-19 15:33:23 +0000 | [diff] [blame] | 1413 | snapshot-tarball: sqlite3.c sqlite3rc.h |
drh | 07f7656 | 2016-02-09 22:39:39 +0000 | [diff] [blame] | 1414 | TOP=$(TOP) sh $(TOP)/tool/mkautoconfamal.sh --snapshot |
drh | b43be55 | 2015-01-15 15:47:06 +0000 | [diff] [blame] | 1415 | |
drh | 069b8f2 | 2014-12-23 20:31:43 +0000 | [diff] [blame] | 1416 | # The next two rules are used to support the "threadtest" target. Building |
| 1417 | # threadtest runs a few thread-safety tests that are implemented in C. This |
| 1418 | # target is invoked by the releasetest.tcl script. |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1419 | # |
drh | 069b8f2 | 2014-12-23 20:31:43 +0000 | [diff] [blame] | 1420 | THREADTEST3_SRC = $(TOP)/test/threadtest3.c \ |
| 1421 | $(TOP)/test/tt3_checkpoint.c \ |
| 1422 | $(TOP)/test/tt3_index.c \ |
| 1423 | $(TOP)/test/tt3_vacuum.c \ |
| 1424 | $(TOP)/test/tt3_stress.c \ |
| 1425 | $(TOP)/test/tt3_lookaside1.c |
| 1426 | |
mistachkin | 4d03a38 | 2014-12-23 21:03:09 +0000 | [diff] [blame] | 1427 | threadtest3$(TEXE): sqlite3.lo $(THREADTEST3_SRC) |
dan | 5fcc1ba | 2015-12-03 12:01:54 +0000 | [diff] [blame] | 1428 | $(LTLINK) $(TOP)/test/threadtest3.c $(TOP)/src/test_multiplex.c sqlite3.lo -o $@ $(TLIBS) |
drh | 069b8f2 | 2014-12-23 20:31:43 +0000 | [diff] [blame] | 1429 | |
| 1430 | threadtest: threadtest3$(TEXE) |
| 1431 | ./threadtest3$(TEXE) |
| 1432 | |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1433 | releasetest: |
drh | a7c432c | 2014-12-23 21:17:58 +0000 | [diff] [blame] | 1434 | $(TCLSH_CMD) $(TOP)/test/releasetest.tcl |
| 1435 | |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1436 | # Standard install and cleanup targets |
| 1437 | # |
vapier | afea974 | 2009-02-18 04:33:59 +0000 | [diff] [blame] | 1438 | lib_install: libsqlite3.la |
drh | 8d45ec0 | 2004-09-17 21:07:34 +0000 | [diff] [blame] | 1439 | $(INSTALL) -d $(DESTDIR)$(libdir) |
| 1440 | $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir) |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1441 | |
mistachkin | 153d3e9 | 2016-01-21 18:56:10 +0000 | [diff] [blame] | 1442 | install: sqlite3$(TEXE) lib_install sqlite3.h sqlite3.pc ${HAVE_TCL:1=tcl_install} |
mlcreech | c55771f | 2008-03-06 08:09:12 +0000 | [diff] [blame] | 1443 | $(INSTALL) -d $(DESTDIR)$(bindir) |
mistachkin | 153d3e9 | 2016-01-21 18:56:10 +0000 | [diff] [blame] | 1444 | $(LTINSTALL) sqlite3$(TEXE) $(DESTDIR)$(bindir) |
mlcreech | c55771f | 2008-03-06 08:09:12 +0000 | [diff] [blame] | 1445 | $(INSTALL) -d $(DESTDIR)$(includedir) |
| 1446 | $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir) |
| 1447 | $(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir) |
danielk1977 | 94bdf89 | 2008-08-04 04:28:18 +0000 | [diff] [blame] | 1448 | $(INSTALL) -d $(DESTDIR)$(pkgconfigdir) |
| 1449 | $(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(pkgconfigdir) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1450 | |
vapier | 6d120f3 | 2009-01-28 04:46:14 +0000 | [diff] [blame] | 1451 | pkgIndex.tcl: |
drh | 9ebe59d | 2019-02-26 12:29:25 +0000 | [diff] [blame] | 1452 | echo 'package ifneeded sqlite3 $(RELEASE) [list load [file join $$dir libtclsqlite3[info sharedlibextension]] sqlite3]' > $@ |
vapier | afea974 | 2009-02-18 04:33:59 +0000 | [diff] [blame] | 1453 | tcl_install: lib_install libtclsqlite3.la pkgIndex.tcl |
vapier | 6d120f3 | 2009-01-28 04:46:14 +0000 | [diff] [blame] | 1454 | $(INSTALL) -d $(DESTDIR)$(TCLLIBDIR) |
| 1455 | $(LTINSTALL) libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR) |
| 1456 | rm -f $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.a |
| 1457 | $(INSTALL) -m 0644 pkgIndex.tcl $(DESTDIR)$(TCLLIBDIR) |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 1458 | |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1459 | clean: |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 1460 | rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1461 | rm -f sqlite3.h opcodes.* |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1462 | rm -rf .libs .deps |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 1463 | rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 1464 | rm -f mkkeywordhash$(BEXE) keywordhash.h |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1465 | rm -f *.da *.bb *.bbg gmon.out |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1466 | rm -rf tsrc .target_source |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 1467 | rm -f tclsqlite3$(TEXE) |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 1468 | rm -f testfixture$(TEXE) test.db |
mistachkin | 3a046c6 | 2014-07-18 21:02:54 +0000 | [diff] [blame] | 1469 | rm -f LogEst$(TEXE) fts3view$(TEXE) rollback-test$(TEXE) showdb$(TEXE) |
| 1470 | rm -f showjournal$(TEXE) showstat4$(TEXE) showwal$(TEXE) speedtest1$(TEXE) |
drh | 9f674f2 | 2014-08-18 20:23:29 +0000 | [diff] [blame] | 1471 | rm -f wordcount$(TEXE) changeset$(TEXE) |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 1472 | rm -f sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 1473 | rm -f sqlite3.c |
mistachkin | fde3b1c7 | 2013-03-29 19:52:04 +0000 | [diff] [blame] | 1474 | rm -f sqlite3rc.h |
| 1475 | rm -f shell.c sqlite3ext.h |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 1476 | rm -f sqlite3_analyzer$(TEXE) sqlite3_analyzer.c |
mistachkin | 29b75bd | 2012-10-20 09:35:57 +0000 | [diff] [blame] | 1477 | rm -f sqlite-*-output.vsix |
mistachkin | 21c9b6b | 2013-04-10 03:06:43 +0000 | [diff] [blame] | 1478 | rm -f mptester mptester.exe |
mistachkin | b5a5a23 | 2016-01-20 18:47:59 +0000 | [diff] [blame] | 1479 | rm -f rbu rbu.exe |
mistachkin | 27b6997 | 2016-02-07 20:39:27 +0000 | [diff] [blame] | 1480 | rm -f srcck1 srcck1.exe |
mistachkin | d4ab103 | 2015-05-11 16:27:33 +0000 | [diff] [blame] | 1481 | rm -f fuzzershell fuzzershell.exe |
mistachkin | 7a94e6b | 2015-05-26 03:24:33 +0000 | [diff] [blame] | 1482 | rm -f fuzzcheck fuzzcheck.exe |
mistachkin | d4ab103 | 2015-05-11 16:27:33 +0000 | [diff] [blame] | 1483 | rm -f sqldiff sqldiff.exe |
drh | 290fcaa | 2016-06-08 01:03:05 +0000 | [diff] [blame] | 1484 | rm -f dbhash dbhash.exe |
mistachkin | bc50bb7 | 2015-07-14 21:56:53 +0000 | [diff] [blame] | 1485 | rm -f fts5.* fts5parse.* |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1486 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1487 | distclean: clean |
mistachkin | 9edb5ce | 2015-07-19 19:53:23 +0000 | [diff] [blame] | 1488 | rm -f config.h config.log config.status libtool Makefile sqlite3.pc |
drh | 79dc669 | 2006-09-02 22:14:11 +0000 | [diff] [blame] | 1489 | |
| 1490 | # |
| 1491 | # Windows section |
| 1492 | # |
| 1493 | dll: sqlite3.dll |
| 1494 | |
| 1495 | REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o) |
| 1496 | |
| 1497 | $(REAL_LIBOBJ): $(LIBOBJ) |
| 1498 | |
| 1499 | sqlite3.def: $(REAL_LIBOBJ) |
| 1500 | echo 'EXPORTS' >sqlite3.def |
| 1501 | nm $(REAL_LIBOBJ) | grep ' T ' | grep ' _sqlite3_' \ |
| 1502 | | sed 's/^.* _//' >>sqlite3.def |
| 1503 | |
| 1504 | sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def |
mlcreech | 1428b37 | 2008-03-13 23:28:22 +0000 | [diff] [blame] | 1505 | $(TCC) -shared -o $@ sqlite3.def \ |
drh | 79dc669 | 2006-09-02 22:14:11 +0000 | [diff] [blame] | 1506 | -Wl,"--strip-all" $(REAL_LIBOBJ) |