Bump version in cipher_version test
[sqlcipher.git] / main.mk
blobd3450a63cbf9ae02e95f104bf9222d4724376d55
1 ###############################################################################
2 # The following macros should be defined before this script is
3 # invoked:
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.
9 # BCC C Compiler and options for use in building executables that
10 # will run on the platform that is doing the build.
12 # THREADLIB Specify any extra linker options needed to make the library
13 # thread safe
15 # LIBS Extra libraries options
17 # OPTS Extra compiler command-line options.
19 # EXE The suffix to add to executable files. ".exe" for windows
20 # and "" for Unix.
22 # TCC C Compiler and options for use in building executables that
23 # will run on the target platform. This is usually the same
24 # as BCC, unless you are cross-compiling.
26 # AR Tools used to build a static library.
27 # RANLIB
29 # TCL_FLAGS Extra compiler options needed for programs that use the
30 # TCL library.
32 # LIBTCL Linker options needed to link against the TCL library.
34 # READLINE_FLAGS Compiler options needed for programs that use the
35 # readline() library.
37 # LIBREADLINE Linker options needed by programs using readline() must
38 # link against.
40 # Once the macros above are defined, the rest of this make script will
41 # build the SQLite library and testing tools.
42 ################################################################################
44 # This is how we compile
46 TCCX = $(TCC) $(OPTS) -I. -I$(TOP)/src -I$(TOP)
47 TCCX += -I$(TOP)/ext/rtree -I$(TOP)/ext/icu -I$(TOP)/ext/fts3
48 TCCX += -I$(TOP)/ext/async -I$(TOP)/ext/userauth
49 TCCX += -I$(TOP)/ext/session
50 TCCX += -I$(TOP)/ext/fts5
51 THREADLIB += $(LIBS)
53 # Object files for the SQLite library.
55 LIBOBJ+= vdbe.o parse.o \
56 alter.o analyze.o attach.o auth.o \
57 backup.o bitvec.o btmutex.o btree.o build.o \
58 callback.o complete.o ctime.o date.o dbstat.o delete.o expr.o \
59 fault.o fkey.o \
60 fts3.o fts3_aux.o fts3_expr.o fts3_hash.o fts3_icu.o fts3_porter.o \
61 fts3_snippet.o fts3_tokenizer.o fts3_tokenizer1.o \
62 fts3_tokenize_vtab.o \
63 fts3_unicode.o fts3_unicode2.o \
64 fts3_write.o fts5.o func.o global.o hash.o \
65 icu.o insert.o json1.o legacy.o loadext.o \
66 main.o malloc.o mem0.o mem1.o mem2.o mem3.o mem5.o \
67 memjournal.o \
68 mutex.o mutex_noop.o mutex_unix.o mutex_w32.o \
69 notify.o opcodes.o os.o os_unix.o os_win.o \
70 pager.o pcache.o pcache1.o pragma.o prepare.o printf.o \
71 random.o resolve.o rowset.o rtree.o \
72 select.o sqlite3rbu.o status.o stmt.o \
73 table.o threads.o tokenize.o treeview.o trigger.o \
74 update.o userauth.o util.o vacuum.o \
75 vdbeapi.o vdbeaux.o vdbeblob.o vdbemem.o vdbesort.o \
76 vdbetrace.o wal.o walker.o where.o wherecode.o whereexpr.o \
77 utf.o vtab.o
79 LIBOBJ += sqlite3session.o
81 # All of the source code files.
83 SRC = \
84 $(TOP)/src/alter.c \
85 $(TOP)/src/analyze.c \
86 $(TOP)/src/attach.c \
87 $(TOP)/src/auth.c \
88 $(TOP)/src/backup.c \
89 $(TOP)/src/bitvec.c \
90 $(TOP)/src/btmutex.c \
91 $(TOP)/src/btree.c \
92 $(TOP)/src/btree.h \
93 $(TOP)/src/btreeInt.h \
94 $(TOP)/src/build.c \
95 $(TOP)/src/callback.c \
96 $(TOP)/src/complete.c \
97 $(TOP)/src/ctime.c \
98 $(TOP)/src/date.c \
99 $(TOP)/src/dbstat.c \
100 $(TOP)/src/delete.c \
101 $(TOP)/src/expr.c \
102 $(TOP)/src/fault.c \
103 $(TOP)/src/fkey.c \
104 $(TOP)/src/func.c \
105 $(TOP)/src/global.c \
106 $(TOP)/src/hash.c \
107 $(TOP)/src/hash.h \
108 $(TOP)/src/hwtime.h \
109 $(TOP)/src/insert.c \
110 $(TOP)/src/legacy.c \
111 $(TOP)/src/loadext.c \
112 $(TOP)/src/main.c \
113 $(TOP)/src/malloc.c \
114 $(TOP)/src/mem0.c \
115 $(TOP)/src/mem1.c \
116 $(TOP)/src/mem2.c \
117 $(TOP)/src/mem3.c \
118 $(TOP)/src/mem5.c \
119 $(TOP)/src/memjournal.c \
120 $(TOP)/src/msvc.h \
121 $(TOP)/src/mutex.c \
122 $(TOP)/src/mutex.h \
123 $(TOP)/src/mutex_noop.c \
124 $(TOP)/src/mutex_unix.c \
125 $(TOP)/src/mutex_w32.c \
126 $(TOP)/src/notify.c \
127 $(TOP)/src/os.c \
128 $(TOP)/src/os.h \
129 $(TOP)/src/os_common.h \
130 $(TOP)/src/os_setup.h \
131 $(TOP)/src/os_unix.c \
132 $(TOP)/src/os_win.c \
133 $(TOP)/src/os_win.h \
134 $(TOP)/src/pager.c \
135 $(TOP)/src/pager.h \
136 $(TOP)/src/parse.y \
137 $(TOP)/src/pcache.c \
138 $(TOP)/src/pcache.h \
139 $(TOP)/src/pcache1.c \
140 $(TOP)/src/pragma.c \
141 $(TOP)/src/pragma.h \
142 $(TOP)/src/prepare.c \
143 $(TOP)/src/printf.c \
144 $(TOP)/src/random.c \
145 $(TOP)/src/resolve.c \
146 $(TOP)/src/rowset.c \
147 $(TOP)/src/select.c \
148 $(TOP)/src/status.c \
149 $(TOP)/src/shell.c \
150 $(TOP)/src/sqlite.h.in \
151 $(TOP)/src/sqlite3ext.h \
152 $(TOP)/src/sqliteInt.h \
153 $(TOP)/src/sqliteLimit.h \
154 $(TOP)/src/table.c \
155 $(TOP)/src/tclsqlite.c \
156 $(TOP)/src/threads.c \
157 $(TOP)/src/tokenize.c \
158 $(TOP)/src/treeview.c \
159 $(TOP)/src/trigger.c \
160 $(TOP)/src/utf.c \
161 $(TOP)/src/update.c \
162 $(TOP)/src/util.c \
163 $(TOP)/src/vacuum.c \
164 $(TOP)/src/vdbe.c \
165 $(TOP)/src/vdbe.h \
166 $(TOP)/src/vdbeapi.c \
167 $(TOP)/src/vdbeaux.c \
168 $(TOP)/src/vdbeblob.c \
169 $(TOP)/src/vdbemem.c \
170 $(TOP)/src/vdbesort.c \
171 $(TOP)/src/vdbetrace.c \
172 $(TOP)/src/vdbeInt.h \
173 $(TOP)/src/vtab.c \
174 $(TOP)/src/vxworks.h \
175 $(TOP)/src/wal.c \
176 $(TOP)/src/wal.h \
177 $(TOP)/src/walker.c \
178 $(TOP)/src/where.c \
179 $(TOP)/src/wherecode.c \
180 $(TOP)/src/whereexpr.c \
181 $(TOP)/src/whereInt.h
183 # Source code for extensions
185 SRC += \
186 $(TOP)/ext/fts1/fts1.c \
187 $(TOP)/ext/fts1/fts1.h \
188 $(TOP)/ext/fts1/fts1_hash.c \
189 $(TOP)/ext/fts1/fts1_hash.h \
190 $(TOP)/ext/fts1/fts1_porter.c \
191 $(TOP)/ext/fts1/fts1_tokenizer.h \
192 $(TOP)/ext/fts1/fts1_tokenizer1.c
193 SRC += \
194 $(TOP)/ext/fts2/fts2.c \
195 $(TOP)/ext/fts2/fts2.h \
196 $(TOP)/ext/fts2/fts2_hash.c \
197 $(TOP)/ext/fts2/fts2_hash.h \
198 $(TOP)/ext/fts2/fts2_icu.c \
199 $(TOP)/ext/fts2/fts2_porter.c \
200 $(TOP)/ext/fts2/fts2_tokenizer.h \
201 $(TOP)/ext/fts2/fts2_tokenizer.c \
202 $(TOP)/ext/fts2/fts2_tokenizer1.c
203 SRC += \
204 $(TOP)/ext/fts3/fts3.c \
205 $(TOP)/ext/fts3/fts3.h \
206 $(TOP)/ext/fts3/fts3Int.h \
207 $(TOP)/ext/fts3/fts3_aux.c \
208 $(TOP)/ext/fts3/fts3_expr.c \
209 $(TOP)/ext/fts3/fts3_hash.c \
210 $(TOP)/ext/fts3/fts3_hash.h \
211 $(TOP)/ext/fts3/fts3_icu.c \
212 $(TOP)/ext/fts3/fts3_porter.c \
213 $(TOP)/ext/fts3/fts3_snippet.c \
214 $(TOP)/ext/fts3/fts3_tokenizer.h \
215 $(TOP)/ext/fts3/fts3_tokenizer.c \
216 $(TOP)/ext/fts3/fts3_tokenizer1.c \
217 $(TOP)/ext/fts3/fts3_tokenize_vtab.c \
218 $(TOP)/ext/fts3/fts3_unicode.c \
219 $(TOP)/ext/fts3/fts3_unicode2.c \
220 $(TOP)/ext/fts3/fts3_write.c
221 SRC += \
222 $(TOP)/ext/icu/sqliteicu.h \
223 $(TOP)/ext/icu/icu.c
224 SRC += \
225 $(TOP)/ext/rtree/sqlite3rtree.h \
226 $(TOP)/ext/rtree/rtree.h \
227 $(TOP)/ext/rtree/rtree.c
228 SRC += \
229 $(TOP)/ext/session/sqlite3session.c \
230 $(TOP)/ext/session/sqlite3session.h
231 SRC += \
232 $(TOP)/ext/userauth/userauth.c \
233 $(TOP)/ext/userauth/sqlite3userauth.h
234 SRC += \
235 $(TOP)/ext/rbu/sqlite3rbu.c \
236 $(TOP)/ext/rbu/sqlite3rbu.h
237 SRC += \
238 $(TOP)/ext/misc/json1.c \
239 $(TOP)/ext/misc/stmt.c
242 # FTS5 things
244 FTS5_HDR = \
245 $(TOP)/ext/fts5/fts5.h \
246 $(TOP)/ext/fts5/fts5Int.h \
247 fts5parse.h
249 FTS5_SRC = \
250 $(TOP)/ext/fts5/fts5_aux.c \
251 $(TOP)/ext/fts5/fts5_buffer.c \
252 $(TOP)/ext/fts5/fts5_main.c \
253 $(TOP)/ext/fts5/fts5_config.c \
254 $(TOP)/ext/fts5/fts5_expr.c \
255 $(TOP)/ext/fts5/fts5_hash.c \
256 $(TOP)/ext/fts5/fts5_index.c \
257 fts5parse.c \
258 $(TOP)/ext/fts5/fts5_storage.c \
259 $(TOP)/ext/fts5/fts5_tokenize.c \
260 $(TOP)/ext/fts5/fts5_unicode2.c \
261 $(TOP)/ext/fts5/fts5_varint.c \
262 $(TOP)/ext/fts5/fts5_vocab.c \
265 # Generated source code files
267 SRC += \
268 keywordhash.h \
269 opcodes.c \
270 opcodes.h \
271 parse.c \
272 parse.h \
273 sqlite3.h
276 # Source code to the test files.
278 TESTSRC = \
279 $(TOP)/ext/fts3/fts3_term.c \
280 $(TOP)/ext/fts3/fts3_test.c \
281 $(TOP)/ext/rbu/test_rbu.c \
282 $(TOP)/src/test1.c \
283 $(TOP)/src/test2.c \
284 $(TOP)/src/test3.c \
285 $(TOP)/src/test4.c \
286 $(TOP)/src/test5.c \
287 $(TOP)/src/test6.c \
288 $(TOP)/src/test7.c \
289 $(TOP)/src/test8.c \
290 $(TOP)/src/test9.c \
291 $(TOP)/src/test_autoext.c \
292 $(TOP)/src/test_async.c \
293 $(TOP)/src/test_backup.c \
294 $(TOP)/src/test_bestindex.c \
295 $(TOP)/src/test_blob.c \
296 $(TOP)/src/test_btree.c \
297 $(TOP)/src/test_config.c \
298 $(TOP)/src/test_delete.c \
299 $(TOP)/src/test_demovfs.c \
300 $(TOP)/src/test_devsym.c \
301 $(TOP)/src/test_fs.c \
302 $(TOP)/src/test_func.c \
303 $(TOP)/src/test_hexio.c \
304 $(TOP)/src/test_init.c \
305 $(TOP)/src/test_intarray.c \
306 $(TOP)/src/test_journal.c \
307 $(TOP)/src/test_malloc.c \
308 $(TOP)/src/test_multiplex.c \
309 $(TOP)/src/test_mutex.c \
310 $(TOP)/src/test_onefile.c \
311 $(TOP)/src/test_osinst.c \
312 $(TOP)/src/test_pcache.c \
313 $(TOP)/src/test_quota.c \
314 $(TOP)/src/test_rtree.c \
315 $(TOP)/src/test_schema.c \
316 $(TOP)/src/test_server.c \
317 $(TOP)/src/test_sqllog.c \
318 $(TOP)/src/test_superlock.c \
319 $(TOP)/src/test_syscall.c \
320 $(TOP)/src/test_tclvar.c \
321 $(TOP)/src/test_thread.c \
322 $(TOP)/src/test_vfs.c \
323 $(TOP)/src/test_windirent.c \
324 $(TOP)/src/test_wsd.c
326 # Extensions to be statically loaded.
328 TESTSRC += \
329 $(TOP)/ext/misc/amatch.c \
330 $(TOP)/ext/misc/carray.c \
331 $(TOP)/ext/misc/closure.c \
332 $(TOP)/ext/misc/csv.c \
333 $(TOP)/ext/misc/eval.c \
334 $(TOP)/ext/misc/fileio.c \
335 $(TOP)/ext/misc/fuzzer.c \
336 $(TOP)/ext/misc/ieee754.c \
337 $(TOP)/ext/misc/nextchar.c \
338 $(TOP)/ext/misc/percentile.c \
339 $(TOP)/ext/misc/regexp.c \
340 $(TOP)/ext/misc/remember.c \
341 $(TOP)/ext/misc/series.c \
342 $(TOP)/ext/misc/spellfix.c \
343 $(TOP)/ext/misc/totype.c \
344 $(TOP)/ext/misc/unionvtab.c \
345 $(TOP)/ext/misc/wholenumber.c \
346 $(TOP)/ext/misc/vfslog.c \
347 $(TOP)/ext/fts5/fts5_tcl.c \
348 $(TOP)/ext/fts5/fts5_test_mi.c \
349 $(TOP)/ext/fts5/fts5_test_tok.c
352 #TESTSRC += $(TOP)/ext/fts2/fts2_tokenizer.c
353 #TESTSRC += $(TOP)/ext/fts3/fts3_tokenizer.c
355 TESTSRC2 = \
356 $(TOP)/src/attach.c \
357 $(TOP)/src/backup.c \
358 $(TOP)/src/btree.c \
359 $(TOP)/src/build.c \
360 $(TOP)/src/date.c \
361 $(TOP)/src/dbstat.c \
362 $(TOP)/src/expr.c \
363 $(TOP)/src/func.c \
364 $(TOP)/src/insert.c \
365 $(TOP)/src/wal.c \
366 $(TOP)/src/main.c \
367 $(TOP)/src/mem5.c \
368 $(TOP)/src/os.c \
369 $(TOP)/src/os_unix.c \
370 $(TOP)/src/os_win.c \
371 $(TOP)/src/pager.c \
372 $(TOP)/src/pragma.c \
373 $(TOP)/src/prepare.c \
374 $(TOP)/src/printf.c \
375 $(TOP)/src/random.c \
376 $(TOP)/src/pcache.c \
377 $(TOP)/src/pcache1.c \
378 $(TOP)/src/select.c \
379 $(TOP)/src/threads.c \
380 $(TOP)/src/tokenize.c \
381 $(TOP)/src/utf.c \
382 $(TOP)/src/util.c \
383 $(TOP)/src/vdbeapi.c \
384 $(TOP)/src/vdbeaux.c \
385 $(TOP)/src/vdbe.c \
386 $(TOP)/src/vdbemem.c \
387 $(TOP)/src/where.c \
388 $(TOP)/src/wherecode.c \
389 $(TOP)/src/whereexpr.c \
390 parse.c \
391 $(TOP)/ext/fts3/fts3.c \
392 $(TOP)/ext/fts3/fts3_aux.c \
393 $(TOP)/ext/fts3/fts3_expr.c \
394 $(TOP)/ext/fts3/fts3_tokenizer.c \
395 $(TOP)/ext/fts3/fts3_write.c \
396 $(TOP)/ext/async/sqlite3async.c \
397 $(TOP)/ext/session/sqlite3session.c \
398 $(TOP)/ext/session/test_session.c
400 # Header files used by all library source files.
402 HDR = \
403 $(TOP)/src/btree.h \
404 $(TOP)/src/btreeInt.h \
405 $(TOP)/src/hash.h \
406 $(TOP)/src/hwtime.h \
407 keywordhash.h \
408 $(TOP)/src/msvc.h \
409 $(TOP)/src/mutex.h \
410 opcodes.h \
411 $(TOP)/src/os.h \
412 $(TOP)/src/os_common.h \
413 $(TOP)/src/os_setup.h \
414 $(TOP)/src/os_win.h \
415 $(TOP)/src/pager.h \
416 $(TOP)/src/pcache.h \
417 parse.h \
418 $(TOP)/src/pragma.h \
419 sqlite3.h \
420 $(TOP)/src/sqlite3ext.h \
421 $(TOP)/src/sqliteInt.h \
422 $(TOP)/src/sqliteLimit.h \
423 $(TOP)/src/vdbe.h \
424 $(TOP)/src/vdbeInt.h \
425 $(TOP)/src/vxworks.h \
426 $(TOP)/src/whereInt.h
428 # Header files used by extensions
430 EXTHDR += \
431 $(TOP)/ext/fts1/fts1.h \
432 $(TOP)/ext/fts1/fts1_hash.h \
433 $(TOP)/ext/fts1/fts1_tokenizer.h
434 EXTHDR += \
435 $(TOP)/ext/fts2/fts2.h \
436 $(TOP)/ext/fts2/fts2_hash.h \
437 $(TOP)/ext/fts2/fts2_tokenizer.h
438 EXTHDR += \
439 $(TOP)/ext/fts3/fts3.h \
440 $(TOP)/ext/fts3/fts3Int.h \
441 $(TOP)/ext/fts3/fts3_hash.h \
442 $(TOP)/ext/fts3/fts3_tokenizer.h
443 EXTHDR += \
444 $(TOP)/ext/rtree/rtree.h
445 EXTHDR += \
446 $(TOP)/ext/icu/sqliteicu.h
447 EXTHDR += \
448 $(TOP)/ext/fts5/fts5Int.h \
449 fts5parse.h \
450 $(TOP)/ext/fts5/fts5.h
451 EXTHDR += \
452 $(TOP)/ext/userauth/sqlite3userauth.h
454 # executables needed for testing
456 TESTPROGS = \
457 testfixture$(EXE) \
458 sqlite3$(EXE) \
459 sqlite3_analyzer$(EXE) \
460 sqldiff$(EXE) \
461 dbhash$(EXE)
463 # Databases containing fuzzer test cases
465 FUZZDATA = \
466 $(TOP)/test/fuzzdata1.db \
467 $(TOP)/test/fuzzdata2.db \
468 $(TOP)/test/fuzzdata3.db \
469 $(TOP)/test/fuzzdata4.db \
470 $(TOP)/test/fuzzdata5.db
472 # Standard options to testfixture
474 TESTOPTS = --verbose=file --output=test-out.txt
476 # Extra compiler options for various shell tools
478 SHELL_OPT += -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_FTS4 -DSQLITE_ENABLE_FTS5
479 SHELL_OPT += -DSQLITE_ENABLE_EXPLAIN_COMMENTS
480 SHELL_OPT += -DSQLITE_ENABLE_UNKNOWN_SQL_FUNCTION
481 SHELL_OPT += -DSQLITE_ENABLE_STMTVTAB
482 FUZZERSHELL_OPT = -DSQLITE_ENABLE_JSON1
483 FUZZCHECK_OPT = -DSQLITE_ENABLE_JSON1 -DSQLITE_ENABLE_MEMSYS5
484 FUZZCHECK_OPT += -DSQLITE_MAX_MEMORY=50000000
485 DBFUZZ_OPT =
486 KV_OPT = -DSQLITE_THREADSAFE=0 -DSQLITE_DIRECT_OVERFLOW_READ
487 ST_OPT = -DSQLITE_THREADSAFE=0
489 # This is the default Makefile target. The objects listed here
490 # are what get build when you type just "make" with no arguments.
492 all: sqlite3.h libsqlite3.a sqlite3$(EXE)
494 libsqlite3.a: $(LIBOBJ)
495 $(AR) libsqlite3.a $(LIBOBJ)
496 $(RANLIB) libsqlite3.a
498 sqlite3$(EXE): $(TOP)/src/shell.c libsqlite3.a sqlite3.h
499 $(TCCX) $(READLINE_FLAGS) -o sqlite3$(EXE) $(SHELL_OPT) \
500 $(TOP)/src/shell.c libsqlite3.a $(LIBREADLINE) $(TLIBS) $(THREADLIB)
502 sqldiff$(EXE): $(TOP)/tool/sqldiff.c sqlite3.c sqlite3.h
503 $(TCCX) -o sqldiff$(EXE) -DSQLITE_THREADSAFE=0 \
504 $(TOP)/tool/sqldiff.c sqlite3.c $(TLIBS) $(THREADLIB)
506 dbhash$(EXE): $(TOP)/tool/dbhash.c sqlite3.c sqlite3.h
507 $(TCCX) -o dbhash$(EXE) -DSQLITE_THREADSAFE=0 \
508 $(TOP)/tool/dbhash.c sqlite3.c $(TLIBS) $(THREADLIB)
510 scrub$(EXE): $(TOP)/ext/misc/scrub.c sqlite3.o
511 $(TCC) -I. -DSCRUB_STANDALONE -o scrub$(EXE) $(TOP)/ext/misc/scrub.c sqlite3.o $(THREADLIB)
513 srcck1$(EXE): $(TOP)/tool/srcck1.c
514 $(BCC) -o srcck1$(EXE) $(TOP)/tool/srcck1.c
516 sourcetest: srcck1$(EXE) sqlite3.c
517 ./srcck1 sqlite3.c
519 fuzzershell$(EXE): $(TOP)/tool/fuzzershell.c sqlite3.c sqlite3.h
520 $(TCCX) -o fuzzershell$(EXE) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
521 $(FUZZERSHELL_OPT) $(TOP)/tool/fuzzershell.c sqlite3.c \
522 $(TLIBS) $(THREADLIB)
524 dbfuzz$(EXE): $(TOP)/test/dbfuzz.c sqlite3.c sqlite3.h
525 $(TCCX) -o dbfuzz$(EXE) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
526 $(DBFUZZ_OPT) $(TOP)/test/dbfuzz.c sqlite3.c \
527 $(TLIBS) $(THREADLIB)
529 fuzzcheck$(EXE): $(TOP)/test/fuzzcheck.c sqlite3.c sqlite3.h $(TOP)/test/ossfuzz.c
530 $(TCCX) -o fuzzcheck$(EXE) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
531 -DSQLITE_ENABLE_MEMSYS5 $(FUZZCHECK_OPT) -DSQLITE_OSS_FUZZ \
532 $(TOP)/test/fuzzcheck.c $(TOP)/test/ossfuzz.c sqlite3.c $(TLIBS) $(THREADLIB)
534 ossshell$(EXE): $(TOP)/test/ossfuzz.c $(TOP)/test/ossshell.c sqlite3.c sqlite3.h
535 $(TCCX) -o ossshell$(EXE) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION \
536 -DSQLITE_ENABLE_MEMSYS5 $(FUZZCHECK_OPT) \
537 $(TOP)/test/ossfuzz.c $(TOP)/test/ossshell.c sqlite3.c $(TLIBS) $(THREADLIB)
539 mptester$(EXE): sqlite3.c $(TOP)/mptest/mptest.c
540 $(TCCX) -o $@ -I. $(TOP)/mptest/mptest.c sqlite3.c \
541 $(TLIBS) $(THREADLIB)
543 MPTEST1=./mptester$(EXE) mptest1.db $(TOP)/mptest/crash01.test --repeat 20
544 MPTEST2=./mptester$(EXE) mptest2.db $(TOP)/mptest/multiwrite01.test --repeat 20
545 mptest: mptester$(EXE)
546 $(MPTEST1) --journalmode DELETE
547 $(MPTEST2) --journalmode WAL
548 $(MPTEST1) --journalmode WAL
549 $(MPTEST2) --journalmode PERSIST
550 $(MPTEST1) --journalmode PERSIST
551 $(MPTEST2) --journalmode TRUNCATE
552 $(MPTEST1) --journalmode TRUNCATE
553 $(MPTEST2) --journalmode DELETE
555 sqlite3.o: sqlite3.c
556 $(TCCX) -I. -c sqlite3.c
558 # This target creates a directory named "tsrc" and fills it with
559 # copies of all of the C source code and header files needed to
560 # build on the target system. Some of the C source code and header
561 # files are automatically generated. This target takes care of
562 # all that automatic generation.
564 target_source: $(SRC) $(TOP)/tool/vdbe-compress.tcl fts5.c
565 rm -rf tsrc
566 mkdir tsrc
567 cp -f $(SRC) tsrc
568 rm tsrc/sqlite.h.in tsrc/parse.y
569 tclsh $(TOP)/tool/vdbe-compress.tcl $(OPTS) <tsrc/vdbe.c >vdbe.new
570 mv vdbe.new tsrc/vdbe.c
571 cp fts5.c fts5.h tsrc
572 touch target_source
574 sqlite3.c: target_source $(TOP)/tool/mksqlite3c.tcl
575 tclsh $(TOP)/tool/mksqlite3c.tcl
576 cp tsrc/shell.c tsrc/sqlite3ext.h .
577 cp $(TOP)/ext/session/sqlite3session.h .
578 echo '#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c
579 cat sqlite3.c >>tclsqlite3.c
580 echo '#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c
581 cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c
583 sqlite3ext.h: target_source
584 cp tsrc/sqlite3ext.h .
586 sqlite3.c-debug: target_source $(TOP)/tool/mksqlite3c.tcl
587 tclsh $(TOP)/tool/mksqlite3c.tcl --linemacros
588 echo '#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c
589 cat sqlite3.c >>tclsqlite3.c
590 echo '#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c
591 echo '#line 1 "tclsqlite.c"' >>tclsqlite3.c
592 cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c
594 sqlite3-all.c: sqlite3.c $(TOP)/tool/split-sqlite3c.tcl
595 tclsh $(TOP)/tool/split-sqlite3c.tcl
597 fts2amal.c: target_source $(TOP)/ext/fts2/mkfts2amal.tcl
598 tclsh $(TOP)/ext/fts2/mkfts2amal.tcl
600 fts3amal.c: target_source $(TOP)/ext/fts3/mkfts3amal.tcl
601 tclsh $(TOP)/ext/fts3/mkfts3amal.tcl
603 # Rules to build the LEMON compiler generator
605 lemon: $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
606 $(BCC) -o lemon $(TOP)/tool/lemon.c
607 cp $(TOP)/tool/lempar.c .
609 # Rules to build individual *.o files from generated *.c files. This
610 # applies to:
612 # parse.o
613 # opcodes.o
615 %.o: %.c $(HDR)
616 $(TCCX) -c $<
618 # Rules to build individual *.o files from files in the src directory.
620 %.o: $(TOP)/src/%.c $(HDR)
621 $(TCCX) -c $<
623 tclsqlite.o: $(TOP)/src/tclsqlite.c $(HDR)
624 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/tclsqlite.c
628 # Rules to build opcodes.c and opcodes.h
630 opcodes.c: opcodes.h $(TOP)/tool/mkopcodec.tcl
631 tclsh $(TOP)/tool/mkopcodec.tcl opcodes.h >opcodes.c
633 opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/tool/mkopcodeh.tcl
634 cat parse.h $(TOP)/src/vdbe.c | \
635 tclsh $(TOP)/tool/mkopcodeh.tcl >opcodes.h
637 # Rules to build parse.c and parse.h - the outputs of lemon.
639 parse.h: parse.c
641 parse.c: $(TOP)/src/parse.y lemon $(TOP)/tool/addopcodes.tcl
642 cp $(TOP)/src/parse.y .
643 rm -f parse.h
644 ./lemon -s $(OPTS) parse.y
645 mv parse.h parse.h.temp
646 tclsh $(TOP)/tool/addopcodes.tcl parse.h.temp >parse.h
648 sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest.uuid $(TOP)/VERSION $(TOP)/ext/rtree/sqlite3rtree.h
649 tclsh $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h
651 keywordhash.h: $(TOP)/tool/mkkeywordhash.c
652 $(BCC) -o mkkeywordhash $(OPTS) $(TOP)/tool/mkkeywordhash.c
653 ./mkkeywordhash >keywordhash.h
657 # Rules to build the extension objects.
659 icu.o: $(TOP)/ext/icu/icu.c $(HDR) $(EXTHDR)
660 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/icu/icu.c
662 fts2.o: $(TOP)/ext/fts2/fts2.c $(HDR) $(EXTHDR)
663 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2.c
665 fts2_hash.o: $(TOP)/ext/fts2/fts2_hash.c $(HDR) $(EXTHDR)
666 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_hash.c
668 fts2_icu.o: $(TOP)/ext/fts2/fts2_icu.c $(HDR) $(EXTHDR)
669 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_icu.c
671 fts2_porter.o: $(TOP)/ext/fts2/fts2_porter.c $(HDR) $(EXTHDR)
672 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_porter.c
674 fts2_tokenizer.o: $(TOP)/ext/fts2/fts2_tokenizer.c $(HDR) $(EXTHDR)
675 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer.c
677 fts2_tokenizer1.o: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR) $(EXTHDR)
678 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer1.c
680 fts3.o: $(TOP)/ext/fts3/fts3.c $(HDR) $(EXTHDR)
681 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3.c
683 fts3_aux.o: $(TOP)/ext/fts3/fts3_aux.c $(HDR) $(EXTHDR)
684 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_aux.c
686 fts3_expr.o: $(TOP)/ext/fts3/fts3_expr.c $(HDR) $(EXTHDR)
687 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_expr.c
689 fts3_hash.o: $(TOP)/ext/fts3/fts3_hash.c $(HDR) $(EXTHDR)
690 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_hash.c
692 fts3_icu.o: $(TOP)/ext/fts3/fts3_icu.c $(HDR) $(EXTHDR)
693 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_icu.c
695 fts3_snippet.o: $(TOP)/ext/fts3/fts3_snippet.c $(HDR) $(EXTHDR)
696 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_snippet.c
698 fts3_porter.o: $(TOP)/ext/fts3/fts3_porter.c $(HDR) $(EXTHDR)
699 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_porter.c
701 fts3_tokenizer.o: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR) $(EXTHDR)
702 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer.c
704 fts3_tokenizer1.o: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR) $(EXTHDR)
705 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer1.c
707 fts3_tokenize_vtab.o: $(TOP)/ext/fts3/fts3_tokenize_vtab.c $(HDR) $(EXTHDR)
708 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenize_vtab.c
710 fts3_unicode.o: $(TOP)/ext/fts3/fts3_unicode.c $(HDR) $(EXTHDR)
711 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode.c
713 fts3_unicode2.o: $(TOP)/ext/fts3/fts3_unicode2.c $(HDR) $(EXTHDR)
714 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode2.c
716 fts3_write.o: $(TOP)/ext/fts3/fts3_write.c $(HDR) $(EXTHDR)
717 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_write.c
719 fts5.o: fts5.c
720 $(TCCX) -DSQLITE_CORE -c fts5.c
722 json1.o: $(TOP)/ext/misc/json1.c
723 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/misc/json1.c
725 stmt.o: $(TOP)/ext/misc/stmt.c
726 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/misc/stmt.c
728 rtree.o: $(TOP)/ext/rtree/rtree.c $(HDR) $(EXTHDR)
729 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/rtree/rtree.c
733 fts5parse.c: $(TOP)/ext/fts5/fts5parse.y lemon
734 cp $(TOP)/ext/fts5/fts5parse.y .
735 rm -f fts5parse.h
736 ./lemon $(OPTS) fts5parse.y
738 fts5parse.h: fts5parse.c
740 fts5.c: $(FTS5_SRC) $(FTS5_HDR)
741 tclsh $(TOP)/ext/fts5/tool/mkfts5c.tcl
742 cp $(TOP)/ext/fts5/fts5.h .
744 userauth.o: $(TOP)/ext/userauth/userauth.c $(HDR) $(EXTHDR)
745 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/userauth/userauth.c
747 sqlite3session.o: $(TOP)/ext/session/sqlite3session.c $(HDR) $(EXTHDR)
748 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/session/sqlite3session.c
750 sqlite3rbu.o: $(TOP)/ext/rbu/sqlite3rbu.c $(HDR) $(EXTHDR)
751 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/rbu/sqlite3rbu.c
753 # Rules for building test programs and for running tests
755 tclsqlite3: $(TOP)/src/tclsqlite.c libsqlite3.a
756 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 -o tclsqlite3 \
757 $(TOP)/src/tclsqlite.c libsqlite3.a $(LIBTCL) $(THREADLIB)
759 sqlite3_analyzer.c: sqlite3.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
760 echo "#define TCLSH 2" > $@
761 echo "#define SQLITE_ENABLE_DBSTAT_VTAB 1" >> $@
762 cat sqlite3.c $(TOP)/src/tclsqlite.c >> $@
763 echo "static const char *tclsh_main_loop(void){" >> $@
764 echo "static const char *zMainloop = " >> $@
765 tclsh $(TOP)/tool/tostr.tcl $(TOP)/tool/spaceanal.tcl >> $@
766 echo "; return zMainloop; }" >> $@
768 sqlite3_analyzer$(EXE): sqlite3_analyzer.c
769 $(TCCX) $(TCL_FLAGS) sqlite3_analyzer.c -o $@ $(LIBTCL) $(THREADLIB)
771 dbdump$(EXE): $(TOP)/ext/misc/dbdump.c sqlite3.o
772 $(TCCX) -DDBDUMP_STANDALONE -o dbdump$(EXE) \
773 $(TOP)/ext/misc/dbdump.c sqlite3.o $(THREADLIB)
775 # Rules to build the 'testfixture' application.
777 TESTFIXTURE_FLAGS = -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1
778 TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE
779 TESTFIXTURE_FLAGS += -DSQLITE_SERIES_CONSTRAINT_VERIFY=1
780 TESTFIXTURE_FLAGS += -DSQLITE_DEFAULT_PAGE_SIZE=1024
781 TESTFIXTURE_FLAGS += -DSQLITE_ENABLE_STMTVTAB
783 testfixture$(EXE): $(TESTSRC2) libsqlite3.a $(TESTSRC) $(TOP)/src/tclsqlite.c
784 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 $(TESTFIXTURE_FLAGS) \
785 $(TESTSRC) $(TESTSRC2) $(TOP)/src/tclsqlite.c \
786 -o testfixture$(EXE) $(LIBTCL) libsqlite3.a $(THREADLIB)
788 amalgamation-testfixture$(EXE): sqlite3.c $(TESTSRC) $(TOP)/src/tclsqlite.c \
789 $(TOP)/ext/session/test_session.c
790 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 $(TESTFIXTURE_FLAGS) \
791 $(TESTSRC) $(TOP)/src/tclsqlite.c sqlite3.c \
792 $(TOP)/ext/session/test_session.c \
793 -o testfixture$(EXE) $(LIBTCL) $(THREADLIB)
795 fts3-testfixture$(EXE): sqlite3.c fts3amal.c $(TESTSRC) $(TOP)/src/tclsqlite.c
796 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 $(TESTFIXTURE_FLAGS) \
797 -DSQLITE_ENABLE_FTS3=1 \
798 $(TESTSRC) $(TOP)/src/tclsqlite.c sqlite3.c fts3amal.c \
799 -o testfixture$(EXE) $(LIBTCL) $(THREADLIB)
801 fulltest: $(TESTPROGS) fuzztest
802 ./testfixture$(EXE) $(TOP)/test/all.test $(TESTOPTS)
804 soaktest: $(TESTPROGS)
805 ./testfixture$(EXE) $(TOP)/test/all.test -soak=1 $(TESTOPTS)
807 fulltestonly: $(TESTPROGS) fuzztest
808 ./testfixture$(EXE) $(TOP)/test/full.test $(TESTOPTS)
810 queryplantest: testfixture$(EXE) sqlite3$(EXE)
811 ./testfixture$(EXE) $(TOP)/test/permutations.test queryplanner $(TESTOPTS)
813 fuzztest: fuzzcheck$(EXE) $(FUZZDATA)
814 ./fuzzcheck$(EXE) $(FUZZDATA)
816 fastfuzztest: fuzzcheck$(EXE) $(FUZZDATA)
817 ./fuzzcheck$(EXE) --limit-mem 100M $(FUZZDATA)
819 valgrindfuzz: fuzzcheck$(EXE) $(FUZZDATA)
820 valgrind ./fuzzcheck$(EXE) --cell-size-check --limit-mem 10M --timeout 600 $(FUZZDATA)
822 # The veryquick.test TCL tests.
824 tcltest: ./testfixture$(EXE)
825 ./testfixture$(EXE) $(TOP)/test/veryquick.test $(TESTOPTS)
827 # A very quick test using only testfixture and omitting all the slower
828 # tests. Designed to run in under 3 minutes on a workstation.
830 quicktest: ./testfixture$(EXE)
831 ./testfixture$(EXE) $(TOP)/test/extraquick.test $(TESTOPTS)
833 # The default test case. Runs most of the faster standard TCL tests,
834 # and fuzz tests, and sqlite3_analyzer and sqldiff tests.
835 test: fastfuzztest sourcetest $(TESTPROGS) tcltest
837 # Run a test using valgrind. This can take a really long time
838 # because valgrind is so much slower than a native machine.
840 valgrindtest: $(TESTPROGS) valgrindfuzz
841 OMIT_MISUSE=1 valgrind -v \
842 ./testfixture$(EXE) $(TOP)/test/permutations.test valgrind $(TESTOPTS)
844 # A very fast test that checks basic sanity. The name comes from
845 # the 60s-era electronics testing: "Turn it on and see if smoke
846 # comes out."
848 smoketest: $(TESTPROGS) fuzzcheck$(EXE)
849 ./testfixture$(EXE) $(TOP)/test/main.test $(TESTOPTS)
851 # The next two rules are used to support the "threadtest" target. Building
852 # threadtest runs a few thread-safety tests that are implemented in C. This
853 # target is invoked by the releasetest.tcl script.
855 THREADTEST3_SRC = $(TOP)/test/threadtest3.c \
856 $(TOP)/test/tt3_checkpoint.c \
857 $(TOP)/test/tt3_index.c \
858 $(TOP)/test/tt3_vacuum.c \
859 $(TOP)/test/tt3_stress.c \
860 $(TOP)/test/tt3_lookaside1.c
862 threadtest3$(EXE): sqlite3.o $(THREADTEST3_SRC) $(TOP)/src/test_multiplex.c
863 $(TCCX) $(TOP)/test/threadtest3.c $(TOP)/src/test_multiplex.c sqlite3.o -o $@ $(THREADLIB)
865 threadtest: threadtest3$(EXE)
866 ./threadtest3$(EXE)
868 TEST_EXTENSION = $(SHPREFIX)testloadext.$(SO)
869 $(TEST_EXTENSION): $(TOP)/src/test_loadext.c
870 $(MKSHLIB) $(TOP)/src/test_loadext.c -o $(TEST_EXTENSION)
872 extensiontest: testfixture$(EXE) $(TEST_EXTENSION)
873 ./testfixture$(EXE) $(TOP)/test/loadext.test
875 showdb$(EXE): $(TOP)/tool/showdb.c sqlite3.o
876 $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o showdb$(EXE) \
877 $(TOP)/tool/showdb.c sqlite3.o $(THREADLIB)
879 showstat4$(EXE): $(TOP)/tool/showstat4.c sqlite3.o
880 $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o showstat4$(EXE) \
881 $(TOP)/tool/showstat4.c sqlite3.o $(THREADLIB)
883 showjournal$(EXE): $(TOP)/tool/showjournal.c sqlite3.o
884 $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o showjournal$(EXE) \
885 $(TOP)/tool/showjournal.c sqlite3.o $(THREADLIB)
887 showwal$(EXE): $(TOP)/tool/showwal.c sqlite3.o
888 $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o showwal$(EXE) \
889 $(TOP)/tool/showwal.c sqlite3.o $(THREADLIB)
891 changeset$(EXE): $(TOP)/ext/session/changeset.c sqlite3.o
892 $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o changeset$(EXE) \
893 $(TOP)/ext/session/changeset.c sqlite3.o $(THREADLIB)
895 fts3view$(EXE): $(TOP)/ext/fts3/tool/fts3view.c sqlite3.o
896 $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o fts3view$(EXE) \
897 $(TOP)/ext/fts3/tool/fts3view.c sqlite3.o $(THREADLIB)
899 rollback-test$(EXE): $(TOP)/tool/rollback-test.c sqlite3.o
900 $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o rollback-test$(EXE) \
901 $(TOP)/tool/rollback-test.c sqlite3.o $(THREADLIB)
903 LogEst$(EXE): $(TOP)/tool/logest.c sqlite3.h
904 $(TCC) -o LogEst$(EXE) $(TOP)/tool/logest.c
906 wordcount$(EXE): $(TOP)/test/wordcount.c sqlite3.c
907 $(TCC) -DSQLITE_THREADSAFE=0 -DSQLITE_OMIT_LOAD_EXTENSION -o wordcount$(EXE) \
908 $(TOP)/test/wordcount.c sqlite3.c
910 speedtest1$(EXE): $(TOP)/test/speedtest1.c sqlite3.c
911 $(TCCX) -I. $(ST_OPT) -o speedtest1$(EXE) $(TOP)/test/speedtest1.c sqlite3.c $(THREADLIB)
913 kvtest$(EXE): $(TOP)/test/kvtest.c sqlite3.c
914 $(TCCX) -I. $(KV_OPT) -o kvtest$(EXE) $(TOP)/test/kvtest.c sqlite3.c $(THREADLIB)
916 rbu$(EXE): $(TOP)/ext/rbu/rbu.c $(TOP)/ext/rbu/sqlite3rbu.c sqlite3.o
917 $(TCC) -I. -o rbu$(EXE) $(TOP)/ext/rbu/rbu.c sqlite3.o \
918 $(THREADLIB)
920 loadfts: $(TOP)/tool/loadfts.c libsqlite3.a
921 $(TCC) $(TOP)/tool/loadfts.c libsqlite3.a -o loadfts $(THREADLIB)
923 # This target will fail if the SQLite amalgamation contains any exported
924 # symbols that do not begin with "sqlite3_". It is run as part of the
925 # releasetest.tcl script.
927 checksymbols: sqlite3.o
928 nm -g --defined-only sqlite3.o | grep -v " sqlite3_" ; test $$? -ne 0
930 # Build the amalgamation-autoconf package. The amalamgation-tarball target builds
931 # a tarball named for the version number. Ex: sqlite-autoconf-3110000.tar.gz.
932 # The snapshot-tarball target builds a tarball named by the SHA1 hash
934 amalgamation-tarball: sqlite3.c
935 TOP=$(TOP) sh $(TOP)/tool/mkautoconfamal.sh --normal
937 snapshot-tarball: sqlite3.c
938 TOP=$(TOP) sh $(TOP)/tool/mkautoconfamal.sh --snapshot
941 # Standard install and cleanup targets
943 install: sqlite3 libsqlite3.a sqlite3.h
944 mv sqlite3 /usr/bin
945 mv libsqlite3.a /usr/lib
946 mv sqlite3.h /usr/include
948 clean:
949 rm -f *.o sqlite3 sqlite3.exe libsqlite3.a sqlite3.h opcodes.*
950 rm -f lemon lemon.exe lempar.c parse.* sqlite*.tar.gz
951 rm -f mkkeywordhash mkkeywordhash.exe keywordhash.h
952 rm -f $(PUBLISH)
953 rm -f *.da *.bb *.bbg gmon.out
954 rm -rf tsrc target_source
955 rm -f testloadext.dll libtestloadext.so
956 rm -f amalgamation-testfixture amalgamation-testfixture.exe
957 rm -f fts3-testfixture fts3-testfixture.exe
958 rm -f testfixture testfixture.exe
959 rm -f threadtest3 threadtest3.exe
960 rm -f LogEst LogEst.exe
961 rm -f fts3view fts3view.exe
962 rm -f rollback-test rollback-test.exe
963 rm -f showdb showdb.exe
964 rm -f showjournal showjournal.exe
965 rm -f showstat4 showstat4.exe
966 rm -f showwal showwal.exe
967 rm -f changeset changeset.exe
968 rm -f speedtest1 speedtest1.exe
969 rm -f wordcount wordcount.exe
970 rm -f rbu rbu.exe
971 rm -f srcck1 srcck1.exe
972 rm -f sqlite3.c sqlite3-*.c fts?amal.c tclsqlite3.c
973 rm -f sqlite3rc.h
974 rm -f shell.c sqlite3ext.h
975 rm -f sqlite3_analyzer sqlite3_analyzer.exe sqlite3_analyzer.c
976 rm -f sqlite-*-output.vsix
977 rm -f mptester mptester.exe
978 rm -f fuzzershell fuzzershell.exe
979 rm -f fuzzcheck fuzzcheck.exe
980 rm -f sqldiff sqldiff.exe
981 rm -f fts5.* fts5parse.*