drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1 | ############################################################################### |
drh | 7680032 | 2002-08-13 20:45:39 +0000 | [diff] [blame] | 2 | # The following macros should be defined before this script is |
| 3 | # invoked: |
| 4 | # |
| 5 | # TOP The toplevel directory of the source tree. This is the |
| 6 | # directory that contains this "Makefile.in" and the |
| 7 | # "configure.in" script. |
| 8 | # |
| 9 | # BCC C Compiler and options for use in building executables that |
| 10 | # will run on the platform that is doing the build. |
| 11 | # |
drh | 7680032 | 2002-08-13 20:45:39 +0000 | [diff] [blame] | 12 | # THREADLIB Specify any extra linker options needed to make the library |
| 13 | # thread safe |
| 14 | # |
drh | 45fac88 | 2015-10-09 01:42:49 +0000 | [diff] [blame] | 15 | # LIBS Extra libraries options |
| 16 | # |
drh | 7680032 | 2002-08-13 20:45:39 +0000 | [diff] [blame] | 17 | # OPTS Extra compiler command-line options. |
| 18 | # |
| 19 | # EXE The suffix to add to executable files. ".exe" for windows |
| 20 | # and "" for Unix. |
| 21 | # |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 22 | # TCC C Compiler and options for use in building executables that |
drh | 7680032 | 2002-08-13 20:45:39 +0000 | [diff] [blame] | 23 | # will run on the target platform. This is usually the same |
| 24 | # as BCC, unless you are cross-compiling. |
| 25 | # |
| 26 | # AR Tools used to build a static library. |
| 27 | # RANLIB |
| 28 | # |
| 29 | # TCL_FLAGS Extra compiler options needed for programs that use the |
| 30 | # TCL library. |
| 31 | # |
| 32 | # LIBTCL Linker options needed to link against the TCL library. |
| 33 | # |
| 34 | # READLINE_FLAGS Compiler options needed for programs that use the |
| 35 | # readline() library. |
| 36 | # |
| 37 | # LIBREADLINE Linker options needed by programs using readline() must |
| 38 | # link against. |
| 39 | # |
drh | 7680032 | 2002-08-13 20:45:39 +0000 | [diff] [blame] | 40 | # Once the macros above are defined, the rest of this make script will |
| 41 | # build the SQLite library and testing tools. |
| 42 | ################################################################################ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 43 | |
| 44 | # This is how we compile |
| 45 | # |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 46 | TCCX = $(TCC) $(OPTS) -I. -I$(TOP)/src -I$(TOP) |
danielk1977 | 3766875 | 2008-10-14 14:28:35 +0000 | [diff] [blame] | 47 | TCCX += -I$(TOP)/ext/rtree -I$(TOP)/ext/icu -I$(TOP)/ext/fts3 |
drh | f442e33 | 2014-09-10 19:01:14 +0000 | [diff] [blame] | 48 | TCCX += -I$(TOP)/ext/async -I$(TOP)/ext/userauth |
dan | 4fccf43 | 2011-03-08 19:22:50 +0000 | [diff] [blame] | 49 | TCCX += -I$(TOP)/ext/session |
dan | bea34fc | 2015-09-02 17:34:22 +0000 | [diff] [blame] | 50 | TCCX += -I$(TOP)/ext/fts5 |
drh | 45fac88 | 2015-10-09 01:42:49 +0000 | [diff] [blame] | 51 | THREADLIB += $(LIBS) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 52 | |
| 53 | # Object files for the SQLite library. |
| 54 | # |
drh | 30a6837 | 2013-07-29 13:51:54 +0000 | [diff] [blame] | 55 | LIBOBJ+= vdbe.o parse.o \ |
| 56 | alter.o analyze.o attach.o auth.o \ |
danielk1977 | 0410302 | 2009-02-03 16:51:24 +0000 | [diff] [blame] | 57 | backup.o bitvec.o btmutex.o btree.o build.o \ |
drh | a43c8c8 | 2017-10-11 13:48:11 +0000 | [diff] [blame] | 58 | callback.o complete.o ctime.o \ |
| 59 | date.o dbpage.o dbstat.o delete.o expr.o \ |
dan | 0008ce7 | 2015-10-09 11:09:47 +0000 | [diff] [blame] | 60 | fault.o fkey.o \ |
dan | a240fd0 | 2011-02-01 16:34:32 +0000 | [diff] [blame] | 61 | fts3.o fts3_aux.o fts3_expr.o fts3_hash.o fts3_icu.o fts3_porter.o \ |
dan | 807d0fc | 2011-05-17 14:41:36 +0000 | [diff] [blame] | 62 | fts3_snippet.o fts3_tokenizer.o fts3_tokenizer1.o \ |
dan | d7a959c | 2013-04-22 15:30:37 +0000 | [diff] [blame] | 63 | fts3_tokenize_vtab.o \ |
dan | 3d403c7 | 2012-05-25 17:50:19 +0000 | [diff] [blame] | 64 | fts3_unicode.o fts3_unicode2.o \ |
drh | 45fac88 | 2015-10-09 01:42:49 +0000 | [diff] [blame] | 65 | fts3_write.o fts5.o func.o global.o hash.o \ |
drh | c2f18ad | 2016-03-05 15:35:09 +0000 | [diff] [blame] | 66 | icu.o insert.o json1.o legacy.o loadext.o \ |
drh | d1370b6 | 2008-10-28 18:58:20 +0000 | [diff] [blame] | 67 | main.o malloc.o mem0.o mem1.o mem2.o mem3.o mem5.o \ |
drh | ac442f4 | 2018-01-03 01:28:46 +0000 | [diff] [blame] | 68 | memdb.o memjournal.o \ |
drh | 83905c9 | 2012-06-21 13:00:37 +0000 | [diff] [blame] | 69 | mutex.o mutex_noop.o mutex_unix.o mutex_w32.o \ |
| 70 | notify.o opcodes.o os.o os_unix.o os_win.o \ |
drh | 30a6837 | 2013-07-29 13:51:54 +0000 | [diff] [blame] | 71 | pager.o pcache.o pcache1.o pragma.o prepare.o printf.o \ |
drh | f00f530 | 2017-06-28 15:47:29 +0000 | [diff] [blame] | 72 | random.o resolve.o rowset.o rtree.o \ |
drh | c6603af | 2017-06-29 14:33:51 +0000 | [diff] [blame] | 73 | select.o sqlite3rbu.o status.o stmt.o \ |
drh | 38b4149 | 2015-06-08 15:08:15 +0000 | [diff] [blame] | 74 | table.o threads.o tokenize.o treeview.o trigger.o \ |
drh | fcfd756 | 2018-04-12 21:42:51 +0000 | [diff] [blame] | 75 | update.o upsert.o userauth.o util.o vacuum.o \ |
drh | 30a6837 | 2013-07-29 13:51:54 +0000 | [diff] [blame] | 76 | vdbeapi.o vdbeaux.o vdbeblob.o vdbemem.o vdbesort.o \ |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 77 | vdbetrace.o vdbevtab.o \ |
| 78 | wal.o walker.o where.o wherecode.o whereexpr.o \ |
dan | 86fb6e1 | 2018-05-16 20:58:07 +0000 | [diff] [blame] | 79 | utf.o vtab.o window.o |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 80 | |
drh | e622961 | 2014-08-18 15:08:26 +0000 | [diff] [blame] | 81 | LIBOBJ += sqlite3session.o |
danielk1977 | 3766875 | 2008-10-14 14:28:35 +0000 | [diff] [blame] | 82 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 83 | # All of the source code files. |
| 84 | # |
| 85 | SRC = \ |
drh | d0e4a6c | 2005-02-15 20:47:57 +0000 | [diff] [blame] | 86 | $(TOP)/src/alter.c \ |
drh | 9f18e8a | 2005-07-08 12:13:04 +0000 | [diff] [blame] | 87 | $(TOP)/src/analyze.c \ |
drh | c11d4f9 | 2003-04-06 21:08:24 +0000 | [diff] [blame] | 88 | $(TOP)/src/attach.c \ |
drh | ed6c867 | 2003-01-12 18:02:16 +0000 | [diff] [blame] | 89 | $(TOP)/src/auth.c \ |
danielk1977 | 0410302 | 2009-02-03 16:51:24 +0000 | [diff] [blame] | 90 | $(TOP)/src/backup.c \ |
drh | f5e7bb5 | 2008-02-18 14:47:33 +0000 | [diff] [blame] | 91 | $(TOP)/src/bitvec.c \ |
drh | 900b31e | 2007-08-28 02:27:51 +0000 | [diff] [blame] | 92 | $(TOP)/src/btmutex.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 93 | $(TOP)/src/btree.c \ |
| 94 | $(TOP)/src/btree.h \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 95 | $(TOP)/src/btreeInt.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 96 | $(TOP)/src/build.c \ |
danielk1977 | fd9a0a4 | 2005-05-24 12:01:00 +0000 | [diff] [blame] | 97 | $(TOP)/src/callback.c \ |
drh | a2b902d | 2005-08-14 17:53:20 +0000 | [diff] [blame] | 98 | $(TOP)/src/complete.c \ |
shaneh | dc97a8c | 2010-02-23 20:08:35 +0000 | [diff] [blame] | 99 | $(TOP)/src/ctime.c \ |
drh | 7014aff | 2003-11-01 01:53:53 +0000 | [diff] [blame] | 100 | $(TOP)/src/date.c \ |
drh | a43c8c8 | 2017-10-11 13:48:11 +0000 | [diff] [blame] | 101 | $(TOP)/src/dbpage.c \ |
drh | 1a4a680 | 2015-05-04 18:31:09 +0000 | [diff] [blame] | 102 | $(TOP)/src/dbstat.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 103 | $(TOP)/src/delete.c \ |
| 104 | $(TOP)/src/expr.c \ |
drh | 643167f | 2008-01-22 21:30:53 +0000 | [diff] [blame] | 105 | $(TOP)/src/fault.c \ |
dan | 3be7d6e | 2009-09-19 17:59:59 +0000 | [diff] [blame] | 106 | $(TOP)/src/fkey.c \ |
drh | 70a8ca3 | 2008-08-21 18:49:27 +0000 | [diff] [blame] | 107 | $(TOP)/src/func.c \ |
drh | 40257ff | 2008-06-13 18:24:27 +0000 | [diff] [blame] | 108 | $(TOP)/src/global.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 109 | $(TOP)/src/hash.c \ |
| 110 | $(TOP)/src/hash.h \ |
shane | 9bcbdad | 2008-05-29 20:22:37 +0000 | [diff] [blame] | 111 | $(TOP)/src/hwtime.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 112 | $(TOP)/src/insert.c \ |
drh | 014ac19 | 2004-06-01 01:45:11 +0000 | [diff] [blame] | 113 | $(TOP)/src/legacy.c \ |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 114 | $(TOP)/src/loadext.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 115 | $(TOP)/src/main.c \ |
drh | a315289 | 2007-05-05 11:48:52 +0000 | [diff] [blame] | 116 | $(TOP)/src/malloc.c \ |
drh | d1370b6 | 2008-10-28 18:58:20 +0000 | [diff] [blame] | 117 | $(TOP)/src/mem0.c \ |
drh | 4c3645c | 2007-08-15 17:07:57 +0000 | [diff] [blame] | 118 | $(TOP)/src/mem1.c \ |
| 119 | $(TOP)/src/mem2.c \ |
drh | 9c7a60d | 2007-10-19 17:47:24 +0000 | [diff] [blame] | 120 | $(TOP)/src/mem3.c \ |
drh | 0d18020 | 2008-02-14 23:26:56 +0000 | [diff] [blame] | 121 | $(TOP)/src/mem5.c \ |
drh | ac442f4 | 2018-01-03 01:28:46 +0000 | [diff] [blame] | 122 | $(TOP)/src/memdb.c \ |
danielk1977 | b317538 | 2008-10-17 18:51:52 +0000 | [diff] [blame] | 123 | $(TOP)/src/memjournal.c \ |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 124 | $(TOP)/src/msvc.h \ |
drh | 90f6a5b | 2007-08-15 13:04:54 +0000 | [diff] [blame] | 125 | $(TOP)/src/mutex.c \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 126 | $(TOP)/src/mutex.h \ |
drh | 18472fa | 2008-10-07 15:25:48 +0000 | [diff] [blame] | 127 | $(TOP)/src/mutex_noop.c \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 128 | $(TOP)/src/mutex_unix.c \ |
| 129 | $(TOP)/src/mutex_w32.c \ |
danielk1977 | 404ca07 | 2009-03-16 13:19:36 +0000 | [diff] [blame] | 130 | $(TOP)/src/notify.c \ |
drh | 054889e | 2005-11-30 03:20:31 +0000 | [diff] [blame] | 131 | $(TOP)/src/os.c \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 132 | $(TOP)/src/os.h \ |
| 133 | $(TOP)/src/os_common.h \ |
mistachkin | f74b9e0 | 2013-11-26 01:00:31 +0000 | [diff] [blame] | 134 | $(TOP)/src/os_setup.h \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 135 | $(TOP)/src/os_unix.c \ |
| 136 | $(TOP)/src/os_win.c \ |
mistachkin | 8bc5262 | 2013-11-25 09:36:07 +0000 | [diff] [blame] | 137 | $(TOP)/src/os_win.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 138 | $(TOP)/src/pager.c \ |
| 139 | $(TOP)/src/pager.h \ |
| 140 | $(TOP)/src/parse.y \ |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 141 | $(TOP)/src/pcache.c \ |
| 142 | $(TOP)/src/pcache.h \ |
danielk1977 | bc2ca9e | 2008-11-13 14:28:28 +0000 | [diff] [blame] | 143 | $(TOP)/src/pcache1.c \ |
drh | c11d4f9 | 2003-04-06 21:08:24 +0000 | [diff] [blame] | 144 | $(TOP)/src/pragma.c \ |
drh | 67e65e5 | 2015-02-02 21:34:54 +0000 | [diff] [blame] | 145 | $(TOP)/src/pragma.h \ |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 146 | $(TOP)/src/prepare.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 147 | $(TOP)/src/printf.c \ |
| 148 | $(TOP)/src/random.c \ |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 149 | $(TOP)/src/resolve.c \ |
drh | 3d4501e | 2008-12-04 20:40:10 +0000 | [diff] [blame] | 150 | $(TOP)/src/rowset.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 151 | $(TOP)/src/select.c \ |
drh | f714199 | 2008-06-19 00:16:08 +0000 | [diff] [blame] | 152 | $(TOP)/src/status.c \ |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 153 | $(TOP)/src/shell.c.in \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 154 | $(TOP)/src/sqlite.h.in \ |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 155 | $(TOP)/src/sqlite3ext.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 156 | $(TOP)/src/sqliteInt.h \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 157 | $(TOP)/src/sqliteLimit.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 158 | $(TOP)/src/table.c \ |
| 159 | $(TOP)/src/tclsqlite.c \ |
drh | f51446a | 2012-07-21 19:40:42 +0000 | [diff] [blame] | 160 | $(TOP)/src/threads.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 161 | $(TOP)/src/tokenize.c \ |
drh | 38b4149 | 2015-06-08 15:08:15 +0000 | [diff] [blame] | 162 | $(TOP)/src/treeview.c \ |
drh | dc37945 | 2002-05-15 12:45:43 +0000 | [diff] [blame] | 163 | $(TOP)/src/trigger.c \ |
drh | 1bbf5ee | 2004-05-11 01:18:24 +0000 | [diff] [blame] | 164 | $(TOP)/src/utf.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 165 | $(TOP)/src/update.c \ |
drh | fcfd756 | 2018-04-12 21:42:51 +0000 | [diff] [blame] | 166 | $(TOP)/src/upsert.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 167 | $(TOP)/src/util.c \ |
drh | e1051c6 | 2003-04-06 20:52:32 +0000 | [diff] [blame] | 168 | $(TOP)/src/vacuum.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 169 | $(TOP)/src/vdbe.c \ |
| 170 | $(TOP)/src/vdbe.h \ |
drh | eb2e176 | 2004-05-27 01:53:56 +0000 | [diff] [blame] | 171 | $(TOP)/src/vdbeapi.c \ |
drh | 9a32464 | 2003-09-06 20:12:01 +0000 | [diff] [blame] | 172 | $(TOP)/src/vdbeaux.c \ |
danielk1977 | b4e9af9 | 2007-05-01 17:49:49 +0000 | [diff] [blame] | 173 | $(TOP)/src/vdbeblob.c \ |
drh | eb2e176 | 2004-05-27 01:53:56 +0000 | [diff] [blame] | 174 | $(TOP)/src/vdbemem.c \ |
dan | a20fde6 | 2011-07-12 14:28:05 +0000 | [diff] [blame] | 175 | $(TOP)/src/vdbesort.c \ |
drh | c7bc4fd | 2009-11-25 18:03:42 +0000 | [diff] [blame] | 176 | $(TOP)/src/vdbetrace.c \ |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 177 | $(TOP)/src/vdbevtab.c \ |
drh | 9a32464 | 2003-09-06 20:12:01 +0000 | [diff] [blame] | 178 | $(TOP)/src/vdbeInt.h \ |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 179 | $(TOP)/src/vtab.c \ |
drh | 8cd5b25 | 2015-03-02 22:06:43 +0000 | [diff] [blame] | 180 | $(TOP)/src/vxworks.h \ |
drh | c438efd | 2010-04-26 00:19:45 +0000 | [diff] [blame] | 181 | $(TOP)/src/wal.c \ |
| 182 | $(TOP)/src/wal.h \ |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 183 | $(TOP)/src/walker.c \ |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 184 | $(TOP)/src/where.c \ |
drh | 6f82e85 | 2015-06-06 20:12:09 +0000 | [diff] [blame] | 185 | $(TOP)/src/wherecode.c \ |
drh | 6c1f4ef | 2015-06-08 14:23:15 +0000 | [diff] [blame] | 186 | $(TOP)/src/whereexpr.c \ |
dan | d31e7ad | 2018-06-09 17:58:51 +0000 | [diff] [blame] | 187 | $(TOP)/src/whereInt.h \ |
dan | 72a9f02 | 2018-06-11 11:19:35 +0000 | [diff] [blame] | 188 | $(TOP)/src/window.c |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 189 | |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 190 | # Source code for extensions |
| 191 | # |
| 192 | SRC += \ |
| 193 | $(TOP)/ext/fts1/fts1.c \ |
| 194 | $(TOP)/ext/fts1/fts1.h \ |
| 195 | $(TOP)/ext/fts1/fts1_hash.c \ |
| 196 | $(TOP)/ext/fts1/fts1_hash.h \ |
| 197 | $(TOP)/ext/fts1/fts1_porter.c \ |
| 198 | $(TOP)/ext/fts1/fts1_tokenizer.h \ |
| 199 | $(TOP)/ext/fts1/fts1_tokenizer1.c |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 200 | SRC += \ |
| 201 | $(TOP)/ext/fts2/fts2.c \ |
| 202 | $(TOP)/ext/fts2/fts2.h \ |
| 203 | $(TOP)/ext/fts2/fts2_hash.c \ |
| 204 | $(TOP)/ext/fts2/fts2_hash.h \ |
drh | d6e78a2 | 2007-07-20 13:42:26 +0000 | [diff] [blame] | 205 | $(TOP)/ext/fts2/fts2_icu.c \ |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 206 | $(TOP)/ext/fts2/fts2_porter.c \ |
| 207 | $(TOP)/ext/fts2/fts2_tokenizer.h \ |
drh | d6e78a2 | 2007-07-20 13:42:26 +0000 | [diff] [blame] | 208 | $(TOP)/ext/fts2/fts2_tokenizer.c \ |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 209 | $(TOP)/ext/fts2/fts2_tokenizer1.c |
danielk1977 | 08ada51 | 2007-06-26 10:56:40 +0000 | [diff] [blame] | 210 | SRC += \ |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 211 | $(TOP)/ext/fts3/fts3.c \ |
| 212 | $(TOP)/ext/fts3/fts3.h \ |
drh | f7829ad | 2009-11-25 22:42:22 +0000 | [diff] [blame] | 213 | $(TOP)/ext/fts3/fts3Int.h \ |
dan | a240fd0 | 2011-02-01 16:34:32 +0000 | [diff] [blame] | 214 | $(TOP)/ext/fts3/fts3_aux.c \ |
danielk1977 | 33e8903 | 2008-12-17 15:18:17 +0000 | [diff] [blame] | 215 | $(TOP)/ext/fts3/fts3_expr.c \ |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 216 | $(TOP)/ext/fts3/fts3_hash.c \ |
| 217 | $(TOP)/ext/fts3/fts3_hash.h \ |
| 218 | $(TOP)/ext/fts3/fts3_icu.c \ |
| 219 | $(TOP)/ext/fts3/fts3_porter.c \ |
dan | 16708c4 | 2009-11-19 15:25:25 +0000 | [diff] [blame] | 220 | $(TOP)/ext/fts3/fts3_snippet.c \ |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 221 | $(TOP)/ext/fts3/fts3_tokenizer.h \ |
| 222 | $(TOP)/ext/fts3/fts3_tokenizer.c \ |
dan | 09977bb | 2009-11-13 10:36:20 +0000 | [diff] [blame] | 223 | $(TOP)/ext/fts3/fts3_tokenizer1.c \ |
dan | d7a959c | 2013-04-22 15:30:37 +0000 | [diff] [blame] | 224 | $(TOP)/ext/fts3/fts3_tokenize_vtab.c \ |
dan | 3d403c7 | 2012-05-25 17:50:19 +0000 | [diff] [blame] | 225 | $(TOP)/ext/fts3/fts3_unicode.c \ |
| 226 | $(TOP)/ext/fts3/fts3_unicode2.c \ |
dan | 09977bb | 2009-11-13 10:36:20 +0000 | [diff] [blame] | 227 | $(TOP)/ext/fts3/fts3_write.c |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 228 | SRC += \ |
danielk1977 | 1c82665 | 2008-09-08 08:08:09 +0000 | [diff] [blame] | 229 | $(TOP)/ext/icu/sqliteicu.h \ |
shane | 8e28379 | 2009-08-21 02:07:09 +0000 | [diff] [blame] | 230 | $(TOP)/ext/icu/icu.c |
drh | 58f1c8b | 2008-05-26 20:19:25 +0000 | [diff] [blame] | 231 | SRC += \ |
drh | 2e7be08 | 2014-05-07 21:16:56 +0000 | [diff] [blame] | 232 | $(TOP)/ext/rtree/sqlite3rtree.h \ |
drh | 58f1c8b | 2008-05-26 20:19:25 +0000 | [diff] [blame] | 233 | $(TOP)/ext/rtree/rtree.h \ |
drh | 748b8fd | 2018-05-25 19:22:47 +0000 | [diff] [blame] | 234 | $(TOP)/ext/rtree/rtree.c \ |
| 235 | $(TOP)/ext/rtree/geopoly.c |
drh | e933b83 | 2014-09-10 17:34:28 +0000 | [diff] [blame] | 236 | SRC += \ |
drh | 8ce2b09 | 2013-03-13 12:20:15 +0000 | [diff] [blame] | 237 | $(TOP)/ext/session/sqlite3session.c \ |
| 238 | $(TOP)/ext/session/sqlite3session.h |
drh | 6b011d8 | 2014-09-21 22:49:20 +0000 | [diff] [blame] | 239 | SRC += \ |
drh | e933b83 | 2014-09-10 17:34:28 +0000 | [diff] [blame] | 240 | $(TOP)/ext/userauth/userauth.c \ |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 241 | $(TOP)/ext/userauth/sqlite3userauth.h |
dan | 92e497e | 2014-07-28 20:14:02 +0000 | [diff] [blame] | 242 | SRC += \ |
drh | cfb8f8d | 2015-07-23 20:44:49 +0000 | [diff] [blame] | 243 | $(TOP)/ext/rbu/sqlite3rbu.c \ |
| 244 | $(TOP)/ext/rbu/sqlite3rbu.h |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 245 | SRC += \ |
drh | f00f530 | 2017-06-28 15:47:29 +0000 | [diff] [blame] | 246 | $(TOP)/ext/misc/json1.c \ |
drh | c6603af | 2017-06-29 14:33:51 +0000 | [diff] [blame] | 247 | $(TOP)/ext/misc/stmt.c |
dan | 92e497e | 2014-07-28 20:14:02 +0000 | [diff] [blame] | 248 | |
danielk1977 | 77b03a2 | 2007-06-20 08:49:05 +0000 | [diff] [blame] | 249 | |
dan | bea34fc | 2015-09-02 17:34:22 +0000 | [diff] [blame] | 250 | # FTS5 things |
| 251 | # |
| 252 | FTS5_HDR = \ |
| 253 | $(TOP)/ext/fts5/fts5.h \ |
| 254 | $(TOP)/ext/fts5/fts5Int.h \ |
| 255 | fts5parse.h |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 256 | |
dan | bea34fc | 2015-09-02 17:34:22 +0000 | [diff] [blame] | 257 | FTS5_SRC = \ |
| 258 | $(TOP)/ext/fts5/fts5_aux.c \ |
| 259 | $(TOP)/ext/fts5/fts5_buffer.c \ |
| 260 | $(TOP)/ext/fts5/fts5_main.c \ |
| 261 | $(TOP)/ext/fts5/fts5_config.c \ |
| 262 | $(TOP)/ext/fts5/fts5_expr.c \ |
| 263 | $(TOP)/ext/fts5/fts5_hash.c \ |
| 264 | $(TOP)/ext/fts5/fts5_index.c \ |
| 265 | fts5parse.c \ |
| 266 | $(TOP)/ext/fts5/fts5_storage.c \ |
| 267 | $(TOP)/ext/fts5/fts5_tokenize.c \ |
| 268 | $(TOP)/ext/fts5/fts5_unicode2.c \ |
| 269 | $(TOP)/ext/fts5/fts5_varint.c \ |
| 270 | $(TOP)/ext/fts5/fts5_vocab.c \ |
| 271 | |
dan | 6212854 | 2017-12-13 14:22:48 +0000 | [diff] [blame] | 272 | LSM1_SRC = \ |
| 273 | $(TOP)/ext/lsm1/lsm.h \ |
| 274 | $(TOP)/ext/lsm1/lsmInt.h \ |
| 275 | $(TOP)/ext/lsm1/lsm_ckpt.c \ |
| 276 | $(TOP)/ext/lsm1/lsm_file.c \ |
| 277 | $(TOP)/ext/lsm1/lsm_log.c \ |
| 278 | $(TOP)/ext/lsm1/lsm_main.c \ |
| 279 | $(TOP)/ext/lsm1/lsm_mem.c \ |
| 280 | $(TOP)/ext/lsm1/lsm_mutex.c \ |
| 281 | $(TOP)/ext/lsm1/lsm_shared.c \ |
| 282 | $(TOP)/ext/lsm1/lsm_sorted.c \ |
| 283 | $(TOP)/ext/lsm1/lsm_str.c \ |
| 284 | $(TOP)/ext/lsm1/lsm_tree.c \ |
| 285 | $(TOP)/ext/lsm1/lsm_unix.c \ |
| 286 | $(TOP)/ext/lsm1/lsm_varint.c \ |
| 287 | $(TOP)/ext/lsm1/lsm_vtab.c \ |
| 288 | $(TOP)/ext/lsm1/lsm_win32.c |
| 289 | |
dan | bea34fc | 2015-09-02 17:34:22 +0000 | [diff] [blame] | 290 | |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 291 | # Generated source code files |
| 292 | # |
| 293 | SRC += \ |
| 294 | keywordhash.h \ |
| 295 | opcodes.c \ |
| 296 | opcodes.h \ |
| 297 | parse.c \ |
| 298 | parse.h \ |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 299 | shell.c \ |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 300 | sqlite3.h |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 301 | |
| 302 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 303 | # Source code to the test files. |
| 304 | # |
drh | b6f4148 | 2004-05-14 01:58:11 +0000 | [diff] [blame] | 305 | TESTSRC = \ |
dan | cd84474 | 2017-04-10 16:13:20 +0000 | [diff] [blame] | 306 | $(TOP)/ext/expert/sqlite3expert.c \ |
| 307 | $(TOP)/ext/expert/test_expert.c \ |
dan | 188829b | 2011-06-21 15:24:30 +0000 | [diff] [blame] | 308 | $(TOP)/ext/fts3/fts3_term.c \ |
dan | 99ebad9 | 2011-06-13 09:11:01 +0000 | [diff] [blame] | 309 | $(TOP)/ext/fts3/fts3_test.c \ |
drh | cfb8f8d | 2015-07-23 20:44:49 +0000 | [diff] [blame] | 310 | $(TOP)/ext/rbu/test_rbu.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 311 | $(TOP)/src/test1.c \ |
| 312 | $(TOP)/src/test2.c \ |
| 313 | $(TOP)/src/test3.c \ |
drh | a6064dc | 2003-12-19 02:52:05 +0000 | [diff] [blame] | 314 | $(TOP)/src/test4.c \ |
danielk1977 | 4adee20 | 2004-05-08 08:23:19 +0000 | [diff] [blame] | 315 | $(TOP)/src/test5.c \ |
drh | 9c06c95 | 2005-11-26 00:25:00 +0000 | [diff] [blame] | 316 | $(TOP)/src/test6.c \ |
drh | 29c636b | 2006-01-09 23:40:25 +0000 | [diff] [blame] | 317 | $(TOP)/src/test7.c \ |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 318 | $(TOP)/src/test8.c \ |
danielk1977 | a713f2c | 2007-03-29 12:19:11 +0000 | [diff] [blame] | 319 | $(TOP)/src/test9.c \ |
drh | 1409be6 | 2006-08-23 20:07:20 +0000 | [diff] [blame] | 320 | $(TOP)/src/test_autoext.c \ |
drh | 2366940 | 2006-01-09 17:29:52 +0000 | [diff] [blame] | 321 | $(TOP)/src/test_async.c \ |
danielk1977 | 0410302 | 2009-02-03 16:51:24 +0000 | [diff] [blame] | 322 | $(TOP)/src/test_backup.c \ |
dan | 8e4251b | 2016-03-01 18:07:43 +0000 | [diff] [blame] | 323 | $(TOP)/src/test_bestindex.c \ |
dan | b391b94 | 2014-11-07 14:41:11 +0000 | [diff] [blame] | 324 | $(TOP)/src/test_blob.c \ |
drh | 16a9b83 | 2007-05-05 18:39:25 +0000 | [diff] [blame] | 325 | $(TOP)/src/test_btree.c \ |
drh | c797d4d | 2007-05-08 01:08:49 +0000 | [diff] [blame] | 326 | $(TOP)/src/test_config.c \ |
dan | 000f95b | 2016-09-09 20:00:40 +0000 | [diff] [blame] | 327 | $(TOP)/src/test_delete.c \ |
dan | 0a7a915 | 2010-04-07 07:57:38 +0000 | [diff] [blame] | 328 | $(TOP)/src/test_demovfs.c \ |
danielk1977 | bf26097 | 2008-01-22 11:50:13 +0000 | [diff] [blame] | 329 | $(TOP)/src/test_devsym.c \ |
dan | 9f5ff37 | 2013-01-11 09:58:54 +0000 | [diff] [blame] | 330 | $(TOP)/src/test_fs.c \ |
drh | 984bfaa | 2008-03-19 16:08:53 +0000 | [diff] [blame] | 331 | $(TOP)/src/test_func.c \ |
drh | 1592659 | 2007-04-06 15:02:13 +0000 | [diff] [blame] | 332 | $(TOP)/src/test_hexio.c \ |
dan | e1ab219 | 2009-08-17 15:16:19 +0000 | [diff] [blame] | 333 | $(TOP)/src/test_init.c \ |
drh | 522efc6 | 2009-11-10 17:24:37 +0000 | [diff] [blame] | 334 | $(TOP)/src/test_intarray.c \ |
danielk1977 | a0fc729 | 2008-12-20 18:33:59 +0000 | [diff] [blame] | 335 | $(TOP)/src/test_journal.c \ |
drh | 2f999a6 | 2007-08-15 19:16:43 +0000 | [diff] [blame] | 336 | $(TOP)/src/test_malloc.c \ |
drh | c318f73 | 2017-10-13 15:06:06 +0000 | [diff] [blame] | 337 | $(TOP)/src/test_md5.c \ |
drh | 5a092e9 | 2010-11-04 21:03:47 +0000 | [diff] [blame] | 338 | $(TOP)/src/test_multiplex.c \ |
danielk1977 | 1a9ed0b | 2008-06-18 09:45:56 +0000 | [diff] [blame] | 339 | $(TOP)/src/test_mutex.c \ |
danielk1977 | b61c16d | 2007-09-14 16:19:27 +0000 | [diff] [blame] | 340 | $(TOP)/src/test_onefile.c \ |
danielk1977 | 5d1f5aa | 2008-04-10 14:51:00 +0000 | [diff] [blame] | 341 | $(TOP)/src/test_osinst.c \ |
drh | b232c23 | 2008-11-19 01:20:26 +0000 | [diff] [blame] | 342 | $(TOP)/src/test_pcache.c \ |
dan | 8cf35eb | 2010-09-01 11:40:05 +0000 | [diff] [blame] | 343 | $(TOP)/src/test_quota.c \ |
dan | 9508daa | 2010-08-28 18:58:00 +0000 | [diff] [blame] | 344 | $(TOP)/src/test_rtree.c \ |
danielk1977 | 954ce99 | 2006-06-15 15:59:19 +0000 | [diff] [blame] | 345 | $(TOP)/src/test_schema.c \ |
drh | 2d02a67 | 2006-01-25 15:55:37 +0000 | [diff] [blame] | 346 | $(TOP)/src/test_server.c \ |
dan | ac45593 | 2012-11-26 19:50:41 +0000 | [diff] [blame] | 347 | $(TOP)/src/test_sqllog.c \ |
dan | e336b00 | 2010-11-19 18:20:09 +0000 | [diff] [blame] | 348 | $(TOP)/src/test_superlock.c \ |
dan | 213ca0a | 2011-03-28 19:10:06 +0000 | [diff] [blame] | 349 | $(TOP)/src/test_syscall.c \ |
drh | c318f73 | 2017-10-13 15:06:06 +0000 | [diff] [blame] | 350 | $(TOP)/src/test_tclsh.c \ |
drh | 4be8b51 | 2006-06-13 23:51:34 +0000 | [diff] [blame] | 351 | $(TOP)/src/test_tclvar.c \ |
danielk1977 | 44918fa | 2007-09-07 11:29:25 +0000 | [diff] [blame] | 352 | $(TOP)/src/test_thread.c \ |
dan | 1d07f1d | 2019-04-01 17:24:20 +0000 | [diff] [blame] | 353 | $(TOP)/src/test_vdbecov.c \ |
dan | c7991bd | 2010-05-05 19:04:59 +0000 | [diff] [blame] | 354 | $(TOP)/src/test_vfs.c \ |
mistachkin | 92af1eb | 2015-11-30 23:29:07 +0000 | [diff] [blame] | 355 | $(TOP)/src/test_windirent.c \ |
dan | 660af93 | 2018-06-18 16:55:22 +0000 | [diff] [blame] | 356 | $(TOP)/src/test_window.c \ |
shane | 8e28379 | 2009-08-21 02:07:09 +0000 | [diff] [blame] | 357 | $(TOP)/src/test_wsd.c |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 358 | |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 359 | # Extensions to be statically loaded. |
| 360 | # |
| 361 | TESTSRC += \ |
drh | 8416fc7 | 2013-04-25 16:42:55 +0000 | [diff] [blame] | 362 | $(TOP)/ext/misc/amatch.c \ |
larrybr | 1b22ad8 | 2021-03-06 23:36:47 +0000 | [diff] [blame] | 363 | $(TOP)/ext/misc/appendvfs.c \ |
larrybr | 7e398c0 | 2021-03-07 18:55:25 +0000 | [diff] [blame] | 364 | $(TOP)/ext/misc/carray.c \ |
dan | c30b78f | 2020-11-18 18:36:43 +0000 | [diff] [blame] | 365 | $(TOP)/ext/misc/cksumvfs.c \ |
drh | 8416fc7 | 2013-04-25 16:42:55 +0000 | [diff] [blame] | 366 | $(TOP)/ext/misc/closure.c \ |
drh | 35db31b | 2016-06-02 23:13:21 +0000 | [diff] [blame] | 367 | $(TOP)/ext/misc/csv.c \ |
drh | beb9def | 2020-06-22 19:12:23 +0000 | [diff] [blame] | 368 | $(TOP)/ext/misc/decimal.c \ |
drh | 1728bcb | 2014-11-10 16:49:56 +0000 | [diff] [blame] | 369 | $(TOP)/ext/misc/eval.c \ |
drh | 9b84f03 | 2018-09-16 16:18:01 +0000 | [diff] [blame] | 370 | $(TOP)/ext/misc/explain.c \ |
drh | 51ed298 | 2014-06-16 12:44:32 +0000 | [diff] [blame] | 371 | $(TOP)/ext/misc/fileio.c \ |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 372 | $(TOP)/ext/misc/fuzzer.c \ |
drh | 8416fc7 | 2013-04-25 16:42:55 +0000 | [diff] [blame] | 373 | $(TOP)/ext/misc/ieee754.c \ |
dan | 460f1fa | 2017-09-18 16:28:56 +0000 | [diff] [blame] | 374 | $(TOP)/ext/misc/mmapwarm.c \ |
drh | ea41dc4 | 2013-04-25 19:31:33 +0000 | [diff] [blame] | 375 | $(TOP)/ext/misc/nextchar.c \ |
drh | 91694db | 2018-01-08 20:04:57 +0000 | [diff] [blame] | 376 | $(TOP)/ext/misc/normalize.c \ |
drh | def3367 | 2013-05-28 20:25:54 +0000 | [diff] [blame] | 377 | $(TOP)/ext/misc/percentile.c \ |
dan | 9c039d9 | 2019-01-14 20:44:00 +0000 | [diff] [blame] | 378 | $(TOP)/ext/misc/prefixes.c \ |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 379 | $(TOP)/ext/misc/regexp.c \ |
drh | 6bada27 | 2016-08-09 21:08:42 +0000 | [diff] [blame] | 380 | $(TOP)/ext/misc/remember.c \ |
drh | 398f872 | 2015-08-19 13:54:20 +0000 | [diff] [blame] | 381 | $(TOP)/ext/misc/series.c \ |
drh | b7045ab | 2013-04-25 14:59:01 +0000 | [diff] [blame] | 382 | $(TOP)/ext/misc/spellfix.c \ |
drh | 5f8cdac | 2013-10-14 21:14:42 +0000 | [diff] [blame] | 383 | $(TOP)/ext/misc/totype.c \ |
dan | d8ecefa | 2017-07-15 20:48:30 +0000 | [diff] [blame] | 384 | $(TOP)/ext/misc/unionvtab.c \ |
dan | 30e2f0a | 2013-10-10 13:04:46 +0000 | [diff] [blame] | 385 | $(TOP)/ext/misc/wholenumber.c \ |
dan | 373dc3b | 2017-12-29 20:19:03 +0000 | [diff] [blame] | 386 | $(TOP)/ext/misc/zipfile.c \ |
dan | 3abdc44 | 2015-07-02 18:16:02 +0000 | [diff] [blame] | 387 | $(TOP)/ext/fts5/fts5_tcl.c \ |
dan | 2cfe049 | 2016-01-14 20:05:59 +0000 | [diff] [blame] | 388 | $(TOP)/ext/fts5/fts5_test_mi.c \ |
dan | 70bc717 | 2018-01-16 20:20:00 +0000 | [diff] [blame] | 389 | $(TOP)/ext/fts5/fts5_test_tok.c |
drh | e50db1c | 2013-04-25 14:31:46 +0000 | [diff] [blame] | 390 | |
| 391 | |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 392 | #TESTSRC += $(TOP)/ext/fts2/fts2_tokenizer.c |
| 393 | #TESTSRC += $(TOP)/ext/fts3/fts3_tokenizer.c |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 394 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 395 | TESTSRC2 = \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 396 | $(TOP)/src/attach.c \ |
| 397 | $(TOP)/src/backup.c \ |
| 398 | $(TOP)/src/btree.c \ |
| 399 | $(TOP)/src/build.c \ |
| 400 | $(TOP)/src/date.c \ |
drh | a43c8c8 | 2017-10-11 13:48:11 +0000 | [diff] [blame] | 401 | $(TOP)/src/dbpage.c \ |
drh | 1a4a680 | 2015-05-04 18:31:09 +0000 | [diff] [blame] | 402 | $(TOP)/src/dbstat.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 403 | $(TOP)/src/expr.c \ |
| 404 | $(TOP)/src/func.c \ |
drh | eea8eb6 | 2018-11-26 18:09:15 +0000 | [diff] [blame] | 405 | $(TOP)/src/global.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 406 | $(TOP)/src/insert.c \ |
| 407 | $(TOP)/src/wal.c \ |
dan | f261414 | 2013-05-15 16:16:25 +0000 | [diff] [blame] | 408 | $(TOP)/src/main.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 409 | $(TOP)/src/mem5.c \ |
| 410 | $(TOP)/src/os.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 411 | $(TOP)/src/os_unix.c \ |
| 412 | $(TOP)/src/os_win.c \ |
| 413 | $(TOP)/src/pager.c \ |
| 414 | $(TOP)/src/pragma.c \ |
| 415 | $(TOP)/src/prepare.c \ |
| 416 | $(TOP)/src/printf.c \ |
| 417 | $(TOP)/src/random.c \ |
| 418 | $(TOP)/src/pcache.c \ |
| 419 | $(TOP)/src/pcache1.c \ |
| 420 | $(TOP)/src/select.c \ |
dan | d94d4ee | 2014-05-05 09:08:54 +0000 | [diff] [blame] | 421 | $(TOP)/src/threads.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 422 | $(TOP)/src/tokenize.c \ |
| 423 | $(TOP)/src/utf.c \ |
| 424 | $(TOP)/src/util.c \ |
| 425 | $(TOP)/src/vdbeapi.c \ |
| 426 | $(TOP)/src/vdbeaux.c \ |
| 427 | $(TOP)/src/vdbe.c \ |
| 428 | $(TOP)/src/vdbemem.c \ |
dan | 8714de9 | 2020-05-04 19:42:35 +0000 | [diff] [blame] | 429 | $(TOP)/src/vdbevtab.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 430 | $(TOP)/src/where.c \ |
drh | 6f82e85 | 2015-06-06 20:12:09 +0000 | [diff] [blame] | 431 | $(TOP)/src/wherecode.c \ |
drh | 6c1f4ef | 2015-06-08 14:23:15 +0000 | [diff] [blame] | 432 | $(TOP)/src/whereexpr.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 433 | parse.c \ |
| 434 | $(TOP)/ext/fts3/fts3.c \ |
dan | a240fd0 | 2011-02-01 16:34:32 +0000 | [diff] [blame] | 435 | $(TOP)/ext/fts3/fts3_aux.c \ |
shaneh | 1860705 | 2010-07-06 20:37:09 +0000 | [diff] [blame] | 436 | $(TOP)/ext/fts3/fts3_expr.c \ |
| 437 | $(TOP)/ext/fts3/fts3_tokenizer.c \ |
| 438 | $(TOP)/ext/fts3/fts3_write.c \ |
dan | 4fccf43 | 2011-03-08 19:22:50 +0000 | [diff] [blame] | 439 | $(TOP)/ext/async/sqlite3async.c \ |
dan | 26893c9 | 2018-01-17 16:11:26 +0000 | [diff] [blame] | 440 | $(TOP)/ext/misc/stmt.c \ |
dan | 4fccf43 | 2011-03-08 19:22:50 +0000 | [diff] [blame] | 441 | $(TOP)/ext/session/sqlite3session.c \ |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 442 | $(TOP)/ext/session/test_session.c |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 443 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 444 | # Header files used by all library source files. |
| 445 | # |
| 446 | HDR = \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 447 | $(TOP)/src/btree.h \ |
drh | a315289 | 2007-05-05 11:48:52 +0000 | [diff] [blame] | 448 | $(TOP)/src/btreeInt.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 449 | $(TOP)/src/hash.h \ |
shane | 9bcbdad | 2008-05-29 20:22:37 +0000 | [diff] [blame] | 450 | $(TOP)/src/hwtime.h \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 451 | keywordhash.h \ |
mistachkin | 2318d33 | 2015-01-12 18:02:52 +0000 | [diff] [blame] | 452 | $(TOP)/src/msvc.h \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 453 | $(TOP)/src/mutex.h \ |
drh | 8f619cc | 2002-09-08 00:04:50 +0000 | [diff] [blame] | 454 | opcodes.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 455 | $(TOP)/src/os.h \ |
drh | 014ac19 | 2004-06-01 01:45:11 +0000 | [diff] [blame] | 456 | $(TOP)/src/os_common.h \ |
mistachkin | f74b9e0 | 2013-11-26 01:00:31 +0000 | [diff] [blame] | 457 | $(TOP)/src/os_setup.h \ |
mistachkin | 8bc5262 | 2013-11-25 09:36:07 +0000 | [diff] [blame] | 458 | $(TOP)/src/os_win.h \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 459 | $(TOP)/src/pager.h \ |
danielk1977 | 8c0a791 | 2008-08-20 14:49:23 +0000 | [diff] [blame] | 460 | $(TOP)/src/pcache.h \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 461 | parse.h \ |
drh | 67e65e5 | 2015-02-02 21:34:54 +0000 | [diff] [blame] | 462 | $(TOP)/src/pragma.h \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 463 | sqlite3.h \ |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 464 | $(TOP)/src/sqlite3ext.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 465 | $(TOP)/src/sqliteInt.h \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 466 | $(TOP)/src/sqliteLimit.h \ |
drh | 9a32464 | 2003-09-06 20:12:01 +0000 | [diff] [blame] | 467 | $(TOP)/src/vdbe.h \ |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 468 | $(TOP)/src/vdbeInt.h \ |
drh | 8cd5b25 | 2015-03-02 22:06:43 +0000 | [diff] [blame] | 469 | $(TOP)/src/vxworks.h \ |
drh | e54df42 | 2013-11-12 18:37:25 +0000 | [diff] [blame] | 470 | $(TOP)/src/whereInt.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 471 | |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 472 | # Header files used by extensions |
| 473 | # |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 474 | EXTHDR += \ |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 475 | $(TOP)/ext/fts1/fts1.h \ |
| 476 | $(TOP)/ext/fts1/fts1_hash.h \ |
| 477 | $(TOP)/ext/fts1/fts1_tokenizer.h |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 478 | EXTHDR += \ |
| 479 | $(TOP)/ext/fts2/fts2.h \ |
| 480 | $(TOP)/ext/fts2/fts2_hash.h \ |
| 481 | $(TOP)/ext/fts2/fts2_tokenizer.h |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 482 | EXTHDR += \ |
| 483 | $(TOP)/ext/fts3/fts3.h \ |
dan | 09977bb | 2009-11-13 10:36:20 +0000 | [diff] [blame] | 484 | $(TOP)/ext/fts3/fts3Int.h \ |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 485 | $(TOP)/ext/fts3/fts3_hash.h \ |
| 486 | $(TOP)/ext/fts3/fts3_tokenizer.h |
drh | 58f1c8b | 2008-05-26 20:19:25 +0000 | [diff] [blame] | 487 | EXTHDR += \ |
drh | 748b8fd | 2018-05-25 19:22:47 +0000 | [diff] [blame] | 488 | $(TOP)/ext/rtree/rtree.h \ |
| 489 | $(TOP)/ext/rtree/geopoly.c |
danielk1977 | 1c82665 | 2008-09-08 08:08:09 +0000 | [diff] [blame] | 490 | EXTHDR += \ |
| 491 | $(TOP)/ext/icu/sqliteicu.h |
dan | e0fa410 | 2014-06-23 11:33:22 +0000 | [diff] [blame] | 492 | EXTHDR += \ |
dan | 9cfd51f | 2014-07-16 19:15:57 +0000 | [diff] [blame] | 493 | $(TOP)/ext/fts5/fts5Int.h \ |
dan | 601415e | 2015-02-02 11:58:21 +0000 | [diff] [blame] | 494 | fts5parse.h \ |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 495 | $(TOP)/ext/fts5/fts5.h |
dan | 37db72f | 2015-01-01 18:03:49 +0000 | [diff] [blame] | 496 | EXTHDR += \ |
drh | f442e33 | 2014-09-10 19:01:14 +0000 | [diff] [blame] | 497 | $(TOP)/ext/userauth/sqlite3userauth.h |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 498 | |
mistachkin | d4ab103 | 2015-05-11 16:27:33 +0000 | [diff] [blame] | 499 | # executables needed for testing |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 500 | # |
| 501 | TESTPROGS = \ |
| 502 | testfixture$(EXE) \ |
| 503 | sqlite3$(EXE) \ |
| 504 | sqlite3_analyzer$(EXE) \ |
drh | 2737fa0 | 2017-10-31 15:49:19 +0000 | [diff] [blame] | 505 | sqlite3_checker$(EXE) \ |
drh | 290fcaa | 2016-06-08 01:03:05 +0000 | [diff] [blame] | 506 | sqldiff$(EXE) \ |
drh | dd2a43a | 2017-12-14 19:24:00 +0000 | [diff] [blame] | 507 | dbhash$(EXE) \ |
| 508 | sqltclsh$(EXE) |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 509 | |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 510 | # Databases containing fuzzer test cases |
| 511 | # |
| 512 | FUZZDATA = \ |
| 513 | $(TOP)/test/fuzzdata1.db \ |
| 514 | $(TOP)/test/fuzzdata2.db \ |
drh | 64ff56f | 2015-09-23 11:59:50 +0000 | [diff] [blame] | 515 | $(TOP)/test/fuzzdata3.db \ |
drh | 362b66f | 2016-11-14 18:27:41 +0000 | [diff] [blame] | 516 | $(TOP)/test/fuzzdata4.db \ |
drh | 5ecf903 | 2018-05-08 12:49:53 +0000 | [diff] [blame] | 517 | $(TOP)/test/fuzzdata5.db \ |
drh | 05209e9 | 2018-10-31 01:12:06 +0000 | [diff] [blame] | 518 | $(TOP)/test/fuzzdata6.db \ |
drh | a47e709 | 2019-01-25 04:00:14 +0000 | [diff] [blame] | 519 | $(TOP)/test/fuzzdata7.db \ |
| 520 | $(TOP)/test/fuzzdata8.db |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 521 | |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 522 | # Standard options to testfixture |
| 523 | # |
| 524 | TESTOPTS = --verbose=file --output=test-out.txt |
| 525 | |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 526 | # Extra compiler options for various shell tools |
| 527 | # |
drh | 0db5bfe | 2017-07-06 22:43:41 +0000 | [diff] [blame] | 528 | SHELL_OPT += -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5 |
drh | d99c7b7 | 2018-01-10 19:15:21 +0000 | [diff] [blame] | 529 | SHELL_OPT += -DSQLITE_ENABLE_RTREE |
drh | cc15313 | 2016-08-04 12:35:17 +0000 | [diff] [blame] | 530 | SHELL_OPT += -DSQLITE_ENABLE_EXPLAIN_COMMENTS |
| 531 | SHELL_OPT += -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION |
drh | c6603af | 2017-06-29 14:33:51 +0000 | [diff] [blame] | 532 | SHELL_OPT += -DSQLITE_ENABLE_STMTVTAB |
drh | ca5cf12 | 2017-10-11 17:13:29 +0000 | [diff] [blame] | 533 | SHELL_OPT += -DSQLITE_ENABLE_DBPAGE_VTAB |
| 534 | SHELL_OPT += -DSQLITE_ENABLE_DBSTAT_VTAB |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 535 | SHELL_OPT += -DSQLITE_ENABLE_BYTECODE_VTAB |
drh | 092457b | 2017-12-29 15:04:49 +0000 | [diff] [blame] | 536 | SHELL_OPT += -DSQLITE_ENABLE_OFFSET_SQL_FUNC |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 537 | FUZZERSHELL_OPT = -DSQLITE_ENABLE_JSON1 |
drh | 9d4c982 | 2016-01-05 03:39:52 +0000 | [diff] [blame] | 538 | FUZZCHECK_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMSYS5 |
drh | a6bf20b | 2017-03-10 17:03:11 +0000 | [diff] [blame] | 539 | FUZZCHECK_OPT += -DSQLITE_MAX_MEMORY=50000000 |
drh | cc39896 | 2018-02-20 15:23:37 +0000 | [diff] [blame] | 540 | FUZZCHECK_OPT += -DSQLITE_PRINTF_PRECISION_LIMIT=1000 |
drh | a47e709 | 2019-01-25 04:00:14 +0000 | [diff] [blame] | 541 | FUZZCHECK_OPT += -DSQLITE_ENABLE_DESERIALIZE |
| 542 | FUZZCHECK_OPT += -DSQLITE_ENABLE_FTS4 |
| 543 | FUZZCHECK_OPT += -DSQLITE_ENABLE_RTREE |
| 544 | FUZZCHECK_OPT += -DSQLITE_ENABLE_GEOPOLY |
| 545 | FUZZCHECK_OPT += -DSQLITE_ENABLE_DBSTAT_VTAB |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 546 | FUZZCHECK_OPT += -DSQLITE_ENABLE_BYTECODE_VTAB |
drh | 6918e2f | 2016-12-17 20:27:22 +0000 | [diff] [blame] | 547 | DBFUZZ_OPT = |
drh | d1b2566 | 2017-01-23 19:11:38 +0000 | [diff] [blame] | 548 | KV_OPT = -DSQLITE_THREADSAFE=0 -DSQLITE_DIRECT_OVERFLOW_READ |
| 549 | ST_OPT = -DSQLITE_THREADSAFE=0 |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 550 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 551 | # This is the default Makefile target. The objects listed here |
| 552 | # are what get build when you type just "make" with no arguments. |
| 553 | # |
drh | 7b88f54 | 2021-01-20 23:01:31 +0000 | [diff] [blame] | 554 | all: sqlite3.h sqlite3ext.h libsqlite3.a sqlite3$(EXE) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 555 | |
drh | 7b88f54 | 2021-01-20 23:01:31 +0000 | [diff] [blame] | 556 | libsqlite3.a: sqlite3.h $(LIBOBJ) |
drh | d677b3d | 2007-08-20 22:48:41 +0000 | [diff] [blame] | 557 | $(AR) libsqlite3.a $(LIBOBJ) |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 558 | $(RANLIB) libsqlite3.a |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 559 | |
drh | 7b88f54 | 2021-01-20 23:01:31 +0000 | [diff] [blame] | 560 | sqlite3$(EXE): sqlite3.h libsqlite3.a shell.c |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 561 | $(TCCX) $(READLINE_FLAGS) -o sqlite3$(EXE) $(SHELL_OPT) \ |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 562 | shell.c libsqlite3.a $(LIBREADLINE) $(TLIBS) $(THREADLIB) |
drh | c9a67a8 | 2007-12-13 18:20:46 +0000 | [diff] [blame] | 563 | |
drh | d62c0f4 | 2015-04-09 13:34:29 +0000 | [diff] [blame] | 564 | sqldiff$(EXE): $(TOP)/tool/sqldiff.c sqlite3.c sqlite3.h |
| 565 | $(TCCX) -o sqldiff$(EXE) -DSQLITE_THREADSAFE=0 \ |
mistachkin | 7a94e6b | 2015-05-26 03:24:33 +0000 | [diff] [blame] | 566 | $(TOP)/tool/sqldiff.c sqlite3.c $(TLIBS) $(THREADLIB) |
drh | d62c0f4 | 2015-04-09 13:34:29 +0000 | [diff] [blame] | 567 | |
drh | 290fcaa | 2016-06-08 01:03:05 +0000 | [diff] [blame] | 568 | dbhash$(EXE): $(TOP)/tool/dbhash.c sqlite3.c sqlite3.h |
| 569 | $(TCCX) -o dbhash$(EXE) -DSQLITE_THREADSAFE=0 \ |
| 570 | $(TOP)/tool/dbhash.c sqlite3.c $(TLIBS) $(THREADLIB) |
| 571 | |
drh | da110bf | 2016-05-05 17:15:23 +0000 | [diff] [blame] | 572 | scrub$(EXE): $(TOP)/ext/misc/scrub.c sqlite3.o |
| 573 | $(TCC) -I. -DSCRUB_STANDALONE -o scrub$(EXE) $(TOP)/ext/misc/scrub.c sqlite3.o $(THREADLIB) |
| 574 | |
drh | cc5f8a4 | 2016-02-06 22:32:06 +0000 | [diff] [blame] | 575 | srcck1$(EXE): $(TOP)/tool/srcck1.c |
| 576 | $(BCC) -o srcck1$(EXE) $(TOP)/tool/srcck1.c |
| 577 | |
| 578 | sourcetest: srcck1$(EXE) sqlite3.c |
| 579 | ./srcck1 sqlite3.c |
| 580 | |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 581 | fuzzershell$(EXE): $(TOP)/tool/fuzzershell.c sqlite3.c sqlite3.h |
drh | 53e66c3 | 2015-07-24 15:49:23 +0000 | [diff] [blame] | 582 | $(TCCX) -o fuzzershell$(EXE) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 583 | $(FUZZERSHELL_OPT) $(TOP)/tool/fuzzershell.c sqlite3.c \ |
drh | d7f2bea | 2015-09-19 14:32:51 +0000 | [diff] [blame] | 584 | $(TLIBS) $(THREADLIB) |
drh | 268e72f | 2015-04-17 14:30:49 +0000 | [diff] [blame] | 585 | |
drh | 6918e2f | 2016-12-17 20:27:22 +0000 | [diff] [blame] | 586 | dbfuzz$(EXE): $(TOP)/test/dbfuzz.c sqlite3.c sqlite3.h |
| 587 | $(TCCX) -o dbfuzz$(EXE) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
| 588 | $(DBFUZZ_OPT) $(TOP)/test/dbfuzz.c sqlite3.c \ |
| 589 | $(TLIBS) $(THREADLIB) |
| 590 | |
drh | 26391ee | 2019-01-11 14:22:33 +0000 | [diff] [blame] | 591 | DBFUZZ2_OPTS = \ |
| 592 | -DSQLITE_THREADSAFE=0 \ |
| 593 | -DSQLITE_OMIT_LOAD_EXTENSION \ |
| 594 | -DSQLITE_ENABLE_DESERIALIZE \ |
| 595 | -DSQLITE_DEBUG \ |
| 596 | -DSQLITE_ENABLE_DBSTAT_VTAB \ |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 597 | -DSQLITE_ENABLE_BYTECODE_VTAB \ |
drh | 26391ee | 2019-01-11 14:22:33 +0000 | [diff] [blame] | 598 | -DSQLITE_ENABLE_RTREE \ |
| 599 | -DSQLITE_ENABLE_FTS4 \ |
| 600 | -DSQLITE_ENABLE_FTS5 |
| 601 | |
| 602 | dbfuzz2$(EXE): $(TOP)/test/dbfuzz2.c sqlite3.c sqlite3.h |
| 603 | $(TCCX) -I. -g -O0 -DSTANDALONE -o dbfuzz2$(EXE) \ |
| 604 | $(DBFUZZ2_OPTS) $(TOP)/test/dbfuzz2.c sqlite3.c $(TLIBS) $(THREADLIB) |
| 605 | |
drh | ea432ba | 2016-11-11 16:33:47 +0000 | [diff] [blame] | 606 | fuzzcheck$(EXE): $(TOP)/test/fuzzcheck.c sqlite3.c sqlite3.h $(TOP)/test/ossfuzz.c |
drh | 53e66c3 | 2015-07-24 15:49:23 +0000 | [diff] [blame] | 607 | $(TCCX) -o fuzzcheck$(EXE) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
drh | ea432ba | 2016-11-11 16:33:47 +0000 | [diff] [blame] | 608 | -DSQLITE_ENABLE_MEMSYS5 $(FUZZCHECK_OPT) -DSQLITE_OSS_FUZZ \ |
| 609 | $(TOP)/test/fuzzcheck.c $(TOP)/test/ossfuzz.c sqlite3.c $(TLIBS) $(THREADLIB) |
drh | bc94dbb | 2013-04-08 14:28:33 +0000 | [diff] [blame] | 610 | |
drh | 55377b4 | 2016-11-14 17:25:57 +0000 | [diff] [blame] | 611 | ossshell$(EXE): $(TOP)/test/ossfuzz.c $(TOP)/test/ossshell.c sqlite3.c sqlite3.h |
| 612 | $(TCCX) -o ossshell$(EXE) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \ |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 613 | -DSQLITE_ENABLE_MEMSYS5 $(FUZZCHECK_OPT) \ |
drh | 55377b4 | 2016-11-14 17:25:57 +0000 | [diff] [blame] | 614 | $(TOP)/test/ossfuzz.c $(TOP)/test/ossshell.c sqlite3.c $(TLIBS) $(THREADLIB) |
drh | d919fe1 | 2007-12-11 19:34:44 +0000 | [diff] [blame] | 615 | |
drh | f94c190 | 2018-03-07 20:48:21 +0000 | [diff] [blame] | 616 | sessionfuzz$(EXE): $(TOP)/test/sessionfuzz.c sqlite3.c sqlite3.h |
| 617 | $(TCC) -o sessionfuzz$(EXE) $(TOP)/test/sessionfuzz.c -lz $(TLIBS) $(THREADLIB) |
| 618 | |
danielk1977 | 77b03a2 | 2007-06-20 08:49:05 +0000 | [diff] [blame] | 619 | mptester$(EXE): sqlite3.c $(TOP)/mptest/mptest.c |
drh | d919fe1 | 2007-12-11 19:34:44 +0000 | [diff] [blame] | 620 | $(TCCX) -o $@ -I. $(TOP)/mptest/mptest.c sqlite3.c \ |
| 621 | $(TLIBS) $(THREADLIB) |
| 622 | |
drh | cd42352 | 2016-02-12 17:27:32 +0000 | [diff] [blame] | 623 | MPTEST1=./mptester$(EXE) mptest1.db $(TOP)/mptest/crash01.test --repeat 20 |
| 624 | MPTEST2=./mptester$(EXE) mptest2.db $(TOP)/mptest/multiwrite01.test --repeat 20 |
drh | 4c45196 | 2015-03-31 18:05:49 +0000 | [diff] [blame] | 625 | mptest: mptester$(EXE) |
drh | 4c45196 | 2015-03-31 18:05:49 +0000 | [diff] [blame] | 626 | $(MPTEST1) --journalmode DELETE |
| 627 | $(MPTEST2) --journalmode WAL |
| 628 | $(MPTEST1) --journalmode WAL |
| 629 | $(MPTEST2) --journalmode PERSIST |
| 630 | $(MPTEST1) --journalmode PERSIST |
| 631 | $(MPTEST2) --journalmode TRUNCATE |
| 632 | $(MPTEST1) --journalmode TRUNCATE |
| 633 | $(MPTEST2) --journalmode DELETE |
| 634 | |
drh | 60bdeb2 | 2011-10-20 00:55:54 +0000 | [diff] [blame] | 635 | sqlite3.o: sqlite3.c |
drh | 3312348 | 2013-12-24 12:04:24 +0000 | [diff] [blame] | 636 | $(TCCX) -I. -c sqlite3.c |
drh | 60bdeb2 | 2011-10-20 00:55:54 +0000 | [diff] [blame] | 637 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 638 | # This target creates a directory named "tsrc" and fills it with |
| 639 | # copies of all of the C source code and header files needed to |
| 640 | # build on the target system. Some of the C source code and header |
| 641 | # files are automatically generated. This target takes care of |
| 642 | # all that automatic generation. |
| 643 | # |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 644 | target_source: $(SRC) $(TOP)/tool/vdbe-compress.tcl fts5.c |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 645 | rm -rf tsrc |
| 646 | mkdir tsrc |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 647 | cp -f $(SRC) tsrc |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 648 | rm tsrc/sqlite.h.in tsrc/parse.y |
drh | 2dc0648 | 2013-12-11 00:59:10 +0000 | [diff] [blame] | 649 | tclsh $(TOP)/tool/vdbe-compress.tcl $(OPTS) <tsrc/vdbe.c >vdbe.new |
drh | 856c103 | 2009-06-02 15:21:42 +0000 | [diff] [blame] | 650 | mv vdbe.new tsrc/vdbe.c |
drh | 5006565 | 2015-10-08 19:29:18 +0000 | [diff] [blame] | 651 | cp fts5.c fts5.h tsrc |
drh | d919fe1 | 2007-12-11 19:34:44 +0000 | [diff] [blame] | 652 | touch target_source |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 653 | |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 654 | sqlite3.c: target_source $(TOP)/tool/mksqlite3c.tcl |
| 655 | tclsh $(TOP)/tool/mksqlite3c.tcl |
drh | 6f09910 | 2017-10-31 12:20:43 +0000 | [diff] [blame] | 656 | cp tsrc/sqlite3ext.h . |
drh | e191e2c | 2013-03-19 15:23:18 +0000 | [diff] [blame] | 657 | cp $(TOP)/ext/session/sqlite3session.h . |
drh | aa1cf5a | 2010-10-01 17:23:46 +0000 | [diff] [blame] | 658 | echo '#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c |
| 659 | cat sqlite3.c >>tclsqlite3.c |
| 660 | echo '#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c |
drh | bd08af4 | 2007-04-05 21:58:33 +0000 | [diff] [blame] | 661 | cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 662 | |
drh | 2f20e13 | 2015-09-26 17:44:59 +0000 | [diff] [blame] | 663 | sqlite3ext.h: target_source |
| 664 | cp tsrc/sqlite3ext.h . |
| 665 | |
drh | 88caeac | 2011-08-24 15:12:08 +0000 | [diff] [blame] | 666 | sqlite3.c-debug: target_source $(TOP)/tool/mksqlite3c.tcl |
drh | 96e5088 | 2011-08-15 15:27:20 +0000 | [diff] [blame] | 667 | tclsh $(TOP)/tool/mksqlite3c.tcl --linemacros |
| 668 | echo '#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c |
| 669 | cat sqlite3.c >>tclsqlite3.c |
| 670 | echo '#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c |
| 671 | echo '#line 1 "tclsqlite.c"' >>tclsqlite3.c |
| 672 | cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c |
| 673 | |
drh | 07516dd | 2011-07-22 11:16:39 +0000 | [diff] [blame] | 674 | sqlite3-all.c: sqlite3.c $(TOP)/tool/split-sqlite3c.tcl |
| 675 | tclsh $(TOP)/tool/split-sqlite3c.tcl |
| 676 | |
drh | d6e78a2 | 2007-07-20 13:42:26 +0000 | [diff] [blame] | 677 | fts2amal.c: target_source $(TOP)/ext/fts2/mkfts2amal.tcl |
| 678 | tclsh $(TOP)/ext/fts2/mkfts2amal.tcl |
| 679 | |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 680 | fts3amal.c: target_source $(TOP)/ext/fts3/mkfts3amal.tcl |
| 681 | tclsh $(TOP)/ext/fts3/mkfts3amal.tcl |
| 682 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 683 | # Rules to build the LEMON compiler generator |
| 684 | # |
drh | 82415f2 | 2015-11-09 19:33:42 +0000 | [diff] [blame] | 685 | lemon: $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 686 | $(BCC) -o lemon $(TOP)/tool/lemon.c |
drh | 82415f2 | 2015-11-09 19:33:42 +0000 | [diff] [blame] | 687 | cp $(TOP)/tool/lempar.c . |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 688 | |
drh | f39e0ed | 2017-08-22 19:19:00 +0000 | [diff] [blame] | 689 | # A tool to generate the source-id |
| 690 | # |
| 691 | mksourceid: $(TOP)/tool/mksourceid.c |
| 692 | $(BCC) -o mksourceid $(TOP)/tool/mksourceid.c |
| 693 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 694 | # Rules to build individual *.o files from generated *.c files. This |
| 695 | # applies to: |
| 696 | # |
| 697 | # parse.o |
| 698 | # opcodes.o |
| 699 | # |
mlcreech | 2379706 | 2008-03-20 02:25:35 +0000 | [diff] [blame] | 700 | %.o: %.c $(HDR) |
| 701 | $(TCCX) -c $< |
| 702 | |
| 703 | # Rules to build individual *.o files from files in the src directory. |
| 704 | # |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 705 | %.o: $(TOP)/src/%.c $(HDR) |
| 706 | $(TCCX) -c $< |
drh | 9f18e8a | 2005-07-08 12:13:04 +0000 | [diff] [blame] | 707 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 708 | tclsqlite.o: $(TOP)/src/tclsqlite.c $(HDR) |
| 709 | $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/tclsqlite.c |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 710 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 711 | |
drh | 900b31e | 2007-08-28 02:27:51 +0000 | [diff] [blame] | 712 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 713 | # Rules to build opcodes.c and opcodes.h |
| 714 | # |
drh | 7651e0a | 2015-10-07 12:11:36 +0000 | [diff] [blame] | 715 | opcodes.c: opcodes.h $(TOP)/tool/mkopcodec.tcl |
| 716 | tclsh $(TOP)/tool/mkopcodec.tcl opcodes.h >opcodes.c |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 717 | |
drh | b15393b | 2015-10-07 02:52:09 +0000 | [diff] [blame] | 718 | opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/tool/mkopcodeh.tcl |
drh | 70a8ca3 | 2008-08-21 18:49:27 +0000 | [diff] [blame] | 719 | cat parse.h $(TOP)/src/vdbe.c | \ |
drh | b15393b | 2015-10-07 02:52:09 +0000 | [diff] [blame] | 720 | tclsh $(TOP)/tool/mkopcodeh.tcl >opcodes.h |
drh | 054889e | 2005-11-30 03:20:31 +0000 | [diff] [blame] | 721 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 722 | # Rules to build parse.c and parse.h - the outputs of lemon. |
| 723 | # |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 724 | parse.h: parse.c |
| 725 | |
drh | f1722ba | 2019-04-05 20:56:46 +0000 | [diff] [blame] | 726 | parse.c: $(TOP)/src/parse.y lemon |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 727 | cp $(TOP)/src/parse.y . |
drh | 7e698e9 | 2015-09-07 14:22:24 +0000 | [diff] [blame] | 728 | ./lemon -s $(OPTS) parse.y |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 729 | |
drh | f39e0ed | 2017-08-22 19:19:00 +0000 | [diff] [blame] | 730 | sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest mksourceid $(TOP)/VERSION $(TOP)/ext/rtree/sqlite3rtree.h |
drh | 47baebc | 2009-08-14 16:01:24 +0000 | [diff] [blame] | 731 | tclsh $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 732 | |
mistachkin | 7cff0e3 | 2020-06-19 15:33:23 +0000 | [diff] [blame] | 733 | sqlite3rc.h: $(TOP)/src/sqlite3.rc $(TOP)/VERSION |
| 734 | echo '#ifndef SQLITE_RESOURCE_VERSION' >$@ |
| 735 | echo -n '#define SQLITE_RESOURCE_VERSION ' >>$@ |
| 736 | cat $(TOP)/VERSION | tclsh $(TOP)/tool/replace.tcl exact . , >>$@ |
| 737 | echo '#endif' >>sqlite3rc.h |
| 738 | |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 739 | keywordhash.h: $(TOP)/tool/mkkeywordhash.c |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 740 | $(BCC) -o mkkeywordhash $(OPTS) $(TOP)/tool/mkkeywordhash.c |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 741 | ./mkkeywordhash >keywordhash.h |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 742 | |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 743 | # Source files that go into making shell.c |
| 744 | SHELL_SRC = \ |
| 745 | $(TOP)/src/shell.c.in \ |
drh | 8682e12 | 2018-01-07 20:38:10 +0000 | [diff] [blame] | 746 | $(TOP)/ext/misc/appendvfs.c \ |
drh | 8cda77d | 2020-06-24 15:06:29 +0000 | [diff] [blame] | 747 | $(TOP)/ext/misc/completion.c \ |
drh | beb9def | 2020-06-22 19:12:23 +0000 | [diff] [blame] | 748 | $(TOP)/ext/misc/decimal.c \ |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 749 | $(TOP)/ext/misc/fileio.c \ |
drh | 8cda77d | 2020-06-24 15:06:29 +0000 | [diff] [blame] | 750 | $(TOP)/ext/misc/ieee754.c \ |
| 751 | $(TOP)/ext/misc/shathree.c \ |
drh | 60ba57d | 2017-12-23 18:34:49 +0000 | [diff] [blame] | 752 | $(TOP)/ext/misc/sqlar.c \ |
drh | f05dd03 | 2020-04-14 15:53:58 +0000 | [diff] [blame] | 753 | $(TOP)/ext/misc/uint.c \ |
dan | 43efc18 | 2017-12-19 17:42:13 +0000 | [diff] [blame] | 754 | $(TOP)/ext/expert/sqlite3expert.c \ |
dan | 9ebfaad | 2017-12-26 20:39:58 +0000 | [diff] [blame] | 755 | $(TOP)/ext/expert/sqlite3expert.h \ |
drh | c932033 | 2018-01-05 16:23:43 +0000 | [diff] [blame] | 756 | $(TOP)/ext/misc/zipfile.c \ |
drh | 50b910a | 2019-01-21 14:55:03 +0000 | [diff] [blame] | 757 | $(TOP)/ext/misc/memtrace.c \ |
dan | 68cb86e | 2019-04-20 20:57:28 +0000 | [diff] [blame] | 758 | $(TOP)/ext/misc/dbdata.c \ |
drh | c932033 | 2018-01-05 16:23:43 +0000 | [diff] [blame] | 759 | $(TOP)/src/test_windirent.c |
drh | aa62d2e | 2017-10-12 13:47:48 +0000 | [diff] [blame] | 760 | |
| 761 | shell.c: $(SHELL_SRC) $(TOP)/tool/mkshellc.tcl |
| 762 | tclsh $(TOP)/tool/mkshellc.tcl >shell.c |
| 763 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 764 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 765 | |
danielk1977 | 576d3db | 2007-06-25 14:28:48 +0000 | [diff] [blame] | 766 | # Rules to build the extension objects. |
| 767 | # |
| 768 | icu.o: $(TOP)/ext/icu/icu.c $(HDR) $(EXTHDR) |
| 769 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/icu/icu.c |
| 770 | |
| 771 | fts2.o: $(TOP)/ext/fts2/fts2.c $(HDR) $(EXTHDR) |
| 772 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2.c |
| 773 | |
| 774 | fts2_hash.o: $(TOP)/ext/fts2/fts2_hash.c $(HDR) $(EXTHDR) |
| 775 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_hash.c |
| 776 | |
| 777 | fts2_icu.o: $(TOP)/ext/fts2/fts2_icu.c $(HDR) $(EXTHDR) |
| 778 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_icu.c |
| 779 | |
| 780 | fts2_porter.o: $(TOP)/ext/fts2/fts2_porter.c $(HDR) $(EXTHDR) |
| 781 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_porter.c |
| 782 | |
| 783 | fts2_tokenizer.o: $(TOP)/ext/fts2/fts2_tokenizer.c $(HDR) $(EXTHDR) |
| 784 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer.c |
| 785 | |
| 786 | fts2_tokenizer1.o: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR) $(EXTHDR) |
| 787 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer1.c |
| 788 | |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 789 | fts3.o: $(TOP)/ext/fts3/fts3.c $(HDR) $(EXTHDR) |
| 790 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3.c |
| 791 | |
dan | a240fd0 | 2011-02-01 16:34:32 +0000 | [diff] [blame] | 792 | fts3_aux.o: $(TOP)/ext/fts3/fts3_aux.c $(HDR) $(EXTHDR) |
| 793 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_aux.c |
| 794 | |
danielk1977 | 33e8903 | 2008-12-17 15:18:17 +0000 | [diff] [blame] | 795 | fts3_expr.o: $(TOP)/ext/fts3/fts3_expr.c $(HDR) $(EXTHDR) |
| 796 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_expr.c |
| 797 | |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 798 | fts3_hash.o: $(TOP)/ext/fts3/fts3_hash.c $(HDR) $(EXTHDR) |
| 799 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_hash.c |
| 800 | |
| 801 | fts3_icu.o: $(TOP)/ext/fts3/fts3_icu.c $(HDR) $(EXTHDR) |
| 802 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_icu.c |
| 803 | |
dan | 09977bb | 2009-11-13 10:36:20 +0000 | [diff] [blame] | 804 | fts3_snippet.o: $(TOP)/ext/fts3/fts3_snippet.c $(HDR) $(EXTHDR) |
| 805 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_snippet.c |
| 806 | |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 807 | fts3_porter.o: $(TOP)/ext/fts3/fts3_porter.c $(HDR) $(EXTHDR) |
| 808 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_porter.c |
| 809 | |
| 810 | fts3_tokenizer.o: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR) $(EXTHDR) |
| 811 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer.c |
| 812 | |
| 813 | fts3_tokenizer1.o: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR) $(EXTHDR) |
| 814 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer1.c |
| 815 | |
dan | d7a959c | 2013-04-22 15:30:37 +0000 | [diff] [blame] | 816 | fts3_tokenize_vtab.o: $(TOP)/ext/fts3/fts3_tokenize_vtab.c $(HDR) $(EXTHDR) |
| 817 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenize_vtab.c |
| 818 | |
dan | 3d403c7 | 2012-05-25 17:50:19 +0000 | [diff] [blame] | 819 | fts3_unicode.o: $(TOP)/ext/fts3/fts3_unicode.c $(HDR) $(EXTHDR) |
| 820 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode.c |
| 821 | |
| 822 | fts3_unicode2.o: $(TOP)/ext/fts3/fts3_unicode2.c $(HDR) $(EXTHDR) |
| 823 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode2.c |
| 824 | |
dan | 09977bb | 2009-11-13 10:36:20 +0000 | [diff] [blame] | 825 | fts3_write.o: $(TOP)/ext/fts3/fts3_write.c $(HDR) $(EXTHDR) |
| 826 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_write.c |
| 827 | |
drh | 7b88f54 | 2021-01-20 23:01:31 +0000 | [diff] [blame] | 828 | fts5.o: fts5.c sqlite3ext.h sqlite3.h |
drh | c306e08 | 2015-10-08 23:37:00 +0000 | [diff] [blame] | 829 | $(TCCX) -DSQLITE_CORE -c fts5.c |
| 830 | |
drh | 7b88f54 | 2021-01-20 23:01:31 +0000 | [diff] [blame] | 831 | json1.o: $(TOP)/ext/misc/json1.c sqlite3ext.h sqlite3.h |
drh | c306e08 | 2015-10-08 23:37:00 +0000 | [diff] [blame] | 832 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/misc/json1.c |
| 833 | |
drh | 7b88f54 | 2021-01-20 23:01:31 +0000 | [diff] [blame] | 834 | stmt.o: $(TOP)/ext/misc/stmt.c sqlite3ext.h sqlite3.h |
drh | c6603af | 2017-06-29 14:33:51 +0000 | [diff] [blame] | 835 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/misc/stmt.c |
drh | f00f530 | 2017-06-28 15:47:29 +0000 | [diff] [blame] | 836 | |
danielk1977 | ebaecc1 | 2008-05-26 18:41:54 +0000 | [diff] [blame] | 837 | rtree.o: $(TOP)/ext/rtree/rtree.c $(HDR) $(EXTHDR) |
| 838 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/rtree/rtree.c |
| 839 | |
drh | c306e08 | 2015-10-08 23:37:00 +0000 | [diff] [blame] | 840 | |
| 841 | |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 842 | fts5parse.c: $(TOP)/ext/fts5/fts5parse.y lemon |
dan | e0fa410 | 2014-06-23 11:33:22 +0000 | [diff] [blame] | 843 | cp $(TOP)/ext/fts5/fts5parse.y . |
| 844 | rm -f fts5parse.h |
| 845 | ./lemon $(OPTS) fts5parse.y |
| 846 | |
dan | 9686db7 | 2015-04-24 06:02:29 +0000 | [diff] [blame] | 847 | fts5parse.h: fts5parse.c |
| 848 | |
dan | bea34fc | 2015-09-02 17:34:22 +0000 | [diff] [blame] | 849 | fts5.c: $(FTS5_SRC) $(FTS5_HDR) |
dan | ed2589f | 2015-06-25 20:10:24 +0000 | [diff] [blame] | 850 | tclsh $(TOP)/ext/fts5/tool/mkfts5c.tcl |
dan | a153bbc | 2015-07-02 20:12:34 +0000 | [diff] [blame] | 851 | cp $(TOP)/ext/fts5/fts5.h . |
dan | ed2589f | 2015-06-25 20:10:24 +0000 | [diff] [blame] | 852 | |
dan | 6212854 | 2017-12-13 14:22:48 +0000 | [diff] [blame] | 853 | lsm1.c: $(LSM1_SRC) |
| 854 | tclsh $(TOP)/ext/lsm1/tool/mklsm1c.tcl |
| 855 | cp $(TOP)/ext/lsm1/lsm.h . |
| 856 | |
drh | e933b83 | 2014-09-10 17:34:28 +0000 | [diff] [blame] | 857 | userauth.o: $(TOP)/ext/userauth/userauth.c $(HDR) $(EXTHDR) |
| 858 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/userauth/userauth.c |
| 859 | |
drh | e622961 | 2014-08-18 15:08:26 +0000 | [diff] [blame] | 860 | sqlite3session.o: $(TOP)/ext/session/sqlite3session.c $(HDR) $(EXTHDR) |
| 861 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/session/sqlite3session.c |
| 862 | |
drh | cfb8f8d | 2015-07-23 20:44:49 +0000 | [diff] [blame] | 863 | sqlite3rbu.o: $(TOP)/ext/rbu/sqlite3rbu.c $(HDR) $(EXTHDR) |
| 864 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/rbu/sqlite3rbu.c |
dan | c76c64f | 2015-02-16 06:27:37 +0000 | [diff] [blame] | 865 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 866 | # Rules for building test programs and for running tests |
| 867 | # |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 868 | tclsqlite3: $(TOP)/src/tclsqlite.c libsqlite3.a |
drh | 96a206f | 2017-10-13 20:14:06 +0000 | [diff] [blame] | 869 | $(TCCX) $(TCL_FLAGS) -DTCLSH -o tclsqlite3 \ |
danielk1977 | bc6ada4 | 2004-06-30 08:20:16 +0000 | [diff] [blame] | 870 | $(TOP)/src/tclsqlite.c libsqlite3.a $(LIBTCL) $(THREADLIB) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 871 | |
drh | 903b230 | 2017-10-13 18:58:55 +0000 | [diff] [blame] | 872 | sqlite3_analyzer.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl $(TOP)/tool/sqlite3_analyzer.c.in $(TOP)/tool/mkccode.tcl |
| 873 | tclsh $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqlite3_analyzer.c.in >sqlite3_analyzer.c |
dan | 0ae479d | 2011-09-21 16:43:07 +0000 | [diff] [blame] | 874 | |
drh | 8d43aa1 | 2011-09-21 18:29:49 +0000 | [diff] [blame] | 875 | sqlite3_analyzer$(EXE): sqlite3_analyzer.c |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 876 | $(TCCX) $(TCL_FLAGS) sqlite3_analyzer.c -o $@ $(LIBTCL) $(THREADLIB) |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 877 | |
drh | dd2a43a | 2017-12-14 19:24:00 +0000 | [diff] [blame] | 878 | sqltclsh.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/sqltclsh.tcl $(TOP)/ext/misc/appendvfs.c $(TOP)/tool/mkccode.tcl |
| 879 | tclsh $(TOP)/tool/mkccode.tcl $(TOP)/tool/sqltclsh.c.in >sqltclsh.c |
| 880 | |
| 881 | sqltclsh$(EXE): sqltclsh.c |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 882 | $(TCCX) $(TCL_FLAGS) sqltclsh.c -o $@ $(LIBTCL) $(THREADLIB) |
drh | dd2a43a | 2017-12-14 19:24:00 +0000 | [diff] [blame] | 883 | |
dan | 8e0b8e0 | 2017-04-07 20:14:22 +0000 | [diff] [blame] | 884 | sqlite3_expert$(EXE): $(TOP)/ext/expert/sqlite3expert.h $(TOP)/ext/expert/sqlite3expert.c $(TOP)/ext/expert/expert.c sqlite3.c |
dan | 2da1504 | 2017-10-13 16:24:32 +0000 | [diff] [blame] | 885 | $(TCCX) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION $(TOP)/ext/expert/sqlite3expert.c $(TOP)/ext/expert/expert.c sqlite3.c -o sqlite3_expert$(EXE) $(THREADLIB) |
dan | 8e0b8e0 | 2017-04-07 20:14:22 +0000 | [diff] [blame] | 886 | |
drh | 2737fa0 | 2017-10-31 15:49:19 +0000 | [diff] [blame] | 887 | CHECKER_DEPS =\ |
| 888 | $(TOP)/tool/mkccode.tcl \ |
| 889 | sqlite3.c \ |
| 890 | $(TOP)/src/tclsqlite.c \ |
| 891 | $(TOP)/ext/repair/sqlite3_checker.tcl \ |
| 892 | $(TOP)/ext/repair/checkindex.c \ |
drh | 927dd51 | 2017-10-31 18:09:40 +0000 | [diff] [blame] | 893 | $(TOP)/ext/repair/checkfreelist.c \ |
drh | 2737fa0 | 2017-10-31 15:49:19 +0000 | [diff] [blame] | 894 | $(TOP)/ext/misc/btreeinfo.c \ |
| 895 | $(TOP)/ext/repair/sqlite3_checker.c.in |
| 896 | |
| 897 | sqlite3_checker.c: $(CHECKER_DEPS) |
| 898 | tclsh $(TOP)/tool/mkccode.tcl $(TOP)/ext/repair/sqlite3_checker.c.in >$@ |
| 899 | |
| 900 | sqlite3_checker$(TEXE): sqlite3_checker.c |
| 901 | $(TCCX) $(TCL_FLAGS) sqlite3_checker.c -o $@ $(LIBTCL) $(THREADLIB) |
| 902 | |
drh | 688633c | 2017-03-13 19:26:34 +0000 | [diff] [blame] | 903 | dbdump$(EXE): $(TOP)/ext/misc/dbdump.c sqlite3.o |
| 904 | $(TCCX) -DDBDUMP_STANDALONE -o dbdump$(EXE) \ |
| 905 | $(TOP)/ext/misc/dbdump.c sqlite3.o $(THREADLIB) |
| 906 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 907 | # Rules to build the 'testfixture' application. |
| 908 | # |
drh | 3a0f13f | 2010-07-12 16:47:48 +0000 | [diff] [blame] | 909 | TESTFIXTURE_FLAGS = -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 |
drh | dbc4916 | 2016-03-02 03:28:07 +0000 | [diff] [blame] | 910 | TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE |
| 911 | TESTFIXTURE_FLAGS += -DSQLITE_SERIES_CONSTRAINT_VERIFY=1 |
drh | 9878fef | 2016-03-04 03:43:10 +0000 | [diff] [blame] | 912 | TESTFIXTURE_FLAGS += -DSQLITE_DEFAULT_PAGE_SIZE=1024 |
drh | c6603af | 2017-06-29 14:33:51 +0000 | [diff] [blame] | 913 | TESTFIXTURE_FLAGS += -DSQLITE_ENABLE_STMTVTAB |
drh | 1df6470 | 2017-10-13 15:56:26 +0000 | [diff] [blame] | 914 | TESTFIXTURE_FLAGS += -DSQLITE_ENABLE_DBPAGE_VTAB |
drh | 691b5c5 | 2020-03-23 15:49:22 +0000 | [diff] [blame] | 915 | TESTFIXTURE_FLAGS += -DSQLITE_ENABLE_BYTECODE_VTAB |
drh | 96a206f | 2017-10-13 20:14:06 +0000 | [diff] [blame] | 916 | TESTFIXTURE_FLAGS += -DTCLSH_INIT_PROC=sqlite3TestInit |
dan | c30b78f | 2020-11-18 18:36:43 +0000 | [diff] [blame] | 917 | TESTFIXTURE_FLAGS += -DSQLITE_CKSUMVFS_STATIC |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 918 | |
| 919 | testfixture$(EXE): $(TESTSRC2) libsqlite3.a $(TESTSRC) $(TOP)/src/tclsqlite.c |
drh | 96a206f | 2017-10-13 20:14:06 +0000 | [diff] [blame] | 920 | $(TCCX) $(TCL_FLAGS) $(TESTFIXTURE_FLAGS) \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 921 | $(TESTSRC) $(TESTSRC2) $(TOP)/src/tclsqlite.c \ |
drh | 2f10fb3 | 2012-10-18 20:49:26 +0000 | [diff] [blame] | 922 | -o testfixture$(EXE) $(LIBTCL) libsqlite3.a $(THREADLIB) |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 923 | |
drh | 973bc6f | 2015-10-09 15:29:24 +0000 | [diff] [blame] | 924 | amalgamation-testfixture$(EXE): sqlite3.c $(TESTSRC) $(TOP)/src/tclsqlite.c \ |
drh | e191e2c | 2013-03-19 15:23:18 +0000 | [diff] [blame] | 925 | $(TOP)/ext/session/test_session.c |
drh | 96a206f | 2017-10-13 20:14:06 +0000 | [diff] [blame] | 926 | $(TCCX) $(TCL_FLAGS) $(TESTFIXTURE_FLAGS) \ |
dan | 0008ce7 | 2015-10-09 11:09:47 +0000 | [diff] [blame] | 927 | $(TESTSRC) $(TOP)/src/tclsqlite.c sqlite3.c \ |
drh | e191e2c | 2013-03-19 15:23:18 +0000 | [diff] [blame] | 928 | $(TOP)/ext/session/test_session.c \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 929 | -o testfixture$(EXE) $(LIBTCL) $(THREADLIB) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 930 | |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 931 | fts3-testfixture$(EXE): sqlite3.c fts3amal.c $(TESTSRC) $(TOP)/src/tclsqlite.c |
drh | 96a206f | 2017-10-13 20:14:06 +0000 | [diff] [blame] | 932 | $(TCCX) $(TCL_FLAGS) $(TESTFIXTURE_FLAGS) \ |
drh | 613a0fe | 2007-11-23 17:31:17 +0000 | [diff] [blame] | 933 | -DSQLITE_ENABLE_FTS3=1 \ |
| 934 | $(TESTSRC) $(TOP)/src/tclsqlite.c sqlite3.c fts3amal.c \ |
| 935 | -o testfixture$(EXE) $(LIBTCL) $(THREADLIB) |
| 936 | |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 937 | coretestprogs: $(TESTPROGS) |
| 938 | |
| 939 | testprogs: coretestprogs srcck1$(EXE) fuzzcheck$(EXE) sessionfuzz$(EXE) |
| 940 | |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 941 | fulltest: $(TESTPROGS) fuzztest |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 942 | ./testfixture$(EXE) $(TOP)/test/all.test $(TESTOPTS) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 943 | |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 944 | soaktest: $(TESTPROGS) |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 945 | ./testfixture$(EXE) $(TOP)/test/all.test -soak=1 $(TESTOPTS) |
drh | 44548ec | 2007-06-18 12:22:43 +0000 | [diff] [blame] | 946 | |
drh | f437544 | 2015-05-11 12:15:45 +0000 | [diff] [blame] | 947 | fulltestonly: $(TESTPROGS) fuzztest |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 948 | ./testfixture$(EXE) $(TOP)/test/full.test $(TESTOPTS) |
mistachkin | c60941f | 2012-09-13 01:51:02 +0000 | [diff] [blame] | 949 | |
drh | 93ec45d | 2013-06-17 18:20:48 +0000 | [diff] [blame] | 950 | queryplantest: testfixture$(EXE) sqlite3$(EXE) |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 951 | ./testfixture$(EXE) $(TOP)/test/permutations.test queryplanner $(TESTOPTS) |
drh | 93ec45d | 2013-06-17 18:20:48 +0000 | [diff] [blame] | 952 | |
drh | f94c190 | 2018-03-07 20:48:21 +0000 | [diff] [blame] | 953 | fuzztest: fuzzcheck$(EXE) $(FUZZDATA) sessionfuzz$(EXE) $(TOP)/test/sessionfuzz-data1.db |
drh | a523e31 | 2015-07-24 17:26:13 +0000 | [diff] [blame] | 954 | ./fuzzcheck$(EXE) $(FUZZDATA) |
drh | f94c190 | 2018-03-07 20:48:21 +0000 | [diff] [blame] | 955 | ./sessionfuzz run $(TOP)/test/sessionfuzz-data1.db |
drh | a523e31 | 2015-07-24 17:26:13 +0000 | [diff] [blame] | 956 | |
drh | f94c190 | 2018-03-07 20:48:21 +0000 | [diff] [blame] | 957 | valgrindfuzz: fuzzcheck$(EXE) $(FUZZDATA) sessionfuzz$(EXE) $(TOP)/test/sessionfuzz-data1.db |
dan | 0bff34a | 2021-03-03 16:46:03 +0000 | [diff] [blame] | 958 | valgrind ./fuzzcheck$(EXE) --cell-size-check --limit-mem 10M $(FUZZDATA) |
drh | f94c190 | 2018-03-07 20:48:21 +0000 | [diff] [blame] | 959 | valgrind ./sessionfuzz run $(TOP)/test/sessionfuzz-data1.db |
drh | d1f2f9b | 2015-06-08 19:15:50 +0000 | [diff] [blame] | 960 | |
drh | c06e543 | 2016-12-14 11:23:51 +0000 | [diff] [blame] | 961 | # The veryquick.test TCL tests. |
| 962 | # |
| 963 | tcltest: ./testfixture$(EXE) |
| 964 | ./testfixture$(EXE) $(TOP)/test/veryquick.test $(TESTOPTS) |
| 965 | |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 966 | # A very quick test using only testfixture and omitting all the slower |
| 967 | # tests. Designed to run in under 3 minutes on a workstation. |
| 968 | # |
| 969 | quicktest: ./testfixture$(EXE) |
| 970 | ./testfixture$(EXE) $(TOP)/test/extraquick.test $(TESTOPTS) |
| 971 | |
| 972 | # The default test case. Runs most of the faster standard TCL tests, |
| 973 | # and fuzz tests, and sqlite3_analyzer and sqldiff tests. |
drh | c0efa4d | 2019-10-09 13:52:31 +0000 | [diff] [blame] | 974 | test: fuzztest sourcetest $(TESTPROGS) tcltest |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 975 | |
drh | 8ea5eca | 2015-04-24 16:53:03 +0000 | [diff] [blame] | 976 | # Run a test using valgrind. This can take a really long time |
| 977 | # because valgrind is so much slower than a native machine. |
| 978 | # |
drh | d1f2f9b | 2015-06-08 19:15:50 +0000 | [diff] [blame] | 979 | valgrindtest: $(TESTPROGS) valgrindfuzz |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 980 | OMIT_MISUSE=1 valgrind -v \ |
| 981 | ./testfixture$(EXE) $(TOP)/test/permutations.test valgrind $(TESTOPTS) |
drh | 8ea5eca | 2015-04-24 16:53:03 +0000 | [diff] [blame] | 982 | |
mistachkin | d4ab103 | 2015-05-11 16:27:33 +0000 | [diff] [blame] | 983 | # A very fast test that checks basic sanity. The name comes from |
| 984 | # the 60s-era electronics testing: "Turn it on and see if smoke |
| 985 | # comes out." |
| 986 | # |
drh | ea93c70 | 2015-05-26 18:15:08 +0000 | [diff] [blame] | 987 | smoketest: $(TESTPROGS) fuzzcheck$(EXE) |
drh | 905da63 | 2015-06-10 18:53:09 +0000 | [diff] [blame] | 988 | ./testfixture$(EXE) $(TOP)/test/main.test $(TESTOPTS) |
mistachkin | d4ab103 | 2015-05-11 16:27:33 +0000 | [diff] [blame] | 989 | |
drh | 9776784 | 2020-05-29 19:39:35 +0000 | [diff] [blame] | 990 | shelltest: $(TESTPROGS) |
| 991 | ./testfixture$(EXT) $(TOP)/test/permutations.test shell |
| 992 | |
dan | d38bc1b | 2010-09-13 12:15:36 +0000 | [diff] [blame] | 993 | # The next two rules are used to support the "threadtest" target. Building |
| 994 | # threadtest runs a few thread-safety tests that are implemented in C. This |
| 995 | # target is invoked by the releasetest.tcl script. |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 996 | # |
dan | 0420954 | 2014-12-12 16:39:38 +0000 | [diff] [blame] | 997 | THREADTEST3_SRC = $(TOP)/test/threadtest3.c \ |
| 998 | $(TOP)/test/tt3_checkpoint.c \ |
| 999 | $(TOP)/test/tt3_index.c \ |
| 1000 | $(TOP)/test/tt3_vacuum.c \ |
| 1001 | $(TOP)/test/tt3_stress.c \ |
| 1002 | $(TOP)/test/tt3_lookaside1.c |
| 1003 | |
dan | 5fcc1ba | 2015-12-03 12:01:54 +0000 | [diff] [blame] | 1004 | threadtest3$(EXE): sqlite3.o $(THREADTEST3_SRC) $(TOP)/src/test_multiplex.c |
| 1005 | $(TCCX) $(TOP)/test/threadtest3.c $(TOP)/src/test_multiplex.c sqlite3.o -o $@ $(THREADLIB) |
dan | d38bc1b | 2010-09-13 12:15:36 +0000 | [diff] [blame] | 1006 | |
| 1007 | threadtest: threadtest3$(EXE) |
| 1008 | ./threadtest3$(EXE) |
| 1009 | |
danielk1977 | 69e777f | 2006-06-14 10:38:02 +0000 | [diff] [blame] | 1010 | TEST_EXTENSION = $(SHPREFIX)testloadext.$(SO) |
| 1011 | $(TEST_EXTENSION): $(TOP)/src/test_loadext.c |
| 1012 | $(MKSHLIB) $(TOP)/src/test_loadext.c -o $(TEST_EXTENSION) |
| 1013 | |
| 1014 | extensiontest: testfixture$(EXE) $(TEST_EXTENSION) |
| 1015 | ./testfixture$(EXE) $(TOP)/test/loadext.test |
| 1016 | |
drh | 3374648 | 2018-12-13 15:06:26 +0000 | [diff] [blame] | 1017 | dbtotxt$(EXE): $(TOP)/tool/dbtotxt.c |
| 1018 | $(TCC) -o dbtotxt$(EXE) $(TOP)/tool/dbtotxt.c |
| 1019 | |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 1020 | showdb$(EXE): $(TOP)/tool/showdb.c sqlite3.o |
drh | 9ac3c1e | 2013-11-07 18:37:31 +0000 | [diff] [blame] | 1021 | $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o showdb$(EXE) \ |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 1022 | $(TOP)/tool/showdb.c sqlite3.o $(THREADLIB) |
| 1023 | |
| 1024 | showstat4$(EXE): $(TOP)/tool/showstat4.c sqlite3.o |
| 1025 | $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o showstat4$(EXE) \ |
| 1026 | $(TOP)/tool/showstat4.c sqlite3.o $(THREADLIB) |
| 1027 | |
| 1028 | showjournal$(EXE): $(TOP)/tool/showjournal.c sqlite3.o |
| 1029 | $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o showjournal$(EXE) \ |
| 1030 | $(TOP)/tool/showjournal.c sqlite3.o $(THREADLIB) |
| 1031 | |
| 1032 | showwal$(EXE): $(TOP)/tool/showwal.c sqlite3.o |
| 1033 | $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o showwal$(EXE) \ |
| 1034 | $(TOP)/tool/showwal.c sqlite3.o $(THREADLIB) |
| 1035 | |
drh | 666fb69 | 2017-10-30 23:25:06 +0000 | [diff] [blame] | 1036 | showshm$(EXE): $(TOP)/tool/showshm.c |
| 1037 | $(TCC) -o showshm$(EXE) $(TOP)/tool/showshm.c |
| 1038 | |
drh | 731dd6e | 2018-12-04 16:51:42 +0000 | [diff] [blame] | 1039 | index_usage$(EXE): $(TOP)/tool/index_usage.c sqlite3.o |
drh | 5a9c6bc | 2019-01-30 14:01:43 +0000 | [diff] [blame] | 1040 | $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_DEPRECATED $(SHELL_OPTS) -o index_usage$(EXE) \ |
drh | 731dd6e | 2018-12-04 16:51:42 +0000 | [diff] [blame] | 1041 | $(TOP)/tool/index_usage.c sqlite3.o $(THREADLIB) |
| 1042 | |
drh | 3a67b04 | 2014-08-18 17:56:31 +0000 | [diff] [blame] | 1043 | changeset$(EXE): $(TOP)/ext/session/changeset.c sqlite3.o |
| 1044 | $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o changeset$(EXE) \ |
| 1045 | $(TOP)/ext/session/changeset.c sqlite3.o $(THREADLIB) |
| 1046 | |
dan | f095a1a | 2018-11-05 20:37:33 +0000 | [diff] [blame] | 1047 | changesetfuzz$(EXE): $(TOP)/ext/session/changesetfuzz.c sqlite3.o |
| 1048 | $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o changesetfuzz$(EXE) \ |
| 1049 | $(TOP)/ext/session/changesetfuzz.c sqlite3.o $(THREADLIB) |
| 1050 | |
drh | 42d3d37 | 2014-07-07 16:07:43 +0000 | [diff] [blame] | 1051 | fts3view$(EXE): $(TOP)/ext/fts3/tool/fts3view.c sqlite3.o |
| 1052 | $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o fts3view$(EXE) \ |
| 1053 | $(TOP)/ext/fts3/tool/fts3view.c sqlite3.o $(THREADLIB) |
| 1054 | |
drh | 4bb77ec | 2014-06-30 11:14:26 +0000 | [diff] [blame] | 1055 | rollback-test$(EXE): $(TOP)/tool/rollback-test.c sqlite3.o |
| 1056 | $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o rollback-test$(EXE) \ |
| 1057 | $(TOP)/tool/rollback-test.c sqlite3.o $(THREADLIB) |
drh | 7e65c94 | 2013-10-10 17:33:52 +0000 | [diff] [blame] | 1058 | |
drh | 355f2e0 | 2018-08-23 20:09:19 +0000 | [diff] [blame] | 1059 | atrc$(EXE): $(TOP)/test/atrc.c sqlite3.o |
| 1060 | $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o atrc$(EXE) \ |
| 1061 | $(TOP)/test/atrc.c sqlite3.o $(THREADLIB) |
| 1062 | |
drh | 267a13f | 2014-06-18 18:10:12 +0000 | [diff] [blame] | 1063 | LogEst$(EXE): $(TOP)/tool/logest.c sqlite3.h |
| 1064 | $(TCC) -o LogEst$(EXE) $(TOP)/tool/logest.c |
| 1065 | |
drh | 9ac3c1e | 2013-11-07 18:37:31 +0000 | [diff] [blame] | 1066 | wordcount$(EXE): $(TOP)/test/wordcount.c sqlite3.c |
| 1067 | $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o wordcount$(EXE) \ |
| 1068 | $(TOP)/test/wordcount.c sqlite3.c |
| 1069 | |
drh | d1b2566 | 2017-01-23 19:11:38 +0000 | [diff] [blame] | 1070 | speedtest1$(EXE): $(TOP)/test/speedtest1.c sqlite3.c |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1071 | $(TCCX) -I. $(ST_OPT) -o speedtest1$(EXE) $(TOP)/test/speedtest1.c sqlite3.c $(THREADLIB) |
drh | d1b2566 | 2017-01-23 19:11:38 +0000 | [diff] [blame] | 1072 | |
| 1073 | kvtest$(EXE): $(TOP)/test/kvtest.c sqlite3.c |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1074 | $(TCCX) -I. $(KV_OPT) -o kvtest$(EXE) $(TOP)/test/kvtest.c sqlite3.c $(THREADLIB) |
drh | ad1ca9a | 2013-11-23 04:16:58 +0000 | [diff] [blame] | 1075 | |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1076 | rbu$(EXE): $(TOP)/ext/rbu/rbu.c $(TOP)/ext/rbu/sqlite3rbu.c sqlite3.o |
drh | cfb8f8d | 2015-07-23 20:44:49 +0000 | [diff] [blame] | 1077 | $(TCC) -I. -o rbu$(EXE) $(TOP)/ext/rbu/rbu.c sqlite3.o \ |
dan | 98231c0 | 2014-09-03 08:25:09 +0000 | [diff] [blame] | 1078 | $(THREADLIB) |
dan | e7152dc | 2011-07-07 08:19:16 +0000 | [diff] [blame] | 1079 | |
dan | 92e497e | 2014-07-28 20:14:02 +0000 | [diff] [blame] | 1080 | loadfts: $(TOP)/tool/loadfts.c libsqlite3.a |
| 1081 | $(TCC) $(TOP)/tool/loadfts.c libsqlite3.a -o loadfts $(THREADLIB) |
| 1082 | |
dan | e7152dc | 2011-07-07 08:19:16 +0000 | [diff] [blame] | 1083 | # This target will fail if the SQLite amalgamation contains any exported |
| 1084 | # symbols that do not begin with "sqlite3_". It is run as part of the |
| 1085 | # releasetest.tcl script. |
| 1086 | # |
| 1087 | checksymbols: sqlite3.o |
| 1088 | nm -g --defined-only sqlite3.o | grep -v " sqlite3_" ; test $$? -ne 0 |
| 1089 | |
drh | 07f7656 | 2016-02-09 22:39:39 +0000 | [diff] [blame] | 1090 | # Build the amalgamation-autoconf package. The amalamgation-tarball target builds |
| 1091 | # a tarball named for the version number. Ex: sqlite-autoconf-3110000.tar.gz. |
| 1092 | # The snapshot-tarball target builds a tarball named by the SHA1 hash |
dan | 555c939 | 2013-05-27 18:37:33 +0000 | [diff] [blame] | 1093 | # |
mistachkin | 7cff0e3 | 2020-06-19 15:33:23 +0000 | [diff] [blame] | 1094 | amalgamation-tarball: sqlite3.c sqlite3rc.h |
drh | 07f7656 | 2016-02-09 22:39:39 +0000 | [diff] [blame] | 1095 | TOP=$(TOP) sh $(TOP)/tool/mkautoconfamal.sh --normal |
| 1096 | |
mistachkin | 7cff0e3 | 2020-06-19 15:33:23 +0000 | [diff] [blame] | 1097 | snapshot-tarball: sqlite3.c sqlite3rc.h |
drh | 07f7656 | 2016-02-09 22:39:39 +0000 | [diff] [blame] | 1098 | TOP=$(TOP) sh $(TOP)/tool/mkautoconfamal.sh --snapshot |
dan | 555c939 | 2013-05-27 18:37:33 +0000 | [diff] [blame] | 1099 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 1100 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 1101 | # Standard install and cleanup targets |
| 1102 | # |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 1103 | install: sqlite3 libsqlite3.a sqlite3.h |
| 1104 | mv sqlite3 /usr/bin |
| 1105 | mv libsqlite3.a /usr/lib |
| 1106 | mv sqlite3.h /usr/include |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1107 | |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1108 | clean: |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 1109 | rm -f *.o sqlite3 sqlite3.exe libsqlite3.a sqlite3.h opcodes.* |
drh | 0edb7ac | 2011-10-13 18:08:04 +0000 | [diff] [blame] | 1110 | rm -f lemon lemon.exe lempar.c parse.* sqlite*.tar.gz |
| 1111 | rm -f mkkeywordhash mkkeywordhash.exe keywordhash.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 1112 | rm -f $(PUBLISH) |
| 1113 | rm -f *.da *.bb *.bbg gmon.out |
drh | d919fe1 | 2007-12-11 19:34:44 +0000 | [diff] [blame] | 1114 | rm -rf tsrc target_source |
drh | f80ad49 | 2006-09-02 22:14:59 +0000 | [diff] [blame] | 1115 | rm -f testloadext.dll libtestloadext.so |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 1116 | rm -f amalgamation-testfixture amalgamation-testfixture.exe |
| 1117 | rm -f fts3-testfixture fts3-testfixture.exe |
| 1118 | rm -f testfixture testfixture.exe |
| 1119 | rm -f threadtest3 threadtest3.exe |
mistachkin | 3a046c6 | 2014-07-18 21:02:54 +0000 | [diff] [blame] | 1120 | rm -f LogEst LogEst.exe |
| 1121 | rm -f fts3view fts3view.exe |
| 1122 | rm -f rollback-test rollback-test.exe |
| 1123 | rm -f showdb showdb.exe |
| 1124 | rm -f showjournal showjournal.exe |
| 1125 | rm -f showstat4 showstat4.exe |
| 1126 | rm -f showwal showwal.exe |
drh | 9f674f2 | 2014-08-18 20:23:29 +0000 | [diff] [blame] | 1127 | rm -f changeset changeset.exe |
mistachkin | 3a046c6 | 2014-07-18 21:02:54 +0000 | [diff] [blame] | 1128 | rm -f speedtest1 speedtest1.exe |
| 1129 | rm -f wordcount wordcount.exe |
mistachkin | b5a5a23 | 2016-01-20 18:47:59 +0000 | [diff] [blame] | 1130 | rm -f rbu rbu.exe |
mistachkin | 27b6997 | 2016-02-07 20:39:27 +0000 | [diff] [blame] | 1131 | rm -f srcck1 srcck1.exe |
mistachkin | 7651091 | 2013-10-11 23:01:18 +0000 | [diff] [blame] | 1132 | rm -f sqlite3.c sqlite3-*.c fts?amal.c tclsqlite3.c |
mistachkin | fde3b1c7 | 2013-03-29 19:52:04 +0000 | [diff] [blame] | 1133 | rm -f sqlite3rc.h |
| 1134 | rm -f shell.c sqlite3ext.h |
mistachkin | 9a55e31 | 2011-09-22 00:06:44 +0000 | [diff] [blame] | 1135 | rm -f sqlite3_analyzer sqlite3_analyzer.exe sqlite3_analyzer.c |
mistachkin | 8bee11a | 2018-10-29 17:53:23 +0000 | [diff] [blame] | 1136 | rm -f sqlite3_expert sqlite3_expert.exe |
mistachkin | 29b75bd | 2012-10-20 09:35:57 +0000 | [diff] [blame] | 1137 | rm -f sqlite-*-output.vsix |
mistachkin | 21c9b6b | 2013-04-10 03:06:43 +0000 | [diff] [blame] | 1138 | rm -f mptester mptester.exe |
mistachkin | d4ab103 | 2015-05-11 16:27:33 +0000 | [diff] [blame] | 1139 | rm -f fuzzershell fuzzershell.exe |
mistachkin | 7a94e6b | 2015-05-26 03:24:33 +0000 | [diff] [blame] | 1140 | rm -f fuzzcheck fuzzcheck.exe |
drh | f94c190 | 2018-03-07 20:48:21 +0000 | [diff] [blame] | 1141 | rm -f sessionfuzz |
mistachkin | d4ab103 | 2015-05-11 16:27:33 +0000 | [diff] [blame] | 1142 | rm -f sqldiff sqldiff.exe |
mistachkin | bc50bb7 | 2015-07-14 21:56:53 +0000 | [diff] [blame] | 1143 | rm -f fts5.* fts5parse.* |
dan | 6212854 | 2017-12-13 14:22:48 +0000 | [diff] [blame] | 1144 | rm -f lsm.h lsm1.c |