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.
21 # C Compiler and options for use in building executables that
22 # will run on the platform that is doing the build.
24 BCC
= @BUILD_CC@ @BUILD_CFLAGS@
26 # C Compile and options for use in building executables that
27 # will run on the target platform. (BCC and TCC are usually the
28 # same unless your are cross-compiling.)
30 TCC
= @CC@ @CPPFLAGS@ @CFLAGS@
-I.
-I
${TOP}/src
-I
${TOP}/ext
/rtree
32 # Define this for the autoconf-based build, so that the code knows it can
33 # include the generated config.h
35 TCC
+= -D_HAVE_SQLITE_CONFIG_H
-DBUILD_sqlite
37 # Define -DNDEBUG to compile without debugging (i.e., for production usage)
38 # Omitting the define will cause extra debugging code to be inserted and
39 # includes extra comments when "EXPLAIN stmt" is used.
41 TCC
+= @TARGET_DEBUG@ @XTHREADCONNECT@
43 # Compiler options needed for programs that use the TCL library.
45 TCC
+= @TCL_INCLUDE_SPEC@
47 # The library that programs using TCL must link against.
49 LIBTCL
= @TCL_LIB_SPEC@
51 # Compiler options needed for programs that use the readline() library.
53 READLINE_FLAGS
= -DHAVE_READLINE
=@TARGET_HAVE_READLINE@ @TARGET_READLINE_INC@
55 # The library that programs using readline() must link against.
57 LIBREADLINE
= @TARGET_READLINE_LIBS@
59 # Should the database engine be compiled threadsafe
61 TCC
+= -DSQLITE_THREADSAFE
=@SQLITE_THREADSAFE@
63 # Any target libraries which libsqlite must be linked against
67 # Flags controlling use of the in memory btree implementation
69 # SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to
70 # default to file, 2 to default to memory, and 3 to force temporary
71 # tables to always be in memory.
73 TEMP_STORE
= -DSQLITE_TEMP_STORE
=@TEMP_STORE@
75 # Enable/disable loadable extensions, and other optional features
76 # based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*).
77 # The same set of OMIT and ENABLE flags should be passed to the
78 # LEMON parser generator and the mkkeywordhash tool as well.
79 OPT_FEATURE_FLAGS
= @OPT_FEATURE_FLAGS@
81 TCC
+= $(OPT_FEATURE_FLAGS
)
83 # Add in any optional parameters specified on the make commane line
84 # ie. make "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1".
87 # Version numbers and release number for the SQLite being compiled.
90 VERSION_NUMBER
= @VERSION_NUMBER@
96 TEXE
= @TARGET_EXEEXT@
98 # The following variable is "1" if the configure script was able to locate
99 # the tclConfig.sh file. It is an empty string otherwise. When this
100 # variable is "1", the TCL extension library (libtclsqlite3.so) is built
103 HAVE_TCL
= @HAVE_TCL@
105 # This is the command to use for tclsh - normally just "tclsh", but we may
106 # know the specific version we want to use
108 TCLSH_CMD
= @TCLSH_CMD@
110 # Where do we want to install the tcl plugin
112 TCLLIBDIR
= @TCLLIBDIR@
114 # The suffix used on shared libraries. Ex: ".dll", ".so", ".dylib"
116 SHLIB_SUFFIX
= @TCL_SHLIB_SUFFIX@
118 # If gcov support was enabled by the configure script, add the appropriate
119 # flags here. It's not always as easy as just having the user add the right
120 # CFLAGS / LDFLAGS, because libtool wants to use CFLAGS when linking, which
121 # causes build errors with -fprofile-arcs -ftest-coverage with some GCCs.
122 # Supposedly GCC does the right thing if you use --coverage, but in
123 # practice it still fails. See:
125 # http://www.mail-archive.com/debian-gcc@lists.debian.org/msg26197.html
129 GCOV_CFLAGS1
= -DSQLITE_COVERAGE_TEST
=1 -fprofile-arcs
-ftest-coverage
130 GCOV_LDFLAGS1
= -lgcov
131 USE_GCOV
= @USE_GCOV@
132 LTCOMPILE_EXTRAS
+= $(GCOV_CFLAGS
$(USE_GCOV
))
133 LTLINK_EXTRAS
+= $(GCOV_LDFLAGS
$(USE_GCOV
))
141 $(TOP
)/src
/crypto.h \
142 $(TOP
)/src
/crypto.c \
143 $(TOP
)/src
/crypto_impl.c
147 # The directory into which to store package information for
149 # Some standard variables and programs
152 exec_prefix = @
exec_prefix@
154 pkgconfigdir
= $(libdir)/pkgconfig
156 includedir = @
includedir@
/sqlcipher
159 ALLOWRELEASE
= @ALLOWRELEASE@
161 # libtool compile/link/install
162 LTCOMPILE
= $(LIBTOOL
) --mode
=compile
--tag
=CC
$(TCC
) $(LTCOMPILE_EXTRAS
)
163 LTLINK
= $(LIBTOOL
) --mode
=link
$(TCC
) $(LTCOMPILE_EXTRAS
) @LDFLAGS@
$(LTLINK_EXTRAS
)
164 LTINSTALL
= $(LIBTOOL
) --mode
=install $(INSTALL
)
166 # nawk compatible awk.
169 # You should not have to change anything below this line
170 ###############################################################################
172 USE_AMALGAMATION
= @USE_AMALGAMATION@
174 # Object files for the SQLite library (non-amalgamation).
176 LIBOBJS0
= alter.lo analyze.lo attach.lo auth.lo \
177 backup.lo bitvec.lo btmutex.lo btree.lo build.lo \
178 callback.lo complete.lo ctime.lo date.lo delete.lo \
179 expr.lo fault.lo fkey.lo \
180 fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \
181 fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \
182 fts3_tokenize_vtab.lo \
183 fts3_unicode.lo fts3_unicode2.lo fts3_write.lo \
184 func.lo global.lo hash.lo \
185 icu.lo insert.lo journal.lo legacy.lo loadext.lo \
186 main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \
188 mutex.lo mutex_noop.lo mutex_unix.lo mutex_w32.lo \
189 notify.lo opcodes.lo os.lo os_unix.lo os_win.lo \
190 pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \
191 random.lo resolve.lo rowset.lo rtree.lo select.lo status.lo \
192 table.lo tokenize.lo trigger.lo \
193 update.lo util.lo vacuum.lo \
194 vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \
195 vdbetrace.lo wal.lo walker.lo where.lo utf.lo vtab.lo
$(CRYPTOLIBOBJ
)
197 # Object files for the amalgamation.
199 LIBOBJS1
= sqlite3.lo
201 # Determine the real value of LIBOBJ based on the 'configure' script
203 LIBOBJ
= $(LIBOBJS
$(USE_AMALGAMATION
))
206 # All of the source code files.
211 $(TOP
)/src
/analyze.c \
212 $(TOP
)/src
/attach.c \
214 $(TOP
)/src
/backup.c \
215 $(TOP
)/src
/bitvec.c \
216 $(TOP
)/src
/btmutex.c \
219 $(TOP
)/src
/btreeInt.h \
221 $(TOP
)/src
/callback.c \
222 $(TOP
)/src
/complete.c \
225 $(TOP
)/src
/delete.c \
230 $(TOP
)/src
/global.c \
233 $(TOP
)/src
/hwtime.h \
234 $(TOP
)/src
/insert.c \
235 $(TOP
)/src
/journal.c \
236 $(TOP
)/src
/legacy.c \
237 $(TOP
)/src
/loadext.c \
239 $(TOP
)/src
/malloc.c \
245 $(TOP
)/src
/memjournal.c \
248 $(TOP
)/src
/mutex_noop.c \
249 $(TOP
)/src
/mutex_unix.c \
250 $(TOP
)/src
/mutex_w32.c \
251 $(TOP
)/src
/notify.c \
254 $(TOP
)/src
/os_common.h \
255 $(TOP
)/src
/os_unix.c \
256 $(TOP
)/src
/os_win.c \
260 $(TOP
)/src
/pcache.c \
261 $(TOP
)/src
/pcache.h \
262 $(TOP
)/src
/pcache1.c \
263 $(TOP
)/src
/pragma.c \
264 $(TOP
)/src
/prepare.c \
265 $(TOP
)/src
/printf.c \
266 $(TOP
)/src
/random.c \
267 $(TOP
)/src
/resolve.c \
268 $(TOP
)/src
/rowset.c \
269 $(TOP
)/src
/select.c \
270 $(TOP
)/src
/status.c \
272 $(TOP
)/src
/sqlite.h.in \
273 $(TOP
)/src
/sqlite3ext.h \
274 $(TOP
)/src
/sqliteInt.h \
275 $(TOP
)/src
/sqliteLimit.h \
277 $(TOP
)/src
/tclsqlite.c \
278 $(TOP
)/src
/tokenize.c \
279 $(TOP
)/src
/trigger.c \
281 $(TOP
)/src
/update.c \
283 $(TOP
)/src
/vacuum.c \
286 $(TOP
)/src
/vdbeapi.c \
287 $(TOP
)/src
/vdbeaux.c \
288 $(TOP
)/src
/vdbeblob.c \
289 $(TOP
)/src
/vdbemem.c \
290 $(TOP
)/src
/vdbesort.c \
291 $(TOP
)/src
/vdbetrace.c \
292 $(TOP
)/src
/vdbeInt.h \
296 $(TOP
)/src
/walker.c \
299 # Source code for extensions
302 $(TOP
)/ext
/fts1
/fts1.c \
303 $(TOP
)/ext
/fts1
/fts1.h \
304 $(TOP
)/ext
/fts1
/fts1_hash.c \
305 $(TOP
)/ext
/fts1
/fts1_hash.h \
306 $(TOP
)/ext
/fts1
/fts1_porter.c \
307 $(TOP
)/ext
/fts1
/fts1_tokenizer.h \
308 $(TOP
)/ext
/fts1
/fts1_tokenizer1.c
310 $(TOP
)/ext
/fts2
/fts2.c \
311 $(TOP
)/ext
/fts2
/fts2.h \
312 $(TOP
)/ext
/fts2
/fts2_hash.c \
313 $(TOP
)/ext
/fts2
/fts2_hash.h \
314 $(TOP
)/ext
/fts2
/fts2_icu.c \
315 $(TOP
)/ext
/fts2
/fts2_porter.c \
316 $(TOP
)/ext
/fts2
/fts2_tokenizer.h \
317 $(TOP
)/ext
/fts2
/fts2_tokenizer.c \
318 $(TOP
)/ext
/fts2
/fts2_tokenizer1.c
320 $(TOP
)/ext
/fts3
/fts3.c \
321 $(TOP
)/ext
/fts3
/fts3.h \
322 $(TOP
)/ext
/fts3
/fts3Int.h \
323 $(TOP
)/ext
/fts3
/fts3_aux.c \
324 $(TOP
)/ext
/fts3
/fts3_expr.c \
325 $(TOP
)/ext
/fts3
/fts3_hash.c \
326 $(TOP
)/ext
/fts3
/fts3_hash.h \
327 $(TOP
)/ext
/fts3
/fts3_icu.c \
328 $(TOP
)/ext
/fts3
/fts3_porter.c \
329 $(TOP
)/ext
/fts3
/fts3_snippet.c \
330 $(TOP
)/ext
/fts3
/fts3_tokenizer.h \
331 $(TOP
)/ext
/fts3
/fts3_tokenizer.c \
332 $(TOP
)/ext
/fts3
/fts3_tokenizer1.c \
333 $(TOP
)/ext
/fts3
/fts3_tokenize_vtab.c \
334 $(TOP
)/ext
/fts3
/fts3_unicode.c \
335 $(TOP
)/ext
/fts3
/fts3_unicode2.c \
336 $(TOP
)/ext
/fts3
/fts3_write.c
338 $(TOP
)/ext
/icu
/sqliteicu.h \
341 $(TOP
)/ext
/rtree
/rtree.h \
342 $(TOP
)/ext
/rtree
/rtree.c
345 # Generated source code files
356 # Source code to the test files.
368 $(TOP
)/src
/test_autoext.c \
369 $(TOP
)/src
/test_async.c \
370 $(TOP
)/src
/test_backup.c \
371 $(TOP
)/src
/test_btree.c \
372 $(TOP
)/src
/test_config.c \
373 $(TOP
)/src
/test_demovfs.c \
374 $(TOP
)/src
/test_devsym.c \
375 $(TOP
)/src
/test_fs.c \
376 $(TOP
)/src
/test_func.c \
377 $(TOP
)/src
/test_hexio.c \
378 $(TOP
)/src
/test_init.c \
379 $(TOP
)/src
/test_intarray.c \
380 $(TOP
)/src
/test_journal.c \
381 $(TOP
)/src
/test_malloc.c \
382 $(TOP
)/src
/test_multiplex.c \
383 $(TOP
)/src
/test_mutex.c \
384 $(TOP
)/src
/test_onefile.c \
385 $(TOP
)/src
/test_osinst.c \
386 $(TOP
)/src
/test_pcache.c \
387 $(TOP
)/src
/test_quota.c \
388 $(TOP
)/src
/test_rtree.c \
389 $(TOP
)/src
/test_schema.c \
390 $(TOP
)/src
/test_server.c \
391 $(TOP
)/src
/test_superlock.c \
392 $(TOP
)/src
/test_syscall.c \
393 $(TOP
)/src
/test_stat.c \
394 $(TOP
)/src
/test_tclvar.c \
395 $(TOP
)/src
/test_thread.c \
396 $(TOP
)/src
/test_vfs.c \
397 $(TOP
)/src
/test_wsd.c \
398 $(TOP
)/ext
/fts3
/fts3_term.c \
399 $(TOP
)/ext
/fts3
/fts3_test.c
401 # Statically linked extensions
404 $(TOP
)/ext
/misc
/amatch.c \
405 $(TOP
)/ext
/misc
/closure.c \
406 $(TOP
)/ext
/misc
/fuzzer.c \
407 $(TOP
)/ext
/misc
/ieee754.c \
408 $(TOP
)/ext
/misc
/nextchar.c \
409 $(TOP
)/ext
/misc
/regexp.c \
410 $(TOP
)/ext
/misc
/spellfix.c \
411 $(TOP
)/ext
/misc
/wholenumber.c
413 # Source code to the library files needed by the test fixture
416 $(TOP
)/src
/attach.c \
417 $(TOP
)/src
/backup.c \
418 $(TOP
)/src
/bitvec.c \
425 $(TOP
)/src
/insert.c \
430 $(TOP
)/src
/os_unix.c \
431 $(TOP
)/src
/os_win.c \
433 $(TOP
)/src
/pragma.c \
434 $(TOP
)/src
/prepare.c \
435 $(TOP
)/src
/printf.c \
436 $(TOP
)/src
/random.c \
437 $(TOP
)/src
/pcache.c \
438 $(TOP
)/src
/pcache1.c \
439 $(TOP
)/src
/select.c \
440 $(TOP
)/src
/tokenize.c \
443 $(TOP
)/src
/vdbeapi.c \
444 $(TOP
)/src
/vdbeaux.c \
446 $(TOP
)/src
/vdbemem.c \
447 $(TOP
)/src
/vdbetrace.c \
450 $(TOP
)/ext
/fts3
/fts3.c \
451 $(TOP
)/ext
/fts3
/fts3_aux.c \
452 $(TOP
)/ext
/fts3
/fts3_expr.c \
453 $(TOP
)/ext
/fts3
/fts3_term.c \
454 $(TOP
)/ext
/fts3
/fts3_tokenizer.c \
455 $(TOP
)/ext
/fts3
/fts3_write.c \
456 $(TOP
)/ext
/async
/sqlite3async.c
458 # Header files used by all library source files.
462 $(TOP
)/src
/btreeInt.h \
464 $(TOP
)/src
/hwtime.h \
469 $(TOP
)/src
/os_common.h \
471 $(TOP
)/src
/pcache.h \
474 $(TOP
)/src
/sqlite3ext.h \
475 $(TOP
)/src
/sqliteInt.h \
476 $(TOP
)/src
/sqliteLimit.h \
478 $(TOP
)/src
/vdbeInt.h \
481 # Header files used by extensions
484 $(TOP
)/ext
/fts1
/fts1.h \
485 $(TOP
)/ext
/fts1
/fts1_hash.h \
486 $(TOP
)/ext
/fts1
/fts1_tokenizer.h
488 $(TOP
)/ext
/fts2
/fts2.h \
489 $(TOP
)/ext
/fts2
/fts2_hash.h \
490 $(TOP
)/ext
/fts2
/fts2_tokenizer.h
492 $(TOP
)/ext
/fts3
/fts3.h \
493 $(TOP
)/ext
/fts3
/fts3Int.h \
494 $(TOP
)/ext
/fts3
/fts3_hash.h \
495 $(TOP
)/ext
/fts3
/fts3_tokenizer.h
497 $(TOP
)/ext
/rtree
/rtree.h
499 $(TOP
)/ext
/icu
/sqliteicu.h
501 $(TOP
)/ext
/rtree
/sqlite3rtree.h
503 # This is the default Makefile target. The objects listed here
504 # are what get build when you type just "make" with no arguments.
506 all: sqlite3.h libsqlcipher.la sqlcipher
$(TEXE
) $(HAVE_TCL
:1=libtclsqlite3.la
)
508 Makefile
: $(TOP
)/Makefile.in
511 sqlcipher.
pc: $(TOP
)/sqlcipher.
pc.in
514 libsqlcipher.la
: $(LIBOBJ
)
515 $(LTLINK
) -o
$@
$(LIBOBJ
) $(TLIBS
) \
516 ${ALLOWRELEASE} -rpath
"$(libdir)" -version-info
"8:6:8"
518 libtclsqlite3.la
: tclsqlite.lo libsqlcipher.la
519 $(LTLINK
) -o
$@ tclsqlite.lo \
520 libsqlcipher.la @TCL_STUB_LIB_SPEC@
$(TLIBS
) \
521 -rpath
"$(TCLLIBDIR)" \
522 -version-info
"8:6:8" \
525 sqlcipher
$(TEXE
): $(TOP
)/src
/shell.c libsqlcipher.la sqlite3.h
526 $(LTLINK
) $(READLINE_FLAGS
) \
527 -o
$@
$(TOP
)/src
/shell.c libsqlcipher.la \
528 $(LIBREADLINE
) $(TLIBS
) -rpath
"$(libdir)"
530 mptester
$(EXE
): sqlite3.c
$(TOP
)/mptest
/mptest.c
531 $(LTLINK
) -o
$@
-I.
$(TOP
)/mptest
/mptest.c sqlite3.c \
532 $(TLIBS
) -rpath
"$(libdir)"
535 # This target creates a directory named "tsrc" and fills it with
536 # copies of all of the C source code and header files needed to
537 # build on the target system. Some of the C source code and header
538 # files are automatically generated. This target takes care of
539 # all that automatic generation.
541 .target_source
: $(SRC
) $(TOP
)/tool
/vdbe-compress.tcl
545 rm tsrc
/sqlite.h.in tsrc
/parse.y
546 $(TCLSH_CMD
) $(TOP
)/tool
/vdbe-compress.tcl
<tsrc
/vdbe.c
>vdbe.new
547 mv vdbe.new tsrc
/vdbe.c
550 sqlite3.c
: .target_source
$(TOP
)/tool
/mksqlite3c.tcl
551 $(TCLSH_CMD
) $(TOP
)/tool
/mksqlite3c.tcl
552 cp tsrc
/shell.c tsrc
/sqlite3ext.h .
554 tclsqlite3.c
: sqlite3.c
555 echo
'#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c
556 cat sqlite3.c
>>tclsqlite3.c
557 echo
'#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c
558 cat
$(TOP
)/src
/tclsqlite.c
>>tclsqlite3.c
560 sqlite3-all.c
: sqlite3.c
$(TOP
)/tool
/split-sqlite3c.tcl
561 $(TCLSH_CMD
) $(TOP
)/tool
/split-sqlite3c.tcl
563 # Rule to build the amalgamation
565 sqlite3.lo
: sqlite3.c
566 $(LTCOMPILE
) $(TEMP_STORE
) -c sqlite3.c
568 # Rules to build the LEMON compiler generator
570 lemon
$(BEXE
): $(TOP
)/tool
/lemon.c
$(TOP
)/src
/lempar.c
571 $(BCC
) -o
$@
$(TOP
)/tool
/lemon.c
572 cp
$(TOP
)/src
/lempar.c .
574 # Rules to build individual *.o files from generated *.c files. This
580 parse.lo
: parse.c
$(HDR
)
581 $(LTCOMPILE
) $(TEMP_STORE
) -c parse.c
583 opcodes.lo
: opcodes.c
584 $(LTCOMPILE
) $(TEMP_STORE
) -c opcodes.c
587 crypto.lo
: $(TOP
)/src
/crypto.c
$(HDR
)
588 $(LTCOMPILE
) -c
$(TOP
)/src
/crypto.c
589 crypto_impl.lo
: $(TOP
)/src
/crypto_impl.c
$(HDR
)
590 $(LTCOMPILE
) -c
$(TOP
)/src
/crypto_impl.c
593 # Rules to build individual *.o files from files in the src directory.
595 alter.lo
: $(TOP
)/src
/alter.c
$(HDR
)
596 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/alter.c
598 analyze.lo
: $(TOP
)/src
/analyze.c
$(HDR
)
599 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/analyze.c
601 attach.lo
: $(TOP
)/src
/attach.c
$(HDR
)
602 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/attach.c
604 auth.lo
: $(TOP
)/src
/auth.c
$(HDR
)
605 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/auth.c
607 backup.lo
: $(TOP
)/src
/backup.c
$(HDR
)
608 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/backup.c
610 bitvec.lo
: $(TOP
)/src
/bitvec.c
$(HDR
)
611 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/bitvec.c
613 btmutex.lo
: $(TOP
)/src
/btmutex.c
$(HDR
)
614 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/btmutex.c
616 btree.lo
: $(TOP
)/src
/btree.c
$(HDR
) $(TOP
)/src
/pager.h
617 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/btree.c
619 build.lo
: $(TOP
)/src
/build.c
$(HDR
)
620 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/build.c
622 callback.lo
: $(TOP
)/src
/callback.c
$(HDR
)
623 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/callback.c
625 complete.lo
: $(TOP
)/src
/complete.c
$(HDR
)
626 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/complete.c
628 ctime.lo
: $(TOP
)/src
/ctime.c
$(HDR
)
629 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/ctime.c
631 date.lo
: $(TOP
)/src
/date.c
$(HDR
)
632 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/date.c
634 delete.lo
: $(TOP
)/src
/delete.c
$(HDR
)
635 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/delete.c
637 expr.lo
: $(TOP
)/src
/expr.c
$(HDR
)
638 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/expr.c
640 fault.lo
: $(TOP
)/src
/fault.c
$(HDR
)
641 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/fault.c
643 fkey.lo
: $(TOP
)/src
/fkey.c
$(HDR
)
644 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/fkey.c
646 func.lo
: $(TOP
)/src
/func.c
$(HDR
)
647 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/func.c
649 global.lo
: $(TOP
)/src
/global.c
$(HDR
)
650 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/global.c
652 hash.lo
: $(TOP
)/src
/hash.c
$(HDR
)
653 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/hash.c
655 insert.lo
: $(TOP
)/src
/insert.c
$(HDR
)
656 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/insert.c
658 journal.lo
: $(TOP
)/src
/journal.c
$(HDR
)
659 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/journal.c
661 legacy.lo
: $(TOP
)/src
/legacy.c
$(HDR
)
662 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/legacy.c
664 loadext.lo
: $(TOP
)/src
/loadext.c
$(HDR
)
665 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/loadext.c
667 main.lo
: $(TOP
)/src
/main.c
$(HDR
)
668 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/main.c
670 malloc.lo
: $(TOP
)/src
/malloc.c
$(HDR
)
671 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/malloc.c
673 mem0.lo
: $(TOP
)/src
/mem0.c
$(HDR
)
674 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mem0.c
676 mem1.lo
: $(TOP
)/src
/mem1.c
$(HDR
)
677 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mem1.c
679 mem2.lo
: $(TOP
)/src
/mem2.c
$(HDR
)
680 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mem2.c
682 mem3.lo
: $(TOP
)/src
/mem3.c
$(HDR
)
683 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mem3.c
685 mem5.lo
: $(TOP
)/src
/mem5.c
$(HDR
)
686 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mem5.c
688 memjournal.lo
: $(TOP
)/src
/memjournal.c
$(HDR
)
689 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/memjournal.c
691 mutex.lo
: $(TOP
)/src
/mutex.c
$(HDR
)
692 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mutex.c
694 mutex_noop.lo
: $(TOP
)/src
/mutex_noop.c
$(HDR
)
695 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mutex_noop.c
697 mutex_unix.lo
: $(TOP
)/src
/mutex_unix.c
$(HDR
)
698 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mutex_unix.c
700 mutex_w32.lo
: $(TOP
)/src
/mutex_w32.c
$(HDR
)
701 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/mutex_w32.c
703 notify.lo
: $(TOP
)/src
/notify.c
$(HDR
)
704 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/notify.c
706 pager.lo
: $(TOP
)/src
/pager.c
$(HDR
) $(TOP
)/src
/pager.h
707 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/pager.c
709 pcache.lo
: $(TOP
)/src
/pcache.c
$(HDR
) $(TOP
)/src
/pcache.h
710 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/pcache.c
712 pcache1.lo
: $(TOP
)/src
/pcache1.c
$(HDR
) $(TOP
)/src
/pcache.h
713 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/pcache1.c
715 os.lo
: $(TOP
)/src
/os.c
$(HDR
)
716 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/os.c
718 os_unix.lo
: $(TOP
)/src
/os_unix.c
$(HDR
)
719 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/os_unix.c
721 os_win.lo
: $(TOP
)/src
/os_win.c
$(HDR
)
722 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/os_win.c
724 pragma.lo
: $(TOP
)/src
/pragma.c
$(HDR
)
725 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/pragma.c
727 prepare.lo
: $(TOP
)/src
/prepare.c
$(HDR
)
728 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/prepare.c
730 printf.lo
: $(TOP
)/src
/printf.c
$(HDR
)
731 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/printf.c
733 random.lo
: $(TOP
)/src
/random.c
$(HDR
)
734 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/random.c
736 resolve.lo
: $(TOP
)/src
/resolve.c
$(HDR
)
737 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/resolve.c
739 rowset.lo
: $(TOP
)/src
/rowset.c
$(HDR
)
740 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/rowset.c
742 select.lo
: $(TOP
)/src
/select.c
$(HDR
)
743 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/select.c
745 status.lo
: $(TOP
)/src
/status.c
$(HDR
)
746 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/status.c
748 table.lo
: $(TOP
)/src
/table.c
$(HDR
)
749 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/table.c
751 tokenize.lo
: $(TOP
)/src
/tokenize.c keywordhash.h
$(HDR
)
752 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/tokenize.c
754 trigger.lo
: $(TOP
)/src
/trigger.c
$(HDR
)
755 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/trigger.c
757 update.lo
: $(TOP
)/src
/update.c
$(HDR
)
758 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/update.c
760 utf.lo
: $(TOP
)/src
/utf.c
$(HDR
)
761 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/utf.c
763 util.lo
: $(TOP
)/src
/util.c
$(HDR
)
764 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/util.c
766 vacuum.lo
: $(TOP
)/src
/vacuum.c
$(HDR
)
767 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vacuum.c
769 vdbe.lo
: $(TOP
)/src
/vdbe.c
$(HDR
)
770 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbe.c
772 vdbeapi.lo
: $(TOP
)/src
/vdbeapi.c
$(HDR
)
773 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbeapi.c
775 vdbeaux.lo
: $(TOP
)/src
/vdbeaux.c
$(HDR
)
776 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbeaux.c
778 vdbeblob.lo
: $(TOP
)/src
/vdbeblob.c
$(HDR
)
779 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbeblob.c
781 vdbemem.lo
: $(TOP
)/src
/vdbemem.c
$(HDR
)
782 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbemem.c
784 vdbesort.lo
: $(TOP
)/src
/vdbesort.c
$(HDR
)
785 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbesort.c
787 vdbetrace.lo
: $(TOP
)/src
/vdbetrace.c
$(HDR
)
788 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vdbetrace.c
790 vtab.lo
: $(TOP
)/src
/vtab.c
$(HDR
)
791 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/vtab.c
793 wal.lo
: $(TOP
)/src
/wal.c
$(HDR
)
794 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/wal.c
796 walker.lo
: $(TOP
)/src
/walker.c
$(HDR
)
797 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/walker.c
799 where.lo
: $(TOP
)/src
/where.c
$(HDR
)
800 $(LTCOMPILE
) $(TEMP_STORE
) -c
$(TOP
)/src
/where.c
802 tclsqlite.lo
: $(TOP
)/src
/tclsqlite.c
$(HDR
)
803 $(LTCOMPILE
) -DUSE_TCL_STUBS
=1 -c
$(TOP
)/src
/tclsqlite.c
805 tclsqlite-shell.lo
: $(TOP
)/src
/tclsqlite.c
$(HDR
)
806 $(LTCOMPILE
) -DTCLSH
=1 -o
$@
-c
$(TOP
)/src
/tclsqlite.c
808 tclsqlite-stubs.lo
: $(TOP
)/src
/tclsqlite.c
$(HDR
)
809 $(LTCOMPILE
) -DUSE_TCL_STUBS
=1 -o
$@
-c
$(TOP
)/src
/tclsqlite.c
811 tclsqlcipher
$(TEXE
): tclsqlite-shell.lo libsqlcipher.la
812 $(LTLINK
) -o
$@ tclsqlite-shell.lo \
813 libsqlcipher.la
$(LIBTCL
)
815 # Rules to build opcodes.c and opcodes.h
817 opcodes.c
: opcodes.h
$(TOP
)/mkopcodec.awk
818 $(NAWK
) -f
$(TOP
)/mkopcodec.awk opcodes.h
>opcodes.c
820 opcodes.h
: parse.h
$(TOP
)/src
/vdbe.c
$(TOP
)/mkopcodeh.awk
821 cat parse.h
$(TOP
)/src
/vdbe.c |
$(NAWK
) -f
$(TOP
)/mkopcodeh.awk
>opcodes.h
823 # Rules to build parse.c and parse.h - the outputs of lemon.
827 parse.c
: $(TOP
)/src
/parse.y lemon
$(BEXE
) $(TOP
)/addopcodes.awk
828 cp
$(TOP
)/src
/parse.y .
830 .
/lemon
$(BEXE
) $(OPT_FEATURE_FLAGS
) $(OPTS
) parse.y
831 mv parse.h parse.h.temp
832 $(NAWK
) -f
$(TOP
)/addopcodes.awk parse.h.temp
>parse.h
834 sqlite3.h
: $(TOP
)/src
/sqlite.h.in
$(TOP
)/manifest.uuid
$(TOP
)/VERSION
835 $(TCLSH_CMD
) $(TOP
)/tool
/mksqlite3h.tcl
$(TOP
) >sqlite3.h
837 keywordhash.h
: $(TOP
)/tool
/mkkeywordhash.c
838 $(BCC
) -o mkkeywordhash
$(BEXE
) $(OPT_FEATURE_FLAGS
) $(OPTS
) $(TOP
)/tool
/mkkeywordhash.c
839 .
/mkkeywordhash
$(BEXE
) >keywordhash.h
843 # Rules to build the extension objects.
845 icu.lo
: $(TOP
)/ext
/icu
/icu.c
$(HDR
) $(EXTHDR
)
846 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/icu
/icu.c
848 fts2.lo
: $(TOP
)/ext
/fts2
/fts2.c
$(HDR
) $(EXTHDR
)
849 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts2
/fts2.c
851 fts2_hash.lo
: $(TOP
)/ext
/fts2
/fts2_hash.c
$(HDR
) $(EXTHDR
)
852 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts2
/fts2_hash.c
854 fts2_icu.lo
: $(TOP
)/ext
/fts2
/fts2_icu.c
$(HDR
) $(EXTHDR
)
855 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts2
/fts2_icu.c
857 fts2_porter.lo
: $(TOP
)/ext
/fts2
/fts2_porter.c
$(HDR
) $(EXTHDR
)
858 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts2
/fts2_porter.c
860 fts2_tokenizer.lo
: $(TOP
)/ext
/fts2
/fts2_tokenizer.c
$(HDR
) $(EXTHDR
)
861 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts2
/fts2_tokenizer.c
863 fts2_tokenizer1.lo
: $(TOP
)/ext
/fts2
/fts2_tokenizer1.c
$(HDR
) $(EXTHDR
)
864 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts2
/fts2_tokenizer1.c
866 fts3.lo
: $(TOP
)/ext
/fts3
/fts3.c
$(HDR
) $(EXTHDR
)
867 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3.c
869 fts3_aux.lo
: $(TOP
)/ext
/fts3
/fts3_aux.c
$(HDR
) $(EXTHDR
)
870 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_aux.c
872 fts3_expr.lo
: $(TOP
)/ext
/fts3
/fts3_expr.c
$(HDR
) $(EXTHDR
)
873 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_expr.c
875 fts3_hash.lo
: $(TOP
)/ext
/fts3
/fts3_hash.c
$(HDR
) $(EXTHDR
)
876 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_hash.c
878 fts3_icu.lo
: $(TOP
)/ext
/fts3
/fts3_icu.c
$(HDR
) $(EXTHDR
)
879 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_icu.c
881 fts3_porter.lo
: $(TOP
)/ext
/fts3
/fts3_porter.c
$(HDR
) $(EXTHDR
)
882 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_porter.c
884 fts3_snippet.lo
: $(TOP
)/ext
/fts3
/fts3_snippet.c
$(HDR
) $(EXTHDR
)
885 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_snippet.c
887 fts3_tokenizer.lo
: $(TOP
)/ext
/fts3
/fts3_tokenizer.c
$(HDR
) $(EXTHDR
)
888 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_tokenizer.c
890 fts3_tokenizer1.lo
: $(TOP
)/ext
/fts3
/fts3_tokenizer1.c
$(HDR
) $(EXTHDR
)
891 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_tokenizer1.c
893 fts3_tokenize_vtab.lo
: $(TOP
)/ext
/fts3
/fts3_tokenize_vtab.c
$(HDR
) $(EXTHDR
)
894 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_tokenize_vtab.c
896 fts3_unicode.lo
: $(TOP
)/ext
/fts3
/fts3_unicode.c
$(HDR
) $(EXTHDR
)
897 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_unicode.c
899 fts3_unicode2.lo
: $(TOP
)/ext
/fts3
/fts3_unicode2.c
$(HDR
) $(EXTHDR
)
900 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_unicode2.c
902 fts3_write.lo
: $(TOP
)/ext
/fts3
/fts3_write.c
$(HDR
) $(EXTHDR
)
903 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/fts3
/fts3_write.c
905 rtree.lo
: $(TOP
)/ext
/rtree
/rtree.c
$(HDR
) $(EXTHDR
)
906 $(LTCOMPILE
) -DSQLITE_CORE
-c
$(TOP
)/ext
/rtree
/rtree.c
909 # Rules to build the 'testfixture' application.
911 # If using the amalgamation, use sqlite3.c directly to build the test
912 # fixture. Otherwise link against libsqlcipher.la. (This distinction is
913 # necessary because the test fixture requires non-API symbols which are
914 # hidden when the library is built via the amalgamation).
916 TESTFIXTURE_FLAGS
= -DTCLSH
=1 -DSQLITE_TEST
=1 -DSQLITE_CRASH_TEST
=1
917 TESTFIXTURE_FLAGS
+= -DSQLITE_SERVER
=1 -DSQLITE_PRIVATE
="" -DSQLITE_CORE
918 TESTFIXTURE_FLAGS
+= -DBUILD_sqlite
920 TESTFIXTURE_SRC0
= $(TESTSRC2
) libsqlcipher.la
921 TESTFIXTURE_SRC1
= sqlite3.c
922 TESTFIXTURE_SRC
= $(TESTSRC
) $(TOP
)/src
/tclsqlite.c
923 TESTFIXTURE_SRC
+= $(TESTFIXTURE_SRC
$(USE_AMALGAMATION
))
925 testfixture
$(TEXE
): $(TESTFIXTURE_SRC
)
926 $(LTLINK
) -DSQLITE_NO_SYNC
=1 $(TEMP_STORE
) $(TESTFIXTURE_FLAGS
) \
927 -o
$@
$(TESTFIXTURE_SRC
) $(LIBTCL
) $(TLIBS
)
930 fulltest
: testfixture
$(TEXE
) sqlcipher
$(TEXE
)
931 .
/testfixture
$(TEXE
) $(TOP
)/test/all.
test
933 soaktest
: testfixture
$(TEXE
) sqlcipher
$(TEXE
)
934 .
/testfixture
$(TEXE
) $(TOP
)/test/all.
test -soak
=1
936 fulltestonly
: testfixture
$(TEXE
) sqlcipher
$(TEXE
)
937 .
/testfixture
$(TEXE
) $(TOP
)/test/full.
test
939 test: testfixture
$(TEXE
) sqlcipher
$(TEXE
)
940 .
/testfixture
$(TEXE
) $(TOP
)/test/veryquick.
test
942 sqlite3_analyzer.c
: sqlite3.c
$(TOP
)/src
/test_stat.c
$(TOP
)/src
/tclsqlite.c
$(TOP
)/tool
/spaceanal.tcl
943 echo
"#define TCLSH 2" > $@
944 cat sqlite3.c
$(TOP
)/src
/test_stat.c
$(TOP
)/src
/tclsqlite.c
>> $@
945 echo
"static const char *tclsh_main_loop(void){" >> $@
946 echo
"static const char *zMainloop = " >> $@
947 $(NAWK
) -f
$(TOP
)/tool
/tostr.awk
$(TOP
)/tool
/spaceanal.tcl
>> $@
948 echo
"; return zMainloop; }" >> $@
950 sqlite3_analyzer
$(TEXE
): sqlite3_analyzer.c
951 $(LTLINK
) sqlite3_analyzer.c
-o
$@
$(LIBTCL
) $(TLIBS
)
953 # Standard install and cleanup targets
955 lib_install
: libsqlcipher.la
956 $(INSTALL
) -d
$(DESTDIR
)$(libdir)
957 $(LTINSTALL
) libsqlcipher.la
$(DESTDIR
)$(libdir)
959 install: sqlcipher
$(BEXE
) lib_install sqlite3.h sqlcipher.
pc ${HAVE_TCL
:1=tcl_install
}
960 $(INSTALL
) -d
$(DESTDIR
)$(bindir)
961 $(LTINSTALL
) sqlcipher
$(BEXE
) $(DESTDIR
)$(bindir)
962 $(INSTALL
) -d
$(DESTDIR
)$(includedir)
963 $(INSTALL
) -m
0644 sqlite3.h
$(DESTDIR
)$(includedir)
964 $(INSTALL
) -m
0644 $(TOP
)/src
/sqlite3ext.h
$(DESTDIR
)$(includedir)
965 $(INSTALL
) -d
$(DESTDIR
)$(pkgconfigdir
)
966 $(INSTALL
) -m
0644 sqlcipher.
pc $(DESTDIR
)$(pkgconfigdir
)
969 echo
'package ifneeded sqlite3 $(RELEASE) [list load $(TCLLIBDIR)/libtclsqlite3.so sqlite3]' > $@
970 tcl_install
: lib_install libtclsqlite3.la pkgIndex.tcl
971 $(INSTALL
) -d
$(DESTDIR
)$(TCLLIBDIR
)
972 $(LTINSTALL
) libtclsqlite3.la
$(DESTDIR
)$(TCLLIBDIR
)
973 rm -f
$(DESTDIR
)$(TCLLIBDIR
)/libtclsqlite3.la
$(DESTDIR
)$(TCLLIBDIR
)/libtclsqlite3.a
974 $(INSTALL
) -m
0644 pkgIndex.tcl
$(DESTDIR
)$(TCLLIBDIR
)
977 rm -f
*.lo
*.la
*.o sqlcipher
$(TEXE
) libsqlcipher.la
978 rm -f sqlite3.h opcodes.
*
980 rm -f lemon
$(BEXE
) lempar.c parse.
* sqlite
*.
tar.gz
981 rm -f mkkeywordhash
$(BEXE
) keywordhash.h
982 rm -f
*.da
*.bb
*.bbg gmon.out
983 rm -rf quota2a quota2b quota2c
984 rm -rf tsrc .target_source
985 rm -f tclsqlcipher
$(TEXE
)
986 rm -f testfixture
$(TEXE
) test.db
987 rm -f sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def
990 rm -f
shell.c sqlite3ext.h
991 rm -f sqlite3_analyzer
$(TEXE
) sqlite3_analyzer.c
992 rm -f sqlite-
*-output.vsix
993 rm -f mptester mptester.exe
996 rm -f config.log config.status libtool Makefile sqlcipher.
pc
1003 REAL_LIBOBJ
= $(LIBOBJ
:%.lo
=.libs
/%.o
)
1005 $(REAL_LIBOBJ
): $(LIBOBJ
)
1007 sqlite3.def
: $(REAL_LIBOBJ
)
1008 echo
'EXPORTS' >sqlite3.def
1009 nm
$(REAL_LIBOBJ
) | grep
' T ' | grep
' _sqlite3_' \
1010 | sed
's/^.* _//' >>sqlite3.def
1012 sqlite3.dll
: $(REAL_LIBOBJ
) sqlite3.def
1013 $(TCC
) -shared
-o
$@ sqlite3.def \
1014 -Wl
,"--strip-all" $(REAL_LIBOBJ
)