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