blob: 0b72c9296b3be85652afc379383515a6b4241b72 [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#
drh900b31e2007-08-28 02:27:51 +000058LIBOBJ+= alter.o analyze.o attach.o auth.o btmutex.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 \
drh437b9012007-08-28 16:34:42 +000061 main.o malloc.o mem1.o mem2.o mutex.o mutex_os2.o \
62 mutex_unix.o mutex_w32.o \
drh90f6a5b2007-08-15 13:04:54 +000063 opcodes.o os.o os_os2.o os_unix.o os_win.o \
danielk1977fa256a32005-05-25 04:11:56 +000064 pager.o parse.o pragma.o prepare.o printf.o random.o \
drh38f82712004-06-18 17:10:16 +000065 select.o table.o tclsqlite.o tokenize.o trigger.o \
66 update.o util.o vacuum.o \
danielk1977b4e9af92007-05-01 17:49:49 +000067 vdbe.o vdbeapi.o vdbeaux.o vdbeblob.o vdbefifo.o vdbemem.o \
drhb9bb7c12006-06-11 23:41:55 +000068 where.o utf.o legacy.o vtab.o
drh71eb93e2001-09-28 01:34:43 +000069
shess69c4ae22007-08-20 17:37:47 +000070EXTOBJ = icu.o
71EXTOBJ += fts1.o \
72 fts1_hash.o \
73 fts1_tokenizer1.o \
74 fts1_porter.o
75EXTOBJ += fts2.o \
76 fts2_hash.o \
77 fts2_icu.o \
78 fts2_porter.o \
79 fts2_tokenizer.o \
80 fts2_tokenizer1.o
81EXTOBJ += fts3.o \
82 fts3_hash.o \
83 fts3_icu.o \
84 fts3_porter.o \
85 fts3_tokenizer.o \
86 fts3_tokenizer1.o
danielk1977576d3db2007-06-25 14:28:48 +000087
drh71eb93e2001-09-28 01:34:43 +000088# All of the source code files.
89#
90SRC = \
drhd0e4a6c2005-02-15 20:47:57 +000091 $(TOP)/src/alter.c \
drh9f18e8a2005-07-08 12:13:04 +000092 $(TOP)/src/analyze.c \
drhc11d4f92003-04-06 21:08:24 +000093 $(TOP)/src/attach.c \
drhed6c8672003-01-12 18:02:16 +000094 $(TOP)/src/auth.c \
drh900b31e2007-08-28 02:27:51 +000095 $(TOP)/src/btmutex.c \
drh71eb93e2001-09-28 01:34:43 +000096 $(TOP)/src/btree.c \
97 $(TOP)/src/btree.h \
98 $(TOP)/src/build.c \
danielk1977fd9a0a42005-05-24 12:01:00 +000099 $(TOP)/src/callback.c \
drha2b902d2005-08-14 17:53:20 +0000100 $(TOP)/src/complete.c \
drh7014aff2003-11-01 01:53:53 +0000101 $(TOP)/src/date.c \
drh71eb93e2001-09-28 01:34:43 +0000102 $(TOP)/src/delete.c \
103 $(TOP)/src/expr.c \
drhdc04c582002-02-24 01:55:15 +0000104 $(TOP)/src/func.c \
drh71eb93e2001-09-28 01:34:43 +0000105 $(TOP)/src/hash.c \
106 $(TOP)/src/hash.h \
107 $(TOP)/src/insert.c \
danielk1977c7b60172007-08-22 11:22:03 +0000108 $(TOP)/src/journal.c \
drh014ac192004-06-01 01:45:11 +0000109 $(TOP)/src/legacy.c \
drh1e397f82006-06-08 15:28:43 +0000110 $(TOP)/src/loadext.c \
drh71eb93e2001-09-28 01:34:43 +0000111 $(TOP)/src/main.c \
drha3152892007-05-05 11:48:52 +0000112 $(TOP)/src/malloc.c \
drh4c3645c2007-08-15 17:07:57 +0000113 $(TOP)/src/mem1.c \
114 $(TOP)/src/mem2.c \
drh90f6a5b2007-08-15 13:04:54 +0000115 $(TOP)/src/mutex.c \
drh437b9012007-08-28 16:34:42 +0000116 $(TOP)/src/mutex_os2.c \
117 $(TOP)/src/mutex_unix.c \
118 $(TOP)/src/mutex_w32.c \
drh054889e2005-11-30 03:20:31 +0000119 $(TOP)/src/os.c \
drh60a1e4b2006-06-03 18:02:15 +0000120 $(TOP)/src/os_os2.c \
drhbbd42a62004-05-22 17:41:58 +0000121 $(TOP)/src/os_unix.c \
122 $(TOP)/src/os_win.c \
drh71eb93e2001-09-28 01:34:43 +0000123 $(TOP)/src/pager.c \
124 $(TOP)/src/pager.h \
125 $(TOP)/src/parse.y \
drhc11d4f92003-04-06 21:08:24 +0000126 $(TOP)/src/pragma.c \
danielk1977fa256a32005-05-25 04:11:56 +0000127 $(TOP)/src/prepare.c \
drh71eb93e2001-09-28 01:34:43 +0000128 $(TOP)/src/printf.c \
129 $(TOP)/src/random.c \
130 $(TOP)/src/select.c \
131 $(TOP)/src/shell.c \
132 $(TOP)/src/sqlite.h.in \
drhde087bd2007-02-23 03:00:44 +0000133 $(TOP)/src/sqlite3ext.h \
drh71eb93e2001-09-28 01:34:43 +0000134 $(TOP)/src/sqliteInt.h \
135 $(TOP)/src/table.c \
136 $(TOP)/src/tclsqlite.c \
137 $(TOP)/src/tokenize.c \
drhdc379452002-05-15 12:45:43 +0000138 $(TOP)/src/trigger.c \
drh1bbf5ee2004-05-11 01:18:24 +0000139 $(TOP)/src/utf.c \
drh71eb93e2001-09-28 01:34:43 +0000140 $(TOP)/src/update.c \
141 $(TOP)/src/util.c \
drhe1051c62003-04-06 20:52:32 +0000142 $(TOP)/src/vacuum.c \
drh71eb93e2001-09-28 01:34:43 +0000143 $(TOP)/src/vdbe.c \
144 $(TOP)/src/vdbe.h \
drheb2e1762004-05-27 01:53:56 +0000145 $(TOP)/src/vdbeapi.c \
drh9a324642003-09-06 20:12:01 +0000146 $(TOP)/src/vdbeaux.c \
danielk1977b4e9af92007-05-01 17:49:49 +0000147 $(TOP)/src/vdbeblob.c \
drha01f79d2005-07-08 13:07:59 +0000148 $(TOP)/src/vdbefifo.c \
drheb2e1762004-05-27 01:53:56 +0000149 $(TOP)/src/vdbemem.c \
drh9a324642003-09-06 20:12:01 +0000150 $(TOP)/src/vdbeInt.h \
drhb9bb7c12006-06-11 23:41:55 +0000151 $(TOP)/src/vtab.c \
drh71eb93e2001-09-28 01:34:43 +0000152 $(TOP)/src/where.c
153
drh0c979402006-10-03 19:12:32 +0000154# Source code for extensions
155#
156SRC += \
157 $(TOP)/ext/fts1/fts1.c \
158 $(TOP)/ext/fts1/fts1.h \
159 $(TOP)/ext/fts1/fts1_hash.c \
160 $(TOP)/ext/fts1/fts1_hash.h \
161 $(TOP)/ext/fts1/fts1_porter.c \
162 $(TOP)/ext/fts1/fts1_tokenizer.h \
163 $(TOP)/ext/fts1/fts1_tokenizer1.c
drhde087bd2007-02-23 03:00:44 +0000164SRC += \
165 $(TOP)/ext/fts2/fts2.c \
166 $(TOP)/ext/fts2/fts2.h \
167 $(TOP)/ext/fts2/fts2_hash.c \
168 $(TOP)/ext/fts2/fts2_hash.h \
drhd6e78a22007-07-20 13:42:26 +0000169 $(TOP)/ext/fts2/fts2_icu.c \
drhde087bd2007-02-23 03:00:44 +0000170 $(TOP)/ext/fts2/fts2_porter.c \
171 $(TOP)/ext/fts2/fts2_tokenizer.h \
drhd6e78a22007-07-20 13:42:26 +0000172 $(TOP)/ext/fts2/fts2_tokenizer.c \
drhde087bd2007-02-23 03:00:44 +0000173 $(TOP)/ext/fts2/fts2_tokenizer1.c
danielk197708ada512007-06-26 10:56:40 +0000174SRC += \
shess69c4ae22007-08-20 17:37:47 +0000175 $(TOP)/ext/fts3/fts3.c \
176 $(TOP)/ext/fts3/fts3.h \
177 $(TOP)/ext/fts3/fts3_hash.c \
178 $(TOP)/ext/fts3/fts3_hash.h \
179 $(TOP)/ext/fts3/fts3_icu.c \
180 $(TOP)/ext/fts3/fts3_porter.c \
181 $(TOP)/ext/fts3/fts3_tokenizer.h \
182 $(TOP)/ext/fts3/fts3_tokenizer.c \
183 $(TOP)/ext/fts3/fts3_tokenizer1.c
184SRC += \
danielk197708ada512007-06-26 10:56:40 +0000185 $(TOP)/ext/icu/icu.c
drhde087bd2007-02-23 03:00:44 +0000186
danielk197777b03a22007-06-20 08:49:05 +0000187
drhde087bd2007-02-23 03:00:44 +0000188# Generated source code files
189#
190SRC += \
191 keywordhash.h \
192 opcodes.c \
193 opcodes.h \
194 parse.c \
195 parse.h \
196 sqlite3.h
drh0c979402006-10-03 19:12:32 +0000197
198
drh71eb93e2001-09-28 01:34:43 +0000199# Source code to the test files.
200#
drhb6f41482004-05-14 01:58:11 +0000201TESTSRC = \
drh71eb93e2001-09-28 01:34:43 +0000202 $(TOP)/src/btree.c \
drh6c626082004-11-14 21:56:29 +0000203 $(TOP)/src/date.c \
drh74587e52002-08-13 00:01:16 +0000204 $(TOP)/src/func.c \
danielk1977b4622b62007-03-02 06:24:19 +0000205 $(TOP)/src/insert.c \
danielk1977161fb792006-01-24 10:58:21 +0000206 $(TOP)/src/os.c \
drh60a1e4b2006-06-03 18:02:15 +0000207 $(TOP)/src/os_os2.c \
drhbbd42a62004-05-22 17:41:58 +0000208 $(TOP)/src/os_unix.c \
209 $(TOP)/src/os_win.c \
drh71eb93e2001-09-28 01:34:43 +0000210 $(TOP)/src/pager.c \
drh998da3a2004-06-19 15:22:56 +0000211 $(TOP)/src/pragma.c \
drh38f82712004-06-18 17:10:16 +0000212 $(TOP)/src/printf.c \
drh437b9012007-08-28 16:34:42 +0000213 $(TOP)/src/select.c \
drh71eb93e2001-09-28 01:34:43 +0000214 $(TOP)/src/test1.c \
215 $(TOP)/src/test2.c \
216 $(TOP)/src/test3.c \
drha6064dc2003-12-19 02:52:05 +0000217 $(TOP)/src/test4.c \
danielk19774adee202004-05-08 08:23:19 +0000218 $(TOP)/src/test5.c \
drh9c06c952005-11-26 00:25:00 +0000219 $(TOP)/src/test6.c \
drh29c636b2006-01-09 23:40:25 +0000220 $(TOP)/src/test7.c \
drhb9bb7c12006-06-11 23:41:55 +0000221 $(TOP)/src/test8.c \
danielk1977a713f2c2007-03-29 12:19:11 +0000222 $(TOP)/src/test9.c \
drh1409be62006-08-23 20:07:20 +0000223 $(TOP)/src/test_autoext.c \
drh23669402006-01-09 17:29:52 +0000224 $(TOP)/src/test_async.c \
drh16a9b832007-05-05 18:39:25 +0000225 $(TOP)/src/test_btree.c \
drhc797d4d2007-05-08 01:08:49 +0000226 $(TOP)/src/test_config.c \
drh15926592007-04-06 15:02:13 +0000227 $(TOP)/src/test_hexio.c \
drh2f999a62007-08-15 19:16:43 +0000228 $(TOP)/src/test_malloc.c \
drh2d02a672006-01-25 15:55:37 +0000229 $(TOP)/src/test_md5.c \
danielk1977954ce992006-06-15 15:59:19 +0000230 $(TOP)/src/test_schema.c \
drh2d02a672006-01-25 15:55:37 +0000231 $(TOP)/src/test_server.c \
drh4be8b512006-06-13 23:51:34 +0000232 $(TOP)/src/test_tclvar.c \
drh38f82712004-06-18 17:10:16 +0000233 $(TOP)/src/utf.c \
drhed6b3eb2004-09-08 21:12:50 +0000234 $(TOP)/src/util.c \
drhf6038712004-02-08 18:07:34 +0000235 $(TOP)/src/vdbe.c \
drh29a01382006-08-13 19:04:18 +0000236 $(TOP)/src/vdbeaux.c \
shess69c4ae22007-08-20 17:37:47 +0000237 $(TOP)/src/where.c
238TESTSRC += $(TOP)/ext/fts2/fts2_tokenizer.c
239TESTSRC += $(TOP)/ext/fts3/fts3_tokenizer.c
drh71eb93e2001-09-28 01:34:43 +0000240
241# Header files used by all library source files.
242#
243HDR = \
drh71eb93e2001-09-28 01:34:43 +0000244 $(TOP)/src/btree.h \
drha3152892007-05-05 11:48:52 +0000245 $(TOP)/src/btreeInt.h \
drh71eb93e2001-09-28 01:34:43 +0000246 $(TOP)/src/hash.h \
drh437b9012007-08-28 16:34:42 +0000247 $(TOP)/src/mutex.h \
drh8f619cc2002-09-08 00:04:50 +0000248 opcodes.h \
drh71eb93e2001-09-28 01:34:43 +0000249 $(TOP)/src/os.h \
drh014ac192004-06-01 01:45:11 +0000250 $(TOP)/src/os_common.h \
drh437b9012007-08-28 16:34:42 +0000251 sqlite3.h \
drh1e397f82006-06-08 15:28:43 +0000252 $(TOP)/src/sqlite3ext.h \
drh71eb93e2001-09-28 01:34:43 +0000253 $(TOP)/src/sqliteInt.h \
drh437b9012007-08-28 16:34:42 +0000254 $(TOP)/src/sqliteLimit.h \
drh9a324642003-09-06 20:12:01 +0000255 $(TOP)/src/vdbe.h \
drh71eb93e2001-09-28 01:34:43 +0000256 parse.h
257
drh0c979402006-10-03 19:12:32 +0000258# Header files used by extensions
259#
drhde087bd2007-02-23 03:00:44 +0000260EXTHDR += \
drh0c979402006-10-03 19:12:32 +0000261 $(TOP)/ext/fts1/fts1.h \
262 $(TOP)/ext/fts1/fts1_hash.h \
263 $(TOP)/ext/fts1/fts1_tokenizer.h
drhde087bd2007-02-23 03:00:44 +0000264EXTHDR += \
265 $(TOP)/ext/fts2/fts2.h \
266 $(TOP)/ext/fts2/fts2_hash.h \
267 $(TOP)/ext/fts2/fts2_tokenizer.h
shess69c4ae22007-08-20 17:37:47 +0000268EXTHDR += \
269 $(TOP)/ext/fts3/fts3.h \
270 $(TOP)/ext/fts3/fts3_hash.h \
271 $(TOP)/ext/fts3/fts3_tokenizer.h
drh0c979402006-10-03 19:12:32 +0000272
273
drh9a324642003-09-06 20:12:01 +0000274# Header files used by the VDBE submodule
275#
276VDBEHDR = \
drh9a324642003-09-06 20:12:01 +0000277 $(TOP)/src/vdbeInt.h
278
drh71eb93e2001-09-28 01:34:43 +0000279# This is the default Makefile target. The objects listed here
280# are what get build when you type just "make" with no arguments.
281#
drh97903fe2005-05-24 20:19:57 +0000282all: sqlite3.h libsqlite3.a sqlite3$(EXE)
drh71eb93e2001-09-28 01:34:43 +0000283
284# Generate the file "last_change" which contains the date of change
285# of the most recently modified source code file
286#
287last_change: $(SRC)
drh0c07fb92006-06-27 20:05:23 +0000288 cat $(SRC) | grep '$$Id: ' | sort -k 5 | tail -1 \
drhf1878b42006-01-23 18:06:52 +0000289 | $(NAWK) '{print $$5,$$6}' >last_change
drh71eb93e2001-09-28 01:34:43 +0000290
drhd677b3d2007-08-20 22:48:41 +0000291libsqlite3.a: $(LIBOBJ)
292 $(AR) libsqlite3.a $(LIBOBJ)
drh1d482dd2004-05-31 18:23:07 +0000293 $(RANLIB) libsqlite3.a
drh71eb93e2001-09-28 01:34:43 +0000294
drh1d482dd2004-05-31 18:23:07 +0000295sqlite3$(EXE): $(TOP)/src/shell.c libsqlite3.a sqlite3.h
danielk197777b03a22007-06-20 08:49:05 +0000296 $(TCCX) $(READLINE_FLAGS) -o sqlite3$(EXE) \
danielk197708ada512007-06-26 10:56:40 +0000297 $(TOP)/src/shell.c \
drhf1878b42006-01-23 18:06:52 +0000298 libsqlite3.a $(LIBREADLINE) $(TLIBS) $(THREADLIB)
drh71eb93e2001-09-28 01:34:43 +0000299
danielk19774adee202004-05-08 08:23:19 +0000300objects: $(LIBOBJ_ORIG)
301
drh71eb93e2001-09-28 01:34:43 +0000302# This target creates a directory named "tsrc" and fills it with
303# copies of all of the C source code and header files needed to
304# build on the target system. Some of the C source code and header
305# files are automatically generated. This target takes care of
306# all that automatic generation.
307#
drhde087bd2007-02-23 03:00:44 +0000308target_source: $(SRC)
drh71eb93e2001-09-28 01:34:43 +0000309 rm -rf tsrc
310 mkdir tsrc
drh98495b42007-03-31 22:29:05 +0000311 cp -f $(SRC) $(TOP)/src/*.h tsrc 2>/dev/null
drh71eb93e2001-09-28 01:34:43 +0000312 rm tsrc/sqlite.h.in tsrc/parse.y
drh71eb93e2001-09-28 01:34:43 +0000313
drh98495b42007-03-31 22:29:05 +0000314sqlite3.c: target_source $(TOP)/tool/mksqlite3c.tcl
315 tclsh $(TOP)/tool/mksqlite3c.tcl
drhbd08af42007-04-05 21:58:33 +0000316 cp sqlite3.c tclsqlite3.c
317 cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c
318 tclsh $(TOP)/tool/mksqlite3internalh.tcl
drh98495b42007-03-31 22:29:05 +0000319
drhd6e78a22007-07-20 13:42:26 +0000320fts2amal.c: target_source $(TOP)/ext/fts2/mkfts2amal.tcl
321 tclsh $(TOP)/ext/fts2/mkfts2amal.tcl
322
shess69c4ae22007-08-20 17:37:47 +0000323fts3amal.c: target_source $(TOP)/ext/fts3/mkfts3amal.tcl
324 tclsh $(TOP)/ext/fts3/mkfts3amal.tcl
325
drh71eb93e2001-09-28 01:34:43 +0000326# Rules to build the LEMON compiler generator
327#
328lemon: $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
329 $(BCC) -o lemon $(TOP)/tool/lemon.c
330 cp $(TOP)/tool/lempar.c .
331
drhbbd42a62004-05-22 17:41:58 +0000332# Rules to build individual files
333#
drhd0e4a6c2005-02-15 20:47:57 +0000334alter.o: $(TOP)/src/alter.c $(HDR)
335 $(TCCX) -c $(TOP)/src/alter.c
336
drh9f18e8a2005-07-08 12:13:04 +0000337analyze.o: $(TOP)/src/analyze.c $(HDR)
338 $(TCCX) -c $(TOP)/src/analyze.c
339
drhbbd42a62004-05-22 17:41:58 +0000340attach.o: $(TOP)/src/attach.c $(HDR)
341 $(TCCX) -c $(TOP)/src/attach.c
342
343auth.o: $(TOP)/src/auth.c $(HDR)
344 $(TCCX) -c $(TOP)/src/auth.c
345
drh900b31e2007-08-28 02:27:51 +0000346btmutex.o: $(TOP)/src/btmutex.c $(HDR) $(TOP)/src/btreeInt.h
347 $(TCCX) -c $(TOP)/src/btmutex.c
348
drh71eb93e2001-09-28 01:34:43 +0000349btree.o: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h
350 $(TCCX) -c $(TOP)/src/btree.c
351
352build.o: $(TOP)/src/build.c $(HDR)
353 $(TCCX) -c $(TOP)/src/build.c
354
danielk1977fd9a0a42005-05-24 12:01:00 +0000355callback.o: $(TOP)/src/callback.c $(HDR)
356 $(TCCX) -c $(TOP)/src/callback.c
357
drha2b902d2005-08-14 17:53:20 +0000358complete.o: $(TOP)/src/complete.c $(HDR)
359 $(TCCX) -c $(TOP)/src/complete.c
360
drh7014aff2003-11-01 01:53:53 +0000361date.o: $(TOP)/src/date.c $(HDR)
362 $(TCCX) -c $(TOP)/src/date.c
363
drh71eb93e2001-09-28 01:34:43 +0000364delete.o: $(TOP)/src/delete.c $(HDR)
365 $(TCCX) -c $(TOP)/src/delete.c
366
367expr.o: $(TOP)/src/expr.c $(HDR)
368 $(TCCX) -c $(TOP)/src/expr.c
369
drhdc04c582002-02-24 01:55:15 +0000370func.o: $(TOP)/src/func.c $(HDR)
371 $(TCCX) -c $(TOP)/src/func.c
372
drh71eb93e2001-09-28 01:34:43 +0000373hash.o: $(TOP)/src/hash.c $(HDR)
374 $(TCCX) -c $(TOP)/src/hash.c
375
376insert.o: $(TOP)/src/insert.c $(HDR)
377 $(TCCX) -c $(TOP)/src/insert.c
378
danielk1977c7b60172007-08-22 11:22:03 +0000379journal.o: $(TOP)/src/journal.c $(HDR)
380 $(TCCX) -c $(TOP)/src/journal.c
381
danielk197722322fd2004-05-25 23:35:17 +0000382legacy.o: $(TOP)/src/legacy.c $(HDR)
383 $(TCCX) -c $(TOP)/src/legacy.c
drh71eb93e2001-09-28 01:34:43 +0000384
drh1e397f82006-06-08 15:28:43 +0000385loadext.o: $(TOP)/src/loadext.c $(HDR)
386 $(TCCX) -c $(TOP)/src/loadext.c
387
drhbbd42a62004-05-22 17:41:58 +0000388main.o: $(TOP)/src/main.c $(HDR)
389 $(TCCX) -c $(TOP)/src/main.c
drh71eb93e2001-09-28 01:34:43 +0000390
drha3152892007-05-05 11:48:52 +0000391malloc.o: $(TOP)/src/malloc.c $(HDR)
392 $(TCCX) -c $(TOP)/src/malloc.c
393
drh90f6a5b2007-08-15 13:04:54 +0000394mem1.o: $(TOP)/src/mem1.c $(HDR)
395 $(TCCX) -c $(TOP)/src/mem1.c
396
drh4c3645c2007-08-15 17:07:57 +0000397mem2.o: $(TOP)/src/mem2.c $(HDR)
398 $(TCCX) -c $(TOP)/src/mem2.c
399
drh90f6a5b2007-08-15 13:04:54 +0000400mutex.o: $(TOP)/src/mutex.c $(HDR)
401 $(TCCX) -c $(TOP)/src/mutex.c
402
drh437b9012007-08-28 16:34:42 +0000403mutex_os2.o: $(TOP)/src/mutex_os2.c $(HDR)
404 $(TCCX) -c $(TOP)/src/mutex_os2.c
405
406mutex_unix.o: $(TOP)/src/mutex_unix.c $(HDR)
407 $(TCCX) -c $(TOP)/src/mutex_unix.c
408
409mutex_w32.o: $(TOP)/src/mutex_w32.c $(HDR)
410 $(TCCX) -c $(TOP)/src/mutex_w32.c
411
drhbbd42a62004-05-22 17:41:58 +0000412pager.o: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h
413 $(TCCX) -c $(TOP)/src/pager.c
drh71eb93e2001-09-28 01:34:43 +0000414
drhbbd42a62004-05-22 17:41:58 +0000415opcodes.o: opcodes.c
416 $(TCCX) -c opcodes.c
drh71eb93e2001-09-28 01:34:43 +0000417
drhb327f772004-10-06 15:03:57 +0000418opcodes.c: opcodes.h $(TOP)/mkopcodec.awk
drh0c07fb92006-06-27 20:05:23 +0000419 sort -n -b -k 3 opcodes.h | $(NAWK) -f $(TOP)/mkopcodec.awk >opcodes.c
drhbbd42a62004-05-22 17:41:58 +0000420
drhf2bc0132004-10-04 13:19:23 +0000421opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk
drhf1878b42006-01-23 18:06:52 +0000422 cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes.h
drhbbd42a62004-05-22 17:41:58 +0000423
drh054889e2005-11-30 03:20:31 +0000424os.o: $(TOP)/src/os.c $(HDR)
425 $(TCCX) -c $(TOP)/src/os.c
426
drh60a1e4b2006-06-03 18:02:15 +0000427os_os2.o: $(TOP)/src/os_os2.c $(HDR)
428 $(TCCX) -c $(TOP)/src/os_os2.c
429
drhbbd42a62004-05-22 17:41:58 +0000430os_unix.o: $(TOP)/src/os_unix.c $(HDR)
431 $(TCCX) -c $(TOP)/src/os_unix.c
432
433os_win.o: $(TOP)/src/os_win.c $(HDR)
434 $(TCCX) -c $(TOP)/src/os_win.c
435
436parse.o: parse.c $(HDR)
437 $(TCCX) -c parse.c
438
439parse.h: parse.c
440
drhfa3b19e2005-11-24 22:22:29 +0000441parse.c: $(TOP)/src/parse.y lemon $(TOP)/addopcodes.awk
drhbbd42a62004-05-22 17:41:58 +0000442 cp $(TOP)/src/parse.y .
drh27d258a2004-10-30 20:23:09 +0000443 ./lemon $(OPTS) parse.y
drhfa3b19e2005-11-24 22:22:29 +0000444 mv parse.h parse.h.temp
445 awk -f $(TOP)/addopcodes.awk parse.h.temp >parse.h
drh71eb93e2001-09-28 01:34:43 +0000446
drhc11d4f92003-04-06 21:08:24 +0000447pragma.o: $(TOP)/src/pragma.c $(HDR)
448 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/pragma.c
449
danielk1977fa256a32005-05-25 04:11:56 +0000450prepare.o: $(TOP)/src/prepare.c $(HDR)
451 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/prepare.c
452
drh71eb93e2001-09-28 01:34:43 +0000453printf.o: $(TOP)/src/printf.c $(HDR)
454 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/printf.c
455
drhbbd42a62004-05-22 17:41:58 +0000456random.o: $(TOP)/src/random.c $(HDR)
457 $(TCCX) -c $(TOP)/src/random.c
drhc11d4f92003-04-06 21:08:24 +0000458
drhbbd42a62004-05-22 17:41:58 +0000459select.o: $(TOP)/src/select.c $(HDR)
460 $(TCCX) -c $(TOP)/src/select.c
drhed6c8672003-01-12 18:02:16 +0000461
drh1d482dd2004-05-31 18:23:07 +0000462sqlite3.h: $(TOP)/src/sqlite.h.in
drhbbd42a62004-05-22 17:41:58 +0000463 sed -e s/--VERS--/`cat ${TOP}/VERSION`/ \
drhf1878b42006-01-23 18:06:52 +0000464 -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 +0000465 $(TOP)/src/sqlite.h.in >sqlite3.h
drhbbd42a62004-05-22 17:41:58 +0000466
467table.o: $(TOP)/src/table.c $(HDR)
468 $(TCCX) -c $(TOP)/src/table.c
469
470tclsqlite.o: $(TOP)/src/tclsqlite.c $(HDR)
471 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/tclsqlite.c
472
drh73b211a2005-01-18 04:00:42 +0000473tokenize.o: $(TOP)/src/tokenize.c keywordhash.h $(HDR)
drhbbd42a62004-05-22 17:41:58 +0000474 $(TCCX) -c $(TOP)/src/tokenize.c
475
drh73b211a2005-01-18 04:00:42 +0000476keywordhash.h: $(TOP)/tool/mkkeywordhash.c
drh52fb6d72004-11-03 03:59:57 +0000477 $(BCC) -o mkkeywordhash $(OPTS) $(TOP)/tool/mkkeywordhash.c
drh73b211a2005-01-18 04:00:42 +0000478 ./mkkeywordhash >keywordhash.h
drh52fb6d72004-11-03 03:59:57 +0000479
drhbbd42a62004-05-22 17:41:58 +0000480trigger.o: $(TOP)/src/trigger.c $(HDR)
481 $(TCCX) -c $(TOP)/src/trigger.c
482
483update.o: $(TOP)/src/update.c $(HDR)
484 $(TCCX) -c $(TOP)/src/update.c
485
486utf.o: $(TOP)/src/utf.c $(HDR)
487 $(TCCX) -c $(TOP)/src/utf.c
488
489util.o: $(TOP)/src/util.c $(HDR)
490 $(TCCX) -c $(TOP)/src/util.c
491
492vacuum.o: $(TOP)/src/vacuum.c $(HDR)
493 $(TCCX) -c $(TOP)/src/vacuum.c
494
drhde087bd2007-02-23 03:00:44 +0000495vdbe.o: $(TOP)/src/vdbe.c $(VDBEHDR) $(HDR)
drhbbd42a62004-05-22 17:41:58 +0000496 $(TCCX) -c $(TOP)/src/vdbe.c
497
drhde087bd2007-02-23 03:00:44 +0000498vdbeapi.o: $(TOP)/src/vdbeapi.c $(VDBEHDR) $(HDR)
drheb2e1762004-05-27 01:53:56 +0000499 $(TCCX) -c $(TOP)/src/vdbeapi.c
500
drhde087bd2007-02-23 03:00:44 +0000501vdbeaux.o: $(TOP)/src/vdbeaux.c $(VDBEHDR) $(HDR)
drhbbd42a62004-05-22 17:41:58 +0000502 $(TCCX) -c $(TOP)/src/vdbeaux.c
503
danielk1977b4e9af92007-05-01 17:49:49 +0000504vdbeblob.o: $(TOP)/src/vdbeblob.c $(VDBEHDR) $(HDR)
505 $(TCCX) -c $(TOP)/src/vdbeblob.c
506
drhde087bd2007-02-23 03:00:44 +0000507vdbefifo.o: $(TOP)/src/vdbefifo.c $(VDBEHDR) $(HDR)
drha01f79d2005-07-08 13:07:59 +0000508 $(TCCX) -c $(TOP)/src/vdbefifo.c
509
drhde087bd2007-02-23 03:00:44 +0000510vdbemem.o: $(TOP)/src/vdbemem.c $(VDBEHDR) $(HDR)
drheb2e1762004-05-27 01:53:56 +0000511 $(TCCX) -c $(TOP)/src/vdbemem.c
512
drhde087bd2007-02-23 03:00:44 +0000513vtab.o: $(TOP)/src/vtab.c $(VDBEHDR) $(HDR)
drhb9bb7c12006-06-11 23:41:55 +0000514 $(TCCX) -c $(TOP)/src/vtab.c
515
drhbbd42a62004-05-22 17:41:58 +0000516where.o: $(TOP)/src/where.c $(HDR)
517 $(TCCX) -c $(TOP)/src/where.c
518
danielk1977576d3db2007-06-25 14:28:48 +0000519# Rules to build the extension objects.
520#
521icu.o: $(TOP)/ext/icu/icu.c $(HDR) $(EXTHDR)
522 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/icu/icu.c
523
524fts2.o: $(TOP)/ext/fts2/fts2.c $(HDR) $(EXTHDR)
525 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2.c
526
527fts2_hash.o: $(TOP)/ext/fts2/fts2_hash.c $(HDR) $(EXTHDR)
528 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_hash.c
529
530fts2_icu.o: $(TOP)/ext/fts2/fts2_icu.c $(HDR) $(EXTHDR)
531 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_icu.c
532
533fts2_porter.o: $(TOP)/ext/fts2/fts2_porter.c $(HDR) $(EXTHDR)
534 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_porter.c
535
536fts2_tokenizer.o: $(TOP)/ext/fts2/fts2_tokenizer.c $(HDR) $(EXTHDR)
537 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer.c
538
539fts2_tokenizer1.o: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR) $(EXTHDR)
540 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer1.c
541
shess69c4ae22007-08-20 17:37:47 +0000542fts3.o: $(TOP)/ext/fts3/fts3.c $(HDR) $(EXTHDR)
543 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3.c
544
545fts3_hash.o: $(TOP)/ext/fts3/fts3_hash.c $(HDR) $(EXTHDR)
546 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_hash.c
547
548fts3_icu.o: $(TOP)/ext/fts3/fts3_icu.c $(HDR) $(EXTHDR)
549 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_icu.c
550
551fts3_porter.o: $(TOP)/ext/fts3/fts3_porter.c $(HDR) $(EXTHDR)
552 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_porter.c
553
554fts3_tokenizer.o: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR) $(EXTHDR)
555 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer.c
556
557fts3_tokenizer1.o: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR) $(EXTHDR)
558 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer1.c
559
danielk1977576d3db2007-06-25 14:28:48 +0000560
drhbbd42a62004-05-22 17:41:58 +0000561# Rules for building test programs and for running tests
562#
drh1d482dd2004-05-31 18:23:07 +0000563tclsqlite3: $(TOP)/src/tclsqlite.c libsqlite3.a
564 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 -o tclsqlite3 \
danielk1977bc6ada42004-06-30 08:20:16 +0000565 $(TOP)/src/tclsqlite.c libsqlite3.a $(LIBTCL) $(THREADLIB)
drh71eb93e2001-09-28 01:34:43 +0000566
drh1d482dd2004-05-31 18:23:07 +0000567testfixture$(EXE): $(TOP)/src/tclsqlite.c libsqlite3.a $(TESTSRC)
drh66560ad2006-01-06 14:32:19 +0000568 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 \
drh29c636b2006-01-09 23:40:25 +0000569 -DSQLITE_SERVER=1 -o testfixture$(EXE) \
danielk1977576d3db2007-06-25 14:28:48 +0000570 -DSQLITE_CORE $(TESTSRC) $(TOP)/src/tclsqlite.c \
drh1d482dd2004-05-31 18:23:07 +0000571 libsqlite3.a $(LIBTCL) $(THREADLIB)
drh71eb93e2001-09-28 01:34:43 +0000572
drh9c06c952005-11-26 00:25:00 +0000573fulltest: testfixture$(EXE) sqlite3$(EXE)
drh71eb93e2001-09-28 01:34:43 +0000574 ./testfixture$(EXE) $(TOP)/test/all.test
575
drh44548ec2007-06-18 12:22:43 +0000576soaktest: testfixture$(EXE) sqlite3$(EXE)
577 ./testfixture$(EXE) $(TOP)/test/all.test -soak 1
578
drh1d482dd2004-05-31 18:23:07 +0000579test: testfixture$(EXE) sqlite3$(EXE)
drh71eb93e2001-09-28 01:34:43 +0000580 ./testfixture$(EXE) $(TOP)/test/quick.test
581
drh3e27c022004-07-23 00:01:38 +0000582sqlite3_analyzer$(EXE): $(TOP)/src/tclsqlite.c libsqlite3.a $(TESTSRC) \
583 $(TOP)/tool/spaceanal.tcl
584 sed \
585 -e '/^#/d' \
586 -e 's,\\,\\\\,g' \
587 -e 's,",\\",g' \
588 -e 's,^,",' \
589 -e 's,$$,\\n",' \
590 $(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h
drh2d02a672006-01-25 15:55:37 +0000591 $(TCCX) $(TCL_FLAGS) -DTCLSH=2 -DSQLITE_TEST=1 -DSQLITE_DEBUG=1 -o \
shessd8c16482007-07-17 17:22:03 +0000592 sqlite3_analyzer$(EXE) $(TESTSRC) $(TOP)/src/tclsqlite.c \
drh3e27c022004-07-23 00:01:38 +0000593 libsqlite3.a $(LIBTCL) $(THREADLIB)
594
danielk197769e777f2006-06-14 10:38:02 +0000595TEST_EXTENSION = $(SHPREFIX)testloadext.$(SO)
596$(TEST_EXTENSION): $(TOP)/src/test_loadext.c
597 $(MKSHLIB) $(TOP)/src/test_loadext.c -o $(TEST_EXTENSION)
598
599extensiontest: testfixture$(EXE) $(TEST_EXTENSION)
600 ./testfixture$(EXE) $(TOP)/test/loadext.test
601
drhbbd42a62004-05-22 17:41:58 +0000602# Rules used to build documentation
603#
604arch.html: $(TOP)/www/arch.tcl
605 tclsh $(TOP)/www/arch.tcl >arch.html
drh71eb93e2001-09-28 01:34:43 +0000606
drhf8565822004-11-21 01:02:00 +0000607autoinc.html: $(TOP)/www/autoinc.tcl
608 tclsh $(TOP)/www/autoinc.tcl >autoinc.html
609
drh71eb93e2001-09-28 01:34:43 +0000610c_interface.html: $(TOP)/www/c_interface.tcl
611 tclsh $(TOP)/www/c_interface.tcl >c_interface.html
612
drh1d482dd2004-05-31 18:23:07 +0000613capi3.html: $(TOP)/www/capi3.tcl
614 tclsh $(TOP)/www/capi3.tcl >capi3.html
615
drh6ed48bf2007-06-14 20:57:18 +0000616capi3ref.html: $(TOP)/www/mkapidoc.tcl sqlite3.h
617 tclsh $(TOP)/www/mkapidoc.tcl <sqlite3.h >capi3ref.html
drh93db69e2004-06-01 01:22:37 +0000618
drh71eb93e2001-09-28 01:34:43 +0000619changes.html: $(TOP)/www/changes.tcl
620 tclsh $(TOP)/www/changes.tcl >changes.html
621
drhf8565822004-11-21 01:02:00 +0000622compile.html: $(TOP)/www/compile.tcl
623 tclsh $(TOP)/www/compile.tcl >compile.html
624
drhd4acf192004-05-31 16:04:08 +0000625copyright.html: $(TOP)/www/copyright.tcl
626 tclsh $(TOP)/www/copyright.tcl >copyright.html
627
628copyright-release.html: $(TOP)/www/copyright-release.html
629 cp $(TOP)/www/copyright-release.html .
630
631copyright-release.pdf: $(TOP)/www/copyright-release.pdf
632 cp $(TOP)/www/copyright-release.pdf .
633
634common.tcl: $(TOP)/www/common.tcl
635 cp $(TOP)/www/common.tcl .
636
drhbbd42a62004-05-22 17:41:58 +0000637conflict.html: $(TOP)/www/conflict.tcl
638 tclsh $(TOP)/www/conflict.tcl >conflict.html
639
640datatypes.html: $(TOP)/www/datatypes.tcl
641 tclsh $(TOP)/www/datatypes.tcl >datatypes.html
642
drh1d482dd2004-05-31 18:23:07 +0000643datatype3.html: $(TOP)/www/datatype3.tcl
644 tclsh $(TOP)/www/datatype3.tcl >datatype3.html
645
drh9179fd92005-03-12 15:55:10 +0000646different.html: $(TOP)/www/different.tcl
647 tclsh $(TOP)/www/different.tcl >different.html
648
drhd4acf192004-05-31 16:04:08 +0000649docs.html: $(TOP)/www/docs.tcl
650 tclsh $(TOP)/www/docs.tcl >docs.html
651
drhbbd42a62004-05-22 17:41:58 +0000652download.html: $(TOP)/www/download.tcl
danielk1977cf991b32004-06-24 01:30:44 +0000653 mkdir -p doc
drhbbd42a62004-05-22 17:41:58 +0000654 tclsh $(TOP)/www/download.tcl >download.html
655
656faq.html: $(TOP)/www/faq.tcl
657 tclsh $(TOP)/www/faq.tcl >faq.html
658
659fileformat.html: $(TOP)/www/fileformat.tcl
660 tclsh $(TOP)/www/fileformat.tcl >fileformat.html
661
662formatchng.html: $(TOP)/www/formatchng.tcl
663 tclsh $(TOP)/www/formatchng.tcl >formatchng.html
664
665index.html: $(TOP)/www/index.tcl last_change
drhd4acf192004-05-31 16:04:08 +0000666 tclsh $(TOP)/www/index.tcl >index.html
drhbbd42a62004-05-22 17:41:58 +0000667
drhb0e64f32007-06-09 09:53:51 +0000668limits.html: $(TOP)/www/limits.tcl last_change
669 tclsh $(TOP)/www/limits.tcl >limits.html
670
drh71eb93e2001-09-28 01:34:43 +0000671lang.html: $(TOP)/www/lang.tcl
danielk1977cd45ab22004-11-19 11:59:23 +0000672 tclsh $(TOP)/www/lang.tcl doc >lang.html
drh71eb93e2001-09-28 01:34:43 +0000673
danielk19772a03c3a2004-11-10 05:48:57 +0000674pragma.html: $(TOP)/www/pragma.tcl
675 tclsh $(TOP)/www/pragma.tcl >pragma.html
676
drh52619df2004-06-11 17:48:02 +0000677lockingv3.html: $(TOP)/www/lockingv3.tcl
678 tclsh $(TOP)/www/lockingv3.tcl >lockingv3.html
679
danielk1977da184232006-01-05 11:34:32 +0000680sharedcache.html: $(TOP)/www/sharedcache.tcl
681 tclsh $(TOP)/www/sharedcache.tcl >sharedcache.html
682
drh8897f6f2005-08-30 22:44:29 +0000683mingw.html: $(TOP)/www/mingw.tcl
684 tclsh $(TOP)/www/mingw.tcl >mingw.html
685
686nulls.html: $(TOP)/www/nulls.tcl
687 tclsh $(TOP)/www/nulls.tcl >nulls.html
688
drh7b93ed32004-06-16 03:02:00 +0000689oldnews.html: $(TOP)/www/oldnews.tcl
690 tclsh $(TOP)/www/oldnews.tcl >oldnews.html
691
drhbbd42a62004-05-22 17:41:58 +0000692omitted.html: $(TOP)/www/omitted.tcl
693 tclsh $(TOP)/www/omitted.tcl >omitted.html
drh71eb93e2001-09-28 01:34:43 +0000694
695opcode.html: $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c
696 tclsh $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c >opcode.html
697
drh8897f6f2005-08-30 22:44:29 +0000698optimizer.html: $(TOP)/www/optimizer.tcl
699 tclsh $(TOP)/www/optimizer.tcl >optimizer.html
drhfbe43752002-08-14 00:08:12 +0000700
drhf6ac6572005-08-31 01:49:59 +0000701optoverview.html: $(TOP)/www/optoverview.tcl
702 tclsh $(TOP)/www/optoverview.tcl >optoverview.html
703
drhc2774132002-08-15 13:45:17 +0000704quickstart.html: $(TOP)/www/quickstart.tcl
705 tclsh $(TOP)/www/quickstart.tcl >quickstart.html
706
drhbbd42a62004-05-22 17:41:58 +0000707speed.html: $(TOP)/www/speed.tcl
708 tclsh $(TOP)/www/speed.tcl >speed.html
drhd8acdb32002-08-18 19:09:22 +0000709
drhbbd42a62004-05-22 17:41:58 +0000710sqlite.html: $(TOP)/www/sqlite.tcl
711 tclsh $(TOP)/www/sqlite.tcl >sqlite.html
712
drhd4acf192004-05-31 16:04:08 +0000713support.html: $(TOP)/www/support.tcl
714 tclsh $(TOP)/www/support.tcl >support.html
715
drhbbd42a62004-05-22 17:41:58 +0000716tclsqlite.html: $(TOP)/www/tclsqlite.tcl
717 tclsh $(TOP)/www/tclsqlite.tcl >tclsqlite.html
718
719vdbe.html: $(TOP)/www/vdbe.tcl
720 tclsh $(TOP)/www/vdbe.tcl >vdbe.html
drh96f45312002-09-02 14:11:02 +0000721
drha2854222004-06-17 19:04:17 +0000722version3.html: $(TOP)/www/version3.tcl
723 tclsh $(TOP)/www/version3.tcl >version3.html
724
drhe4254642005-01-21 18:19:27 +0000725whentouse.html: $(TOP)/www/whentouse.tcl
726 tclsh $(TOP)/www/whentouse.tcl >whentouse.html
727
drh50d3f902007-08-27 21:10:36 +000072834to35.html: $(TOP)/www/34to35.tcl
729 tclsh $(TOP)/www/34to35.tcl >34to35.html
730
drh71eb93e2001-09-28 01:34:43 +0000731
732# Files to be published on the website.
733#
drh90ca9752001-09-28 17:47:14 +0000734DOC = \
drh71eb93e2001-09-28 01:34:43 +0000735 arch.html \
drhf8565822004-11-21 01:02:00 +0000736 autoinc.html \
drh71eb93e2001-09-28 01:34:43 +0000737 c_interface.html \
drh1d482dd2004-05-31 18:23:07 +0000738 capi3.html \
drh93db69e2004-06-01 01:22:37 +0000739 capi3ref.html \
drh1d482dd2004-05-31 18:23:07 +0000740 changes.html \
drhf8565822004-11-21 01:02:00 +0000741 compile.html \
drhd4acf192004-05-31 16:04:08 +0000742 copyright.html \
743 copyright-release.html \
744 copyright-release.pdf \
drh76800322002-08-13 20:45:39 +0000745 conflict.html \
drhc2774132002-08-15 13:45:17 +0000746 datatypes.html \
drh1d482dd2004-05-31 18:23:07 +0000747 datatype3.html \
drh9179fd92005-03-12 15:55:10 +0000748 different.html \
drhd4acf192004-05-31 16:04:08 +0000749 docs.html \
drhbbd42a62004-05-22 17:41:58 +0000750 download.html \
751 faq.html \
drh96f45312002-09-02 14:11:02 +0000752 fileformat.html \
drhbbd42a62004-05-22 17:41:58 +0000753 formatchng.html \
754 index.html \
drhb0e64f32007-06-09 09:53:51 +0000755 limits.html \
drhbbd42a62004-05-22 17:41:58 +0000756 lang.html \
drh52619df2004-06-11 17:48:02 +0000757 lockingv3.html \
drhbbd42a62004-05-22 17:41:58 +0000758 mingw.html \
759 nulls.html \
drh7b93ed32004-06-16 03:02:00 +0000760 oldnews.html \
drhbbd42a62004-05-22 17:41:58 +0000761 omitted.html \
762 opcode.html \
drh8897f6f2005-08-30 22:44:29 +0000763 optimizer.html \
drhf6ac6572005-08-31 01:49:59 +0000764 optoverview.html \
danielk19772a03c3a2004-11-10 05:48:57 +0000765 pragma.html \
drhbbd42a62004-05-22 17:41:58 +0000766 quickstart.html \
danielk1977da184232006-01-05 11:34:32 +0000767 sharedcache.html \
drhbbd42a62004-05-22 17:41:58 +0000768 speed.html \
769 sqlite.html \
drhd4acf192004-05-31 16:04:08 +0000770 support.html \
drhbbd42a62004-05-22 17:41:58 +0000771 tclsqlite.html \
drha2854222004-06-17 19:04:17 +0000772 vdbe.html \
drhe4254642005-01-21 18:19:27 +0000773 version3.html \
drh50d3f902007-08-27 21:10:36 +0000774 whentouse.html \
775 34to35.html
drh71eb93e2001-09-28 01:34:43 +0000776
drhd4acf192004-05-31 16:04:08 +0000777doc: common.tcl $(DOC)
drh90ca9752001-09-28 17:47:14 +0000778 mkdir -p doc
779 mv $(DOC) doc
drh8897f6f2005-08-30 22:44:29 +0000780 cp $(TOP)/www/*.gif $(TOP)/art/*.gif doc
drh71eb93e2001-09-28 01:34:43 +0000781
drhbbd42a62004-05-22 17:41:58 +0000782# Standard install and cleanup targets
783#
drh1d482dd2004-05-31 18:23:07 +0000784install: sqlite3 libsqlite3.a sqlite3.h
785 mv sqlite3 /usr/bin
786 mv libsqlite3.a /usr/lib
787 mv sqlite3.h /usr/include
drh71eb93e2001-09-28 01:34:43 +0000788
789clean:
drh9c06c952005-11-26 00:25:00 +0000790 rm -f *.o sqlite3 libsqlite3.a sqlite3.h opcodes.*
drh73b211a2005-01-18 04:00:42 +0000791 rm -f lemon lempar.c parse.* sqlite*.tar.gz mkkeywordhash keywordhash.h
drh71eb93e2001-09-28 01:34:43 +0000792 rm -f $(PUBLISH)
793 rm -f *.da *.bb *.bbg gmon.out
794 rm -rf tsrc
drhf80ad492006-09-02 22:14:59 +0000795 rm -f testloadext.dll libtestloadext.so