aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/sqlite/unix/build
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/sqlite/unix/build')
-rw-r--r--libraries/sqlite/unix/build/.libs/libsqlite3.abin0 -> 2007556 bytes
-rw-r--r--libraries/sqlite/unix/build/.libs/libsqlite3.lai35
l---------libraries/sqlite/unix/build/.libs/libsqlite3.so1
l---------libraries/sqlite/unix/build/.libs/libsqlite3.so.01
-rwxr-xr-xlibraries/sqlite/unix/build/.libs/libsqlite3.so.0.8.6bin0 -> 1441404 bytes
-rwxr-xr-xlibraries/sqlite/unix/build/.libs/sqlite3bin0 -> 63903 bytes
-rw-r--r--libraries/sqlite/unix/build/Makefile775
7 files changed, 812 insertions, 0 deletions
diff --git a/libraries/sqlite/unix/build/.libs/libsqlite3.a b/libraries/sqlite/unix/build/.libs/libsqlite3.a
new file mode 100644
index 0000000..47e9121
--- /dev/null
+++ b/libraries/sqlite/unix/build/.libs/libsqlite3.a
Binary files differ
diff --git a/libraries/sqlite/unix/build/.libs/libsqlite3.lai b/libraries/sqlite/unix/build/.libs/libsqlite3.lai
new file mode 100644
index 0000000..3fcb50d
--- /dev/null
+++ b/libraries/sqlite/unix/build/.libs/libsqlite3.lai
@@ -0,0 +1,35 @@
1# libsqlite3.la - a libtool library file
2# Generated by ltmain.sh - GNU libtool 1.5.22 (1.1220.2.365 2005/12/18 22:14:06)
3#
4# Please DO NOT delete this file!
5# It is necessary for linking the library.
6
7# The name that we can dlopen(3).
8dlname='libsqlite3.so.0'
9
10# Names of this library.
11library_names='libsqlite3.so.0.8.6 libsqlite3.so.0 libsqlite3.so'
12
13# The name of the static archive.
14old_library='libsqlite3.a'
15
16# Libraries that this one depends upon.
17dependency_libs=' -lpthread'
18
19# Version information for libsqlite3.
20current=8
21age=8
22revision=6
23
24# Is this an already installed library?
25installed=yes
26
27# Should we warn about portability when linking against -modules?
28shouldnotlink=no
29
30# Files to dlopen/dlpreopen
31dlopen=''
32dlpreopen=''
33
34# Directory that this library needs to be installed in:
35libdir='/usr/local/lib'
diff --git a/libraries/sqlite/unix/build/.libs/libsqlite3.so b/libraries/sqlite/unix/build/.libs/libsqlite3.so
new file mode 120000
index 0000000..026b67c
--- /dev/null
+++ b/libraries/sqlite/unix/build/.libs/libsqlite3.so
@@ -0,0 +1 @@
libsqlite3.so.0.8.6 \ No newline at end of file
diff --git a/libraries/sqlite/unix/build/.libs/libsqlite3.so.0 b/libraries/sqlite/unix/build/.libs/libsqlite3.so.0
new file mode 120000
index 0000000..026b67c
--- /dev/null
+++ b/libraries/sqlite/unix/build/.libs/libsqlite3.so.0
@@ -0,0 +1 @@
libsqlite3.so.0.8.6 \ No newline at end of file
diff --git a/libraries/sqlite/unix/build/.libs/libsqlite3.so.0.8.6 b/libraries/sqlite/unix/build/.libs/libsqlite3.so.0.8.6
new file mode 100755
index 0000000..fbfd5e4
--- /dev/null
+++ b/libraries/sqlite/unix/build/.libs/libsqlite3.so.0.8.6
Binary files differ
diff --git a/libraries/sqlite/unix/build/.libs/sqlite3 b/libraries/sqlite/unix/build/.libs/sqlite3
new file mode 100755
index 0000000..8154d10
--- /dev/null
+++ b/libraries/sqlite/unix/build/.libs/sqlite3
Binary files differ
diff --git a/libraries/sqlite/unix/build/Makefile b/libraries/sqlite/unix/build/Makefile
new file mode 100644
index 0000000..e3b6a45
--- /dev/null
+++ b/libraries/sqlite/unix/build/Makefile
@@ -0,0 +1,775 @@
1#!/usr/make
2#
3# Makefile for SQLITE
4#
5# This makefile is suppose to be configured automatically using the
6# autoconf. But if that does not work for you, you can configure
7# the makefile manually. Just set the parameters below to values that
8# work well for your system.
9#
10# If the configure script does not work out-of-the-box, you might
11# be able to get it to work by giving it some hints. See the comment
12# at the beginning of configure.in for additional information.
13#
14
15# The toplevel directory of the source tree. This is the directory
16# that contains this "Makefile.in" and the "configure.in" script.
17#
18TOP = ../sqlite-3.5.1
19
20# C Compiler and options for use in building executables that
21# will run on the platform that is doing the build.
22#
23BCC = gcc -g -O2
24
25# C Compile and options for use in building executables that
26# will run on the target platform. (BCC and TCC are usually the
27# same unless your are cross-compiling.)
28#
29TCC = gcc -g -O2 -I. -I${TOP}/src
30
31# Define -DNDEBUG to compile without debugging (i.e., for production usage)
32# Omitting the define will cause extra debugging code to be inserted and
33# includes extra comments when "EXPLAIN stmt" is used.
34#
35TCC += -DNDEBUG
36
37# Compiler options needed for programs that use the TCL library.
38#
39TCC +=
40
41# The library that programs using TCL must link against.
42#
43LIBTCL =
44
45# Compiler options needed for programs that use the readline() library.
46#
47READLINE_FLAGS = -DHAVE_READLINE=0
48
49# The library that programs using readline() must link against.
50#
51LIBREADLINE =
52
53# Should the database engine be compiled threadsafe
54#
55TCC += -DSQLITE_THREADSAFE=1
56
57# The pthreads library if needed
58#
59LIBPTHREAD=-lpthread
60
61# Do threads override each others locks by default (1), or do we test (-1)
62#
63TCC += -DSQLITE_THREAD_OVERRIDE_LOCK=-1
64
65# The fdatasync library
66TLIBS =
67
68# Flags controlling use of the in memory btree implementation
69#
70# TEMP_STORE is 0 to force temporary tables to be in a file, 1 to
71# default to file, 2 to default to memory, and 3 to force temporary
72# tables to always be in memory.
73#
74TEMP_STORE = -DTEMP_STORE=1
75
76# Version numbers and release number for the SQLite being compiled.
77#
78VERSION = 3.5
79VERSION_NUMBER = 3005001
80RELEASE = 3.5.1
81
82# Filename extensions
83#
84BEXE =
85TEXE =
86
87# The following variable is "1" if the configure script was able to locate
88# the tclConfig.sh file. It is an empty string otherwise. When this
89# variable is "1", the TCL extension library (libtclsqlite3.so) is built
90# and installed.
91#
92HAVE_TCL =
93
94# The suffix used on shared libraries. Ex: ".dll", ".so", ".dylib"
95#
96SHLIB_SUFFIX = @TCL_SHLIB_SUFFIX@
97
98# The directory into which to store package information for
99
100# Some standard variables and programs
101#
102prefix = /usr/local
103exec_prefix = ${prefix}
104libdir = ${exec_prefix}/lib
105INSTALL = /usr/bin/install -c
106LIBTOOL = ./libtool
107ALLOWRELEASE =
108
109# libtool compile/link/install
110LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(TCC)
111LTLINK = $(LIBTOOL) --mode=link $(TCC)
112LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
113
114# nawk compatible awk.
115NAWK = mawk
116
117# You should not have to change anything below this line
118###############################################################################
119TCC += -DSQLITE_OMIT_LOAD_EXTENSION=1
120
121# Object files for the SQLite library.
122#
123LIBOBJ = alter.lo analyze.lo attach.lo auth.lo btmutex.lo btree.lo build.lo \
124 callback.lo complete.lo date.lo \
125 delete.lo expr.lo func.lo hash.lo journal.lo insert.lo loadext.lo \
126 main.lo malloc.lo mem1.lo mem2.lo mutex.lo \
127 mutex_os2.lo mutex_unix.lo mutex_w32.lo \
128 opcodes.lo os.lo os_unix.lo os_win.lo os_os2.lo \
129 pager.lo parse.lo pragma.lo prepare.lo printf.lo random.lo \
130 select.lo table.lo tokenize.lo trigger.lo update.lo \
131 util.lo vacuum.lo \
132 vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbefifo.lo vdbemem.lo \
133 where.lo utf.lo legacy.lo vtab.lo
134
135# All of the source code files.
136#
137SRC = \
138 $(TOP)/src/alter.c \
139 $(TOP)/src/analyze.c \
140 $(TOP)/src/attach.c \
141 $(TOP)/src/auth.c \
142 $(TOP)/src/btmutex.c \
143 $(TOP)/src/btree.c \
144 $(TOP)/src/btree.h \
145 $(TOP)/src/build.c \
146 $(TOP)/src/callback.c \
147 $(TOP)/src/complete.c \
148 $(TOP)/src/date.c \
149 $(TOP)/src/delete.c \
150 $(TOP)/src/expr.c \
151 $(TOP)/src/func.c \
152 $(TOP)/src/hash.c \
153 $(TOP)/src/hash.h \
154 $(TOP)/src/insert.c \
155 $(TOP)/src/journal.c \
156 $(TOP)/src/legacy.c \
157 $(TOP)/src/loadext.c \
158 $(TOP)/src/main.c \
159 $(TOP)/src/malloc.c \
160 $(TOP)/src/mem1.c \
161 $(TOP)/src/mem2.c \
162 $(TOP)/src/mutex.c \
163 $(TOP)/src/mutex_os2.c \
164 $(TOP)/src/mutex_unix.c \
165 $(TOP)/src/mutex_w32.c \
166 $(TOP)/src/os.c \
167 $(TOP)/src/os_unix.c \
168 $(TOP)/src/os_win.c \
169 $(TOP)/src/os_os2.c \
170 $(TOP)/src/pager.c \
171 $(TOP)/src/pager.h \
172 $(TOP)/src/parse.y \
173 $(TOP)/src/pragma.c \
174 $(TOP)/src/prepare.c \
175 $(TOP)/src/printf.c \
176 $(TOP)/src/random.c \
177 $(TOP)/src/select.c \
178 $(TOP)/src/shell.c \
179 $(TOP)/src/sqlite.h.in \
180 $(TOP)/src/sqliteInt.h \
181 $(TOP)/src/table.c \
182 $(TOP)/src/tclsqlite.c \
183 $(TOP)/src/tokenize.c \
184 $(TOP)/src/trigger.c \
185 $(TOP)/src/utf.c \
186 $(TOP)/src/update.c \
187 $(TOP)/src/util.c \
188 $(TOP)/src/vacuum.c \
189 $(TOP)/src/vdbe.c \
190 $(TOP)/src/vdbe.h \
191 $(TOP)/src/vdbeapi.c \
192 $(TOP)/src/vdbeaux.c \
193 $(TOP)/src/vdbeblob.c \
194 $(TOP)/src/vdbefifo.c \
195 $(TOP)/src/vdbemem.c \
196 $(TOP)/src/vdbeInt.h \
197 $(TOP)/src/vtab.c \
198 $(TOP)/src/where.c
199
200# Source code for extensions
201#
202SRC += \
203 $(TOP)/ext/fts1/fts1.c \
204 $(TOP)/ext/fts1/fts1.h \
205 $(TOP)/ext/fts1/fts1_hash.c \
206 $(TOP)/ext/fts1/fts1_hash.h \
207 $(TOP)/ext/fts1/fts1_porter.c \
208 $(TOP)/ext/fts1/fts1_tokenizer.h \
209 $(TOP)/ext/fts1/fts1_tokenizer1.c
210
211
212# Source code to the test files.
213#
214TESTSRC = \
215 $(TOP)/src/attach.c \
216 $(TOP)/src/btree.c \
217 $(TOP)/src/build.c \
218 $(TOP)/src/date.c \
219 $(TOP)/src/expr.c \
220 $(TOP)/src/func.c \
221 $(TOP)/src/insert.c \
222 $(TOP)/src/malloc.c \
223 $(TOP)/src/os.c \
224 $(TOP)/src/os_os2.c \
225 $(TOP)/src/os_unix.c \
226 $(TOP)/src/os_win.c \
227 $(TOP)/src/pager.c \
228 $(TOP)/src/pragma.c \
229 $(TOP)/src/prepare.c \
230 $(TOP)/src/printf.c \
231 $(TOP)/src/select.c \
232 $(TOP)/src/test1.c \
233 $(TOP)/src/test2.c \
234 $(TOP)/src/test3.c \
235 $(TOP)/src/test4.c \
236 $(TOP)/src/test5.c \
237 $(TOP)/src/test6.c \
238 $(TOP)/src/test7.c \
239 $(TOP)/src/test8.c \
240 $(TOP)/src/test9.c \
241 $(TOP)/src/test_autoext.c \
242 $(TOP)/src/test_async.c \
243 $(TOP)/src/test_btree.c \
244 $(TOP)/src/test_config.c \
245 $(TOP)/src/test_hexio.c \
246 $(TOP)/src/test_malloc.c \
247 $(TOP)/src/test_md5.c \
248 $(TOP)/src/test_schema.c \
249 $(TOP)/src/test_server.c \
250 $(TOP)/src/test_tclvar.c \
251 $(TOP)/src/tokenize.c \
252 $(TOP)/src/utf.c \
253 $(TOP)/src/util.c \
254 $(TOP)/src/vdbe.c \
255 $(TOP)/src/vdbeapi.c \
256 $(TOP)/src/vdbeaux.c \
257 $(TOP)/src/vdbemem.c \
258 $(TOP)/src/where.c \
259 parse.c
260
261# Header files used by all library source files.
262#
263HDR = \
264 sqlite3.h \
265 $(TOP)/src/btree.h \
266 $(TOP)/src/btreeInt.h \
267 $(TOP)/src/hash.h \
268 $(TOP)/src/sqliteLimit.h \
269 $(TOP)/src/mutex.h \
270 opcodes.h \
271 $(TOP)/src/os.h \
272 $(TOP)/src/os_common.h \
273 $(TOP)/src/sqlite3ext.h \
274 $(TOP)/src/sqliteInt.h \
275 $(TOP)/src/vdbe.h \
276 parse.h
277
278# Header files used by extensions
279#
280HDR += \
281 $(TOP)/ext/fts1/fts1.h \
282 $(TOP)/ext/fts1/fts1_hash.h \
283 $(TOP)/ext/fts1/fts1_tokenizer.h
284
285# Header files used by the VDBE submodule
286#
287VDBEHDR = \
288 $(HDR) \
289 $(TOP)/src/vdbeInt.h
290
291# This is the default Makefile target. The objects listed here
292# are what get build when you type just "make" with no arguments.
293#
294all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la)
295
296Makefile: $(TOP)/Makefile.in
297 ./config.status
298
299# Generate the file "last_change" which contains the date of change
300# of the most recently modified source code file
301#
302last_change: $(SRC)
303 cat $(SRC) | grep '$$Id: ' | sort -k 5 | tail -1 \
304 | $(NAWK) '{print $$5,$$6}' >last_change
305
306libsqlite3.la: $(LIBOBJ)
307 $(LTLINK) -o libsqlite3.la $(LIBOBJ) $(LIBPTHREAD) \
308 ${ALLOWRELEASE} -rpath $(libdir) -version-info "8:6:8"
309
310libtclsqlite3.la: tclsqlite.lo libsqlite3.la
311 $(LTLINK) -o libtclsqlite3.la tclsqlite.lo \
312 $(LIBOBJ) $(LIBPTHREAD) \
313 -rpath $(libdir)/sqlite \
314 -version-info "8:6:8"
315
316sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h
317 $(LTLINK) $(READLINE_FLAGS) $(LIBPTHREAD) \
318 -o $@ $(TOP)/src/shell.c libsqlite3.la \
319 $(LIBREADLINE) $(TLIBS)
320
321# This target creates a directory named "tsrc" and fills it with
322# copies of all of the C source code and header files needed to
323# build on the target system. Some of the C source code and header
324# files are automatically generated. This target takes care of
325# all that automatic generation.
326#
327target_source: $(SRC) parse.c opcodes.c keywordhash.h $(VDBEHDR)
328 rm -rf tsrc
329 mkdir -p tsrc
330 cp $(SRC) $(VDBEHDR) tsrc
331 rm tsrc/sqlite.h.in tsrc/parse.y
332 cp parse.c opcodes.c keywordhash.h tsrc
333
334sqlite3.c: target_source $(TOP)/tool/mksqlite3c.tcl
335 tclsh $(TOP)/tool/mksqlite3c.tcl
336
337# Rules to build the LEMON compiler generator
338#
339lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
340 $(BCC) -o lemon$(BEXE) $(TOP)/tool/lemon.c
341 cp $(TOP)/tool/lempar.c .
342
343
344# Rules to build individual files
345#
346alter.lo: $(TOP)/src/alter.c $(HDR)
347 $(LTCOMPILE) -c $(TOP)/src/alter.c
348
349analyze.lo: $(TOP)/src/analyze.c $(HDR)
350 $(LTCOMPILE) -c $(TOP)/src/analyze.c
351
352attach.lo: $(TOP)/src/attach.c $(HDR)
353 $(LTCOMPILE) -c $(TOP)/src/attach.c
354
355auth.lo: $(TOP)/src/auth.c $(HDR)
356 $(LTCOMPILE) -c $(TOP)/src/auth.c
357
358btmutex.lo: $(TOP)/src/btmutex.c $(HDR)
359 $(LTCOMPILE) -c $(TOP)/src/btmutex.c
360
361btree.lo: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h
362 $(LTCOMPILE) -c $(TOP)/src/btree.c
363
364build.lo: $(TOP)/src/build.c $(HDR)
365 $(LTCOMPILE) -c $(TOP)/src/build.c
366
367callback.lo: $(TOP)/src/callback.c $(HDR)
368 $(LTCOMPILE) -c $(TOP)/src/callback.c
369
370complete.lo: $(TOP)/src/complete.c $(HDR)
371 $(LTCOMPILE) -c $(TOP)/src/complete.c
372
373date.lo: $(TOP)/src/date.c $(HDR)
374 $(LTCOMPILE) -c $(TOP)/src/date.c
375
376delete.lo: $(TOP)/src/delete.c $(HDR)
377 $(LTCOMPILE) -c $(TOP)/src/delete.c
378
379expr.lo: $(TOP)/src/expr.c $(HDR)
380 $(LTCOMPILE) -c $(TOP)/src/expr.c
381
382func.lo: $(TOP)/src/func.c $(HDR)
383 $(LTCOMPILE) -c $(TOP)/src/func.c
384
385hash.lo: $(TOP)/src/hash.c $(HDR)
386 $(LTCOMPILE) -c $(TOP)/src/hash.c
387
388insert.lo: $(TOP)/src/insert.c $(HDR)
389 $(LTCOMPILE) -c $(TOP)/src/insert.c
390
391journal.lo: $(TOP)/src/journal.c $(HDR)
392 $(LTCOMPILE) -c $(TOP)/src/journal.c
393
394legacy.lo: $(TOP)/src/legacy.c $(HDR)
395 $(LTCOMPILE) -c $(TOP)/src/legacy.c
396
397loadext.lo: $(TOP)/src/loadext.c $(HDR)
398 $(LTCOMPILE) -c $(TOP)/src/loadext.c
399
400main.lo: $(TOP)/src/main.c $(HDR)
401 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/main.c
402
403malloc.lo: $(TOP)/src/malloc.c $(HDR)
404 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/malloc.c
405
406mem1.lo: $(TOP)/src/mem1.c $(HDR)
407 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem1.c
408
409mem2.lo: $(TOP)/src/mem2.c $(HDR)
410 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem2.c
411
412mutex.lo: $(TOP)/src/mutex.c $(HDR)
413 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex.c
414
415mutex_os2.lo: $(TOP)/src/mutex_os2.c $(HDR)
416 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_os2.c
417
418mutex_unix.lo: $(TOP)/src/mutex_unix.c $(HDR)
419 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_unix.c
420
421mutex_w32.lo: $(TOP)/src/mutex_w32.c $(HDR)
422 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_w32.c
423
424pager.lo: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h
425 $(LTCOMPILE) -c $(TOP)/src/pager.c
426
427opcodes.lo: opcodes.c
428 $(LTCOMPILE) -c opcodes.c
429
430opcodes.c: opcodes.h $(TOP)/mkopcodec.awk
431 sort -n -b -k 3 opcodes.h | $(NAWK) -f $(TOP)/mkopcodec.awk >opcodes.c
432
433opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk
434 cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes.h
435
436os.lo: $(TOP)/src/os.c $(HDR)
437 $(LTCOMPILE) -c $(TOP)/src/os.c
438
439os_unix.lo: $(TOP)/src/os_unix.c $(HDR)
440 $(LTCOMPILE) -c $(TOP)/src/os_unix.c
441
442os_win.lo: $(TOP)/src/os_win.c $(HDR)
443 $(LTCOMPILE) -c $(TOP)/src/os_win.c
444
445os_os2.lo: $(TOP)/src/os_os2.c $(HDR)
446 $(LTCOMPILE) -c $(TOP)/src/os_os2.c
447
448parse.lo: parse.c $(HDR)
449 $(LTCOMPILE) -c parse.c
450
451parse.h: parse.c
452
453parse.c: $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/addopcodes.awk
454 cp $(TOP)/src/parse.y .
455 ./lemon$(BEXE) $(OPTS) parse.y
456 mv parse.h parse.h.temp
457 $(NAWK) -f $(TOP)/addopcodes.awk parse.h.temp >parse.h
458
459pragma.lo: $(TOP)/src/pragma.c $(HDR)
460 $(LTCOMPILE) -c $(TOP)/src/pragma.c
461
462prepare.lo: $(TOP)/src/prepare.c $(HDR)
463 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/prepare.c
464
465printf.lo: $(TOP)/src/printf.c $(HDR)
466 $(LTCOMPILE) -c $(TOP)/src/printf.c
467
468random.lo: $(TOP)/src/random.c $(HDR)
469 $(LTCOMPILE) -c $(TOP)/src/random.c
470
471select.lo: $(TOP)/src/select.c $(HDR)
472 $(LTCOMPILE) -c $(TOP)/src/select.c
473
474sqlite3.h: $(TOP)/src/sqlite.h.in
475 sed -e s/--VERS--/$(RELEASE)/ $(TOP)/src/sqlite.h.in | \
476 sed -e s/--VERSION-NUMBER--/$(VERSION_NUMBER)/ >sqlite3.h
477
478table.lo: $(TOP)/src/table.c $(HDR)
479 $(LTCOMPILE) -c $(TOP)/src/table.c
480
481tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR)
482 $(LTCOMPILE) -c $(TOP)/src/tclsqlite.c
483
484tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR)
485 $(LTCOMPILE) -c $(TOP)/src/tokenize.c
486
487keywordhash.h: $(TOP)/tool/mkkeywordhash.c
488 $(BCC) -o mkkeywordhash$(BEXE) $(OPTS) $(TOP)/tool/mkkeywordhash.c
489 ./mkkeywordhash$(BEXE) >keywordhash.h
490
491trigger.lo: $(TOP)/src/trigger.c $(HDR)
492 $(LTCOMPILE) -c $(TOP)/src/trigger.c
493
494update.lo: $(TOP)/src/update.c $(HDR)
495 $(LTCOMPILE) -c $(TOP)/src/update.c
496
497utf.lo: $(TOP)/src/utf.c $(HDR)
498 $(LTCOMPILE) -c $(TOP)/src/utf.c
499
500util.lo: $(TOP)/src/util.c $(HDR)
501 $(LTCOMPILE) -c $(TOP)/src/util.c
502
503vacuum.lo: $(TOP)/src/vacuum.c $(HDR)
504 $(LTCOMPILE) -c $(TOP)/src/vacuum.c
505
506vdbe.lo: $(TOP)/src/vdbe.c $(VDBEHDR)
507 $(LTCOMPILE) -c $(TOP)/src/vdbe.c
508
509vdbeapi.lo: $(TOP)/src/vdbeapi.c $(VDBEHDR)
510 $(LTCOMPILE) -c $(TOP)/src/vdbeapi.c
511
512vdbeaux.lo: $(TOP)/src/vdbeaux.c $(VDBEHDR)
513 $(LTCOMPILE) -c $(TOP)/src/vdbeaux.c
514
515vdbeblob.lo: $(TOP)/src/vdbeblob.c $(VDBEHDR)
516 $(LTCOMPILE) -c $(TOP)/src/vdbeblob.c
517
518vdbefifo.lo: $(TOP)/src/vdbefifo.c $(VDBEHDR)
519 $(LTCOMPILE) -c $(TOP)/src/vdbefifo.c
520
521vdbemem.lo: $(TOP)/src/vdbemem.c $(VDBEHDR)
522 $(LTCOMPILE) -c $(TOP)/src/vdbemem.c
523
524vtab.lo: $(TOP)/src/vtab.c $(VDBEHDR)
525 $(LTCOMPILE) -c $(TOP)/src/vtab.c
526
527where.lo: $(TOP)/src/where.c $(HDR)
528 $(LTCOMPILE) -c $(TOP)/src/where.c
529
530tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR)
531 $(LTCOMPILE) -DTCLSH=1 -o $@ -c $(TOP)/src/tclsqlite.c
532
533tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR)
534 $(LTCOMPILE) -DTCL_USE_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c
535
536tclsqlite3: tclsqlite-shell.lo libsqlite3.la
537 $(LTLINK) -o tclsqlite3 tclsqlite-shell.lo \
538 libsqlite3.la $(LIBTCL)
539
540testfixture$(TEXE): $(TOP)/src/tclsqlite.c libsqlite3.la $(TESTSRC)
541 $(LTLINK) -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 \
542 -DSQLITE_NO_SYNC=1 $(TEMP_STORE) \
543 -o testfixture $(TESTSRC) $(TOP)/src/tclsqlite.c \
544 libsqlite3.la $(LIBTCL)
545
546
547fulltest: testfixture$(TEXE) sqlite3$(TEXE)
548 ./testfixture $(TOP)/test/all.test
549
550test: testfixture$(TEXE) sqlite3$(TEXE)
551 ./testfixture $(TOP)/test/quick.test
552
553sqlite3_analyzer$(TEXE): $(TOP)/src/tclsqlite.c libtclsqlite3.la \
554 $(TESTSRC) $(TOP)/tool/spaceanal.tcl
555 sed \
556 -e '/^#/d' \
557 -e 's,\\,\\\\,g' \
558 -e 's,",\\",g' \
559 -e 's,^,",' \
560 -e 's,$$,\\n",' \
561 $(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h
562 $(LTLINK) -DTCLSH=2 -DSQLITE_TEST=1 $(TEMP_STORE)\
563 -o sqlite3_analyzer$(EXE) $(TESTSRC) $(TOP)/src/tclsqlite.c \
564 libtclsqlite3.la $(LIBTCL)
565
566# Rules used to build documentation
567#
568arch.html: $(TOP)/www/arch.tcl
569 tclsh $(TOP)/www/arch.tcl >arch.html
570
571arch2.gif: $(TOP)/www/arch2.gif
572 cp $(TOP)/www/arch2.gif .
573
574autoinc.html: $(TOP)/www/autoinc.tcl
575 tclsh $(TOP)/www/autoinc.tcl >autoinc.html
576
577c_interface.html: $(TOP)/www/c_interface.tcl
578 tclsh $(TOP)/www/c_interface.tcl >c_interface.html
579
580capi3.html: $(TOP)/www/capi3.tcl
581 tclsh $(TOP)/www/capi3.tcl >capi3.html
582
583capi3ref.html: $(TOP)/www/mkapidoc.tcl sqlite3.h
584 tclsh $(TOP)/www/mkapidoc.tcl <sqlite3.h >capi3ref.html
585
586changes.html: $(TOP)/www/changes.tcl
587 tclsh $(TOP)/www/changes.tcl >changes.html
588
589compile.html: $(TOP)/www/compile.tcl
590 tclsh $(TOP)/www/compile.tcl >compile.html
591
592copyright.html: $(TOP)/www/copyright.tcl
593 tclsh $(TOP)/www/copyright.tcl >copyright.html
594
595copyright-release.html: $(TOP)/www/copyright-release.html
596 cp $(TOP)/www/copyright-release.html .
597
598copyright-release.pdf: $(TOP)/www/copyright-release.pdf
599 cp $(TOP)/www/copyright-release.pdf .
600
601common.tcl: $(TOP)/www/common.tcl
602 cp $(TOP)/www/common.tcl .
603
604conflict.html: $(TOP)/www/conflict.tcl
605 tclsh $(TOP)/www/conflict.tcl >conflict.html
606
607datatypes.html: $(TOP)/www/datatypes.tcl
608 tclsh $(TOP)/www/datatypes.tcl >datatypes.html
609
610datatype3.html: $(TOP)/www/datatype3.tcl
611 tclsh $(TOP)/www/datatype3.tcl >datatype3.html
612
613docs.html: $(TOP)/www/docs.tcl
614 tclsh $(TOP)/www/docs.tcl >docs.html
615
616download.html: $(TOP)/www/download.tcl
617 mkdir -p doc
618 tclsh $(TOP)/www/download.tcl >download.html
619
620faq.html: $(TOP)/www/faq.tcl
621 tclsh $(TOP)/www/faq.tcl >faq.html
622
623fileformat.html: $(TOP)/www/fileformat.tcl
624 tclsh $(TOP)/www/fileformat.tcl >fileformat.html
625
626formatchng.html: $(TOP)/www/formatchng.tcl
627 tclsh $(TOP)/www/formatchng.tcl >formatchng.html
628
629index.html: $(TOP)/www/index.tcl last_change
630 tclsh $(TOP)/www/index.tcl >index.html
631
632limits.html: $(TOP)/www/limits.tcl last_change
633 tclsh $(TOP)/www/limits.tcl >limits.html
634
635lang.html: $(TOP)/www/lang.tcl
636 tclsh $(TOP)/www/lang.tcl >lang.html
637
638pragma.html: $(TOP)/www/pragma.tcl
639 tclsh $(TOP)/www/pragma.tcl >pragma.html
640
641lockingv3.html: $(TOP)/www/lockingv3.tcl
642 tclsh $(TOP)/www/lockingv3.tcl >lockingv3.html
643
644oldnews.html: $(TOP)/www/oldnews.tcl
645 tclsh $(TOP)/www/oldnews.tcl >oldnews.html
646
647omitted.html: $(TOP)/www/omitted.tcl
648 tclsh $(TOP)/www/omitted.tcl >omitted.html
649
650opcode.html: $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c
651 tclsh $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c >opcode.html
652
653mingw.html: $(TOP)/www/mingw.tcl
654 tclsh $(TOP)/www/mingw.tcl >mingw.html
655
656nulls.html: $(TOP)/www/nulls.tcl
657 tclsh $(TOP)/www/nulls.tcl >nulls.html
658
659quickstart.html: $(TOP)/www/quickstart.tcl
660 tclsh $(TOP)/www/quickstart.tcl >quickstart.html
661
662speed.html: $(TOP)/www/speed.tcl
663 tclsh $(TOP)/www/speed.tcl >speed.html
664
665sqlite.gif: $(TOP)/art/SQLite.gif
666 cp $(TOP)/art/SQLite.gif sqlite.gif
667
668sqlite.html: $(TOP)/www/sqlite.tcl
669 tclsh $(TOP)/www/sqlite.tcl >sqlite.html
670
671support.html: $(TOP)/www/support.tcl
672 tclsh $(TOP)/www/support.tcl >support.html
673
674tclsqlite.html: $(TOP)/www/tclsqlite.tcl
675 tclsh $(TOP)/www/tclsqlite.tcl >tclsqlite.html
676
677vdbe.html: $(TOP)/www/vdbe.tcl
678 tclsh $(TOP)/www/vdbe.tcl >vdbe.html
679
680version3.html: $(TOP)/www/version3.tcl
681 tclsh $(TOP)/www/version3.tcl >version3.html
682
683
684# Files to be published on the website.
685#
686DOC = \
687 arch.html \
688 arch2.gif \
689 autoinc.html \
690 c_interface.html \
691 capi3.html \
692 capi3ref.html \
693 changes.html \
694 compile.html \
695 copyright.html \
696 copyright-release.html \
697 copyright-release.pdf \
698 conflict.html \
699 datatypes.html \
700 datatype3.html \
701 docs.html \
702 download.html \
703 faq.html \
704 fileformat.html \
705 formatchng.html \
706 index.html \
707 lang.html \
708 limits.html \
709 lockingv3.html \
710 mingw.html \
711 nulls.html \
712 oldnews.html \
713 omitted.html \
714 opcode.html \
715 pragma.html \
716 quickstart.html \
717 speed.html \
718 sqlite.gif \
719 sqlite.html \
720 support.html \
721 tclsqlite.html \
722 vdbe.html \
723 version3.html
724
725doc: common.tcl $(DOC)
726 mkdir -p doc
727 mv $(DOC) doc
728
729install: sqlite3 libsqlite3.la sqlite3.h ${HAVE_TCL:1=tcl_install}
730 $(INSTALL) -d $(DESTDIR)$(libdir)
731 $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir)
732 $(INSTALL) -d $(DESTDIR)$(exec_prefix)/bin
733 $(LTINSTALL) sqlite3 $(DESTDIR)$(exec_prefix)/bin
734 $(INSTALL) -d $(DESTDIR)$(prefix)/include
735 $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(prefix)/include
736 $(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(prefix)/include
737 $(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig;
738 $(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(libdir)/pkgconfig;
739
740tcl_install: libtclsqlite3.la
741 tclsh $(TOP)/tclinstaller.tcl $(VERSION)
742
743clean:
744 rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la
745 rm -f sqlite3.h opcodes.*
746 rm -rf .libs .deps
747 rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz
748 rm -f mkkeywordhash$(BEXE) keywordhash.h
749 rm -f $(PUBLISH)
750 rm -f *.da *.bb *.bbg gmon.out
751 rm -f testfixture$(TEXE) test.db
752 rm -rf doc
753 rm -f common.tcl
754 rm -f sqlite3.dll sqlite3.lib sqlite3.def
755
756distclean: clean
757 rm -f config.log config.status libtool Makefile config.h sqlite3.pc
758
759#
760# Windows section
761#
762dll: sqlite3.dll
763
764REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o)
765
766$(REAL_LIBOBJ): $(LIBOBJ)
767
768sqlite3.def: $(REAL_LIBOBJ)
769 echo 'EXPORTS' >sqlite3.def
770 nm $(REAL_LIBOBJ) | grep ' T ' | grep ' _sqlite3_' \
771 | sed 's/^.* _//' >>sqlite3.def
772
773sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def
774 $(TCC) -shared -o sqlite3.dll sqlite3.def \
775 -Wl,"--strip-all" $(REAL_LIBOBJ)