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.
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.
15 # The toplevel directory of the source tree. This is the directory
16 # that contains this "Makefile.in" and the "configure.in" script.
20 # C Compiler and options for use in building executables that
21 # will run on the platform that is doing the build.
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.)
29 TCC
= gcc
-g
-O2
-DSQLITE_OS_UNIX
=1 -I.
-I
${TOP}/src
-I
${TOP}/ext
/rtree
31 # Define this for the autoconf-based build, so that the code knows it can
32 # include the generated config.h
34 TCC
+= -D_HAVE_SQLITE_CONFIG_H
-DBUILD_sqlite
36 # Define -DNDEBUG to compile without debugging (i.e., for production usage)
37 # Omitting the define will cause extra debugging code to be inserted and
38 # includes extra comments when "EXPLAIN stmt" is used.
42 # Compiler options needed for programs that use the TCL library.
44 TCC
+= -I
/System
/Library
/Frameworks
/Tcl.framework
/Versions
/8.5/Headers
46 # The library that programs using TCL must link against.
48 LIBTCL
= -F
/System
/Library
/Frameworks
-framework Tcl
50 # Compiler options needed for programs that use the readline() library.
52 READLINE_FLAGS
= -DHAVE_READLINE
=1 -I
/usr
/include/readline
54 # The library that programs using readline() must link against.
56 LIBREADLINE
= -lreadline
-lncurses
58 # Should the database engine be compiled threadsafe
60 TCC
+= -DSQLITE_THREADSAFE
=1
62 # Any target libraries which libsqlite must be linked against
66 # Flags controlling use of the in memory btree implementation
68 # SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to
69 # default to file, 2 to default to memory, and 3 to force temporary
70 # tables to always be in memory.
72 TEMP_STORE
= -DSQLITE_TEMP_STORE
=1
74 # Enable/disable loadable extensions, and other optional features
75 # based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*).
76 # The same set of OMIT and ENABLE flags should be passed to the
77 # LEMON parser generator and the mkkeywordhash tool as well.
78 OPT_FEATURE_FLAGS
= -DSQLITE_OMIT_LOAD_EXTENSION
=1
80 TCC
+= $(OPT_FEATURE_FLAGS
)
82 # Add in any optional parameters specified on the make commane line
83 # ie. make "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1".
86 # Version numbers and release number for the SQLite being compiled.
89 VERSION_NUMBER
= 3008000
97 # The following variable is "1" if the configure script was able to locate
98 # the tclConfig.sh file. It is an empty string otherwise. When this
99 # variable is "1", the TCL extension library (libtclsqlite3.so) is built
104 # This is the command to use for tclsh - normally just "tclsh", but we may
105 # know the specific version we want to use
109 # Where do we want to install the tcl plugin
111 TCLLIBDIR
= /System
/Library
/Frameworks
/Tcl.framework
/Versions
/8.5/Resources
/Scripts
/sqlite3
113 # The suffix used on shared libraries. Ex: ".dll", ".so", ".dylib"
115 SHLIB_SUFFIX
= @TCL_SHLIB_SUFFIX@
117 # If gcov support was enabled by the configure script, add the appropriate
118 # flags here. It's not always as easy as just having the user add the right
119 # CFLAGS / LDFLAGS, because libtool wants to use CFLAGS when linking, which
120 # causes build errors with -fprofile-arcs -ftest-coverage with some GCCs.
121 # Supposedly GCC does the right thing if you use --coverage, but in
122 # practice it still fails. See:
124 # http://www.mail-archive.com/debian-gcc@lists.debian.org/msg26197.html
128 GCOV_CFLAGS1
= -DSQLITE_COVERAGE_TEST
=1 -fprofile-arcs
-ftest-coverage
129 GCOV_LDFLAGS1
= -lgcov
131 LTCOMPILE_EXTRAS
+= $(GCOV_CFLAGS
$(USE_GCOV
))
132 LTLINK_EXTRAS
+= $(GCOV_LDFLAGS
$(USE_GCOV
))
135 # The directory into which to store package information for
137 # Some standard variables and programs
140 exec_prefix = ${prefix}
141 libdir = ${exec_prefix}/lib
142 pkgconfigdir
= $(libdir)/pkgconfig
143 bindir = ${exec_prefix}/bin
144 includedir = ${prefix}/include
145 INSTALL
= /usr
/bin
/install -c
149 # libtool compile/link/install
150 LTCOMPILE
= $(LIBTOOL
) --mode
=compile
--tag
=CC
$(TCC
) $(LTCOMPILE_EXTRAS
)
151 LTLINK
= $(LIBTOOL
) --mode
=link
$(TCC
) $(LTCOMPILE_EXTRAS
) $(LTLINK_EXTRAS
)
152 LTINSTALL
= $(LIBTOOL
) --mode
=install $(INSTALL
)
154 # nawk compatible awk.
157 # You should not have to change anything below this line
158 ###############################################################################
162 # Object files for the SQLite library (non-amalgamation).
164 LIBOBJS0
= alter.lo analyze.lo attach.lo auth.lo \
165 backup.lo bitvec.lo btmutex.lo btree.lo build.lo \
166 callback.lo complete.lo ctime.lo date.lo delete.lo \
167 expr.lo fault.lo fkey.lo \
168 fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \
169 fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \
170 fts3_tokenize_vtab.lo \
171 fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \
172 func.lo global.lo hash.lo \
173 icu.lo insert.lo journal.lo legacy.lo loadext.lo \
174 main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \
176 mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \
177 notify.lo opcodes.lo os.lo os_unix.lo os_win.lo \
178 pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \
179 random.lo resolve.lo rowset.lo rtree.lo select.lo status.lo \
180 table.lo tokenize.lo trigger.lo \
181 update.lo util.lo vacuum.lo \
182 vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \
183 vdbetrace.lo wal.lo walker.lo where.lo utf.lo vtab.lo
185 # Object files for the amalgamation.
187 LIBOBJS1
= sqlite3.lo
189 # Determine the real value of LIBOBJ based on the 'configure' script
191 LIBOBJ
= $(LIBOBJS
$(USE_AMALGAMATION
))
194 # All of the source code files.
198 $(TOP
)/src
/analyze.c \
199 $(TOP
)/src
/attach.c \
201 $(TOP
)/src
/backup.c \
202 $(TOP
)/src
/bitvec.c \
203 $(TOP
)/src
/btmutex.c \
206 $(TOP
)/src
/btreeInt.h \
208 $(TOP
)/src
/callback.c \
209 $(TOP
)/src
/complete.c \
212 $(TOP
)/src
/delete.c \
217 $(TOP
)/src
/global.c \
220 $(TOP
)/src
/hwtime.h \
221 $(TOP
)/src
/insert.c \
222 $(TOP
)/src
/journal.c \
223 $(TOP
)/src
/legacy.c \
224 $(TOP
)/src
/loadext.c \
226 $(TOP
)/src
/malloc.c \
232 $(TOP
)/src
/memjournal.c \
235 $(TOP
)/src
/mutex_noop.c \
236 $(TOP
)/src
/mutex_unix.c \
237 $(TOP
)/src
/mutex_w32.c \
238 $(TOP
)/src
/notify.c \
241 $(TOP
)/src
/os_common.h \
242 $(TOP
)/src
/os_unix.c \
243 $(TOP
)/src
/os_win.c \
247 $(TOP
)/src
/pcache.c \
248 $(TOP
)/src
/pcache.h \
249 $(TOP
)/src
/pcache1.c \
250 $(TOP
)/src
/pragma.c \
251 $(TOP
)/src
/prepare.c \
252 $(TOP
)/src
/printf.c \
253 $(TOP
)/src
/random.c \
254 $(TOP
)/src
/resolve.c \
255 $(TOP
)/src
/rowset.c \
256 $(TOP
)/src
/select.c \
257 $(TOP
)/src
/status.c \
259 $(TOP
)/src
/sqlite.h.in \
260 $(TOP
)/src
/sqlite3ext.h \
261 $(TOP
)/src
/sqliteInt.h \
262 $(TOP
)/src
/sqliteLimit.h \
264 $(TOP
)/src
/tclsqlite.c \
265 $(TOP
)/src
/tokenize.c \
266 $(TOP
)/src
/trigger.c \
268 $(TOP
)/src
/update.c \
270 $(TOP
)/src
/vacuum.c \
273 $(TOP
)/src
/vdbeapi.c \
274 $(TOP
)/src
/vdbeaux.c \
275 $(TOP
)/src
/vdbeblob.c \
276 $(TOP
)/src
/vdbemem.c \
277 $(TOP
)/src
/vdbesort.c \
278 $(TOP
)/src
/vdbetrace.c \
279 $(TOP
)/src
/vdbeInt.h \
283 $(TOP
)/src
/walker.c \
286 # Source code for extensions
289 $(TOP
)/ext
/fts1
/fts1.c \
290 $(TOP
)/ext
/fts1
/fts1.h \
291 $(TOP
)/ext
/fts1
/fts1_hash.c \
292 $(TOP
)/ext
/fts1
/fts1_hash.h \
293 $(TOP
)/ext
/fts1
/fts1_porter.c \
294 $(TOP
)/ext
/fts1
/fts1_tokenizer.h \
295 $(TOP
)/ext
/fts1
/fts1_tokenizer1.c
297 $(TOP
)/ext
/fts2
/fts2.c \
298 $(TOP
)/ext
/fts2
/fts2.h \
299 $(TOP
)/ext
/fts2
/fts2_hash.c \
300 $(TOP
)/ext
/fts2
/fts2_hash.h \
301 $(TOP
)/ext
/fts2
/fts2_icu.c \
302 $(TOP
)/ext
/fts2
/fts2_porter.c \
303 $(TOP
)/ext
/fts2
/fts2_tokenizer.h \
304 $(TOP
)/ext
/fts2
/fts2_tokenizer.c \
305 $(TOP
)/ext
/fts2
/fts2_tokenizer1.c
307 $(TOP
)/ext
/fts3
/fts3.c \
308 $(TOP
)/ext
/fts3
/fts3.h \
309 $(TOP
)/ext
/fts3
/fts3Int.h \
310 $(TOP
)/ext
/fts3
/fts3_aux.c \
311 $(TOP
)/ext
/fts3
/fts3_expr.c \
312 $(TOP
)/ext
/fts3
/fts3_hash.c \
313 $(TOP
)/ext
/fts3
/fts3_hash.h \
314 $(TOP
)/ext
/fts3
/fts3_icu.c \
315 $(TOP
)/ext
/fts3
/fts3_porter.c \
316 $(TOP
)/ext
/fts3
/fts3_snippet.c \
317 $(TOP
)/ext
/fts3
/fts3_tokenizer.h \
318 $(TOP
)/ext
/fts3
/fts3_tokenizer.c \
319 $(TOP
)/ext
/fts3
/fts3_tokenizer1.c \
320 $(TOP
)/ext
/fts3
/fts3_tokenize_vtab.c \
321 $(TOP
)/ext
/fts3
/fts3_unicode.c \
322 $(TOP
)/ext
/fts3
/fts3_unicode2.c \
323 $(TOP
)/ext
/fts3
/fts3_write.c
325 $(TOP
)/ext
/icu
/sqliteicu.h \
328 $(TOP
)/ext
/rtree
/rtree.h \
329 $(TOP
)/ext
/rtree
/rtree.c
332 # Generated source code files
343 # Source code to the test files.
355 $(TOP
)/src
/test_autoext.c \
356 $(TOP
)/src
/test_async.c \
357 $(TOP
)/src
/test_backup.c \
358 $(TOP
)/src
/test_btree.c \
359 $(TOP
)/src
/test_config.c \
360 $(TOP
)/src
/test_demovfs.c \
361 $(TOP
)/src
/test_devsym.c \
362 $(TOP
)/src
/test_fs.c \
363 $(TOP
)/src
/test_func.c \
364 $(TOP
)/src
/test_hexio.c \
365 $(TOP
)/src
/test_init.c \
366 $(TOP
)/src
/test_intarray.c \
367 $(TOP
)/src
/test_journal.c \
368 $(TOP
)/src
/test_malloc.c \
369 $(TOP
)/src
/test_multiplex.c \
370 $(TOP
)/src
/test_mutex.c \
371 $(TOP
)/src
/test_onefile.c \
372 $(TOP
)/src
/test_osinst.c \
373 $(TOP
)/src
/test_pcache.c \
374 $(TOP
)/src
/test_quota.c \
375 $(TOP
)/src
/test_rtree.c \
376 $(TOP
)/src
/test_schema.c \
377 $(TOP
)/src
/test_server.c \
378 $(TOP
)/src
/test_superlock.c \
379 $(TOP
)/src
/test_syscall.c \
380 $(TOP
)/src
/test_stat.c \
381 $(TOP
)/src
/test_tclvar.c \
382 $(TOP
)/src
/test_thread.c \
383 $(TOP
)/src
/test_vfs.c \
384 $(TOP
)/src
/test_wsd.c \
385 $(TOP
)/ext
/fts3
/fts3_term.c \
386 $(TOP
)/ext
/fts3
/fts3_test.c
388 # Statically linked extensions
391 $(TOP
)/ext
/misc
/amatch.c \
392 $(TOP
)/ext
/misc
/closure.c \
393 $(TOP
)/ext
/misc
/fuzzer.c \
394 $(TOP
)/ext
/misc
/ieee754.c \
395 $(TOP
)/ext
/misc
/nextchar.c \
396 $(TOP
)/ext
/misc
/percentile.c \
397 $(TOP
)/ext
/misc
/regexp.c \
398 $(TOP
)/ext
/misc
/spellfix.c \
399 $(TOP
)/ext
/misc
/wholenumber.c
401 # Source code to the library files needed by the test fixture
404 $(TOP
)/src
/attach.c \
405 $(TOP
)/src
/backup.c \
406 $(TOP
)/src
/bitvec.c \
413 $(TOP
)/src
/insert.c \
418 $(TOP
)/src
/os_unix.c \
419 $(TOP
)/src
/os_win.c \
421 $(TOP
)/src
/pragma.c \
422 $(TOP
)/src
/prepare.c \
423 $(TOP
)/src
/printf.c \
424 $(TOP
)/src
/random.c \
425 $(TOP
)/src
/pcache.c \
426 $(TOP
)/src
/pcache1.c \
427 $(TOP
)/src
/select.c \
428 $(TOP
)/src
/tokenize.c \
431 $(TOP
)/src
/vdbeapi.c \
432 $(TOP
)/src
/vdbeaux.c \
434 $(TOP
)/src
/vdbemem.c \
435 $(TOP
)/src
/vdbetrace.c \
438 $(TOP
)/ext
/fts3
/fts3.c \
439 $(TOP
)/ext
/fts3
/fts3_aux.c \
440 $(TOP
)/ext
/fts3
/fts3_expr.c \
441 $(TOP
)/ext
/fts3
/fts3_term.c \
442 $(TOP
)/ext
/fts3
/fts3_tokenizer.c \
443 $(TOP
)/ext
/fts3
/fts3_write.c \
444 $(TOP
)/ext
/async
/sqlite3async.c
446 # Header files used by all library source files.
450 $(TOP
)/src
/btreeInt.h \
452 $(TOP
)/src
/hwtime.h \
457 $(TOP
)/src
/os_common.h \
459 $(TOP
)/src
/pcache.h \
462 $(TOP
)/src
/sqlite3ext.h \
463 $(TOP
)/src
/sqliteInt.h \
464 $(TOP
)/src
/sqliteLimit.h \
466 $(TOP
)/src
/vdbeInt.h \
469 # Header files used by extensions
472 $(TOP
)/ext
/fts1
/fts1.h \
473 $(TOP
)/ext
/fts1
/fts1_hash.h \
474 $(TOP
)/ext
/fts1
/fts1_tokenizer.h
476 $(TOP
)/ext
/fts2
/fts2.h \
477 $(TOP
)/ext
/fts2
/fts2_hash.h \
478 $(TOP
)/ext
/fts2
/fts2_tokenizer.h
480 $(TOP
)/ext
/fts3
/fts3.h \
481 $(TOP
)/ext
/fts3
/fts3Int.h \
482 $(TOP
)/ext
/fts3
/fts3_hash.h \
483 $(TOP
)/ext
/fts3
/fts3_tokenizer.h
485 $(TOP
)/ext
/rtree
/rtree.h
487 $(TOP
)/ext
/icu
/sqliteicu.h
489 $(TOP
)/ext
/rtree
/sqlite3rtree.h
491 # This is the default Makefile target. The objects listed here
492 # are what get build when you type just "make" with no arguments.
494 all: sqlite3.h libsqlite3.la sqlite3
$(TEXE
) $(HAVE_TCL
:1=libtclsqlite3.la
)
496 Makefile
: $(TOP
)/Makefile.in
499 sqlite3.
pc: $(TOP
)/sqlite3.
pc.in
502 libsqlite3.la
: $(LIBOBJ
)
503 $(LTLINK
) -o
$@
$(LIBOBJ
) $(TLIBS
) \
504 ${ALLOWRELEASE} -rpath
"$(libdir)" -version-info
"8:6:8"
506 libtclsqlite3.la
: tclsqlite.lo libsqlite3.la
507 $(LTLINK
) -o
$@ tclsqlite.lo \
508 libsqlite3.la
-L
/System
/Library
/Frameworks
/Tcl.framework
/Versions
/8.5 -ltclstub8.5
$(TLIBS
) \
509 -rpath
"$(TCLLIBDIR)" \
510 -version-info
"8:6:8" \
513 sqlite3
$(TEXE
): $(TOP
)/src
/shell.c libsqlite3.la sqlite3.h
514 $(LTLINK
) $(READLINE_FLAGS
) \
515 -o
$@
$(TOP
)/src
/shell.c libsqlite3.la \
516 $(LIBREADLINE
) $(TLIBS
) -rpath
"$(libdir)"
518 mptester
$(EXE
): sqlite3.c
$(TOP
)/mptest
/mptest.c
519 $(LTLINK
) -o
$@
-I.
$(TOP
)/mptest
/mptest.c sqlite3.c \
520 $(TLIBS
) -rpath
"$(libdir)"
523 # This target creates a directory named "tsrc" and fills it with
524 # copies of all of the C source code and header files needed to
525 # build on the target system. Some of the C source code and header
526 # files are automatically generated. This target takes care of
527 # all that automatic generation.
529 .target_source
: $(SRC
) $(TOP
)/tool
/vdbe-compress.tcl
533 rm tsrc
/sqlite.h.in tsrc
/parse.y
534 $(TCLSH_CMD
) $(TOP
)/tool
/vdbe-compress.tcl
<tsrc
/vdbe.c
>vdbe.new
535 mv vdbe.new tsrc
/vdbe.c
538 sqlite3.c
: .target_source
$(TOP
)/tool
/mksqlite3c.tcl
539 $(TCLSH_CMD
) $(TOP
)/tool
/mksqlite3c.tcl
540 cp tsrc
/shell.c tsrc
/sqlite3ext.h .
542 tclsqlite3.c
: sqlite3.c
543 echo
'#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c
544 cat sqlite3.c
>>tclsqlite3.c
545 echo
'#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c
546 cat
$(TOP
)/src
/tclsqlite.c
>>tclsqlite3.c
548 sqlite3-all.c
: sqlite3.c
$(TOP
)/tool
/split-sqlite3c.tcl
549 $(TCLSH_CMD
) $(TOP
)/tool
/split-sqlite3c.tcl
551 # Rule to build the amalgamation
553 sqlite3.lo
: sqlite3.c
554 $(LTCOMPILE
) $(TEMP_STORE
) -c sqlite3.c
556 # Rules to build the LEMON compiler generator
558 lemon
$(BEXE
): $(TOP
)/tool
/lemon.c
$(TOP
)/src
/lempar.c
559 $(BCC
) -o
$@
$(TOP
)/tool
/lemon.c
560 cp
$(TOP
)/src
/lempar.c .
562 # Rules to build individual *.o files from generated *.c files. This
568 parse.lo
: parse.c
$(HDR
)
569 $(LTCOMPILE
) $(TEMP_STORE
) -c parse.c
571 opcodes.lo
: opcodes.c
572 $(LTCOMPILE
) $(TEMP_STORE
) -c opcodes.c
574 # Rules to build individual *.o files from files in the src directory.
576 alter.lo
: $(TOP
)/src
/alter.c
$(HDR
)
577 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/alter.c
579 analyze.lo
: $(TOP
)/src
/analyze.c
$(HDR
)
580 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/analyze.c
582 attach.lo
: $(TOP
)/src
/attach.c
$(HDR
)
583 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/attach.c
585 auth.lo
: $(TOP
)/src
/auth.c
$(HDR
)
586 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/auth.c
588 backup.lo
: $(TOP
)/src
/backup.c
$(HDR
)
589 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/backup.c
591 bitvec.lo
: $(TOP
)/src
/bitvec.c
$(HDR
)
592 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/bitvec.c
594 btmutex.lo
: $(TOP
)/src
/btmutex.c
$(HDR
)
595 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/btmutex.c
597 btree.lo
: $(TOP
)/src
/btree.c
$(HDR
) $(TOP
)/src
/pager.h
598 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/btree.c
600 build.lo
: $(TOP
)/src
/build.c
$(HDR
)
601 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/build.c
603 callback.lo
: $(TOP
)/src
/callback.c
$(HDR
)
604 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/callback.c
606 complete.lo
: $(TOP
)/src
/complete.c
$(HDR
)
607 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/complete.c
609 ctime.lo
: $(TOP
)/src
/ctime.c
$(HDR
)
610 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/ctime.c
612 date.lo
: $(TOP
)/src
/date.c
$(HDR
)
613 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/date.c
615 delete.lo
: $(TOP
)/src
/delete.c
$(HDR
)
616 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/delete.c
618 expr.lo
: $(TOP
)/src
/expr.c
$(HDR
)
619 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/expr.c
621 fault.lo
: $(TOP
)/src
/fault.c
$(HDR
)
622 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/fault.c
624 fkey.lo
: $(TOP
)/src
/fkey.c
$(HDR
)
625 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/fkey.c
627 func.lo
: $(TOP
)/src
/func.c
$(HDR
)
628 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/func.c
630 global.lo
: $(TOP
)/src
/global.c
$(HDR
)
631 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/global.c
633 hash.lo
: $(TOP
)/src
/hash.c
$(HDR
)
634 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/hash.c
636 insert.lo
: $(TOP
)/src
/insert.c
$(HDR
)
637 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/insert.c
639 journal.lo
: $(TOP
)/src
/journal.c
$(HDR
)
640 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/journal.c
642 legacy.lo
: $(TOP
)/src
/legacy.c
$(HDR
)
643 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/legacy.c
645 loadext.lo
: $(TOP
)/src
/loadext.c
$(HDR
)
646 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/loadext.c
648 main.lo
: $(TOP
)/src
/main.c
$(HDR
)
649 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/main.c
651 malloc.lo
: $(TOP
)/src
/malloc.c
$(HDR
)
652 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/malloc.c
654 mem0.lo
: $(TOP
)/src
/mem0.c
$(HDR
)
655 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mem0.c
657 mem1.lo
: $(TOP
)/src
/mem1.c
$(HDR
)
658 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mem1.c
660 mem2.lo
: $(TOP
)/src
/mem2.c
$(HDR
)
661 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mem2.c
663 mem3.lo
: $(TOP
)/src
/mem3.c
$(HDR
)
664 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mem3.c
666 mem5.lo
: $(TOP
)/src
/mem5.c
$(HDR
)
667 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mem5.c
669 memjournal.lo
: $(TOP
)/src
/memjournal.c
$(HDR
)
670 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/memjournal.c
672 mutex.lo
: $(TOP
)/src
/mutex.c
$(HDR
)
673 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mutex.c
675 mutex_noop.lo
: $(TOP
)/src
/mutex_noop.c
$(HDR
)
676 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mutex_noop.c
678 mutex_unix.lo
: $(TOP
)/src
/mutex_unix.c
$(HDR
)
679 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mutex_unix.c
681 mutex_w32.lo
: $(TOP
)/src
/mutex_w32.c
$(HDR
)
682 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mutex_w32.c
684 notify.lo
: $(TOP
)/src
/notify.c
$(HDR
)
685 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/notify.c
687 pager.lo
: $(TOP
)/src
/pager.c
$(HDR
) $(TOP
)/src
/pager.h
688 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/pager.c
690 pcache.lo
: $(TOP
)/src
/pcache.c
$(HDR
) $(TOP
)/src
/pcache.h
691 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/pcache.c
693 pcache1.lo
: $(TOP
)/src
/pcache1.c
$(HDR
) $(TOP
)/src
/pcache.h
694 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/pcache1.c
696 os.lo
: $(TOP
)/src
/os.c
$(HDR
)
697 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/os.c
699 os_unix.lo
: $(TOP
)/src
/os_unix.c
$(HDR
)
700 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/os_unix.c
702 os_win.lo
: $(TOP
)/src
/os_win.c
$(HDR
)
703 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/os_win.c
705 pragma.lo
: $(TOP
)/src
/pragma.c
$(HDR
)
706 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/pragma.c
708 prepare.lo
: $(TOP
)/src
/prepare.c
$(HDR
)
709 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/prepare.c
711 printf.lo
: $(TOP
)/src
/printf.c
$(HDR
)
712 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/printf.c
714 random.lo
: $(TOP
)/src
/random.c
$(HDR
)
715 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/random.c
717 resolve.lo
: $(TOP
)/src
/resolve.c
$(HDR
)
718 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/resolve.c
720 rowset.lo
: $(TOP
)/src
/rowset.c
$(HDR
)
721 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/rowset.c
723 select.lo
: $(TOP
)/src
/select.c
$(HDR
)
724 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/select.c
726 status.lo
: $(TOP
)/src
/status.c
$(HDR
)
727 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/status.c
729 table.lo
: $(TOP
)/src
/table.c
$(HDR
)
730 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/table.c
732 tokenize.lo
: $(TOP
)/src
/tokenize.c keywordhash.h
$(HDR
)
733 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/tokenize.c
735 trigger.lo
: $(TOP
)/src
/trigger.c
$(HDR
)
736 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/trigger.c
738 update.lo
: $(TOP
)/src
/update.c
$(HDR
)
739 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/update.c
741 utf.lo
: $(TOP
)/src
/utf.c
$(HDR
)
742 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/utf.c
744 util.lo
: $(TOP
)/src
/util.c
$(HDR
)
745 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/util.c
747 vacuum.lo
: $(TOP
)/src
/vacuum.c
$(HDR
)
748 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vacuum.c
750 vdbe.lo
: $(TOP
)/src
/vdbe.c
$(HDR
)
751 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbe.c
753 vdbeapi.lo
: $(TOP
)/src
/vdbeapi.c
$(HDR
)
754 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbeapi.c
756 vdbeaux.lo
: $(TOP
)/src
/vdbeaux.c
$(HDR
)
757 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbeaux.c
759 vdbeblob.lo
: $(TOP
)/src
/vdbeblob.c
$(HDR
)
760 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbeblob.c
762 vdbemem.lo
: $(TOP
)/src
/vdbemem.c
$(HDR
)
763 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbemem.c
765 vdbesort.lo
: $(TOP
)/src
/vdbesort.c
$(HDR
)
766 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbesort.c
768 vdbetrace.lo
: $(TOP
)/src
/vdbetrace.c
$(HDR
)
769 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbetrace.c
771 vtab.lo
: $(TOP
)/src
/vtab.c
$(HDR
)
772 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vtab.c
774 wal.lo
: $(TOP
)/src
/wal.c
$(HDR
)
775 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/wal.c
777 walker.lo
: $(TOP
)/src
/walker.c
$(HDR
)
778 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/walker.c
780 where.lo
: $(TOP
)/src
/where.c
$(HDR
)
781 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/where.c
783 tclsqlite.lo
: $(TOP
)/src
/tclsqlite.c
$(HDR
)
784 $(LTCOMPILE
) -DUSE_TCL_STUBS
=1 -c
$(TOP
)/src
/tclsqlite.c
786 tclsqlite-shell.lo
: $(TOP
)/src
/tclsqlite.c
$(HDR
)
787 $(LTCOMPILE
) -DTCLSH
=1 -o
$@
-c
$(TOP
)/src
/tclsqlite.c
789 tclsqlite-stubs.lo
: $(TOP
)/src
/tclsqlite.c
$(HDR
)
790 $(LTCOMPILE
) -DUSE_TCL_STUBS
=1 -o
$@
-c
$(TOP
)/src
/tclsqlite.c
792 tclsqlite3
$(TEXE
): tclsqlite-shell.lo libsqlite3.la
793 $(LTLINK
) -o
$@ tclsqlite-shell.lo \
794 libsqlite3.la
$(LIBTCL
)
796 # Rules to build opcodes.c and opcodes.h
798 opcodes.c
: opcodes.h
$(TOP
)/mkopcodec.awk
799 $(NAWK
) -f
$(TOP
)/mkopcodec.awk opcodes.h
>opcodes.c
801 opcodes.h
: parse.h
$(TOP
)/src
/vdbe.c
$(TOP
)/mkopcodeh.awk
802 cat parse.h
$(TOP
)/src
/vdbe.c |
$(NAWK
) -f
$(TOP
)/mkopcodeh.awk
>opcodes.h
804 # Rules to build parse.c and parse.h - the outputs of lemon.
808 parse.c
: $(TOP
)/src
/parse.y lemon
$(BEXE
) $(TOP
)/addopcodes.awk
809 cp
$(TOP
)/src
/parse.y .
811 .
/lemon
$(BEXE
) $(OPT_FEATURE_FLAGS
) $(OPTS
) parse.y
812 mv parse.h parse.h.temp
813 $(NAWK
) -f
$(TOP
)/addopcodes.awk parse.h.temp
>parse.h
815 sqlite3.h
: $(TOP
)/src
/sqlite.h.in
$(TOP
)/manifest.uuid
$(TOP
)/VERSION
816 $(TCLSH_CMD
) $(TOP
)/tool
/mksqlite3h.tcl
$(TOP
) >sqlite3.h
818 keywordhash.h
: $(TOP
)/tool
/mkkeywordhash.c
819 $(BCC
) -o mkkeywordhash
$(BEXE
) $(OPT_FEATURE_FLAGS
) $(OPTS
) $(TOP
)/tool
/mkkeywordhash.c
820 .
/mkkeywordhash
$(BEXE
) >keywordhash.h
824 # Rules to build the extension objects.
826 icu.lo
: $(TOP
)/ext
/icu
/icu.c
$(HDR
) $(EXTHDR
)
827 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/icu
/icu.c
829 fts2.lo
: $(TOP
)/ext
/fts2
/fts2.c
$(HDR
) $(EXTHDR
)
830 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts2
/fts2.c
832 fts2_hash.lo
: $(TOP
)/ext
/fts2
/fts2_hash.c
$(HDR
) $(EXTHDR
)
833 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts2
/fts2_hash.c
835 fts2_icu.lo
: $(TOP
)/ext
/fts2
/fts2_icu.c
$(HDR
) $(EXTHDR
)
836 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts2
/fts2_icu.c
838 fts2_porter.lo
: $(TOP
)/ext
/fts2
/fts2_porter.c
$(HDR
) $(EXTHDR
)
839 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts2
/fts2_porter.c
841 fts2_tokenizer.lo
: $(TOP
)/ext
/fts2
/fts2_tokenizer.c
$(HDR
) $(EXTHDR
)
842 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts2
/fts2_tokenizer.c
844 fts2_tokenizer1.lo
: $(TOP
)/ext
/fts2
/fts2_tokenizer1.c
$(HDR
) $(EXTHDR
)
845 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts2
/fts2_tokenizer1.c
847 fts3.lo
: $(TOP
)/ext
/fts3
/fts3.c
$(HDR
) $(EXTHDR
)
848 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3.c
850 fts3_aux.lo
: $(TOP
)/ext
/fts3
/fts3_aux.c
$(HDR
) $(EXTHDR
)
851 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_aux.c
853 fts3_expr.lo
: $(TOP
)/ext
/fts3
/fts3_expr.c
$(HDR
) $(EXTHDR
)
854 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_expr.c
856 fts3_hash.lo
: $(TOP
)/ext
/fts3
/fts3_hash.c
$(HDR
) $(EXTHDR
)
857 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_hash.c
859 fts3_icu.lo
: $(TOP
)/ext
/fts3
/fts3_icu.c
$(HDR
) $(EXTHDR
)
860 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_icu.c
862 fts3_porter.lo
: $(TOP
)/ext
/fts3
/fts3_porter.c
$(HDR
) $(EXTHDR
)
863 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_porter.c
865 fts3_snippet.lo
: $(TOP
)/ext
/fts3
/fts3_snippet.c
$(HDR
) $(EXTHDR
)
866 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_snippet.c
868 fts3_tokenizer.lo
: $(TOP
)/ext
/fts3
/fts3_tokenizer.c
$(HDR
) $(EXTHDR
)
869 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_tokenizer.c
871 fts3_tokenizer1.lo
: $(TOP
)/ext
/fts3
/fts3_tokenizer1.c
$(HDR
) $(EXTHDR
)
872 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_tokenizer1.c
874 fts3_tokenize_vtab.lo
: $(TOP
)/ext
/fts3
/fts3_tokenize_vtab.c
$(HDR
) $(EXTHDR
)
875 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_tokenize_vtab.c
877 fts3_unicode.lo
: $(TOP
)/ext
/fts3
/fts3_unicode.c
$(HDR
) $(EXTHDR
)
878 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_unicode.c
880 fts3_unicode2.lo
: $(TOP
)/ext
/fts3
/fts3_unicode2.c
$(HDR
) $(EXTHDR
)
881 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_unicode2.c
883 fts3_write.lo
: $(TOP
)/ext
/fts3
/fts3_write.c
$(HDR
) $(EXTHDR
)
884 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_write.c
886 rtree.lo
: $(TOP
)/ext
/rtree
/rtree.c
$(HDR
) $(EXTHDR
)
887 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/rtree
/rtree.c
890 # Rules to build the 'testfixture' application.
892 # If using the amalgamation, use sqlite3.c directly to build the test
893 # fixture. Otherwise link against libsqlite3.la. (This distinction is
894 # necessary because the test fixture requires non-API symbols which are
895 # hidden when the library is built via the amalgamation).
897 TESTFIXTURE_FLAGS
= -DTCLSH
=1 -DSQLITE_TEST
=1 -DSQLITE_CRASH_TEST
=1
898 TESTFIXTURE_FLAGS
+= -DSQLITE_SERVER
=1 -DSQLITE_PRIVATE
="" -DSQLITE_CORE
899 TESTFIXTURE_FLAGS
+= -DBUILD_sqlite
901 TESTFIXTURE_SRC0
= $(TESTSRC2
) libsqlite3.la
902 TESTFIXTURE_SRC1
= sqlite3.c
903 TESTFIXTURE_SRC
= $(TESTSRC
) $(TOP
)/src
/tclsqlite.c
904 TESTFIXTURE_SRC
+= $(TESTFIXTURE_SRC
$(USE_AMALGAMATION
))
906 testfixture
$(TEXE
): $(TESTFIXTURE_SRC
)
907 $(LTLINK
) -DSQLITE_NO_SYNC
=1 $(TEMP_STORE
) $(TESTFIXTURE_FLAGS
) \
908 -o
$@
$(TESTFIXTURE_SRC
) $(LIBTCL
) $(TLIBS
)
911 fulltest
: testfixture
$(TEXE
) sqlite3
$(TEXE
)
912 .
/testfixture
$(TEXE
) $(TOP
)/test/all.
test
914 soaktest
: testfixture
$(TEXE
) sqlite3
$(TEXE
)
915 .
/testfixture
$(TEXE
) $(TOP
)/test/all.
test -soak
=1
917 fulltestonly
: testfixture
$(TEXE
) sqlite3
$(TEXE
)
918 .
/testfixture
$(TEXE
) $(TOP
)/test/full.
test
920 test: testfixture
$(TEXE
) sqlite3
$(TEXE
)
921 .
/testfixture
$(TEXE
) $(TOP
)/test/veryquick.
test
923 sqlite3_analyzer.c
: sqlite3.c
$(TOP
)/src
/test_stat.c
$(TOP
)/src
/tclsqlite.c
$(TOP
)/tool
/spaceanal.tcl
924 echo
"#define TCLSH 2" > $@
925 cat sqlite3.c
$(TOP
)/src
/test_stat.c
$(TOP
)/src
/tclsqlite.c
>> $@
926 echo
"static const char *tclsh_main_loop(void){" >> $@
927 echo
"static const char *zMainloop = " >> $@
928 $(NAWK
) -f
$(TOP
)/tool
/tostr.awk
$(TOP
)/tool
/spaceanal.tcl
>> $@
929 echo
"; return zMainloop; }" >> $@
931 sqlite3_analyzer
$(TEXE
): sqlite3_analyzer.c
932 $(LTLINK
) sqlite3_analyzer.c
-o
$@
$(LIBTCL
) $(TLIBS
)
934 # Standard install and cleanup targets
936 lib_install
: libsqlite3.la
937 $(INSTALL
) -d
$(DESTDIR
)$(libdir)
938 $(LTINSTALL
) libsqlite3.la
$(DESTDIR
)$(libdir)
940 install: sqlite3
$(BEXE
) lib_install sqlite3.h sqlite3.
pc ${HAVE_TCL
:1=tcl_install
}
941 $(INSTALL
) -d
$(DESTDIR
)$(bindir)
942 $(LTINSTALL
) sqlite3
$(BEXE
) $(DESTDIR
)$(bindir)
943 $(INSTALL
) -d
$(DESTDIR
)$(includedir)
944 $(INSTALL
) -m
0644 sqlite3.h
$(DESTDIR
)$(includedir)
945 $(INSTALL
) -m
0644 $(TOP
)/src
/sqlite3ext.h
$(DESTDIR
)$(includedir)
946 $(INSTALL
) -d
$(DESTDIR
)$(pkgconfigdir
)
947 $(INSTALL
) -m
0644 sqlite3.
pc $(DESTDIR
)$(pkgconfigdir
)
950 echo
'package ifneeded sqlite3 $(RELEASE) [list load $(TCLLIBDIR)/libtclsqlite3.so sqlite3]' > $@
951 tcl_install
: lib_install libtclsqlite3.la pkgIndex.tcl
952 $(INSTALL
) -d
$(DESTDIR
)$(TCLLIBDIR
)
953 $(LTINSTALL
) libtclsqlite3.la
$(DESTDIR
)$(TCLLIBDIR
)
954 rm -f
$(DESTDIR
)$(TCLLIBDIR
)/libtclsqlite3.la
$(DESTDIR
)$(TCLLIBDIR
)/libtclsqlite3.a
955 $(INSTALL
) -m
0644 pkgIndex.tcl
$(DESTDIR
)$(TCLLIBDIR
)
958 rm -f
*.lo
*.la
*.o sqlite3
$(TEXE
) libsqlite3.la
959 rm -f sqlite3.h opcodes.
*
961 rm -f lemon
$(BEXE
) lempar.c parse.
* sqlite
*.
tar.gz
962 rm -f mkkeywordhash
$(BEXE
) keywordhash.h
963 rm -f
*.da
*.bb
*.bbg gmon.out
964 rm -rf quota2a quota2b quota2c
965 rm -rf tsrc .target_source
966 rm -f tclsqlite3
$(TEXE
)
967 rm -f testfixture
$(TEXE
) test.db
968 rm -f sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def
971 rm -f
shell.c sqlite3ext.h
972 rm -f sqlite3_analyzer
$(TEXE
) sqlite3_analyzer.c
973 rm -f sqlite-
*-output.vsix
974 rm -f mptester mptester.exe
977 rm -f config.log config.status libtool Makefile sqlite3.
pc
984 REAL_LIBOBJ
= $(LIBOBJ
:%.lo
=.libs
/%.o
)
986 $(REAL_LIBOBJ
): $(LIBOBJ
)
988 sqlite3.def
: $(REAL_LIBOBJ
)
989 echo
'EXPORTS' >sqlite3.def
990 nm
$(REAL_LIBOBJ
) | grep
' T ' | grep
' _sqlite3_' \
991 | sed
's/^.* _//' >>sqlite3.def
993 sqlite3.dll
: $(REAL_LIBOBJ
) sqlite3.def
994 $(TCC
) -shared
-o
$@ sqlite3.def \
995 -Wl
,"--strip-all" $(REAL_LIBOBJ
)