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 | # |
| 45 | # ENCODING "UTF8" or "ISO8859" |
| 46 | # |
| 47 | # Once the macros above are defined, the rest of this make script will |
| 48 | # build the SQLite library and testing tools. |
| 49 | ################################################################################ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 50 | |
| 51 | # This is how we compile |
| 52 | # |
drh | a297b5c | 2002-01-15 18:39:43 +0000 | [diff] [blame] | 53 | TCCX = $(TCC) $(OPTS) $(THREADSAFE) $(USLEEP) -I. -I$(TOP)/src |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 54 | |
| 55 | # Object files for the SQLite library. |
| 56 | # |
danielk1977 | fd9a0a4 | 2005-05-24 12:01:00 +0000 | [diff] [blame] | 57 | LIBOBJ+= alter.o attach.o auth.o btree.o build.o callback.o date.o delete.o \ |
drh | c11d4f9 | 2003-04-06 21:08:24 +0000 | [diff] [blame] | 58 | expr.o func.o hash.o insert.o \ |
drh | 0d47743 | 2005-01-16 20:47:40 +0000 | [diff] [blame] | 59 | main.o opcodes.o os_unix.o os_win.o \ |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 60 | pager.o parse.o pragma.o prepare.o printf.o random.o \ |
drh | 38f8271 | 2004-06-18 17:10:16 +0000 | [diff] [blame] | 61 | select.o table.o tclsqlite.o tokenize.o trigger.o \ |
| 62 | update.o util.o vacuum.o \ |
drh | eb2e176 | 2004-05-27 01:53:56 +0000 | [diff] [blame] | 63 | vdbe.o vdbeapi.o vdbeaux.o vdbemem.o \ |
danielk1977 | 2a02e33 | 2004-06-05 08:04:36 +0000 | [diff] [blame] | 64 | where.o utf.o legacy.o |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 65 | |
| 66 | # All of the source code files. |
| 67 | # |
| 68 | SRC = \ |
drh | d0e4a6c | 2005-02-15 20:47:57 +0000 | [diff] [blame] | 69 | $(TOP)/src/alter.c \ |
drh | c11d4f9 | 2003-04-06 21:08:24 +0000 | [diff] [blame] | 70 | $(TOP)/src/attach.c \ |
drh | ed6c867 | 2003-01-12 18:02:16 +0000 | [diff] [blame] | 71 | $(TOP)/src/auth.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 72 | $(TOP)/src/btree.c \ |
| 73 | $(TOP)/src/btree.h \ |
| 74 | $(TOP)/src/build.c \ |
danielk1977 | fd9a0a4 | 2005-05-24 12:01:00 +0000 | [diff] [blame] | 75 | $(TOP)/src/callback.c \ |
drh | 7014aff | 2003-11-01 01:53:53 +0000 | [diff] [blame] | 76 | $(TOP)/src/date.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 77 | $(TOP)/src/delete.c \ |
| 78 | $(TOP)/src/expr.c \ |
drh | dc04c58 | 2002-02-24 01:55:15 +0000 | [diff] [blame] | 79 | $(TOP)/src/func.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 80 | $(TOP)/src/hash.c \ |
| 81 | $(TOP)/src/hash.h \ |
| 82 | $(TOP)/src/insert.c \ |
drh | 014ac19 | 2004-06-01 01:45:11 +0000 | [diff] [blame] | 83 | $(TOP)/src/legacy.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 84 | $(TOP)/src/main.c \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 85 | $(TOP)/src/os_unix.c \ |
| 86 | $(TOP)/src/os_win.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 87 | $(TOP)/src/pager.c \ |
| 88 | $(TOP)/src/pager.h \ |
| 89 | $(TOP)/src/parse.y \ |
drh | c11d4f9 | 2003-04-06 21:08:24 +0000 | [diff] [blame] | 90 | $(TOP)/src/pragma.c \ |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 91 | $(TOP)/src/prepare.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 92 | $(TOP)/src/printf.c \ |
| 93 | $(TOP)/src/random.c \ |
| 94 | $(TOP)/src/select.c \ |
| 95 | $(TOP)/src/shell.c \ |
| 96 | $(TOP)/src/sqlite.h.in \ |
| 97 | $(TOP)/src/sqliteInt.h \ |
| 98 | $(TOP)/src/table.c \ |
| 99 | $(TOP)/src/tclsqlite.c \ |
| 100 | $(TOP)/src/tokenize.c \ |
drh | dc37945 | 2002-05-15 12:45:43 +0000 | [diff] [blame] | 101 | $(TOP)/src/trigger.c \ |
drh | 1bbf5ee | 2004-05-11 01:18:24 +0000 | [diff] [blame] | 102 | $(TOP)/src/utf.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 103 | $(TOP)/src/update.c \ |
| 104 | $(TOP)/src/util.c \ |
drh | e1051c6 | 2003-04-06 20:52:32 +0000 | [diff] [blame] | 105 | $(TOP)/src/vacuum.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 106 | $(TOP)/src/vdbe.c \ |
| 107 | $(TOP)/src/vdbe.h \ |
drh | eb2e176 | 2004-05-27 01:53:56 +0000 | [diff] [blame] | 108 | $(TOP)/src/vdbeapi.c \ |
drh | 9a32464 | 2003-09-06 20:12:01 +0000 | [diff] [blame] | 109 | $(TOP)/src/vdbeaux.c \ |
drh | eb2e176 | 2004-05-27 01:53:56 +0000 | [diff] [blame] | 110 | $(TOP)/src/vdbemem.c \ |
drh | 9a32464 | 2003-09-06 20:12:01 +0000 | [diff] [blame] | 111 | $(TOP)/src/vdbeInt.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 112 | $(TOP)/src/where.c |
| 113 | |
| 114 | # Source code to the test files. |
| 115 | # |
drh | b6f4148 | 2004-05-14 01:58:11 +0000 | [diff] [blame] | 116 | TESTSRC = \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 117 | $(TOP)/src/btree.c \ |
drh | 6c62608 | 2004-11-14 21:56:29 +0000 | [diff] [blame] | 118 | $(TOP)/src/date.c \ |
drh | 74587e5 | 2002-08-13 00:01:16 +0000 | [diff] [blame] | 119 | $(TOP)/src/func.c \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 120 | $(TOP)/src/os_unix.c \ |
| 121 | $(TOP)/src/os_win.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 122 | $(TOP)/src/pager.c \ |
drh | 998da3a | 2004-06-19 15:22:56 +0000 | [diff] [blame] | 123 | $(TOP)/src/pragma.c \ |
drh | 38f8271 | 2004-06-18 17:10:16 +0000 | [diff] [blame] | 124 | $(TOP)/src/printf.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 125 | $(TOP)/src/test1.c \ |
| 126 | $(TOP)/src/test2.c \ |
| 127 | $(TOP)/src/test3.c \ |
drh | a6064dc | 2003-12-19 02:52:05 +0000 | [diff] [blame] | 128 | $(TOP)/src/test4.c \ |
danielk1977 | 4adee20 | 2004-05-08 08:23:19 +0000 | [diff] [blame] | 129 | $(TOP)/src/test5.c \ |
drh | 38f8271 | 2004-06-18 17:10:16 +0000 | [diff] [blame] | 130 | $(TOP)/src/utf.c \ |
drh | ed6b3eb | 2004-09-08 21:12:50 +0000 | [diff] [blame] | 131 | $(TOP)/src/util.c \ |
drh | f603871 | 2004-02-08 18:07:34 +0000 | [diff] [blame] | 132 | $(TOP)/src/vdbe.c \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 133 | $(TOP)/src/md5.c |
| 134 | |
| 135 | # Header files used by all library source files. |
| 136 | # |
| 137 | HDR = \ |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 138 | sqlite3.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 139 | $(TOP)/src/btree.h \ |
| 140 | $(TOP)/src/hash.h \ |
drh | 8f619cc | 2002-09-08 00:04:50 +0000 | [diff] [blame] | 141 | opcodes.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 142 | $(TOP)/src/os.h \ |
drh | 014ac19 | 2004-06-01 01:45:11 +0000 | [diff] [blame] | 143 | $(TOP)/src/os_common.h \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 144 | $(TOP)/src/os_unix.h \ |
| 145 | $(TOP)/src/os_win.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 146 | $(TOP)/src/sqliteInt.h \ |
drh | 9a32464 | 2003-09-06 20:12:01 +0000 | [diff] [blame] | 147 | $(TOP)/src/vdbe.h \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 148 | parse.h |
| 149 | |
drh | 9a32464 | 2003-09-06 20:12:01 +0000 | [diff] [blame] | 150 | # Header files used by the VDBE submodule |
| 151 | # |
| 152 | VDBEHDR = \ |
| 153 | $(HDR) \ |
| 154 | $(TOP)/src/vdbeInt.h |
| 155 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 156 | # This is the default Makefile target. The objects listed here |
| 157 | # are what get build when you type just "make" with no arguments. |
| 158 | # |
drh | 97903fe | 2005-05-24 20:19:57 +0000 | [diff] [blame] | 159 | all: sqlite3.h libsqlite3.a sqlite3$(EXE) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 160 | |
| 161 | # Generate the file "last_change" which contains the date of change |
| 162 | # of the most recently modified source code file |
| 163 | # |
| 164 | last_change: $(SRC) |
| 165 | cat $(SRC) | grep '$$Id: ' | sort +4 | tail -1 \ |
| 166 | | awk '{print $$5,$$6}' >last_change |
| 167 | |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 168 | libsqlite3.a: $(LIBOBJ) |
| 169 | $(AR) libsqlite3.a $(LIBOBJ) |
| 170 | $(RANLIB) libsqlite3.a |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 171 | |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 172 | sqlite3$(EXE): $(TOP)/src/shell.c libsqlite3.a sqlite3.h |
| 173 | $(TCCX) $(READLINE_FLAGS) -o sqlite3$(EXE) $(TOP)/src/shell.c \ |
| 174 | libsqlite3.a $(LIBREADLINE) $(THREADLIB) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 175 | |
danielk1977 | 4adee20 | 2004-05-08 08:23:19 +0000 | [diff] [blame] | 176 | objects: $(LIBOBJ_ORIG) |
| 177 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 178 | # This target creates a directory named "tsrc" and fills it with |
| 179 | # copies of all of the C source code and header files needed to |
| 180 | # build on the target system. Some of the C source code and header |
| 181 | # files are automatically generated. This target takes care of |
| 182 | # all that automatic generation. |
| 183 | # |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 184 | target_source: $(SRC) $(VDBEHDR) opcodes.c keywordhash.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 185 | rm -rf tsrc |
| 186 | mkdir tsrc |
drh | 9a32464 | 2003-09-06 20:12:01 +0000 | [diff] [blame] | 187 | cp $(SRC) $(VDBEHDR) tsrc |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 188 | rm tsrc/sqlite.h.in tsrc/parse.y |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 189 | cp parse.c opcodes.c keywordhash.h tsrc |
drh | 4aec8b6 | 2004-08-28 16:19:00 +0000 | [diff] [blame] | 190 | cp $(TOP)/sqlite3.def tsrc |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 191 | |
| 192 | # Rules to build the LEMON compiler generator |
| 193 | # |
| 194 | lemon: $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c |
| 195 | $(BCC) -o lemon $(TOP)/tool/lemon.c |
| 196 | cp $(TOP)/tool/lempar.c . |
| 197 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 198 | # Rules to build individual files |
| 199 | # |
drh | d0e4a6c | 2005-02-15 20:47:57 +0000 | [diff] [blame] | 200 | alter.o: $(TOP)/src/alter.c $(HDR) |
| 201 | $(TCCX) -c $(TOP)/src/alter.c |
| 202 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 203 | attach.o: $(TOP)/src/attach.c $(HDR) |
| 204 | $(TCCX) -c $(TOP)/src/attach.c |
| 205 | |
| 206 | auth.o: $(TOP)/src/auth.c $(HDR) |
| 207 | $(TCCX) -c $(TOP)/src/auth.c |
| 208 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 209 | btree.o: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h |
| 210 | $(TCCX) -c $(TOP)/src/btree.c |
| 211 | |
| 212 | build.o: $(TOP)/src/build.c $(HDR) |
| 213 | $(TCCX) -c $(TOP)/src/build.c |
| 214 | |
danielk1977 | fd9a0a4 | 2005-05-24 12:01:00 +0000 | [diff] [blame] | 215 | callback.o: $(TOP)/src/callback.c $(HDR) |
| 216 | $(TCCX) -c $(TOP)/src/callback.c |
| 217 | |
drh | 7014aff | 2003-11-01 01:53:53 +0000 | [diff] [blame] | 218 | date.o: $(TOP)/src/date.c $(HDR) |
| 219 | $(TCCX) -c $(TOP)/src/date.c |
| 220 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 221 | delete.o: $(TOP)/src/delete.c $(HDR) |
| 222 | $(TCCX) -c $(TOP)/src/delete.c |
| 223 | |
| 224 | expr.o: $(TOP)/src/expr.c $(HDR) |
| 225 | $(TCCX) -c $(TOP)/src/expr.c |
| 226 | |
drh | dc04c58 | 2002-02-24 01:55:15 +0000 | [diff] [blame] | 227 | func.o: $(TOP)/src/func.c $(HDR) |
| 228 | $(TCCX) -c $(TOP)/src/func.c |
| 229 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 230 | hash.o: $(TOP)/src/hash.c $(HDR) |
| 231 | $(TCCX) -c $(TOP)/src/hash.c |
| 232 | |
| 233 | insert.o: $(TOP)/src/insert.c $(HDR) |
| 234 | $(TCCX) -c $(TOP)/src/insert.c |
| 235 | |
danielk1977 | 22322fd | 2004-05-25 23:35:17 +0000 | [diff] [blame] | 236 | legacy.o: $(TOP)/src/legacy.c $(HDR) |
| 237 | $(TCCX) -c $(TOP)/src/legacy.c |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 238 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 239 | main.o: $(TOP)/src/main.c $(HDR) |
| 240 | $(TCCX) -c $(TOP)/src/main.c |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 241 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 242 | pager.o: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h |
| 243 | $(TCCX) -c $(TOP)/src/pager.c |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 244 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 245 | opcodes.o: opcodes.c |
| 246 | $(TCCX) -c opcodes.c |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 247 | |
drh | b327f77 | 2004-10-06 15:03:57 +0000 | [diff] [blame] | 248 | opcodes.c: opcodes.h $(TOP)/mkopcodec.awk |
danielk1977 | dcd7c47 | 2005-01-07 01:56:17 +0000 | [diff] [blame] | 249 | sort -n -b +2 opcodes.h | awk -f $(TOP)/mkopcodec.awk >opcodes.c |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 250 | |
drh | f2bc013 | 2004-10-04 13:19:23 +0000 | [diff] [blame] | 251 | opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk |
drh | b327f77 | 2004-10-06 15:03:57 +0000 | [diff] [blame] | 252 | cat parse.h $(TOP)/src/vdbe.c | awk -f $(TOP)/mkopcodeh.awk >opcodes.h |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 253 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 254 | os_unix.o: $(TOP)/src/os_unix.c $(HDR) |
| 255 | $(TCCX) -c $(TOP)/src/os_unix.c |
| 256 | |
| 257 | os_win.o: $(TOP)/src/os_win.c $(HDR) |
| 258 | $(TCCX) -c $(TOP)/src/os_win.c |
| 259 | |
| 260 | parse.o: parse.c $(HDR) |
| 261 | $(TCCX) -c parse.c |
| 262 | |
| 263 | parse.h: parse.c |
| 264 | |
| 265 | parse.c: $(TOP)/src/parse.y lemon |
| 266 | cp $(TOP)/src/parse.y . |
drh | 27d258a | 2004-10-30 20:23:09 +0000 | [diff] [blame] | 267 | ./lemon $(OPTS) parse.y |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 268 | |
drh | c11d4f9 | 2003-04-06 21:08:24 +0000 | [diff] [blame] | 269 | pragma.o: $(TOP)/src/pragma.c $(HDR) |
| 270 | $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/pragma.c |
| 271 | |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 272 | prepare.o: $(TOP)/src/prepare.c $(HDR) |
| 273 | $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/prepare.c |
| 274 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 275 | printf.o: $(TOP)/src/printf.c $(HDR) |
| 276 | $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/printf.c |
| 277 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 278 | random.o: $(TOP)/src/random.c $(HDR) |
| 279 | $(TCCX) -c $(TOP)/src/random.c |
drh | c11d4f9 | 2003-04-06 21:08:24 +0000 | [diff] [blame] | 280 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 281 | select.o: $(TOP)/src/select.c $(HDR) |
| 282 | $(TCCX) -c $(TOP)/src/select.c |
drh | ed6c867 | 2003-01-12 18:02:16 +0000 | [diff] [blame] | 283 | |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 284 | sqlite3.h: $(TOP)/src/sqlite.h.in |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 285 | sed -e s/--VERS--/`cat ${TOP}/VERSION`/ \ |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 286 | -e s/--VERSION-NUMBER--/`cat ${TOP}/VERSION | sed 's/[^0-9]/ /g' | awk '{printf "%d%03d%03d",$$1,$$2,$$3}'`/ \ |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 287 | $(TOP)/src/sqlite.h.in >sqlite3.h |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 288 | |
| 289 | table.o: $(TOP)/src/table.c $(HDR) |
| 290 | $(TCCX) -c $(TOP)/src/table.c |
| 291 | |
| 292 | tclsqlite.o: $(TOP)/src/tclsqlite.c $(HDR) |
| 293 | $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/tclsqlite.c |
| 294 | |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 295 | tokenize.o: $(TOP)/src/tokenize.c keywordhash.h $(HDR) |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 296 | $(TCCX) -c $(TOP)/src/tokenize.c |
| 297 | |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 298 | keywordhash.h: $(TOP)/tool/mkkeywordhash.c |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 299 | $(BCC) -o mkkeywordhash $(OPTS) $(TOP)/tool/mkkeywordhash.c |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 300 | ./mkkeywordhash >keywordhash.h |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 301 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 302 | trigger.o: $(TOP)/src/trigger.c $(HDR) |
| 303 | $(TCCX) -c $(TOP)/src/trigger.c |
| 304 | |
| 305 | update.o: $(TOP)/src/update.c $(HDR) |
| 306 | $(TCCX) -c $(TOP)/src/update.c |
| 307 | |
| 308 | utf.o: $(TOP)/src/utf.c $(HDR) |
| 309 | $(TCCX) -c $(TOP)/src/utf.c |
| 310 | |
| 311 | util.o: $(TOP)/src/util.c $(HDR) |
| 312 | $(TCCX) -c $(TOP)/src/util.c |
| 313 | |
| 314 | vacuum.o: $(TOP)/src/vacuum.c $(HDR) |
| 315 | $(TCCX) -c $(TOP)/src/vacuum.c |
| 316 | |
| 317 | vdbe.o: $(TOP)/src/vdbe.c $(VDBEHDR) |
| 318 | $(TCCX) -c $(TOP)/src/vdbe.c |
| 319 | |
drh | eb2e176 | 2004-05-27 01:53:56 +0000 | [diff] [blame] | 320 | vdbeapi.o: $(TOP)/src/vdbeapi.c $(VDBEHDR) |
| 321 | $(TCCX) -c $(TOP)/src/vdbeapi.c |
| 322 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 323 | vdbeaux.o: $(TOP)/src/vdbeaux.c $(VDBEHDR) |
| 324 | $(TCCX) -c $(TOP)/src/vdbeaux.c |
| 325 | |
drh | eb2e176 | 2004-05-27 01:53:56 +0000 | [diff] [blame] | 326 | vdbemem.o: $(TOP)/src/vdbemem.c $(VDBEHDR) |
| 327 | $(TCCX) -c $(TOP)/src/vdbemem.c |
| 328 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 329 | where.o: $(TOP)/src/where.c $(HDR) |
| 330 | $(TCCX) -c $(TOP)/src/where.c |
| 331 | |
| 332 | # Rules for building test programs and for running tests |
| 333 | # |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 334 | tclsqlite3: $(TOP)/src/tclsqlite.c libsqlite3.a |
| 335 | $(TCCX) $(TCL_FLAGS) -DTCLSH=1 -o tclsqlite3 \ |
danielk1977 | bc6ada4 | 2004-06-30 08:20:16 +0000 | [diff] [blame] | 336 | $(TOP)/src/tclsqlite.c libsqlite3.a $(LIBTCL) $(THREADLIB) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 337 | |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 338 | testfixture$(EXE): $(TOP)/src/tclsqlite.c libsqlite3.a $(TESTSRC) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 339 | $(TCCX) $(TCL_FLAGS) -DTCLSH=1 -DSQLITE_TEST=1 -o testfixture$(EXE) \ |
| 340 | $(TESTSRC) $(TOP)/src/tclsqlite.c \ |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 341 | libsqlite3.a $(LIBTCL) $(THREADLIB) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 342 | |
danielk1977 | ece80f1 | 2004-06-23 01:05:26 +0000 | [diff] [blame] | 343 | crashtest: $(TOP)/src/tclsqlite.c libsqlite3.a $(TESTSRC) $(TOP)/src/os_test.c |
drh | 5260f7e | 2004-06-26 19:35:29 +0000 | [diff] [blame] | 344 | $(TCCX) $(TCL_FLAGS) -DOS_TEST=1 -DTCLSH=1 -DSQLITE_TEST=1 \ |
| 345 | -o crashtest \ |
danielk1977 | ece80f1 | 2004-06-23 01:05:26 +0000 | [diff] [blame] | 346 | $(TESTSRC) $(TOP)/src/os_test.c $(TOP)/src/tclsqlite.c \ |
danielk1977 | e302663 | 2004-06-22 11:29:02 +0000 | [diff] [blame] | 347 | libsqlite3.a $(LIBTCL) $(THREADLIB) |
| 348 | |
drh | 5260f7e | 2004-06-26 19:35:29 +0000 | [diff] [blame] | 349 | fulltest: testfixture$(EXE) sqlite3$(EXE) crashtest |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 350 | ./testfixture$(EXE) $(TOP)/test/all.test |
| 351 | |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 352 | test: testfixture$(EXE) sqlite3$(EXE) |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 353 | ./testfixture$(EXE) $(TOP)/test/quick.test |
| 354 | |
drh | 3e27c02 | 2004-07-23 00:01:38 +0000 | [diff] [blame] | 355 | sqlite3_analyzer$(EXE): $(TOP)/src/tclsqlite.c libsqlite3.a $(TESTSRC) \ |
| 356 | $(TOP)/tool/spaceanal.tcl |
| 357 | sed \ |
| 358 | -e '/^#/d' \ |
| 359 | -e 's,\\,\\\\,g' \ |
| 360 | -e 's,",\\",g' \ |
| 361 | -e 's,^,",' \ |
| 362 | -e 's,$$,\\n",' \ |
| 363 | $(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h |
danielk1977 | 2a03c3a | 2004-11-10 05:48:57 +0000 | [diff] [blame] | 364 | $(TCCX) $(TCL_FLAGS) -DTCLSH=2 -DSQLITE_TEST=1 -o \ |
drh | 3e27c02 | 2004-07-23 00:01:38 +0000 | [diff] [blame] | 365 | sqlite3_analyzer$(EXE) $(TESTSRC) $(TOP)/src/tclsqlite.c \ |
| 366 | libsqlite3.a $(LIBTCL) $(THREADLIB) |
| 367 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 368 | # Rules used to build documentation |
| 369 | # |
| 370 | arch.html: $(TOP)/www/arch.tcl |
| 371 | tclsh $(TOP)/www/arch.tcl >arch.html |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 372 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 373 | arch.png: $(TOP)/www/arch.png |
| 374 | cp $(TOP)/www/arch.png . |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 375 | |
drh | 6eb8577 | 2005-06-15 18:07:39 +0000 | [diff] [blame^] | 376 | arch2.gif: $(TOP)/www/arch2.gif |
| 377 | cp $(TOP)/www/arch2.gif . |
| 378 | |
drh | f856582 | 2004-11-21 01:02:00 +0000 | [diff] [blame] | 379 | autoinc.html: $(TOP)/www/autoinc.tcl |
| 380 | tclsh $(TOP)/www/autoinc.tcl >autoinc.html |
| 381 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 382 | c_interface.html: $(TOP)/www/c_interface.tcl |
| 383 | tclsh $(TOP)/www/c_interface.tcl >c_interface.html |
| 384 | |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 385 | capi3.html: $(TOP)/www/capi3.tcl |
| 386 | tclsh $(TOP)/www/capi3.tcl >capi3.html |
| 387 | |
drh | 93db69e | 2004-06-01 01:22:37 +0000 | [diff] [blame] | 388 | capi3ref.html: $(TOP)/www/capi3ref.tcl |
| 389 | tclsh $(TOP)/www/capi3ref.tcl >capi3ref.html |
| 390 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 391 | changes.html: $(TOP)/www/changes.tcl |
| 392 | tclsh $(TOP)/www/changes.tcl >changes.html |
| 393 | |
drh | f856582 | 2004-11-21 01:02:00 +0000 | [diff] [blame] | 394 | compile.html: $(TOP)/www/compile.tcl |
| 395 | tclsh $(TOP)/www/compile.tcl >compile.html |
| 396 | |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 397 | copyright.html: $(TOP)/www/copyright.tcl |
| 398 | tclsh $(TOP)/www/copyright.tcl >copyright.html |
| 399 | |
| 400 | copyright-release.html: $(TOP)/www/copyright-release.html |
| 401 | cp $(TOP)/www/copyright-release.html . |
| 402 | |
| 403 | copyright-release.pdf: $(TOP)/www/copyright-release.pdf |
| 404 | cp $(TOP)/www/copyright-release.pdf . |
| 405 | |
| 406 | common.tcl: $(TOP)/www/common.tcl |
| 407 | cp $(TOP)/www/common.tcl . |
| 408 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 409 | conflict.html: $(TOP)/www/conflict.tcl |
| 410 | tclsh $(TOP)/www/conflict.tcl >conflict.html |
| 411 | |
| 412 | datatypes.html: $(TOP)/www/datatypes.tcl |
| 413 | tclsh $(TOP)/www/datatypes.tcl >datatypes.html |
| 414 | |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 415 | datatype3.html: $(TOP)/www/datatype3.tcl |
| 416 | tclsh $(TOP)/www/datatype3.tcl >datatype3.html |
| 417 | |
drh | 9179fd9 | 2005-03-12 15:55:10 +0000 | [diff] [blame] | 418 | different.html: $(TOP)/www/different.tcl |
| 419 | tclsh $(TOP)/www/different.tcl >different.html |
| 420 | |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 421 | docs.html: $(TOP)/www/docs.tcl |
| 422 | tclsh $(TOP)/www/docs.tcl >docs.html |
| 423 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 424 | download.html: $(TOP)/www/download.tcl |
danielk1977 | cf991b3 | 2004-06-24 01:30:44 +0000 | [diff] [blame] | 425 | mkdir -p doc |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 426 | tclsh $(TOP)/www/download.tcl >download.html |
| 427 | |
| 428 | faq.html: $(TOP)/www/faq.tcl |
| 429 | tclsh $(TOP)/www/faq.tcl >faq.html |
| 430 | |
| 431 | fileformat.html: $(TOP)/www/fileformat.tcl |
| 432 | tclsh $(TOP)/www/fileformat.tcl >fileformat.html |
| 433 | |
| 434 | formatchng.html: $(TOP)/www/formatchng.tcl |
| 435 | tclsh $(TOP)/www/formatchng.tcl >formatchng.html |
| 436 | |
| 437 | index.html: $(TOP)/www/index.tcl last_change |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 438 | tclsh $(TOP)/www/index.tcl >index.html |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 439 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 440 | lang.html: $(TOP)/www/lang.tcl |
danielk1977 | cd45ab2 | 2004-11-19 11:59:23 +0000 | [diff] [blame] | 441 | tclsh $(TOP)/www/lang.tcl doc >lang.html |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 442 | |
danielk1977 | 2a03c3a | 2004-11-10 05:48:57 +0000 | [diff] [blame] | 443 | pragma.html: $(TOP)/www/pragma.tcl |
| 444 | tclsh $(TOP)/www/pragma.tcl >pragma.html |
| 445 | |
drh | 52619df | 2004-06-11 17:48:02 +0000 | [diff] [blame] | 446 | lockingv3.html: $(TOP)/www/lockingv3.tcl |
| 447 | tclsh $(TOP)/www/lockingv3.tcl >lockingv3.html |
| 448 | |
drh | 7b93ed3 | 2004-06-16 03:02:00 +0000 | [diff] [blame] | 449 | oldnews.html: $(TOP)/www/oldnews.tcl |
| 450 | tclsh $(TOP)/www/oldnews.tcl >oldnews.html |
| 451 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 452 | omitted.html: $(TOP)/www/omitted.tcl |
| 453 | tclsh $(TOP)/www/omitted.tcl >omitted.html |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 454 | |
| 455 | opcode.html: $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c |
| 456 | tclsh $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c >opcode.html |
| 457 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 458 | mingw.html: $(TOP)/www/mingw.tcl |
| 459 | tclsh $(TOP)/www/mingw.tcl >mingw.html |
| 460 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 461 | nulls.html: $(TOP)/www/nulls.tcl |
| 462 | tclsh $(TOP)/www/nulls.tcl >nulls.html |
drh | fbe4375 | 2002-08-14 00:08:12 +0000 | [diff] [blame] | 463 | |
drh | c277413 | 2002-08-15 13:45:17 +0000 | [diff] [blame] | 464 | quickstart.html: $(TOP)/www/quickstart.tcl |
| 465 | tclsh $(TOP)/www/quickstart.tcl >quickstart.html |
| 466 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 467 | speed.html: $(TOP)/www/speed.tcl |
| 468 | tclsh $(TOP)/www/speed.tcl >speed.html |
drh | d8acdb3 | 2002-08-18 19:09:22 +0000 | [diff] [blame] | 469 | |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 470 | sqlite.gif: $(TOP)/art/SQLite.gif |
| 471 | cp $(TOP)/art/SQLite.gif sqlite.gif |
| 472 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 473 | sqlite.html: $(TOP)/www/sqlite.tcl |
| 474 | tclsh $(TOP)/www/sqlite.tcl >sqlite.html |
| 475 | |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 476 | support.html: $(TOP)/www/support.tcl |
| 477 | tclsh $(TOP)/www/support.tcl >support.html |
| 478 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 479 | tclsqlite.html: $(TOP)/www/tclsqlite.tcl |
| 480 | tclsh $(TOP)/www/tclsqlite.tcl >tclsqlite.html |
| 481 | |
| 482 | vdbe.html: $(TOP)/www/vdbe.tcl |
| 483 | tclsh $(TOP)/www/vdbe.tcl >vdbe.html |
drh | 96f4531 | 2002-09-02 14:11:02 +0000 | [diff] [blame] | 484 | |
drh | a285422 | 2004-06-17 19:04:17 +0000 | [diff] [blame] | 485 | version3.html: $(TOP)/www/version3.tcl |
| 486 | tclsh $(TOP)/www/version3.tcl >version3.html |
| 487 | |
drh | e425464 | 2005-01-21 18:19:27 +0000 | [diff] [blame] | 488 | whentouse.html: $(TOP)/www/whentouse.tcl |
| 489 | tclsh $(TOP)/www/whentouse.tcl >whentouse.html |
| 490 | |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 491 | |
| 492 | # Files to be published on the website. |
| 493 | # |
drh | 90ca975 | 2001-09-28 17:47:14 +0000 | [diff] [blame] | 494 | DOC = \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 495 | arch.html \ |
| 496 | arch.png \ |
drh | 6eb8577 | 2005-06-15 18:07:39 +0000 | [diff] [blame^] | 497 | arch2.gif \ |
drh | f856582 | 2004-11-21 01:02:00 +0000 | [diff] [blame] | 498 | autoinc.html \ |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 499 | c_interface.html \ |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 500 | capi3.html \ |
drh | 93db69e | 2004-06-01 01:22:37 +0000 | [diff] [blame] | 501 | capi3ref.html \ |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 502 | changes.html \ |
drh | f856582 | 2004-11-21 01:02:00 +0000 | [diff] [blame] | 503 | compile.html \ |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 504 | copyright.html \ |
| 505 | copyright-release.html \ |
| 506 | copyright-release.pdf \ |
drh | 7680032 | 2002-08-13 20:45:39 +0000 | [diff] [blame] | 507 | conflict.html \ |
drh | c277413 | 2002-08-15 13:45:17 +0000 | [diff] [blame] | 508 | datatypes.html \ |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 509 | datatype3.html \ |
drh | 9179fd9 | 2005-03-12 15:55:10 +0000 | [diff] [blame] | 510 | different.html \ |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 511 | docs.html \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 512 | download.html \ |
| 513 | faq.html \ |
drh | 96f4531 | 2002-09-02 14:11:02 +0000 | [diff] [blame] | 514 | fileformat.html \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 515 | formatchng.html \ |
| 516 | index.html \ |
| 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 \ |
danielk1977 | 2a03c3a | 2004-11-10 05:48:57 +0000 | [diff] [blame] | 524 | pragma.html \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 525 | quickstart.html \ |
| 526 | speed.html \ |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 527 | sqlite.gif \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 528 | sqlite.html \ |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 529 | support.html \ |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 530 | tclsqlite.html \ |
drh | a285422 | 2004-06-17 19:04:17 +0000 | [diff] [blame] | 531 | vdbe.html \ |
drh | e425464 | 2005-01-21 18:19:27 +0000 | [diff] [blame] | 532 | version3.html \ |
| 533 | whentouse.html |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 534 | |
drh | d4acf19 | 2004-05-31 16:04:08 +0000 | [diff] [blame] | 535 | doc: common.tcl $(DOC) |
drh | 90ca975 | 2001-09-28 17:47:14 +0000 | [diff] [blame] | 536 | mkdir -p doc |
| 537 | mv $(DOC) doc |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 538 | |
drh | bbd42a6 | 2004-05-22 17:41:58 +0000 | [diff] [blame] | 539 | # Standard install and cleanup targets |
| 540 | # |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 541 | install: sqlite3 libsqlite3.a sqlite3.h |
| 542 | mv sqlite3 /usr/bin |
| 543 | mv libsqlite3.a /usr/lib |
| 544 | mv sqlite3.h /usr/include |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 545 | |
| 546 | clean: |
drh | 1d482dd | 2004-05-31 18:23:07 +0000 | [diff] [blame] | 547 | rm -f *.o sqlite3 libsqlite3.a sqlite3.h opcodes.* |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 548 | rm -f lemon lempar.c parse.* sqlite*.tar.gz mkkeywordhash keywordhash.h |
drh | 71eb93e | 2001-09-28 01:34:43 +0000 | [diff] [blame] | 549 | rm -f $(PUBLISH) |
| 550 | rm -f *.da *.bb *.bbg gmon.out |
| 551 | rm -rf tsrc |