blob: 5ff4fb2f76c0f4b72a674e34b82d2e226f8735cf [file] [log] [blame]
drh71eb93e2001-09-28 01:34:43 +00001###############################################################################
drh76800322002-08-13 20:45:39 +00002# 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#
drhf1878b42006-01-23 18:06:52 +000045# NAWK Nawk compatible awk program. Older (obsolete?) solaris
46# systems need this to avoid using the original AT&T AWK.
drh76800322002-08-13 20:45:39 +000047#
48# Once the macros above are defined, the rest of this make script will
49# build the SQLite library and testing tools.
50################################################################################
drh71eb93e2001-09-28 01:34:43 +000051
52# This is how we compile
53#
drha297b5c2002-01-15 18:39:43 +000054TCCX = $(TCC) $(OPTS) $(THREADSAFE) $(USLEEP) -I. -I$(TOP)/src
drh71eb93e2001-09-28 01:34:43 +000055
56# Object files for the SQLite library.
57#
drh9f18e8a2005-07-08 12:13:04 +000058LIBOBJ+= alter.o analyze.o attach.o auth.o btree.o build.o \
drha2b902d2005-08-14 17:53:20 +000059 callback.o complete.o date.o delete.o \
danielk1977c7b60172007-08-22 11:22:03 +000060 expr.o func.o hash.o insert.o journal.o loadext.o \
drh4c3645c2007-08-15 17:07:57 +000061 main.o malloc.o mem1.o mem2.o mutex.o \
drh90f6a5b2007-08-15 13:04:54 +000062 opcodes.o os.o os_os2.o os_unix.o os_win.o \
danielk1977fa256a32005-05-25 04:11:56 +000063 pager.o parse.o pragma.o prepare.o printf.o random.o \
drh38f82712004-06-18 17:10:16 +000064 select.o table.o tclsqlite.o tokenize.o trigger.o \
65 update.o util.o vacuum.o \
danielk1977b4e9af92007-05-01 17:49:49 +000066 vdbe.o vdbeapi.o vdbeaux.o vdbeblob.o vdbefifo.o vdbemem.o \
drhb9bb7c12006-06-11 23:41:55 +000067 where.o utf.o legacy.o vtab.o
drh71eb93e2001-09-28 01:34:43 +000068
shess69c4ae22007-08-20 17:37:47 +000069EXTOBJ = icu.o
70EXTOBJ += fts1.o \
71 fts1_hash.o \
72 fts1_tokenizer1.o \
73 fts1_porter.o
74EXTOBJ += fts2.o \
75 fts2_hash.o \
76 fts2_icu.o \
77 fts2_porter.o \
78 fts2_tokenizer.o \
79 fts2_tokenizer1.o
80EXTOBJ += fts3.o \
81 fts3_hash.o \
82 fts3_icu.o \
83 fts3_porter.o \
84 fts3_tokenizer.o \
85 fts3_tokenizer1.o
danielk1977576d3db2007-06-25 14:28:48 +000086
drh71eb93e2001-09-28 01:34:43 +000087# All of the source code files.
88#
89SRC = \
drhd0e4a6c2005-02-15 20:47:57 +000090 $(TOP)/src/alter.c \
drh9f18e8a2005-07-08 12:13:04 +000091 $(TOP)/src/analyze.c \
drhc11d4f92003-04-06 21:08:24 +000092 $(TOP)/src/attach.c \
drhed6c8672003-01-12 18:02:16 +000093 $(TOP)/src/auth.c \
drh71eb93e2001-09-28 01:34:43 +000094 $(TOP)/src/btree.c \
95 $(TOP)/src/btree.h \
96 $(TOP)/src/build.c \
danielk1977fd9a0a42005-05-24 12:01:00 +000097 $(TOP)/src/callback.c \
drha2b902d2005-08-14 17:53:20 +000098 $(TOP)/src/complete.c \
drh7014aff2003-11-01 01:53:53 +000099 $(TOP)/src/date.c \
drh71eb93e2001-09-28 01:34:43 +0000100 $(TOP)/src/delete.c \
101 $(TOP)/src/expr.c \
drhdc04c582002-02-24 01:55:15 +0000102 $(TOP)/src/func.c \
drh71eb93e2001-09-28 01:34:43 +0000103 $(TOP)/src/hash.c \
104 $(TOP)/src/hash.h \
105 $(TOP)/src/insert.c \
danielk1977c7b60172007-08-22 11:22:03 +0000106 $(TOP)/src/journal.c \
drh014ac192004-06-01 01:45:11 +0000107 $(TOP)/src/legacy.c \
drh1e397f82006-06-08 15:28:43 +0000108 $(TOP)/src/loadext.c \
drh71eb93e2001-09-28 01:34:43 +0000109 $(TOP)/src/main.c \
drha3152892007-05-05 11:48:52 +0000110 $(TOP)/src/malloc.c \
drh4c3645c2007-08-15 17:07:57 +0000111 $(TOP)/src/mem1.c \
112 $(TOP)/src/mem2.c \
drh90f6a5b2007-08-15 13:04:54 +0000113 $(TOP)/src/mutex.c \
drh054889e2005-11-30 03:20:31 +0000114 $(TOP)/src/os.c \
drh60a1e4b2006-06-03 18:02:15 +0000115 $(TOP)/src/os_os2.c \
drhbbd42a62004-05-22 17:41:58 +0000116 $(TOP)/src/os_unix.c \
117 $(TOP)/src/os_win.c \
drh71eb93e2001-09-28 01:34:43 +0000118 $(TOP)/src/pager.c \
119 $(TOP)/src/pager.h \
120 $(TOP)/src/parse.y \
drhc11d4f92003-04-06 21:08:24 +0000121 $(TOP)/src/pragma.c \
danielk1977fa256a32005-05-25 04:11:56 +0000122 $(TOP)/src/prepare.c \
drh71eb93e2001-09-28 01:34:43 +0000123 $(TOP)/src/printf.c \
124 $(TOP)/src/random.c \
125 $(TOP)/src/select.c \
126 $(TOP)/src/shell.c \
127 $(TOP)/src/sqlite.h.in \
drhde087bd2007-02-23 03:00:44 +0000128 $(TOP)/src/sqlite3ext.h \
drh71eb93e2001-09-28 01:34:43 +0000129 $(TOP)/src/sqliteInt.h \
130 $(TOP)/src/table.c \
131 $(TOP)/src/tclsqlite.c \
132 $(TOP)/src/tokenize.c \
drhdc379452002-05-15 12:45:43 +0000133 $(TOP)/src/trigger.c \
drh1bbf5ee2004-05-11 01:18:24 +0000134 $(TOP)/src/utf.c \
drh71eb93e2001-09-28 01:34:43 +0000135 $(TOP)/src/update.c \
136 $(TOP)/src/util.c \
drhe1051c62003-04-06 20:52:32 +0000137 $(TOP)/src/vacuum.c \
drh71eb93e2001-09-28 01:34:43 +0000138 $(TOP)/src/vdbe.c \
139 $(TOP)/src/vdbe.h \
drheb2e1762004-05-27 01:53:56 +0000140 $(TOP)/src/vdbeapi.c \
drh9a324642003-09-06 20:12:01 +0000141 $(TOP)/src/vdbeaux.c \
danielk1977b4e9af92007-05-01 17:49:49 +0000142 $(TOP)/src/vdbeblob.c \
drha01f79d2005-07-08 13:07:59 +0000143 $(TOP)/src/vdbefifo.c \
drheb2e1762004-05-27 01:53:56 +0000144 $(TOP)/src/vdbemem.c \
drh9a324642003-09-06 20:12:01 +0000145 $(TOP)/src/vdbeInt.h \
drhb9bb7c12006-06-11 23:41:55 +0000146 $(TOP)/src/vtab.c \
drh71eb93e2001-09-28 01:34:43 +0000147 $(TOP)/src/where.c
148
drh0c979402006-10-03 19:12:32 +0000149# Source code for extensions
150#
151SRC += \
152 $(TOP)/ext/fts1/fts1.c \
153 $(TOP)/ext/fts1/fts1.h \
154 $(TOP)/ext/fts1/fts1_hash.c \
155 $(TOP)/ext/fts1/fts1_hash.h \
156 $(TOP)/ext/fts1/fts1_porter.c \
157 $(TOP)/ext/fts1/fts1_tokenizer.h \
158 $(TOP)/ext/fts1/fts1_tokenizer1.c
drhde087bd2007-02-23 03:00:44 +0000159SRC += \
160 $(TOP)/ext/fts2/fts2.c \
161 $(TOP)/ext/fts2/fts2.h \
162 $(TOP)/ext/fts2/fts2_hash.c \
163 $(TOP)/ext/fts2/fts2_hash.h \
drhd6e78a22007-07-20 13:42:26 +0000164 $(TOP)/ext/fts2/fts2_icu.c \
drhde087bd2007-02-23 03:00:44 +0000165 $(TOP)/ext/fts2/fts2_porter.c \
166 $(TOP)/ext/fts2/fts2_tokenizer.h \
drhd6e78a22007-07-20 13:42:26 +0000167 $(TOP)/ext/fts2/fts2_tokenizer.c \
drhde087bd2007-02-23 03:00:44 +0000168 $(TOP)/ext/fts2/fts2_tokenizer1.c
danielk197708ada512007-06-26 10:56:40 +0000169SRC += \
shess69c4ae22007-08-20 17:37:47 +0000170 $(TOP)/ext/fts3/fts3.c \
171 $(TOP)/ext/fts3/fts3.h \
172 $(TOP)/ext/fts3/fts3_hash.c \
173 $(TOP)/ext/fts3/fts3_hash.h \
174 $(TOP)/ext/fts3/fts3_icu.c \
175 $(TOP)/ext/fts3/fts3_porter.c \
176 $(TOP)/ext/fts3/fts3_tokenizer.h \
177 $(TOP)/ext/fts3/fts3_tokenizer.c \
178 $(TOP)/ext/fts3/fts3_tokenizer1.c
179SRC += \
danielk197708ada512007-06-26 10:56:40 +0000180 $(TOP)/ext/icu/icu.c
drhde087bd2007-02-23 03:00:44 +0000181
danielk197777b03a22007-06-20 08:49:05 +0000182
drhde087bd2007-02-23 03:00:44 +0000183# Generated source code files
184#
185SRC += \
186 keywordhash.h \
187 opcodes.c \
188 opcodes.h \
189 parse.c \
190 parse.h \
191 sqlite3.h
drh0c979402006-10-03 19:12:32 +0000192
193
drh71eb93e2001-09-28 01:34:43 +0000194# Source code to the test files.
195#
drhb6f41482004-05-14 01:58:11 +0000196TESTSRC = \
drh71eb93e2001-09-28 01:34:43 +0000197 $(TOP)/src/btree.c \
drh6c626082004-11-14 21:56:29 +0000198 $(TOP)/src/date.c \
drh74587e52002-08-13 00:01:16 +0000199 $(TOP)/src/func.c \
danielk1977b4622b62007-03-02 06:24:19 +0000200 $(TOP)/src/insert.c \
drha3152892007-05-05 11:48:52 +0000201 $(TOP)/src/malloc.c \
danielk1977161fb792006-01-24 10:58:21 +0000202 $(TOP)/src/os.c \
drh60a1e4b2006-06-03 18:02:15 +0000203 $(TOP)/src/os_os2.c \
drhbbd42a62004-05-22 17:41:58 +0000204 $(TOP)/src/os_unix.c \
205 $(TOP)/src/os_win.c \
drh71eb93e2001-09-28 01:34:43 +0000206 $(TOP)/src/pager.c \
drh998da3a2004-06-19 15:22:56 +0000207 $(TOP)/src/pragma.c \
drh38f82712004-06-18 17:10:16 +0000208 $(TOP)/src/printf.c \
drh71eb93e2001-09-28 01:34:43 +0000209 $(TOP)/src/test1.c \
210 $(TOP)/src/test2.c \
211 $(TOP)/src/test3.c \
drha6064dc2003-12-19 02:52:05 +0000212 $(TOP)/src/test4.c \
danielk19774adee202004-05-08 08:23:19 +0000213 $(TOP)/src/test5.c \
drh9c06c952005-11-26 00:25:00 +0000214 $(TOP)/src/test6.c \
drh29c636b2006-01-09 23:40:25 +0000215 $(TOP)/src/test7.c \
drhb9bb7c12006-06-11 23:41:55 +0000216 $(TOP)/src/test8.c \
danielk1977a713f2c2007-03-29 12:19:11 +0000217 $(TOP)/src/test9.c \
drh1409be62006-08-23 20:07:20 +0000218 $(TOP)/src/test_autoext.c \
drh23669402006-01-09 17:29:52 +0000219 $(TOP)/src/test_async.c \
drh16a9b832007-05-05 18:39:25 +0000220 $(TOP)/src/test_btree.c \
drhc797d4d2007-05-08 01:08:49 +0000221 $(TOP)/src/test_config.c \
drh15926592007-04-06 15:02:13 +0000222 $(TOP)/src/test_hexio.c \
drh2f999a62007-08-15 19:16:43 +0000223 $(TOP)/src/test_malloc.c \
drh2d02a672006-01-25 15:55:37 +0000224 $(TOP)/src/test_md5.c \
danielk1977954ce992006-06-15 15:59:19 +0000225 $(TOP)/src/test_schema.c \
drh2d02a672006-01-25 15:55:37 +0000226 $(TOP)/src/test_server.c \
drh4be8b512006-06-13 23:51:34 +0000227 $(TOP)/src/test_tclvar.c \
drh38f82712004-06-18 17:10:16 +0000228 $(TOP)/src/utf.c \
drhed6b3eb2004-09-08 21:12:50 +0000229 $(TOP)/src/util.c \
drhf6038712004-02-08 18:07:34 +0000230 $(TOP)/src/vdbe.c \
drh29a01382006-08-13 19:04:18 +0000231 $(TOP)/src/vdbeaux.c \
shess69c4ae22007-08-20 17:37:47 +0000232 $(TOP)/src/where.c
233TESTSRC += $(TOP)/ext/fts2/fts2_tokenizer.c
234TESTSRC += $(TOP)/ext/fts3/fts3_tokenizer.c
drh71eb93e2001-09-28 01:34:43 +0000235
236# Header files used by all library source files.
237#
238HDR = \
drh1d482dd2004-05-31 18:23:07 +0000239 sqlite3.h \
drh71eb93e2001-09-28 01:34:43 +0000240 $(TOP)/src/btree.h \
drha3152892007-05-05 11:48:52 +0000241 $(TOP)/src/btreeInt.h \
drh71eb93e2001-09-28 01:34:43 +0000242 $(TOP)/src/hash.h \
drhc551dd82007-06-19 15:23:48 +0000243 $(TOP)/src/sqliteLimit.h \
drh8f619cc2002-09-08 00:04:50 +0000244 opcodes.h \
drh71eb93e2001-09-28 01:34:43 +0000245 $(TOP)/src/os.h \
drh014ac192004-06-01 01:45:11 +0000246 $(TOP)/src/os_common.h \
drh1e397f82006-06-08 15:28:43 +0000247 $(TOP)/src/sqlite3ext.h \
drh71eb93e2001-09-28 01:34:43 +0000248 $(TOP)/src/sqliteInt.h \
drh9a324642003-09-06 20:12:01 +0000249 $(TOP)/src/vdbe.h \
drh71eb93e2001-09-28 01:34:43 +0000250 parse.h
251
drh0c979402006-10-03 19:12:32 +0000252# Header files used by extensions
253#
drhde087bd2007-02-23 03:00:44 +0000254EXTHDR += \
drh0c979402006-10-03 19:12:32 +0000255 $(TOP)/ext/fts1/fts1.h \
256 $(TOP)/ext/fts1/fts1_hash.h \
257 $(TOP)/ext/fts1/fts1_tokenizer.h
drhde087bd2007-02-23 03:00:44 +0000258EXTHDR += \
259 $(TOP)/ext/fts2/fts2.h \
260 $(TOP)/ext/fts2/fts2_hash.h \
261 $(TOP)/ext/fts2/fts2_tokenizer.h
shess69c4ae22007-08-20 17:37:47 +0000262EXTHDR += \
263 $(TOP)/ext/fts3/fts3.h \
264 $(TOP)/ext/fts3/fts3_hash.h \
265 $(TOP)/ext/fts3/fts3_tokenizer.h
drh0c979402006-10-03 19:12:32 +0000266
267
drh9a324642003-09-06 20:12:01 +0000268# Header files used by the VDBE submodule
269#
270VDBEHDR = \
drh9a324642003-09-06 20:12:01 +0000271 $(TOP)/src/vdbeInt.h
272
drh71eb93e2001-09-28 01:34:43 +0000273# This is the default Makefile target. The objects listed here
274# are what get build when you type just "make" with no arguments.
275#
drh97903fe2005-05-24 20:19:57 +0000276all: sqlite3.h libsqlite3.a sqlite3$(EXE)
drh71eb93e2001-09-28 01:34:43 +0000277
278# Generate the file "last_change" which contains the date of change
279# of the most recently modified source code file
280#
281last_change: $(SRC)
drh0c07fb92006-06-27 20:05:23 +0000282 cat $(SRC) | grep '$$Id: ' | sort -k 5 | tail -1 \
drhf1878b42006-01-23 18:06:52 +0000283 | $(NAWK) '{print $$5,$$6}' >last_change
drh71eb93e2001-09-28 01:34:43 +0000284
drhd677b3d2007-08-20 22:48:41 +0000285libsqlite3.a: $(LIBOBJ)
286 $(AR) libsqlite3.a $(LIBOBJ)
drh1d482dd2004-05-31 18:23:07 +0000287 $(RANLIB) libsqlite3.a
drh71eb93e2001-09-28 01:34:43 +0000288
drh1d482dd2004-05-31 18:23:07 +0000289sqlite3$(EXE): $(TOP)/src/shell.c libsqlite3.a sqlite3.h
danielk197777b03a22007-06-20 08:49:05 +0000290 $(TCCX) $(READLINE_FLAGS) -o sqlite3$(EXE) \
danielk197708ada512007-06-26 10:56:40 +0000291 $(TOP)/src/shell.c \
drhf1878b42006-01-23 18:06:52 +0000292 libsqlite3.a $(LIBREADLINE) $(TLIBS) $(THREADLIB)
drh71eb93e2001-09-28 01:34:43 +0000293
danielk19774adee202004-05-08 08:23:19 +0000294objects: $(LIBOBJ_ORIG)
295
drh71eb93e2001-09-28 01:34:43 +0000296# This target creates a directory named "tsrc" and fills it with
297# copies of all of the C source code and header files needed to
298# build on the target system. Some of the C source code and header
299# files are automatically generated. This target takes care of
300# all that automatic generation.
301#
drhde087bd2007-02-23 03:00:44 +0000302target_source: $(SRC)
drh71eb93e2001-09-28 01:34:43 +0000303 rm -rf tsrc
304 mkdir tsrc
drh98495b42007-03-31 22:29:05 +0000305 cp -f $(SRC) $(TOP)/src/*.h tsrc 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +0000306 rm tsrc/sqlite.h.in tsrc/parse.y
drh71eb93e2001-09-28 01:34:43 +0000307
drh98495b42007-03-31 22:29:05 +0000308sqlite3.c: target_source $(TOP)/tool/mksqlite3c.tcl
309 tclsh $(TOP)/tool/mksqlite3c.tcl
drhbd08af42007-04-05 21:58:33 +0000310 cp sqlite3.c tclsqlite3.c
311 cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c
312 tclsh $(TOP)/tool/mksqlite3internalh.tcl
drh98495b42007-03-31 22:29:05 +0000313
drhd6e78a22007-07-20 13:42:26 +0000314fts2amal.c: target_source $(TOP)/ext/fts2/mkfts2amal.tcl
315 tclsh $(TOP)/ext/fts2/mkfts2amal.tcl
316
shess69c4ae22007-08-20 17:37:47 +0000317fts3amal.c: target_source $(TOP)/ext/fts3/mkfts3amal.tcl
318 tclsh $(TOP)/ext/fts3/mkfts3amal.tcl
319
drh71eb93e2001-09-28 01:34:43 +0000320# Rules to build the LEMON compiler generator
321#
322lemon: $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
323 $(BCC) -o lemon $(TOP)/tool/lemon.c
324 cp $(TOP)/tool/lempar.c .
325
drhbbd42a62004-05-22 17:41:58 +0000326# Rules to build individual files
327#
drhd0e4a6c2005-02-15 20:47:57 +0000328alter.o: $(TOP)/src/alter.c $(HDR)
329 $(TCCX) -c $(TOP)/src/alter.c
330
drh9f18e8a2005-07-08 12:13:04 +0000331analyze.o: $(TOP)/src/analyze.c $(HDR)
332 $(TCCX) -c $(TOP)/src/analyze.c
333
drhbbd42a62004-05-22 17:41:58 +0000334attach.o: $(TOP)/src/attach.c $(HDR)
335 $(TCCX) -c $(TOP)/src/attach.c
336
337auth.o: $(TOP)/src/auth.c $(HDR)
338 $(TCCX) -c $(TOP)/src/auth.c
339
drh71eb93e2001-09-28 01:34:43 +0000340btree.o: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h
341 $(TCCX) -c $(TOP)/src/btree.c
342
343build.o: $(TOP)/src/build.c $(HDR)
344 $(TCCX) -c $(TOP)/src/build.c
345
danielk1977fd9a0a42005-05-24 12:01:00 +0000346callback.o: $(TOP)/src/callback.c $(HDR)
347 $(TCCX) -c $(TOP)/src/callback.c
348
drha2b902d2005-08-14 17:53:20 +0000349complete.o: $(TOP)/src/complete.c $(HDR)
350 $(TCCX) -c $(TOP)/src/complete.c
351
drh7014aff2003-11-01 01:53:53 +0000352date.o: $(TOP)/src/date.c $(HDR)
353 $(TCCX) -c $(TOP)/src/date.c
354
drh71eb93e2001-09-28 01:34:43 +0000355delete.o: $(TOP)/src/delete.c $(HDR)
356 $(TCCX) -c $(TOP)/src/delete.c
357
358expr.o: $(TOP)/src/expr.c $(HDR)
359 $(TCCX) -c $(TOP)/src/expr.c
360
drhdc04c582002-02-24 01:55:15 +0000361func.o: $(TOP)/src/func.c $(HDR)
362 $(TCCX) -c $(TOP)/src/func.c
363
drh71eb93e2001-09-28 01:34:43 +0000364hash.o: $(TOP)/src/hash.c $(HDR)
365 $(TCCX) -c $(TOP)/src/hash.c
366
367insert.o: $(TOP)/src/insert.c $(HDR)
368 $(TCCX) -c $(TOP)/src/insert.c
369
danielk1977c7b60172007-08-22 11:22:03 +0000370journal.o: $(TOP)/src/journal.c $(HDR)
371 $(TCCX) -c $(TOP)/src/journal.c
372
danielk197722322fd2004-05-25 23:35:17 +0000373legacy.o: $(TOP)/src/legacy.c $(HDR)
374 $(TCCX) -c $(TOP)/src/legacy.c
drh71eb93e2001-09-28 01:34:43 +0000375
drh1e397f82006-06-08 15:28:43 +0000376loadext.o: $(TOP)/src/loadext.c $(HDR)
377 $(TCCX) -c $(TOP)/src/loadext.c
378
drhbbd42a62004-05-22 17:41:58 +0000379main.o: $(TOP)/src/main.c $(HDR)
380 $(TCCX) -c $(TOP)/src/main.c
drh71eb93e2001-09-28 01:34:43 +0000381
drha3152892007-05-05 11:48:52 +0000382malloc.o: $(TOP)/src/malloc.c $(HDR)
383 $(TCCX) -c $(TOP)/src/malloc.c
384
drh90f6a5b2007-08-15 13:04:54 +0000385mem1.o: $(TOP)/src/mem1.c $(HDR)
386 $(TCCX) -c $(TOP)/src/mem1.c
387
drh4c3645c2007-08-15 17:07:57 +0000388mem2.o: $(TOP)/src/mem2.c $(HDR)
389 $(TCCX) -c $(TOP)/src/mem2.c
390
drh90f6a5b2007-08-15 13:04:54 +0000391mutex.o: $(TOP)/src/mutex.c $(HDR)
392 $(TCCX) -c $(TOP)/src/mutex.c
393
drhbbd42a62004-05-22 17:41:58 +0000394pager.o: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h
395 $(TCCX) -c $(TOP)/src/pager.c
drh71eb93e2001-09-28 01:34:43 +0000396
drhbbd42a62004-05-22 17:41:58 +0000397opcodes.o: opcodes.c
398 $(TCCX) -c opcodes.c
drh71eb93e2001-09-28 01:34:43 +0000399
drhb327f772004-10-06 15:03:57 +0000400opcodes.c: opcodes.h $(TOP)/mkopcodec.awk
drh0c07fb92006-06-27 20:05:23 +0000401 sort -n -b -k 3 opcodes.h | $(NAWK) -f $(TOP)/mkopcodec.awk >opcodes.c
drhbbd42a62004-05-22 17:41:58 +0000402
drhf2bc0132004-10-04 13:19:23 +0000403opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk
drhf1878b42006-01-23 18:06:52 +0000404 cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes.h
drhbbd42a62004-05-22 17:41:58 +0000405
drh054889e2005-11-30 03:20:31 +0000406os.o: $(TOP)/src/os.c $(HDR)
407 $(TCCX) -c $(TOP)/src/os.c
408
drh60a1e4b2006-06-03 18:02:15 +0000409os_os2.o: $(TOP)/src/os_os2.c $(HDR)
410 $(TCCX) -c $(TOP)/src/os_os2.c
411
drhbbd42a62004-05-22 17:41:58 +0000412os_unix.o: $(TOP)/src/os_unix.c $(HDR)
413 $(TCCX) -c $(TOP)/src/os_unix.c
414
415os_win.o: $(TOP)/src/os_win.c $(HDR)
416 $(TCCX) -c $(TOP)/src/os_win.c
417
418parse.o: parse.c $(HDR)
419 $(TCCX) -c parse.c
420
421parse.h: parse.c
422
drhfa3b19e2005-11-24 22:22:29 +0000423parse.c: $(TOP)/src/parse.y lemon $(TOP)/addopcodes.awk
drhbbd42a62004-05-22 17:41:58 +0000424 cp $(TOP)/src/parse.y .
drh27d258a2004-10-30 20:23:09 +0000425 ./lemon $(OPTS) parse.y
drhfa3b19e2005-11-24 22:22:29 +0000426 mv parse.h parse.h.temp
427 awk -f $(TOP)/addopcodes.awk parse.h.temp >parse.h
drh71eb93e2001-09-28 01:34:43 +0000428
drhc11d4f92003-04-06 21:08:24 +0000429pragma.o: $(TOP)/src/pragma.c $(HDR)
430 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/pragma.c
431
danielk1977fa256a32005-05-25 04:11:56 +0000432prepare.o: $(TOP)/src/prepare.c $(HDR)
433 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/prepare.c
434
drh71eb93e2001-09-28 01:34:43 +0000435printf.o: $(TOP)/src/printf.c $(HDR)
436 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/printf.c
437
drhbbd42a62004-05-22 17:41:58 +0000438random.o: $(TOP)/src/random.c $(HDR)
439 $(TCCX) -c $(TOP)/src/random.c
drhc11d4f92003-04-06 21:08:24 +0000440
drhbbd42a62004-05-22 17:41:58 +0000441select.o: $(TOP)/src/select.c $(HDR)
442 $(TCCX) -c $(TOP)/src/select.c
drhed6c8672003-01-12 18:02:16 +0000443
drh1d482dd2004-05-31 18:23:07 +0000444sqlite3.h: $(TOP)/src/sqlite.h.in
drhbbd42a62004-05-22 17:41:58 +0000445 sed -e s/--VERS--/`cat ${TOP}/VERSION`/ \
drhf1878b42006-01-23 18:06:52 +0000446 -e s/--VERSION-NUMBER--/`cat ${TOP}/VERSION | sed 's/[^0-9]/ /g' | $(NAWK) '{printf "%d%03d%03d",$$1,$$2,$$3}'`/ \
drh1d482dd2004-05-31 18:23:07 +0000447 $(TOP)/src/sqlite.h.in >sqlite3.h
drhbbd42a62004-05-22 17:41:58 +0000448
449table.o: $(TOP)/src/table.c $(HDR)
450 $(TCCX) -c $(TOP)/src/table.c
451
452tclsqlite.o: $(TOP)/src/tclsqlite.c $(HDR)
453 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/tclsqlite.c
454
drh73b211a2005-01-18 04:00:42 +0000455tokenize.o: $(TOP)/src/tokenize.c keywordhash.h $(HDR)
drhbbd42a62004-05-22 17:41:58 +0000456 $(TCCX) -c $(TOP)/src/tokenize.c
457
drh73b211a2005-01-18 04:00:42 +0000458keywordhash.h: $(TOP)/tool/mkkeywordhash.c
drh52fb6d72004-11-03 03:59:57 +0000459 $(BCC) -o mkkeywordhash $(OPTS) $(TOP)/tool/mkkeywordhash.c
drh73b211a2005-01-18 04:00:42 +0000460 ./mkkeywordhash >keywordhash.h
drh52fb6d72004-11-03 03:59:57 +0000461
drhbbd42a62004-05-22 17:41:58 +0000462trigger.o: $(TOP)/src/trigger.c $(HDR)
463 $(TCCX) -c $(TOP)/src/trigger.c
464
465update.o: $(TOP)/src/update.c $(HDR)
466 $(TCCX) -c $(TOP)/src/update.c
467
468utf.o: $(TOP)/src/utf.c $(HDR)
469 $(TCCX) -c $(TOP)/src/utf.c
470
471util.o: $(TOP)/src/util.c $(HDR)
472 $(TCCX) -c $(TOP)/src/util.c
473
474vacuum.o: $(TOP)/src/vacuum.c $(HDR)
475 $(TCCX) -c $(TOP)/src/vacuum.c
476
drhde087bd2007-02-23 03:00:44 +0000477vdbe.o: $(TOP)/src/vdbe.c $(VDBEHDR) $(HDR)
drhbbd42a62004-05-22 17:41:58 +0000478 $(TCCX) -c $(TOP)/src/vdbe.c
479
drhde087bd2007-02-23 03:00:44 +0000480vdbeapi.o: $(TOP)/src/vdbeapi.c $(VDBEHDR) $(HDR)
drheb2e1762004-05-27 01:53:56 +0000481 $(TCCX) -c $(TOP)/src/vdbeapi.c
482
drhde087bd2007-02-23 03:00:44 +0000483vdbeaux.o: $(TOP)/src/vdbeaux.c $(VDBEHDR) $(HDR)
drhbbd42a62004-05-22 17:41:58 +0000484 $(TCCX) -c $(TOP)/src/vdbeaux.c
485
danielk1977b4e9af92007-05-01 17:49:49 +0000486vdbeblob.o: $(TOP)/src/vdbeblob.c $(VDBEHDR) $(HDR)
487 $(TCCX) -c $(TOP)/src/vdbeblob.c
488
drhde087bd2007-02-23 03:00:44 +0000489vdbefifo.o: $(TOP)/src/vdbefifo.c $(VDBEHDR) $(HDR)
drha01f79d2005-07-08 13:07:59 +0000490 $(TCCX) -c $(TOP)/src/vdbefifo.c
491
drhde087bd2007-02-23 03:00:44 +0000492vdbemem.o: $(TOP)/src/vdbemem.c $(VDBEHDR) $(HDR)
drheb2e1762004-05-27 01:53:56 +0000493 $(TCCX) -c $(TOP)/src/vdbemem.c
494
drhde087bd2007-02-23 03:00:44 +0000495vtab.o: $(TOP)/src/vtab.c $(VDBEHDR) $(HDR)
drhb9bb7c12006-06-11 23:41:55 +0000496 $(TCCX) -c $(TOP)/src/vtab.c
497
drhbbd42a62004-05-22 17:41:58 +0000498where.o: $(TOP)/src/where.c $(HDR)
499 $(TCCX) -c $(TOP)/src/where.c
500
danielk1977576d3db2007-06-25 14:28:48 +0000501# Rules to build the extension objects.
502#
503icu.o: $(TOP)/ext/icu/icu.c $(HDR) $(EXTHDR)
504 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/icu/icu.c
505
506fts2.o: $(TOP)/ext/fts2/fts2.c $(HDR) $(EXTHDR)
507 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2.c
508
509fts2_hash.o: $(TOP)/ext/fts2/fts2_hash.c $(HDR) $(EXTHDR)
510 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_hash.c
511
512fts2_icu.o: $(TOP)/ext/fts2/fts2_icu.c $(HDR) $(EXTHDR)
513 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_icu.c
514
515fts2_porter.o: $(TOP)/ext/fts2/fts2_porter.c $(HDR) $(EXTHDR)
516 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_porter.c
517
518fts2_tokenizer.o: $(TOP)/ext/fts2/fts2_tokenizer.c $(HDR) $(EXTHDR)
519 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer.c
520
521fts2_tokenizer1.o: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR) $(EXTHDR)
522 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer1.c
523
shess69c4ae22007-08-20 17:37:47 +0000524fts3.o: $(TOP)/ext/fts3/fts3.c $(HDR) $(EXTHDR)
525 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3.c
526
527fts3_hash.o: $(TOP)/ext/fts3/fts3_hash.c $(HDR) $(EXTHDR)
528 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_hash.c
529
530fts3_icu.o: $(TOP)/ext/fts3/fts3_icu.c $(HDR) $(EXTHDR)
531 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_icu.c
532
533fts3_porter.o: $(TOP)/ext/fts3/fts3_porter.c $(HDR) $(EXTHDR)
534 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_porter.c
535
536fts3_tokenizer.o: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR) $(EXTHDR)
537 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer.c
538
539fts3_tokenizer1.o: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR) $(EXTHDR)
540 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer1.c
541
danielk1977576d3db2007-06-25 14:28:48 +0000542
drhbbd42a62004-05-22 17:41:58 +0000543# Rules for building test programs and for running tests
544#
drh1d482dd2004-05-31 18:23:07 +0000545tclsqlite3: $(TOP)/src/tclsqlite.c libsqlite3.a
546 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 -o tclsqlite3 \
danielk1977bc6ada42004-06-30 08:20:16 +0000547 $(TOP)/src/tclsqlite.c libsqlite3.a $(LIBTCL) $(THREADLIB)
drh71eb93e2001-09-28 01:34:43 +0000548
drh1d482dd2004-05-31 18:23:07 +0000549testfixture$(EXE): $(TOP)/src/tclsqlite.c libsqlite3.a $(TESTSRC)
drh66560ad2006-01-06 14:32:19 +0000550 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 \
drh29c636b2006-01-09 23:40:25 +0000551 -DSQLITE_SERVER=1 -o testfixture$(EXE) \
danielk1977576d3db2007-06-25 14:28:48 +0000552 -DSQLITE_CORE $(TESTSRC) $(TOP)/src/tclsqlite.c \
drh1d482dd2004-05-31 18:23:07 +0000553 libsqlite3.a $(LIBTCL) $(THREADLIB)
drh71eb93e2001-09-28 01:34:43 +0000554
drh9c06c952005-11-26 00:25:00 +0000555fulltest: testfixture$(EXE) sqlite3$(EXE)
drh71eb93e2001-09-28 01:34:43 +0000556 ./testfixture$(EXE) $(TOP)/test/all.test
557
drh44548ec2007-06-18 12:22:43 +0000558soaktest: testfixture$(EXE) sqlite3$(EXE)
559 ./testfixture$(EXE) $(TOP)/test/all.test -soak 1
560
drh1d482dd2004-05-31 18:23:07 +0000561test: testfixture$(EXE) sqlite3$(EXE)
drh71eb93e2001-09-28 01:34:43 +0000562 ./testfixture$(EXE) $(TOP)/test/quick.test
563
drh3e27c022004-07-23 00:01:38 +0000564sqlite3_analyzer$(EXE): $(TOP)/src/tclsqlite.c libsqlite3.a $(TESTSRC) \
565 $(TOP)/tool/spaceanal.tcl
566 sed \
567 -e '/^#/d' \
568 -e 's,\\,\\\\,g' \
569 -e 's,",\\",g' \
570 -e 's,^,",' \
571 -e 's,$$,\\n",' \
572 $(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h
drh2d02a672006-01-25 15:55:37 +0000573 $(TCCX) $(TCL_FLAGS) -DTCLSH=2 -DSQLITE_TEST=1 -DSQLITE_DEBUG=1 -o \
shessd8c16482007-07-17 17:22:03 +0000574 sqlite3_analyzer$(EXE) $(TESTSRC) $(TOP)/src/tclsqlite.c \
drh3e27c022004-07-23 00:01:38 +0000575 libsqlite3.a $(LIBTCL) $(THREADLIB)
576
danielk197769e777f2006-06-14 10:38:02 +0000577TEST_EXTENSION = $(SHPREFIX)testloadext.$(SO)
578$(TEST_EXTENSION): $(TOP)/src/test_loadext.c
579 $(MKSHLIB) $(TOP)/src/test_loadext.c -o $(TEST_EXTENSION)
580
581extensiontest: testfixture$(EXE) $(TEST_EXTENSION)
582 ./testfixture$(EXE) $(TOP)/test/loadext.test
583
drhbbd42a62004-05-22 17:41:58 +0000584# Rules used to build documentation
585#
586arch.html: $(TOP)/www/arch.tcl
587 tclsh $(TOP)/www/arch.tcl >arch.html
drh71eb93e2001-09-28 01:34:43 +0000588
drhf8565822004-11-21 01:02:00 +0000589autoinc.html: $(TOP)/www/autoinc.tcl
590 tclsh $(TOP)/www/autoinc.tcl >autoinc.html
591
drh71eb93e2001-09-28 01:34:43 +0000592c_interface.html: $(TOP)/www/c_interface.tcl
593 tclsh $(TOP)/www/c_interface.tcl >c_interface.html
594
drh1d482dd2004-05-31 18:23:07 +0000595capi3.html: $(TOP)/www/capi3.tcl
596 tclsh $(TOP)/www/capi3.tcl >capi3.html
597
drh6ed48bf2007-06-14 20:57:18 +0000598capi3ref.html: $(TOP)/www/mkapidoc.tcl sqlite3.h
599 tclsh $(TOP)/www/mkapidoc.tcl <sqlite3.h >capi3ref.html
drh93db69e2004-06-01 01:22:37 +0000600
drh71eb93e2001-09-28 01:34:43 +0000601changes.html: $(TOP)/www/changes.tcl
602 tclsh $(TOP)/www/changes.tcl >changes.html
603
drhf8565822004-11-21 01:02:00 +0000604compile.html: $(TOP)/www/compile.tcl
605 tclsh $(TOP)/www/compile.tcl >compile.html
606
drhd4acf192004-05-31 16:04:08 +0000607copyright.html: $(TOP)/www/copyright.tcl
608 tclsh $(TOP)/www/copyright.tcl >copyright.html
609
610copyright-release.html: $(TOP)/www/copyright-release.html
611 cp $(TOP)/www/copyright-release.html .
612
613copyright-release.pdf: $(TOP)/www/copyright-release.pdf
614 cp $(TOP)/www/copyright-release.pdf .
615
616common.tcl: $(TOP)/www/common.tcl
617 cp $(TOP)/www/common.tcl .
618
drhbbd42a62004-05-22 17:41:58 +0000619conflict.html: $(TOP)/www/conflict.tcl
620 tclsh $(TOP)/www/conflict.tcl >conflict.html
621
622datatypes.html: $(TOP)/www/datatypes.tcl
623 tclsh $(TOP)/www/datatypes.tcl >datatypes.html
624
drh1d482dd2004-05-31 18:23:07 +0000625datatype3.html: $(TOP)/www/datatype3.tcl
626 tclsh $(TOP)/www/datatype3.tcl >datatype3.html
627
drh9179fd92005-03-12 15:55:10 +0000628different.html: $(TOP)/www/different.tcl
629 tclsh $(TOP)/www/different.tcl >different.html
630
drhd4acf192004-05-31 16:04:08 +0000631docs.html: $(TOP)/www/docs.tcl
632 tclsh $(TOP)/www/docs.tcl >docs.html
633
drhbbd42a62004-05-22 17:41:58 +0000634download.html: $(TOP)/www/download.tcl
danielk1977cf991b32004-06-24 01:30:44 +0000635 mkdir -p doc
drhbbd42a62004-05-22 17:41:58 +0000636 tclsh $(TOP)/www/download.tcl >download.html
637
638faq.html: $(TOP)/www/faq.tcl
639 tclsh $(TOP)/www/faq.tcl >faq.html
640
641fileformat.html: $(TOP)/www/fileformat.tcl
642 tclsh $(TOP)/www/fileformat.tcl >fileformat.html
643
644formatchng.html: $(TOP)/www/formatchng.tcl
645 tclsh $(TOP)/www/formatchng.tcl >formatchng.html
646
647index.html: $(TOP)/www/index.tcl last_change
drhd4acf192004-05-31 16:04:08 +0000648 tclsh $(TOP)/www/index.tcl >index.html
drhbbd42a62004-05-22 17:41:58 +0000649
drhb0e64f32007-06-09 09:53:51 +0000650limits.html: $(TOP)/www/limits.tcl last_change
651 tclsh $(TOP)/www/limits.tcl >limits.html
652
drh71eb93e2001-09-28 01:34:43 +0000653lang.html: $(TOP)/www/lang.tcl
danielk1977cd45ab22004-11-19 11:59:23 +0000654 tclsh $(TOP)/www/lang.tcl doc >lang.html
drh71eb93e2001-09-28 01:34:43 +0000655
danielk19772a03c3a2004-11-10 05:48:57 +0000656pragma.html: $(TOP)/www/pragma.tcl
657 tclsh $(TOP)/www/pragma.tcl >pragma.html
658
drh52619df2004-06-11 17:48:02 +0000659lockingv3.html: $(TOP)/www/lockingv3.tcl
660 tclsh $(TOP)/www/lockingv3.tcl >lockingv3.html
661
danielk1977da184232006-01-05 11:34:32 +0000662sharedcache.html: $(TOP)/www/sharedcache.tcl
663 tclsh $(TOP)/www/sharedcache.tcl >sharedcache.html
664
drh8897f6f2005-08-30 22:44:29 +0000665mingw.html: $(TOP)/www/mingw.tcl
666 tclsh $(TOP)/www/mingw.tcl >mingw.html
667
668nulls.html: $(TOP)/www/nulls.tcl
669 tclsh $(TOP)/www/nulls.tcl >nulls.html
670
drh7b93ed32004-06-16 03:02:00 +0000671oldnews.html: $(TOP)/www/oldnews.tcl
672 tclsh $(TOP)/www/oldnews.tcl >oldnews.html
673
drhbbd42a62004-05-22 17:41:58 +0000674omitted.html: $(TOP)/www/omitted.tcl
675 tclsh $(TOP)/www/omitted.tcl >omitted.html
drh71eb93e2001-09-28 01:34:43 +0000676
677opcode.html: $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c
678 tclsh $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c >opcode.html
679
drh8897f6f2005-08-30 22:44:29 +0000680optimizer.html: $(TOP)/www/optimizer.tcl
681 tclsh $(TOP)/www/optimizer.tcl >optimizer.html
drhfbe43752002-08-14 00:08:12 +0000682
drhf6ac6572005-08-31 01:49:59 +0000683optoverview.html: $(TOP)/www/optoverview.tcl
684 tclsh $(TOP)/www/optoverview.tcl >optoverview.html
685
drhc2774132002-08-15 13:45:17 +0000686quickstart.html: $(TOP)/www/quickstart.tcl
687 tclsh $(TOP)/www/quickstart.tcl >quickstart.html
688
drhbbd42a62004-05-22 17:41:58 +0000689speed.html: $(TOP)/www/speed.tcl
690 tclsh $(TOP)/www/speed.tcl >speed.html
drhd8acdb32002-08-18 19:09:22 +0000691
drhbbd42a62004-05-22 17:41:58 +0000692sqlite.html: $(TOP)/www/sqlite.tcl
693 tclsh $(TOP)/www/sqlite.tcl >sqlite.html
694
drhd4acf192004-05-31 16:04:08 +0000695support.html: $(TOP)/www/support.tcl
696 tclsh $(TOP)/www/support.tcl >support.html
697
drhbbd42a62004-05-22 17:41:58 +0000698tclsqlite.html: $(TOP)/www/tclsqlite.tcl
699 tclsh $(TOP)/www/tclsqlite.tcl >tclsqlite.html
700
701vdbe.html: $(TOP)/www/vdbe.tcl
702 tclsh $(TOP)/www/vdbe.tcl >vdbe.html
drh96f45312002-09-02 14:11:02 +0000703
drha2854222004-06-17 19:04:17 +0000704version3.html: $(TOP)/www/version3.tcl
705 tclsh $(TOP)/www/version3.tcl >version3.html
706
drhe4254642005-01-21 18:19:27 +0000707whentouse.html: $(TOP)/www/whentouse.tcl
708 tclsh $(TOP)/www/whentouse.tcl >whentouse.html
709
drh50d3f902007-08-27 21:10:36 +000071034to35.html: $(TOP)/www/34to35.tcl
711 tclsh $(TOP)/www/34to35.tcl >34to35.html
712
drh71eb93e2001-09-28 01:34:43 +0000713
714# Files to be published on the website.
715#
drh90ca9752001-09-28 17:47:14 +0000716DOC = \
drh71eb93e2001-09-28 01:34:43 +0000717 arch.html \
drhf8565822004-11-21 01:02:00 +0000718 autoinc.html \
drh71eb93e2001-09-28 01:34:43 +0000719 c_interface.html \
drh1d482dd2004-05-31 18:23:07 +0000720 capi3.html \
drh93db69e2004-06-01 01:22:37 +0000721 capi3ref.html \
drh1d482dd2004-05-31 18:23:07 +0000722 changes.html \
drhf8565822004-11-21 01:02:00 +0000723 compile.html \
drhd4acf192004-05-31 16:04:08 +0000724 copyright.html \
725 copyright-release.html \
726 copyright-release.pdf \
drh76800322002-08-13 20:45:39 +0000727 conflict.html \
drhc2774132002-08-15 13:45:17 +0000728 datatypes.html \
drh1d482dd2004-05-31 18:23:07 +0000729 datatype3.html \
drh9179fd92005-03-12 15:55:10 +0000730 different.html \
drhd4acf192004-05-31 16:04:08 +0000731 docs.html \
drhbbd42a62004-05-22 17:41:58 +0000732 download.html \
733 faq.html \
drh96f45312002-09-02 14:11:02 +0000734 fileformat.html \
drhbbd42a62004-05-22 17:41:58 +0000735 formatchng.html \
736 index.html \
drhb0e64f32007-06-09 09:53:51 +0000737 limits.html \
drhbbd42a62004-05-22 17:41:58 +0000738 lang.html \
drh52619df2004-06-11 17:48:02 +0000739 lockingv3.html \
drhbbd42a62004-05-22 17:41:58 +0000740 mingw.html \
741 nulls.html \
drh7b93ed32004-06-16 03:02:00 +0000742 oldnews.html \
drhbbd42a62004-05-22 17:41:58 +0000743 omitted.html \
744 opcode.html \
drh8897f6f2005-08-30 22:44:29 +0000745 optimizer.html \
drhf6ac6572005-08-31 01:49:59 +0000746 optoverview.html \
danielk19772a03c3a2004-11-10 05:48:57 +0000747 pragma.html \
drhbbd42a62004-05-22 17:41:58 +0000748 quickstart.html \
danielk1977da184232006-01-05 11:34:32 +0000749 sharedcache.html \
drhbbd42a62004-05-22 17:41:58 +0000750 speed.html \
751 sqlite.html \
drhd4acf192004-05-31 16:04:08 +0000752 support.html \
drhbbd42a62004-05-22 17:41:58 +0000753 tclsqlite.html \
drha2854222004-06-17 19:04:17 +0000754 vdbe.html \
drhe4254642005-01-21 18:19:27 +0000755 version3.html \
drh50d3f902007-08-27 21:10:36 +0000756 whentouse.html \
757 34to35.html
drh71eb93e2001-09-28 01:34:43 +0000758
drhd4acf192004-05-31 16:04:08 +0000759doc: common.tcl $(DOC)
drh90ca9752001-09-28 17:47:14 +0000760 mkdir -p doc
761 mv $(DOC) doc
drh8897f6f2005-08-30 22:44:29 +0000762 cp $(TOP)/www/*.gif $(TOP)/art/*.gif doc
drh71eb93e2001-09-28 01:34:43 +0000763
drhbbd42a62004-05-22 17:41:58 +0000764# Standard install and cleanup targets
765#
drh1d482dd2004-05-31 18:23:07 +0000766install: sqlite3 libsqlite3.a sqlite3.h
767 mv sqlite3 /usr/bin
768 mv libsqlite3.a /usr/lib
769 mv sqlite3.h /usr/include
drh71eb93e2001-09-28 01:34:43 +0000770
771clean:
drh9c06c952005-11-26 00:25:00 +0000772 rm -f *.o sqlite3 libsqlite3.a sqlite3.h opcodes.*
drh73b211a2005-01-18 04:00:42 +0000773 rm -f lemon lempar.c parse.* sqlite*.tar.gz mkkeywordhash keywordhash.h
drh71eb93e2001-09-28 01:34:43 +0000774 rm -f $(PUBLISH)
775 rm -f *.da *.bb *.bbg gmon.out
776 rm -rf tsrc
drhf80ad492006-09-02 22:14:59 +0000777 rm -f testloadext.dll libtestloadext.so