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 | # |
| 12 | # USLEEP If the target operating system supports the "usleep()" system |
| 13 | # call, then define the HAVE_USLEEP macro for all C modules. |
| 14 | # |
| 15 | # THREADSAFE If you want the SQLite library to be safe for use within a |
| 16 | # multi-threaded program, then define the following macro |
| 17 | # appropriately: |
| 18 | # |
| 19 | # THREADLIB Specify any extra linker options needed to make the library |
| 20 | # thread safe |
| 21 | # |
| 22 | # OPTS Extra compiler command-line options. |
| 23 | # |
| 24 | # EXE The suffix to add to executable files. ".exe" for windows |
| 25 | # and "" for Unix. |
| 26 | # |
| 27 | # TCC C Compiler and options for use in building executables that |
| 28 | # will run on the target platform. This is usually the same |
| 29 | # as BCC, unless you are cross-compiling. |
| 30 | # |
| 31 | # AR Tools used to build a static library. |
| 32 | # RANLIB |
| 33 | # |
| 34 | # TCL_FLAGS Extra compiler options needed for programs that use the |
| 35 | # TCL library. |
| 36 | # |
| 37 | # LIBTCL Linker options needed to link against the TCL library. |
| 38 | # |
| 39 | # READLINE_FLAGS Compiler options needed for programs that use the |
| 40 | # readline() library. |
| 41 | # |
| 42 | # LIBREADLINE Linker options needed by programs using readline() must |
| 43 | # link against. |
| 44 | # |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 45 | # NAWK Nawk compatible awk program. Older (obsolete?) solaris |
| 46 | # systems need this to avoid using the original AT&T AWK. |
drh | 7680032 | 2002-08-13 20:45:39 +0000 | [diff] [blame] | 47 | # |
| 48 | # Once the macros above are defined, the rest of this make script will |
| 49 | # build the SQLite library and testing tools. |
| 50 | ################################################################################ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 51 | |
| 52 | # This is how we compile |
| 53 | # |
drh | a297b5c | 2002-01-15 18:39:43 +0000 | [diff] [blame] | 54 | TCCX = $(TCC) $(OPTS) $(THREADSAFE) $(USLEEP) -I. -I$(TOP)/src |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 55 | |
| 56 | # Object files for the SQLite library. |
| 57 | # |
drh | 900b31e | 2007-08-28 02:27:51 +0000 | [diff] [blame] | 58 | LIBOBJ+= alter.o analyze.o attach.o auth.o btmutex.o btree.o build.o \ |
drh | a2b902d | 2005-08-14 17:53:20 +0000 | [diff] [blame] | 59 | callback.o complete.o date.o delete.o \ |
danielk1977 | c7b6017 | 2007-08-22 11:22:03 +0000 | [diff] [blame] | 60 | expr.o func.o hash.o insert.o journal.o loadext.o \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 61 | main.o malloc.o mem1.o mem2.o mutex.o mutex_os2.o \ |
| 62 | mutex_unix.o mutex_w32.o \ |
drh | 90f6a5b | 2007-08-15 13:04:54 +0000 | [diff] [blame] | 63 | opcodes.o os.o os_os2.o os_unix.o os_win.o \ |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 64 | pager.o parse.o pragma.o prepare.o printf.o random.o \ |
drh | 38f8271 | 2004-06-18 17:10:16 +0000 | [diff] [blame] | 65 | select.o table.o tclsqlite.o tokenize.o trigger.o \ |
| 66 | update.o util.o vacuum.o \ |
danielk1977 | b4e9af9 | 2007-05-01 17:49:49 +0000 | [diff] [blame] | 67 | vdbe.o vdbeapi.o vdbeaux.o vdbeblob.o vdbefifo.o vdbemem.o \ |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 68 | where.o utf.o legacy.o vtab.o |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 69 | |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 70 | EXTOBJ = icu.o |
| 71 | EXTOBJ += fts1.o \ |
| 72 | fts1_hash.o \ |
| 73 | fts1_tokenizer1.o \ |
| 74 | fts1_porter.o |
| 75 | EXTOBJ += fts2.o \ |
| 76 | fts2_hash.o \ |
| 77 | fts2_icu.o \ |
| 78 | fts2_porter.o \ |
| 79 | fts2_tokenizer.o \ |
| 80 | fts2_tokenizer1.o |
| 81 | EXTOBJ += fts3.o \ |
| 82 | fts3_hash.o \ |
| 83 | fts3_icu.o \ |
| 84 | fts3_porter.o \ |
| 85 | fts3_tokenizer.o \ |
| 86 | fts3_tokenizer1.o |
danielk1977 | 576d3db | 2007-06-25 14:28:48 +0000 | [diff] [blame] | 87 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 88 | # All of the source code files. |
| 89 | # |
| 90 | SRC = \ |
drh | d0e4a6c | 2005-02-15 20:47:57 +0000 | [diff] [blame] | 91 | $(TOP)/src/alter.c \ |
drh | 9f18e8a | 2005-07-08 12:13:04 +0000 | [diff] [blame] | 92 | $(TOP)/src/analyze.c \ |
drh | c11d4f9 | 2003-04-06 21:08:24 +0000 | [diff] [blame] | 93 | $(TOP)/src/attach.c \ |
drh | ed6c867 | 2003-01-12 18:02:16 +0000 | [diff] [blame] | 94 | $(TOP)/src/auth.c \ |
drh | 900b31e | 2007-08-28 02:27:51 +0000 | [diff] [blame] | 95 | $(TOP)/src/btmutex.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 96 | $(TOP)/src/btree.c \ |
| 97 | $(TOP)/src/btree.h \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 98 | $(TOP)/src/btreeInt.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 99 | $(TOP)/src/build.c \ |
danielk1977 | fd9a0a4 | 2005-05-24 12:01:00 +0000 | [diff] [blame] | 100 | $(TOP)/src/callback.c \ |
drh | a2b902d | 2005-08-14 17:53:20 +0000 | [diff] [blame] | 101 | $(TOP)/src/complete.c \ |
drh | 7014aff | 2003-11-01 01:53:53 +0000 | [diff] [blame] | 102 | $(TOP)/src/date.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 103 | $(TOP)/src/delete.c \ |
| 104 | $(TOP)/src/expr.c \ |
drh | dc04c58 | 2002-02-24 01:55:15 +0000 | [diff] [blame] | 105 | $(TOP)/src/func.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 106 | $(TOP)/src/hash.c \ |
| 107 | $(TOP)/src/hash.h \ |
| 108 | $(TOP)/src/insert.c \ |
danielk1977 | c7b6017 | 2007-08-22 11:22:03 +0000 | [diff] [blame] | 109 | $(TOP)/src/journal.c \ |
drh | 014ac19 | 2004-06-01 01:45:11 +0000 | [diff] [blame] | 110 | $(TOP)/src/legacy.c \ |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 111 | $(TOP)/src/loadext.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 112 | $(TOP)/src/main.c \ |
drh | a315289 | 2007-05-05 11:48:52 +0000 | [diff] [blame] | 113 | $(TOP)/src/malloc.c \ |
drh | 4c3645c | 2007-08-15 17:07:57 +0000 | [diff] [blame] | 114 | $(TOP)/src/mem1.c \ |
| 115 | $(TOP)/src/mem2.c \ |
drh | 90f6a5b | 2007-08-15 13:04:54 +0000 | [diff] [blame] | 116 | $(TOP)/src/mutex.c \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 117 | $(TOP)/src/mutex.h \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 118 | $(TOP)/src/mutex_os2.c \ |
| 119 | $(TOP)/src/mutex_unix.c \ |
| 120 | $(TOP)/src/mutex_w32.c \ |
drh | 054889e | 2005-11-30 03:20:31 +0000 | [diff] [blame] | 121 | $(TOP)/src/os.c \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 122 | $(TOP)/src/os.h \ |
| 123 | $(TOP)/src/os_common.h \ |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 124 | $(TOP)/src/os_os2.c \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 125 | $(TOP)/src/os_unix.c \ |
| 126 | $(TOP)/src/os_win.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 127 | $(TOP)/src/pager.c \ |
| 128 | $(TOP)/src/pager.h \ |
| 129 | $(TOP)/src/parse.y \ |
drh | c11d4f9 | 2003-04-06 21:08:24 +0000 | [diff] [blame] | 130 | $(TOP)/src/pragma.c \ |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 131 | $(TOP)/src/prepare.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 132 | $(TOP)/src/printf.c \ |
| 133 | $(TOP)/src/random.c \ |
| 134 | $(TOP)/src/select.c \ |
| 135 | $(TOP)/src/shell.c \ |
| 136 | $(TOP)/src/sqlite.h.in \ |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 137 | $(TOP)/src/sqlite3ext.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 138 | $(TOP)/src/sqliteInt.h \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 139 | $(TOP)/src/sqliteLimit.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 140 | $(TOP)/src/table.c \ |
| 141 | $(TOP)/src/tclsqlite.c \ |
| 142 | $(TOP)/src/tokenize.c \ |
drh | dc37945 | 2002-05-15 12:45:43 +0000 | [diff] [blame] | 143 | $(TOP)/src/trigger.c \ |
drh | 1bbf5ee | 2004-05-11 01:18:24 +0000 | [diff] [blame] | 144 | $(TOP)/src/utf.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 145 | $(TOP)/src/update.c \ |
| 146 | $(TOP)/src/util.c \ |
drh | e1051c6 | 2003-04-06 20:52:32 +0000 | [diff] [blame] | 147 | $(TOP)/src/vacuum.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 148 | $(TOP)/src/vdbe.c \ |
| 149 | $(TOP)/src/vdbe.h \ |
drh | eb2e176 | 2004-05-27 01:53:56 +0000 | [diff] [blame] | 150 | $(TOP)/src/vdbeapi.c \ |
drh | 9a32464 | 2003-09-06 20:12:01 +0000 | [diff] [blame] | 151 | $(TOP)/src/vdbeaux.c \ |
danielk1977 | b4e9af9 | 2007-05-01 17:49:49 +0000 | [diff] [blame] | 152 | $(TOP)/src/vdbeblob.c \ |
drh | a01f79d | 2005-07-08 13:07:59 +0000 | [diff] [blame] | 153 | $(TOP)/src/vdbefifo.c \ |
drh | eb2e176 | 2004-05-27 01:53:56 +0000 | [diff] [blame] | 154 | $(TOP)/src/vdbemem.c \ |
drh | 9a32464 | 2003-09-06 20:12:01 +0000 | [diff] [blame] | 155 | $(TOP)/src/vdbeInt.h \ |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 156 | $(TOP)/src/vtab.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 157 | $(TOP)/src/where.c |
| 158 | |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 159 | # Source code for extensions |
| 160 | # |
| 161 | SRC += \ |
| 162 | $(TOP)/ext/fts1/fts1.c \ |
| 163 | $(TOP)/ext/fts1/fts1.h \ |
| 164 | $(TOP)/ext/fts1/fts1_hash.c \ |
| 165 | $(TOP)/ext/fts1/fts1_hash.h \ |
| 166 | $(TOP)/ext/fts1/fts1_porter.c \ |
| 167 | $(TOP)/ext/fts1/fts1_tokenizer.h \ |
| 168 | $(TOP)/ext/fts1/fts1_tokenizer1.c |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 169 | SRC += \ |
| 170 | $(TOP)/ext/fts2/fts2.c \ |
| 171 | $(TOP)/ext/fts2/fts2.h \ |
| 172 | $(TOP)/ext/fts2/fts2_hash.c \ |
| 173 | $(TOP)/ext/fts2/fts2_hash.h \ |
drh | d6e78a2 | 2007-07-20 13:42:26 +0000 | [diff] [blame] | 174 | $(TOP)/ext/fts2/fts2_icu.c \ |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 175 | $(TOP)/ext/fts2/fts2_porter.c \ |
| 176 | $(TOP)/ext/fts2/fts2_tokenizer.h \ |
drh | d6e78a2 | 2007-07-20 13:42:26 +0000 | [diff] [blame] | 177 | $(TOP)/ext/fts2/fts2_tokenizer.c \ |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 178 | $(TOP)/ext/fts2/fts2_tokenizer1.c |
danielk1977 | 08ada51 | 2007-06-26 10:56:40 +0000 | [diff] [blame] | 179 | SRC += \ |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 180 | $(TOP)/ext/fts3/fts3.c \ |
| 181 | $(TOP)/ext/fts3/fts3.h \ |
| 182 | $(TOP)/ext/fts3/fts3_hash.c \ |
| 183 | $(TOP)/ext/fts3/fts3_hash.h \ |
| 184 | $(TOP)/ext/fts3/fts3_icu.c \ |
| 185 | $(TOP)/ext/fts3/fts3_porter.c \ |
| 186 | $(TOP)/ext/fts3/fts3_tokenizer.h \ |
| 187 | $(TOP)/ext/fts3/fts3_tokenizer.c \ |
| 188 | $(TOP)/ext/fts3/fts3_tokenizer1.c |
| 189 | SRC += \ |
danielk1977 | 08ada51 | 2007-06-26 10:56:40 +0000 | [diff] [blame] | 190 | $(TOP)/ext/icu/icu.c |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 191 | |
danielk1977 | 77b03a2 | 2007-06-20 08:49:05 +0000 | [diff] [blame] | 192 | |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 193 | # Generated source code files |
| 194 | # |
| 195 | SRC += \ |
| 196 | keywordhash.h \ |
| 197 | opcodes.c \ |
| 198 | opcodes.h \ |
| 199 | parse.c \ |
| 200 | parse.h \ |
| 201 | sqlite3.h |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 202 | |
| 203 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 204 | # Source code to the test files. |
| 205 | # |
drh | b6f4148 | 2004-05-14 01:58:11 +0000 | [diff] [blame] | 206 | TESTSRC = \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 207 | $(TOP)/src/test1.c \ |
| 208 | $(TOP)/src/test2.c \ |
| 209 | $(TOP)/src/test3.c \ |
drh | a6064dc | 2003-12-19 02:52:05 +0000 | [diff] [blame] | 210 | $(TOP)/src/test4.c \ |
danielk1977 | 4adee20 | 2004-05-08 08:23:19 +0000 | [diff] [blame] | 211 | $(TOP)/src/test5.c \ |
drh | 9c06c95 | 2005-11-26 00:25:00 +0000 | [diff] [blame] | 212 | $(TOP)/src/test6.c \ |
drh | 29c636b | 2006-01-09 23:40:25 +0000 | [diff] [blame] | 213 | $(TOP)/src/test7.c \ |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 214 | $(TOP)/src/test8.c \ |
danielk1977 | a713f2c | 2007-03-29 12:19:11 +0000 | [diff] [blame] | 215 | $(TOP)/src/test9.c \ |
drh | 1409be6 | 2006-08-23 20:07:20 +0000 | [diff] [blame] | 216 | $(TOP)/src/test_autoext.c \ |
drh | 2366940 | 2006-01-09 17:29:52 +0000 | [diff] [blame] | 217 | $(TOP)/src/test_async.c \ |
drh | 16a9b83 | 2007-05-05 18:39:25 +0000 | [diff] [blame] | 218 | $(TOP)/src/test_btree.c \ |
drh | c797d4d | 2007-05-08 01:08:49 +0000 | [diff] [blame] | 219 | $(TOP)/src/test_config.c \ |
drh | 1592659 | 2007-04-06 15:02:13 +0000 | [diff] [blame] | 220 | $(TOP)/src/test_hexio.c \ |
drh | 2f999a6 | 2007-08-15 19:16:43 +0000 | [diff] [blame] | 221 | $(TOP)/src/test_malloc.c \ |
drh | 2d02a67 | 2006-01-25 15:55:37 +0000 | [diff] [blame] | 222 | $(TOP)/src/test_md5.c \ |
danielk1977 | 954ce99 | 2006-06-15 15:59:19 +0000 | [diff] [blame] | 223 | $(TOP)/src/test_schema.c \ |
drh | 2d02a67 | 2006-01-25 15:55:37 +0000 | [diff] [blame] | 224 | $(TOP)/src/test_server.c \ |
drh | 4be8b51 | 2006-06-13 23:51:34 +0000 | [diff] [blame] | 225 | $(TOP)/src/test_tclvar.c \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 226 | |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 227 | TESTSRC += $(TOP)/ext/fts2/fts2_tokenizer.c |
| 228 | TESTSRC += $(TOP)/ext/fts3/fts3_tokenizer.c |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 229 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 230 | TESTSRC2 = \ |
| 231 | $(TOP)/src/attach.c $(TOP)/src/btree.c $(TOP)/src/build.c $(TOP)/src/date.c \ |
| 232 | $(TOP)/src/expr.c $(TOP)/src/func.c $(TOP)/src/insert.c $(TOP)/src/os.c \ |
| 233 | $(TOP)/src/os_os2.c $(TOP)/src/os_unix.c $(TOP)/src/os_win.c \ |
| 234 | $(TOP)/src/pager.c $(TOP)/src/pragma.c $(TOP)/src/prepare.c \ |
| 235 | $(TOP)/src/printf.c $(TOP)/src/select.c $(TOP)/src/tokenize.c \ |
| 236 | $(TOP)/src/utf.c $(TOP)/src/util.c $(TOP)/src/vdbeapi.c $(TOP)/src/vdbeaux.c \ |
| 237 | $(TOP)/src/vdbe.c $(TOP)/src/vdbemem.c $(TOP)/src/where.c parse.c |
| 238 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 239 | # Header files used by all library source files. |
| 240 | # |
| 241 | HDR = \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 242 | $(TOP)/src/btree.h \ |
drh | a315289 | 2007-05-05 11:48:52 +0000 | [diff] [blame] | 243 | $(TOP)/src/btreeInt.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 244 | $(TOP)/src/hash.h \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 245 | keywordhash.h \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 246 | $(TOP)/src/mutex.h \ |
drh | 8f619cc | 2002-09-08 00:04:50 +0000 | [diff] [blame] | 247 | opcodes.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 248 | $(TOP)/src/os.h \ |
drh | 014ac19 | 2004-06-01 01:45:11 +0000 | [diff] [blame] | 249 | $(TOP)/src/os_common.h \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 250 | $(TOP)/src/pager.h \ |
| 251 | parse.h \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 252 | sqlite3.h \ |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 253 | $(TOP)/src/sqlite3ext.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 254 | $(TOP)/src/sqliteInt.h \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 255 | $(TOP)/src/sqliteLimit.h \ |
drh | 9a32464 | 2003-09-06 20:12:01 +0000 | [diff] [blame] | 256 | $(TOP)/src/vdbe.h \ |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 257 | $(TOP)/src/vdbeInt.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 258 | |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 259 | # Header files used by extensions |
| 260 | # |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 261 | EXTHDR += \ |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 262 | $(TOP)/ext/fts1/fts1.h \ |
| 263 | $(TOP)/ext/fts1/fts1_hash.h \ |
| 264 | $(TOP)/ext/fts1/fts1_tokenizer.h |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 265 | EXTHDR += \ |
| 266 | $(TOP)/ext/fts2/fts2.h \ |
| 267 | $(TOP)/ext/fts2/fts2_hash.h \ |
| 268 | $(TOP)/ext/fts2/fts2_tokenizer.h |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 269 | EXTHDR += \ |
| 270 | $(TOP)/ext/fts3/fts3.h \ |
| 271 | $(TOP)/ext/fts3/fts3_hash.h \ |
| 272 | $(TOP)/ext/fts3/fts3_tokenizer.h |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 273 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 274 | # This is the default Makefile target. The objects listed here |
| 275 | # are what get build when you type just "make" with no arguments. |
| 276 | # |
drh | 97903fe | 2005-05-24 20:19:57 +0000 | [diff] [blame] | 277 | all: sqlite3.h libsqlite3.a sqlite3$(EXE) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 278 | |
| 279 | # Generate the file "last_change" which contains the date of change |
| 280 | # of the most recently modified source code file |
| 281 | # |
| 282 | last_change: $(SRC) |
drh | 0c07fb9 | 2006-06-27 20:05:23 +0000 | [diff] [blame] | 283 | cat $(SRC) | grep '$$Id: ' | sort -k 5 | tail -1 \ |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 284 | | $(NAWK) '{print $$5,$$6}' >last_change |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 285 | |
drh | d677b3d | 2007-08-20 22:48:41 +0000 | [diff] [blame] | 286 | libsqlite3.a: $(LIBOBJ) |
| 287 | $(AR) libsqlite3.a $(LIBOBJ) |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 288 | $(RANLIB) libsqlite3.a |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 289 | |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 290 | sqlite3$(EXE): $(TOP)/src/shell.c libsqlite3.a sqlite3.h |
danielk1977 | 77b03a2 | 2007-06-20 08:49:05 +0000 | [diff] [blame] | 291 | $(TCCX) $(READLINE_FLAGS) -o sqlite3$(EXE) \ |
danielk1977 | 08ada51 | 2007-06-26 10:56:40 +0000 | [diff] [blame] | 292 | $(TOP)/src/shell.c \ |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 293 | libsqlite3.a $(LIBREADLINE) $(TLIBS) $(THREADLIB) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 294 | |
danielk1977 | 4adee20 | 2004-05-08 08:23:19 +0000 | [diff] [blame] | 295 | objects: $(LIBOBJ_ORIG) |
| 296 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 297 | # This target creates a directory named "tsrc" and fills it with |
| 298 | # copies of all of the C source code and header files needed to |
| 299 | # build on the target system. Some of the C source code and header |
| 300 | # files are automatically generated. This target takes care of |
| 301 | # all that automatic generation. |
| 302 | # |
drh | de087bd | 2007-02-23 03:00:44 +0000 | [diff] [blame] | 303 | target_source: $(SRC) |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 304 | @echo $(SRC) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 305 | rm -rf tsrc |
| 306 | mkdir tsrc |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 307 | cp -f $(SRC) tsrc |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 308 | rm tsrc/sqlite.h.in tsrc/parse.y |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 309 | |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 310 | sqlite3.c: target_source $(TOP)/tool/mksqlite3c.tcl |
| 311 | tclsh $(TOP)/tool/mksqlite3c.tcl |
drh | bd08af4 | 2007-04-05 21:58:33 +0000 | [diff] [blame] | 312 | cp sqlite3.c tclsqlite3.c |
| 313 | cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c |
| 314 | tclsh $(TOP)/tool/mksqlite3internalh.tcl |
drh | 98495b4 | 2007-03-31 22:29:05 +0000 | [diff] [blame] | 315 | |
drh | d6e78a2 | 2007-07-20 13:42:26 +0000 | [diff] [blame] | 316 | fts2amal.c: target_source $(TOP)/ext/fts2/mkfts2amal.tcl |
| 317 | tclsh $(TOP)/ext/fts2/mkfts2amal.tcl |
| 318 | |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 319 | fts3amal.c: target_source $(TOP)/ext/fts3/mkfts3amal.tcl |
| 320 | tclsh $(TOP)/ext/fts3/mkfts3amal.tcl |
| 321 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 322 | # Rules to build the LEMON compiler generator |
| 323 | # |
| 324 | lemon: $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c |
| 325 | $(BCC) -o lemon $(TOP)/tool/lemon.c |
| 326 | cp $(TOP)/tool/lempar.c . |
| 327 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 328 | # Rules to build individual *.o files from files in the src directory. |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 329 | # |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 330 | %.o: %.c $(HDR) |
| 331 | $(TCCX) -c $< |
drh | d0e4a6c | 2005-02-15 20:47:57 +0000 | [diff] [blame] | 332 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 333 | # Rules to build individual *.o files from generated *.c files. This |
| 334 | # applies to: |
| 335 | # |
| 336 | # parse.o |
| 337 | # opcodes.o |
| 338 | # |
| 339 | %.o: $(TOP)/src/%.c $(HDR) |
| 340 | $(TCCX) -c $< |
drh | 9f18e8a | 2005-07-08 12:13:04 +0000 | [diff] [blame] | 341 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 342 | tclsqlite.o: $(TOP)/src/tclsqlite.c $(HDR) |
| 343 | $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/tclsqlite.c |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 344 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 345 | |
drh | 900b31e | 2007-08-28 02:27:51 +0000 | [diff] [blame] | 346 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 347 | # Rules to build opcodes.c and opcodes.h |
| 348 | # |
drh | b327f77 | 2004-10-06 15:03:57 +0000 | [diff] [blame] | 349 | opcodes.c: opcodes.h $(TOP)/mkopcodec.awk |
drh | 0c07fb9 | 2006-06-27 20:05:23 +0000 | [diff] [blame] | 350 | sort -n -b -k 3 opcodes.h | $(NAWK) -f $(TOP)/mkopcodec.awk >opcodes.c |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 351 | |
drh | f2bc013 | 2004-10-04 13:19:23 +0000 | [diff] [blame] | 352 | opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 353 | cat parse.h $(TOP)/src/vdbe.c |$(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes.h |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 354 | |
drh | 054889e | 2005-11-30 03:20:31 +0000 | [diff] [blame] | 355 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 356 | # Rules to build parse.c and parse.h - the outputs of lemon. |
| 357 | # |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 358 | parse.h: parse.c |
| 359 | |
drh | fa3b19e | 2005-11-24 22:22:29 +0000 | [diff] [blame] | 360 | parse.c: $(TOP)/src/parse.y lemon $(TOP)/addopcodes.awk |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 361 | cp $(TOP)/src/parse.y . |
drh | 27d258a | 2004-10-30 20:23:09 +0000 | [diff] [blame] | 362 | ./lemon $(OPTS) parse.y |
drh | fa3b19e | 2005-11-24 22:22:29 +0000 | [diff] [blame] | 363 | mv parse.h parse.h.temp |
| 364 | awk -f $(TOP)/addopcodes.awk parse.h.temp >parse.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 365 | |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 366 | sqlite3.h: $(TOP)/src/sqlite.h.in |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 367 | sed -e s/--VERS--/`cat ${TOP}/VERSION`/ \ |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 368 | -e s/--VERSION-NUMBER--/`cat ${TOP}/VERSION | sed 's/[^0-9]/ /g' | $(NAWK) '{printf "%d%03d%03d",$$1,$$2,$$3}'`/ \ |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 369 | $(TOP)/src/sqlite.h.in >sqlite3.h |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 370 | |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 371 | keywordhash.h: $(TOP)/tool/mkkeywordhash.c |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 372 | $(BCC) -o mkkeywordhash $(OPTS) $(TOP)/tool/mkkeywordhash.c |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 373 | ./mkkeywordhash >keywordhash.h |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 374 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 375 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 376 | |
danielk1977 | 576d3db | 2007-06-25 14:28:48 +0000 | [diff] [blame] | 377 | # Rules to build the extension objects. |
| 378 | # |
| 379 | icu.o: $(TOP)/ext/icu/icu.c $(HDR) $(EXTHDR) |
| 380 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/icu/icu.c |
| 381 | |
| 382 | fts2.o: $(TOP)/ext/fts2/fts2.c $(HDR) $(EXTHDR) |
| 383 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2.c |
| 384 | |
| 385 | fts2_hash.o: $(TOP)/ext/fts2/fts2_hash.c $(HDR) $(EXTHDR) |
| 386 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_hash.c |
| 387 | |
| 388 | fts2_icu.o: $(TOP)/ext/fts2/fts2_icu.c $(HDR) $(EXTHDR) |
| 389 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_icu.c |
| 390 | |
| 391 | fts2_porter.o: $(TOP)/ext/fts2/fts2_porter.c $(HDR) $(EXTHDR) |
| 392 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_porter.c |
| 393 | |
| 394 | fts2_tokenizer.o: $(TOP)/ext/fts2/fts2_tokenizer.c $(HDR) $(EXTHDR) |
| 395 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer.c |
| 396 | |
| 397 | fts2_tokenizer1.o: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR) $(EXTHDR) |
| 398 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer1.c |
| 399 | |
shess | 69c4ae2 | 2007-08-20 17:37:47 +0000 | [diff] [blame] | 400 | fts3.o: $(TOP)/ext/fts3/fts3.c $(HDR) $(EXTHDR) |
| 401 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3.c |
| 402 | |
| 403 | fts3_hash.o: $(TOP)/ext/fts3/fts3_hash.c $(HDR) $(EXTHDR) |
| 404 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_hash.c |
| 405 | |
| 406 | fts3_icu.o: $(TOP)/ext/fts3/fts3_icu.c $(HDR) $(EXTHDR) |
| 407 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_icu.c |
| 408 | |
| 409 | fts3_porter.o: $(TOP)/ext/fts3/fts3_porter.c $(HDR) $(EXTHDR) |
| 410 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_porter.c |
| 411 | |
| 412 | fts3_tokenizer.o: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR) $(EXTHDR) |
| 413 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer.c |
| 414 | |
| 415 | fts3_tokenizer1.o: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR) $(EXTHDR) |
| 416 | $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer1.c |
| 417 | |
danielk1977 | 576d3db | 2007-06-25 14:28:48 +0000 | [diff] [blame] | 418 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 419 | # Rules for building test programs and for running tests |
| 420 | # |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 421 | tclsqlite3: $(TOP)/src/tclsqlite.c libsqlite3.a |
| 422 | $(TCCX) $(TCL_FLAGS) -DTCLSH=1 -o tclsqlite3 \ |
danielk1977 | bc6ada4 | 2004-06-30 08:20:16 +0000 | [diff] [blame] | 423 | $(TOP)/src/tclsqlite.c libsqlite3.a $(LIBTCL) $(THREADLIB) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 424 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 425 | |
| 426 | # Rules to build the 'testfixture' application. |
| 427 | # |
| 428 | TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 |
| 429 | TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE |
| 430 | |
| 431 | testfixture$(EXE): $(TESTSRC2) libsqlite3.a $(TESTSRC) $(TOP)/src/tclsqlite.c |
| 432 | $(TCCX) $(TCL_FLAGS) $(TESTFIXTURE_FLAGS) \ |
| 433 | $(TESTSRC) $(TESTSRC2) $(TOP)/src/tclsqlite.c \ |
| 434 | -o testfixture$(EXE) $(LIBTCL) $(THREADLIB) libsqlite3.a |
| 435 | |
| 436 | amalgamation-testfixture$(EXE): sqlite3.c $(TESTSRC) $(TOP)/src/tclsqlite.c |
| 437 | $(TCCX) $(TCL_FLAGS) $(TESTFIXTURE_FLAGS) \ |
| 438 | $(TESTSRC) $(TOP)/src/tclsqlite.c sqlite3.c \ |
| 439 | -o testfixture$(EXE) $(LIBTCL) $(THREADLIB) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 440 | |
drh | 9c06c95 | 2005-11-26 00:25:00 +0000 | [diff] [blame] | 441 | fulltest: testfixture$(EXE) sqlite3$(EXE) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 442 | ./testfixture$(EXE) $(TOP)/test/all.test |
| 443 | |
drh | 44548ec | 2007-06-18 12:22:43 +0000 | [diff] [blame] | 444 | soaktest: testfixture$(EXE) sqlite3$(EXE) |
| 445 | ./testfixture$(EXE) $(TOP)/test/all.test -soak 1 |
| 446 | |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 447 | test: testfixture$(EXE) sqlite3$(EXE) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 448 | ./testfixture$(EXE) $(TOP)/test/quick.test |
| 449 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 450 | sqlite3_analyzer$(EXE): $(TOP)/src/tclsqlite.c sqlite3.c $(TESTSRC) \ |
drh | 3e27c02 | 2004-07-23 00:01:38 +0000 | [diff] [blame] | 451 | $(TOP)/tool/spaceanal.tcl |
| 452 | sed \ |
| 453 | -e '/^#/d' \ |
| 454 | -e 's,\\,\\\\,g' \ |
| 455 | -e 's,",\\",g' \ |
| 456 | -e 's,^,",' \ |
| 457 | -e 's,$$,\\n",' \ |
| 458 | $(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 459 | $(TCCX) $(TCL_FLAGS) \ |
| 460 | -DTCLSH=2 -DSQLITE_TEST=1 -DSQLITE_DEBUG=1 -DSQLITE_PRIVATE="" \ |
| 461 | $(TESTSRC) $(TOP)/src/tclsqlite.c sqlite3.c \ |
| 462 | -o sqlite3_analyzer$(EXE) \ |
| 463 | $(LIBTCL) $(THREADLIB) |
drh | 3e27c02 | 2004-07-23 00:01:38 +0000 | [diff] [blame] | 464 | |
danielk1977 | 69e777f | 2006-06-14 10:38:02 +0000 | [diff] [blame] | 465 | TEST_EXTENSION = $(SHPREFIX)testloadext.$(SO) |
| 466 | $(TEST_EXTENSION): $(TOP)/src/test_loadext.c |
| 467 | $(MKSHLIB) $(TOP)/src/test_loadext.c -o $(TEST_EXTENSION) |
| 468 | |
| 469 | extensiontest: testfixture$(EXE) $(TEST_EXTENSION) |
| 470 | ./testfixture$(EXE) $(TOP)/test/loadext.test |
| 471 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 472 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 473 | # Rules used to build documentation |
| 474 | # |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 475 | %.html: $(TOP)/www/%.tcl docdir last_change common.tcl |
| 476 | tclsh $< > $@ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 477 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 478 | lang.html: $(TOP)/www/lang.tcl docdir |
danielk1977 | cd45ab2 | 2004-11-19 11:59:23 +0000 | [diff] [blame] | 479 | tclsh $(TOP)/www/lang.tcl doc >lang.html |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 480 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 481 | opcode.html: $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c |
| 482 | tclsh $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c >opcode.html |
| 483 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 484 | capi3ref.html: $(TOP)/www/mkapidoc.tcl sqlite3.h |
| 485 | tclsh $(TOP)/www/mkapidoc.tcl <sqlite3.h >capi3ref.html |
drh | fbe4375 | 2002-08-14 00:08:12 +0000 | [diff] [blame] | 486 | |
drh | 0e3c083 | 2007-08-31 18:50:31 +0000 | [diff] [blame^] | 487 | copyright-release.html: $(TOP)/www/copyright-release.html |
| 488 | cp $(TOP)/www/copyright-release.html . |
| 489 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 490 | %: $(TOP)/www/% |
| 491 | cp $< $@ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 492 | |
| 493 | # Files to be published on the website. |
| 494 | # |
drh | 90ca975 | 2001-09-28 17:47:14 +0000 | [diff] [blame] | 495 | DOC = \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 496 | arch.html \ |
drh | f856582 | 2004-11-21 01:02:00 +0000 | [diff] [blame] | 497 | autoinc.html \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 498 | c_interface.html \ |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 499 | capi3.html \ |
drh | 93db69e | 2004-06-01 01:22:37 +0000 | [diff] [blame] | 500 | capi3ref.html \ |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 501 | changes.html \ |
drh | f856582 | 2004-11-21 01:02:00 +0000 | [diff] [blame] | 502 | compile.html \ |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 503 | copyright.html \ |
| 504 | copyright-release.html \ |
| 505 | copyright-release.pdf \ |
drh | 7680032 | 2002-08-13 20:45:39 +0000 | [diff] [blame] | 506 | conflict.html \ |
drh | c277413 | 2002-08-15 13:45:17 +0000 | [diff] [blame] | 507 | datatypes.html \ |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 508 | datatype3.html \ |
drh | 9179fd9 | 2005-03-12 15:55:10 +0000 | [diff] [blame] | 509 | different.html \ |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 510 | docs.html \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 511 | download.html \ |
| 512 | faq.html \ |
drh | 96f4531 | 2002-09-02 14:11:02 +0000 | [diff] [blame] | 513 | fileformat.html \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 514 | formatchng.html \ |
| 515 | index.html \ |
drh | b0e64f3 | 2007-06-09 09:53:51 +0000 | [diff] [blame] | 516 | limits.html \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 517 | lang.html \ |
drh | 52619df | 2004-06-11 17:48:02 +0000 | [diff] [blame] | 518 | lockingv3.html \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 519 | mingw.html \ |
| 520 | nulls.html \ |
drh | 7b93ed3 | 2004-06-16 03:02:00 +0000 | [diff] [blame] | 521 | oldnews.html \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 522 | omitted.html \ |
| 523 | opcode.html \ |
drh | 8897f6f | 2005-08-30 22:44:29 +0000 | [diff] [blame] | 524 | optimizer.html \ |
drh | f6ac657 | 2005-08-31 01:49:59 +0000 | [diff] [blame] | 525 | optoverview.html \ |
danielk1977 | 2a03c3a | 2004-11-10 05:48:57 +0000 | [diff] [blame] | 526 | pragma.html \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 527 | quickstart.html \ |
danielk1977 | da18423 | 2006-01-05 11:34:32 +0000 | [diff] [blame] | 528 | sharedcache.html \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 529 | speed.html \ |
| 530 | sqlite.html \ |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 531 | support.html \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 532 | tclsqlite.html \ |
drh | a285422 | 2004-06-17 19:04:17 +0000 | [diff] [blame] | 533 | vdbe.html \ |
drh | e425464 | 2005-01-21 18:19:27 +0000 | [diff] [blame] | 534 | version3.html \ |
drh | 50d3f90 | 2007-08-27 21:10:36 +0000 | [diff] [blame] | 535 | whentouse.html \ |
| 536 | 34to35.html |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 537 | |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 538 | docdir: |
drh | 90ca975 | 2001-09-28 17:47:14 +0000 | [diff] [blame] | 539 | mkdir -p doc |
danielk1977 | e6a58a4 | 2007-08-31 17:42:48 +0000 | [diff] [blame] | 540 | |
| 541 | doc: common.tcl $(DOC) docdir |
drh | 90ca975 | 2001-09-28 17:47:14 +0000 | [diff] [blame] | 542 | mv $(DOC) doc |
drh | 8897f6f | 2005-08-30 22:44:29 +0000 | [diff] [blame] | 543 | cp $(TOP)/www/*.gif $(TOP)/art/*.gif doc |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 544 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 545 | # Standard install and cleanup targets |
| 546 | # |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 547 | install: sqlite3 libsqlite3.a sqlite3.h |
| 548 | mv sqlite3 /usr/bin |
| 549 | mv libsqlite3.a /usr/lib |
| 550 | mv sqlite3.h /usr/include |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 551 | |
| 552 | clean: |
drh | 9c06c95 | 2005-11-26 00:25:00 +0000 | [diff] [blame] | 553 | rm -f *.o sqlite3 libsqlite3.a sqlite3.h opcodes.* |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 554 | rm -f lemon lempar.c parse.* sqlite*.tar.gz mkkeywordhash keywordhash.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 555 | rm -f $(PUBLISH) |
| 556 | rm -f *.da *.bb *.bbg gmon.out |
| 557 | rm -rf tsrc |
drh | f80ad49 | 2006-09-02 22:14:59 +0000 | [diff] [blame] | 558 | rm -f testloadext.dll libtestloadext.so |