Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f
[chromium-blink-merge.git] / third_party / sqlite / src / Makefile.in
blob13894865d6887d121a9f92a371971b63078adeac
1 #!/usr/make
3 # Makefile for SQLITE
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.
18 TOP = @srcdir@
20 # C Compiler and options for use in building executables that
21 # will run on the platform that is doing the build.
23 BCC = @BUILD_CC@ @BUILD_CFLAGS@
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 = @CC@ @CPPFLAGS@ @CFLAGS@ -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.
40 TCC += @TARGET_DEBUG@ @XTHREADCONNECT@
42 # Compiler options needed for programs that use the TCL library.
44 TCC += @TCL_INCLUDE_SPEC@
46 # The library that programs using TCL must link against.
48 LIBTCL = @TCL_LIB_SPEC@
50 # Compiler options needed for programs that use the readline() library.
52 READLINE_FLAGS = -DHAVE_READLINE=@TARGET_HAVE_READLINE@ @TARGET_READLINE_INC@
54 # The library that programs using readline() must link against.
56 LIBREADLINE = @TARGET_READLINE_LIBS@
58 # Should the database engine be compiled threadsafe
60 TCC += -DSQLITE_THREADSAFE=@SQLITE_THREADSAFE@
62 # Any target libraries which libsqlite must be linked against
64 TLIBS = @LIBS@
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=@TEMP_STORE@
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 = @OPT_FEATURE_FLAGS@
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".
84 TCC += $(OPTS)
86 # Version numbers and release number for the SQLite being compiled.
88 VERSION = @VERSION@
89 VERSION_NUMBER = @VERSION_NUMBER@
90 RELEASE = @RELEASE@
92 # Filename extensions
94 BEXE = @BUILD_EXEEXT@
95 TEXE = @TARGET_EXEEXT@
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
100 # and installed.
102 HAVE_TCL = @HAVE_TCL@
104 # This is the command to use for tclsh - normally just "tclsh", but we may
105 # know the specific version we want to use
107 TCLSH_CMD = @TCLSH_CMD@
109 # Where do we want to install the tcl plugin
111 TCLLIBDIR = @TCLLIBDIR@
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
126 # for more info.
128 GCOV_CFLAGS1 = -DSQLITE_COVERAGE_TEST=1 -fprofile-arcs -ftest-coverage
129 GCOV_LDFLAGS1 = -lgcov
130 USE_GCOV = @USE_GCOV@
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
139 prefix = @prefix@
140 exec_prefix = @exec_prefix@
141 libdir = @libdir@
142 pkgconfigdir = $(libdir)/pkgconfig
143 bindir = @bindir@
144 includedir = @includedir@
145 INSTALL = @INSTALL@
146 LIBTOOL = ./libtool
147 ALLOWRELEASE = @ALLOWRELEASE@
149 # libtool compile/link/install
150 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(TCC) $(LTCOMPILE_EXTRAS)
151 LTLINK = $(LIBTOOL) --mode=link $(TCC) $(LTCOMPILE_EXTRAS) @LDFLAGS@ $(LTLINK_EXTRAS)
152 LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL)
154 # nawk compatible awk.
155 NAWK = @AWK@
157 # You should not have to change anything below this line
158 ###############################################################################
160 USE_AMALGAMATION = @USE_AMALGAMATION@
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 \
175 memjournal.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 threads.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.
196 SRC = \
197 $(TOP)/src/alter.c \
198 $(TOP)/src/analyze.c \
199 $(TOP)/src/attach.c \
200 $(TOP)/src/auth.c \
201 $(TOP)/src/backup.c \
202 $(TOP)/src/bitvec.c \
203 $(TOP)/src/btmutex.c \
204 $(TOP)/src/btree.c \
205 $(TOP)/src/btree.h \
206 $(TOP)/src/btreeInt.h \
207 $(TOP)/src/build.c \
208 $(TOP)/src/callback.c \
209 $(TOP)/src/complete.c \
210 $(TOP)/src/ctime.c \
211 $(TOP)/src/date.c \
212 $(TOP)/src/delete.c \
213 $(TOP)/src/expr.c \
214 $(TOP)/src/fault.c \
215 $(TOP)/src/fkey.c \
216 $(TOP)/src/func.c \
217 $(TOP)/src/global.c \
218 $(TOP)/src/hash.c \
219 $(TOP)/src/hash.h \
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 \
225 $(TOP)/src/main.c \
226 $(TOP)/src/malloc.c \
227 $(TOP)/src/mem0.c \
228 $(TOP)/src/mem1.c \
229 $(TOP)/src/mem2.c \
230 $(TOP)/src/mem3.c \
231 $(TOP)/src/mem5.c \
232 $(TOP)/src/memjournal.c \
233 $(TOP)/src/mutex.c \
234 $(TOP)/src/mutex.h \
235 $(TOP)/src/mutex_noop.c \
236 $(TOP)/src/mutex_unix.c \
237 $(TOP)/src/mutex_w32.c \
238 $(TOP)/src/notify.c \
239 $(TOP)/src/os.c \
240 $(TOP)/src/os.h \
241 $(TOP)/src/os_common.h \
242 $(TOP)/src/os_setup.h \
243 $(TOP)/src/os_unix.c \
244 $(TOP)/src/os_win.c \
245 $(TOP)/src/os_win.h \
246 $(TOP)/src/pager.c \
247 $(TOP)/src/pager.h \
248 $(TOP)/src/parse.y \
249 $(TOP)/src/pcache.c \
250 $(TOP)/src/pcache.h \
251 $(TOP)/src/pcache1.c \
252 $(TOP)/src/pragma.c \
253 $(TOP)/src/prepare.c \
254 $(TOP)/src/printf.c \
255 $(TOP)/src/random.c \
256 $(TOP)/src/recover.c \
257 $(TOP)/src/resolve.c \
258 $(TOP)/src/rowset.c \
259 $(TOP)/src/select.c \
260 $(TOP)/src/status.c \
261 $(TOP)/src/shell.c \
262 $(TOP)/src/sqlite.h.in \
263 $(TOP)/src/sqlite3ext.h \
264 $(TOP)/src/sqliteInt.h \
265 $(TOP)/src/sqliteLimit.h \
266 $(TOP)/src/table.c \
267 $(TOP)/src/threads.c \
268 $(TOP)/src/tclsqlite.c \
269 $(TOP)/src/tokenize.c \
270 $(TOP)/src/trigger.c \
271 $(TOP)/src/utf.c \
272 $(TOP)/src/update.c \
273 $(TOP)/src/util.c \
274 $(TOP)/src/vacuum.c \
275 $(TOP)/src/vdbe.c \
276 $(TOP)/src/vdbe.h \
277 $(TOP)/src/vdbeapi.c \
278 $(TOP)/src/vdbeaux.c \
279 $(TOP)/src/vdbeblob.c \
280 $(TOP)/src/vdbemem.c \
281 $(TOP)/src/vdbesort.c \
282 $(TOP)/src/vdbetrace.c \
283 $(TOP)/src/vdbeInt.h \
284 $(TOP)/src/vtab.c \
285 $(TOP)/src/wal.c \
286 $(TOP)/src/wal.h \
287 $(TOP)/src/walker.c \
288 $(TOP)/src/where.c \
289 $(TOP)/src/whereInt.h
291 # Source code for extensions
293 SRC += \
294 $(TOP)/ext/fts1/fts1.c \
295 $(TOP)/ext/fts1/fts1.h \
296 $(TOP)/ext/fts1/fts1_hash.c \
297 $(TOP)/ext/fts1/fts1_hash.h \
298 $(TOP)/ext/fts1/fts1_porter.c \
299 $(TOP)/ext/fts1/fts1_tokenizer.h \
300 $(TOP)/ext/fts1/fts1_tokenizer1.c
301 SRC += \
302 $(TOP)/ext/fts2/fts2.c \
303 $(TOP)/ext/fts2/fts2.h \
304 $(TOP)/ext/fts2/fts2_hash.c \
305 $(TOP)/ext/fts2/fts2_hash.h \
306 $(TOP)/ext/fts2/fts2_icu.c \
307 $(TOP)/ext/fts2/fts2_porter.c \
308 $(TOP)/ext/fts2/fts2_tokenizer.h \
309 $(TOP)/ext/fts2/fts2_tokenizer.c \
310 $(TOP)/ext/fts2/fts2_tokenizer1.c
311 SRC += \
312 $(TOP)/ext/fts3/fts3.c \
313 $(TOP)/ext/fts3/fts3.h \
314 $(TOP)/ext/fts3/fts3Int.h \
315 $(TOP)/ext/fts3/fts3_aux.c \
316 $(TOP)/ext/fts3/fts3_expr.c \
317 $(TOP)/ext/fts3/fts3_hash.c \
318 $(TOP)/ext/fts3/fts3_hash.h \
319 $(TOP)/ext/fts3/fts3_icu.c \
320 $(TOP)/ext/fts3/fts3_porter.c \
321 $(TOP)/ext/fts3/fts3_snippet.c \
322 $(TOP)/ext/fts3/fts3_tokenizer.h \
323 $(TOP)/ext/fts3/fts3_tokenizer.c \
324 $(TOP)/ext/fts3/fts3_tokenizer1.c \
325 $(TOP)/ext/fts3/fts3_tokenize_vtab.c \
326 $(TOP)/ext/fts3/fts3_unicode.c \
327 $(TOP)/ext/fts3/fts3_unicode2.c \
328 $(TOP)/ext/fts3/fts3_write.c
329 SRC += \
330 $(TOP)/ext/icu/sqliteicu.h \
331 $(TOP)/ext/icu/icu.c
332 SRC += \
333 $(TOP)/ext/rtree/rtree.h \
334 $(TOP)/ext/rtree/rtree.c
337 # Generated source code files
339 SRC += \
340 keywordhash.h \
341 opcodes.c \
342 opcodes.h \
343 parse.c \
344 parse.h \
345 config.h \
346 sqlite3.h
348 # Source code to the test files.
350 TESTSRC = \
351 $(TOP)/src/test1.c \
352 $(TOP)/src/test2.c \
353 $(TOP)/src/test3.c \
354 $(TOP)/src/test4.c \
355 $(TOP)/src/test5.c \
356 $(TOP)/src/test6.c \
357 $(TOP)/src/test7.c \
358 $(TOP)/src/test8.c \
359 $(TOP)/src/test9.c \
360 $(TOP)/src/test_autoext.c \
361 $(TOP)/src/test_async.c \
362 $(TOP)/src/test_backup.c \
363 $(TOP)/src/test_btree.c \
364 $(TOP)/src/test_config.c \
365 $(TOP)/src/test_demovfs.c \
366 $(TOP)/src/test_devsym.c \
367 $(TOP)/src/test_fs.c \
368 $(TOP)/src/test_func.c \
369 $(TOP)/src/test_hexio.c \
370 $(TOP)/src/test_init.c \
371 $(TOP)/src/test_intarray.c \
372 $(TOP)/src/test_journal.c \
373 $(TOP)/src/test_malloc.c \
374 $(TOP)/src/test_multiplex.c \
375 $(TOP)/src/test_mutex.c \
376 $(TOP)/src/test_onefile.c \
377 $(TOP)/src/test_osinst.c \
378 $(TOP)/src/test_pcache.c \
379 $(TOP)/src/test_quota.c \
380 $(TOP)/src/test_rtree.c \
381 $(TOP)/src/test_schema.c \
382 $(TOP)/src/test_server.c \
383 $(TOP)/src/test_superlock.c \
384 $(TOP)/src/test_syscall.c \
385 $(TOP)/src/test_stat.c \
386 $(TOP)/src/test_tclvar.c \
387 $(TOP)/src/test_thread.c \
388 $(TOP)/src/test_vfs.c \
389 $(TOP)/src/test_wsd.c \
390 $(TOP)/ext/fts3/fts3_term.c \
391 $(TOP)/ext/fts3/fts3_test.c
393 # Statically linked extensions
395 TESTSRC += \
396 $(TOP)/ext/misc/amatch.c \
397 $(TOP)/ext/misc/closure.c \
398 $(TOP)/ext/misc/fileio.c \
399 $(TOP)/ext/misc/fuzzer.c \
400 $(TOP)/ext/misc/ieee754.c \
401 $(TOP)/ext/misc/nextchar.c \
402 $(TOP)/ext/misc/percentile.c \
403 $(TOP)/ext/misc/regexp.c \
404 $(TOP)/ext/misc/spellfix.c \
405 $(TOP)/ext/misc/totype.c \
406 $(TOP)/ext/misc/wholenumber.c
408 # Source code to the library files needed by the test fixture
410 TESTSRC2 = \
411 $(TOP)/src/attach.c \
412 $(TOP)/src/backup.c \
413 $(TOP)/src/bitvec.c \
414 $(TOP)/src/btree.c \
415 $(TOP)/src/build.c \
416 $(TOP)/src/ctime.c \
417 $(TOP)/src/date.c \
418 $(TOP)/src/expr.c \
419 $(TOP)/src/func.c \
420 $(TOP)/src/insert.c \
421 $(TOP)/src/wal.c \
422 $(TOP)/src/main.c \
423 $(TOP)/src/mem5.c \
424 $(TOP)/src/os.c \
425 $(TOP)/src/os_unix.c \
426 $(TOP)/src/os_win.c \
427 $(TOP)/src/pager.c \
428 $(TOP)/src/pragma.c \
429 $(TOP)/src/prepare.c \
430 $(TOP)/src/printf.c \
431 $(TOP)/src/random.c \
432 $(TOP)/src/pcache.c \
433 $(TOP)/src/pcache1.c \
434 $(TOP)/src/select.c \
435 $(TOP)/src/tokenize.c \
436 $(TOP)/src/utf.c \
437 $(TOP)/src/util.c \
438 $(TOP)/src/vdbeapi.c \
439 $(TOP)/src/vdbeaux.c \
440 $(TOP)/src/vdbe.c \
441 $(TOP)/src/vdbemem.c \
442 $(TOP)/src/vdbetrace.c \
443 $(TOP)/src/where.c \
444 parse.c \
445 $(TOP)/ext/fts3/fts3.c \
446 $(TOP)/ext/fts3/fts3_aux.c \
447 $(TOP)/ext/fts3/fts3_expr.c \
448 $(TOP)/ext/fts3/fts3_term.c \
449 $(TOP)/ext/fts3/fts3_tokenizer.c \
450 $(TOP)/ext/fts3/fts3_write.c \
451 $(TOP)/ext/async/sqlite3async.c
453 # Header files used by all library source files.
455 HDR = \
456 $(TOP)/src/btree.h \
457 $(TOP)/src/btreeInt.h \
458 $(TOP)/src/hash.h \
459 $(TOP)/src/hwtime.h \
460 keywordhash.h \
461 $(TOP)/src/mutex.h \
462 opcodes.h \
463 $(TOP)/src/os.h \
464 $(TOP)/src/os_common.h \
465 $(TOP)/src/os_setup.h \
466 $(TOP)/src/os_win.h \
467 $(TOP)/src/pager.h \
468 $(TOP)/src/pcache.h \
469 parse.h \
470 sqlite3.h \
471 $(TOP)/src/sqlite3ext.h \
472 $(TOP)/src/sqliteInt.h \
473 $(TOP)/src/sqliteLimit.h \
474 $(TOP)/src/vdbe.h \
475 $(TOP)/src/vdbeInt.h \
476 $(TOP)/src/whereInt.h \
477 config.h
479 # Header files used by extensions
481 EXTHDR += \
482 $(TOP)/ext/fts1/fts1.h \
483 $(TOP)/ext/fts1/fts1_hash.h \
484 $(TOP)/ext/fts1/fts1_tokenizer.h
485 EXTHDR += \
486 $(TOP)/ext/fts2/fts2.h \
487 $(TOP)/ext/fts2/fts2_hash.h \
488 $(TOP)/ext/fts2/fts2_tokenizer.h
489 EXTHDR += \
490 $(TOP)/ext/fts3/fts3.h \
491 $(TOP)/ext/fts3/fts3Int.h \
492 $(TOP)/ext/fts3/fts3_hash.h \
493 $(TOP)/ext/fts3/fts3_tokenizer.h
494 EXTHDR += \
495 $(TOP)/ext/rtree/rtree.h
496 EXTHDR += \
497 $(TOP)/ext/icu/sqliteicu.h
498 EXTHDR += \
499 $(TOP)/ext/rtree/sqlite3rtree.h
501 # This is the default Makefile target. The objects listed here
502 # are what get build when you type just "make" with no arguments.
504 all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la)
506 Makefile: $(TOP)/Makefile.in
507 ./config.status
509 sqlite3.pc: $(TOP)/sqlite3.pc.in
510 ./config.status
512 libsqlite3.la: $(LIBOBJ)
513 $(LTLINK) -no-undefined -o $@ $(LIBOBJ) $(TLIBS) \
514 ${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8"
516 libtclsqlite3.la: tclsqlite.lo libsqlite3.la
517 $(LTLINK) -no-undefined -o $@ tclsqlite.lo \
518 libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
519 -rpath "$(TCLLIBDIR)" \
520 -version-info "8:6:8" \
521 -avoid-version
523 sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h
524 $(LTLINK) $(READLINE_FLAGS) \
525 -o $@ $(TOP)/src/shell.c libsqlite3.la \
526 $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
528 mptester$(EXE): sqlite3.c $(TOP)/mptest/mptest.c
529 $(LTLINK) -o $@ -I. $(TOP)/mptest/mptest.c sqlite3.c \
530 $(TLIBS) -rpath "$(libdir)"
533 # This target creates a directory named "tsrc" and fills it with
534 # copies of all of the C source code and header files needed to
535 # build on the target system. Some of the C source code and header
536 # files are automatically generated. This target takes care of
537 # all that automatic generation.
539 .target_source: $(SRC) $(TOP)/tool/vdbe-compress.tcl
540 rm -rf tsrc
541 mkdir tsrc
542 cp -f $(SRC) tsrc
543 rm tsrc/sqlite.h.in tsrc/parse.y
544 $(TCLSH_CMD) $(TOP)/tool/vdbe-compress.tcl $(OPTS) <tsrc/vdbe.c >vdbe.new
545 mv vdbe.new tsrc/vdbe.c
546 touch .target_source
548 sqlite3.c: .target_source $(TOP)/tool/mksqlite3c.tcl
549 $(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl
550 cp tsrc/shell.c tsrc/sqlite3ext.h .
552 tclsqlite3.c: sqlite3.c
553 echo '#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c
554 cat sqlite3.c >>tclsqlite3.c
555 echo '#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c
556 cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c
558 sqlite3-all.c: sqlite3.c $(TOP)/tool/split-sqlite3c.tcl
559 $(TCLSH_CMD) $(TOP)/tool/split-sqlite3c.tcl
561 # Rule to build the amalgamation
563 sqlite3.lo: sqlite3.c
564 $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c
566 # Rules to build the LEMON compiler generator
568 lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/src/lempar.c
569 $(BCC) -o $@ $(TOP)/tool/lemon.c
570 cp $(TOP)/src/lempar.c .
572 # Rules to build individual *.o files from generated *.c files. This
573 # applies to:
575 # parse.o
576 # opcodes.o
578 parse.lo: parse.c $(HDR)
579 $(LTCOMPILE) $(TEMP_STORE) -c parse.c
581 opcodes.lo: opcodes.c
582 $(LTCOMPILE) $(TEMP_STORE) -c opcodes.c
584 # Rules to build individual *.o files from files in the src directory.
586 alter.lo: $(TOP)/src/alter.c $(HDR)
587 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/alter.c
589 analyze.lo: $(TOP)/src/analyze.c $(HDR)
590 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/analyze.c
592 attach.lo: $(TOP)/src/attach.c $(HDR)
593 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/attach.c
595 auth.lo: $(TOP)/src/auth.c $(HDR)
596 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/auth.c
598 backup.lo: $(TOP)/src/backup.c $(HDR)
599 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/backup.c
601 bitvec.lo: $(TOP)/src/bitvec.c $(HDR)
602 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/bitvec.c
604 btmutex.lo: $(TOP)/src/btmutex.c $(HDR)
605 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btmutex.c
607 btree.lo: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h
608 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btree.c
610 build.lo: $(TOP)/src/build.c $(HDR)
611 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/build.c
613 callback.lo: $(TOP)/src/callback.c $(HDR)
614 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/callback.c
616 complete.lo: $(TOP)/src/complete.c $(HDR)
617 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/complete.c
619 ctime.lo: $(TOP)/src/ctime.c $(HDR)
620 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/ctime.c
622 date.lo: $(TOP)/src/date.c $(HDR)
623 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/date.c
625 delete.lo: $(TOP)/src/delete.c $(HDR)
626 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/delete.c
628 expr.lo: $(TOP)/src/expr.c $(HDR)
629 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/expr.c
631 fault.lo: $(TOP)/src/fault.c $(HDR)
632 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fault.c
634 fkey.lo: $(TOP)/src/fkey.c $(HDR)
635 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fkey.c
637 func.lo: $(TOP)/src/func.c $(HDR)
638 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/func.c
640 global.lo: $(TOP)/src/global.c $(HDR)
641 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/global.c
643 hash.lo: $(TOP)/src/hash.c $(HDR)
644 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/hash.c
646 insert.lo: $(TOP)/src/insert.c $(HDR)
647 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/insert.c
649 journal.lo: $(TOP)/src/journal.c $(HDR)
650 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/journal.c
652 legacy.lo: $(TOP)/src/legacy.c $(HDR)
653 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/legacy.c
655 loadext.lo: $(TOP)/src/loadext.c $(HDR)
656 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/loadext.c
658 main.lo: $(TOP)/src/main.c $(HDR)
659 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/main.c
661 malloc.lo: $(TOP)/src/malloc.c $(HDR)
662 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/malloc.c
664 mem0.lo: $(TOP)/src/mem0.c $(HDR)
665 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem0.c
667 mem1.lo: $(TOP)/src/mem1.c $(HDR)
668 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem1.c
670 mem2.lo: $(TOP)/src/mem2.c $(HDR)
671 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem2.c
673 mem3.lo: $(TOP)/src/mem3.c $(HDR)
674 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem3.c
676 mem5.lo: $(TOP)/src/mem5.c $(HDR)
677 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem5.c
679 memjournal.lo: $(TOP)/src/memjournal.c $(HDR)
680 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/memjournal.c
682 mutex.lo: $(TOP)/src/mutex.c $(HDR)
683 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex.c
685 mutex_noop.lo: $(TOP)/src/mutex_noop.c $(HDR)
686 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_noop.c
688 mutex_unix.lo: $(TOP)/src/mutex_unix.c $(HDR)
689 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_unix.c
691 mutex_w32.lo: $(TOP)/src/mutex_w32.c $(HDR)
692 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_w32.c
694 notify.lo: $(TOP)/src/notify.c $(HDR)
695 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/notify.c
697 pager.lo: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h
698 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pager.c
700 pcache.lo: $(TOP)/src/pcache.c $(HDR) $(TOP)/src/pcache.h
701 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache.c
703 pcache1.lo: $(TOP)/src/pcache1.c $(HDR) $(TOP)/src/pcache.h
704 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache1.c
706 os.lo: $(TOP)/src/os.c $(HDR)
707 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os.c
709 os_unix.lo: $(TOP)/src/os_unix.c $(HDR)
710 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_unix.c
712 os_win.lo: $(TOP)/src/os_win.c $(HDR)
713 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_win.c
715 pragma.lo: $(TOP)/src/pragma.c $(HDR)
716 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pragma.c
718 prepare.lo: $(TOP)/src/prepare.c $(HDR)
719 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/prepare.c
721 printf.lo: $(TOP)/src/printf.c $(HDR)
722 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/printf.c
724 random.lo: $(TOP)/src/random.c $(HDR)
725 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/random.c
727 resolve.lo: $(TOP)/src/resolve.c $(HDR)
728 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/resolve.c
730 rowset.lo: $(TOP)/src/rowset.c $(HDR)
731 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/rowset.c
733 select.lo: $(TOP)/src/select.c $(HDR)
734 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/select.c
736 status.lo: $(TOP)/src/status.c $(HDR)
737 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/status.c
739 table.lo: $(TOP)/src/table.c $(HDR)
740 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/table.c
742 threads.lo: $(TOP)/src/threads.c $(HDR)
743 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/threads.c
745 tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR)
746 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/tokenize.c
748 trigger.lo: $(TOP)/src/trigger.c $(HDR)
749 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/trigger.c
751 update.lo: $(TOP)/src/update.c $(HDR)
752 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/update.c
754 utf.lo: $(TOP)/src/utf.c $(HDR)
755 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/utf.c
757 util.lo: $(TOP)/src/util.c $(HDR)
758 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/util.c
760 vacuum.lo: $(TOP)/src/vacuum.c $(HDR)
761 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vacuum.c
763 vdbe.lo: $(TOP)/src/vdbe.c $(HDR)
764 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbe.c
766 vdbeapi.lo: $(TOP)/src/vdbeapi.c $(HDR)
767 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeapi.c
769 vdbeaux.lo: $(TOP)/src/vdbeaux.c $(HDR)
770 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeaux.c
772 vdbeblob.lo: $(TOP)/src/vdbeblob.c $(HDR)
773 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeblob.c
775 vdbemem.lo: $(TOP)/src/vdbemem.c $(HDR)
776 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbemem.c
778 vdbesort.lo: $(TOP)/src/vdbesort.c $(HDR)
779 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbesort.c
781 vdbetrace.lo: $(TOP)/src/vdbetrace.c $(HDR)
782 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbetrace.c
784 vtab.lo: $(TOP)/src/vtab.c $(HDR)
785 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vtab.c
787 wal.lo: $(TOP)/src/wal.c $(HDR)
788 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wal.c
790 walker.lo: $(TOP)/src/walker.c $(HDR)
791 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/walker.c
793 where.lo: $(TOP)/src/where.c $(HDR)
794 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/where.c
796 tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR)
797 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -c $(TOP)/src/tclsqlite.c
799 tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR)
800 $(LTCOMPILE) -DTCLSH=1 -o $@ -c $(TOP)/src/tclsqlite.c
802 tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR)
803 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c
805 tclsqlite3$(TEXE): tclsqlite-shell.lo libsqlite3.la
806 $(LTLINK) -o $@ tclsqlite-shell.lo \
807 libsqlite3.la $(LIBTCL)
809 # Rules to build opcodes.c and opcodes.h
811 opcodes.c: opcodes.h $(TOP)/mkopcodec.awk
812 $(NAWK) -f $(TOP)/mkopcodec.awk opcodes.h >opcodes.c
814 opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk
815 cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes.h
817 # Rules to build parse.c and parse.h - the outputs of lemon.
819 parse.h: parse.c
821 parse.c: $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/addopcodes.awk
822 cp $(TOP)/src/parse.y .
823 rm -f parse.h
824 ./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y
825 mv parse.h parse.h.temp
826 $(NAWK) -f $(TOP)/addopcodes.awk parse.h.temp >parse.h
828 sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest.uuid $(TOP)/VERSION
829 $(TCLSH_CMD) $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h
831 keywordhash.h: $(TOP)/tool/mkkeywordhash.c
832 $(BCC) -o mkkeywordhash$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)/tool/mkkeywordhash.c
833 ./mkkeywordhash$(BEXE) >keywordhash.h
837 # Rules to build the extension objects.
839 icu.lo: $(TOP)/ext/icu/icu.c $(HDR) $(EXTHDR)
840 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/icu/icu.c
842 fts2.lo: $(TOP)/ext/fts2/fts2.c $(HDR) $(EXTHDR)
843 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2.c
845 fts2_hash.lo: $(TOP)/ext/fts2/fts2_hash.c $(HDR) $(EXTHDR)
846 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_hash.c
848 fts2_icu.lo: $(TOP)/ext/fts2/fts2_icu.c $(HDR) $(EXTHDR)
849 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_icu.c
851 fts2_porter.lo: $(TOP)/ext/fts2/fts2_porter.c $(HDR) $(EXTHDR)
852 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_porter.c
854 fts2_tokenizer.lo: $(TOP)/ext/fts2/fts2_tokenizer.c $(HDR) $(EXTHDR)
855 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer.c
857 fts2_tokenizer1.lo: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR) $(EXTHDR)
858 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer1.c
860 fts3.lo: $(TOP)/ext/fts3/fts3.c $(HDR) $(EXTHDR)
861 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3.c
863 fts3_aux.lo: $(TOP)/ext/fts3/fts3_aux.c $(HDR) $(EXTHDR)
864 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_aux.c
866 fts3_expr.lo: $(TOP)/ext/fts3/fts3_expr.c $(HDR) $(EXTHDR)
867 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_expr.c
869 fts3_hash.lo: $(TOP)/ext/fts3/fts3_hash.c $(HDR) $(EXTHDR)
870 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_hash.c
872 fts3_icu.lo: $(TOP)/ext/fts3/fts3_icu.c $(HDR) $(EXTHDR)
873 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_icu.c
875 fts3_porter.lo: $(TOP)/ext/fts3/fts3_porter.c $(HDR) $(EXTHDR)
876 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_porter.c
878 fts3_snippet.lo: $(TOP)/ext/fts3/fts3_snippet.c $(HDR) $(EXTHDR)
879 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_snippet.c
881 fts3_tokenizer.lo: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR) $(EXTHDR)
882 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer.c
884 fts3_tokenizer1.lo: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR) $(EXTHDR)
885 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer1.c
887 fts3_tokenize_vtab.lo: $(TOP)/ext/fts3/fts3_tokenize_vtab.c $(HDR) $(EXTHDR)
888 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenize_vtab.c
890 fts3_unicode.lo: $(TOP)/ext/fts3/fts3_unicode.c $(HDR) $(EXTHDR)
891 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode.c
893 fts3_unicode2.lo: $(TOP)/ext/fts3/fts3_unicode2.c $(HDR) $(EXTHDR)
894 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode2.c
896 fts3_write.lo: $(TOP)/ext/fts3/fts3_write.c $(HDR) $(EXTHDR)
897 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_write.c
899 rtree.lo: $(TOP)/ext/rtree/rtree.c $(HDR) $(EXTHDR)
900 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/rtree/rtree.c
903 # Rules to build the 'testfixture' application.
905 # If using the amalgamation, use sqlite3.c directly to build the test
906 # fixture. Otherwise link against libsqlite3.la. (This distinction is
907 # necessary because the test fixture requires non-API symbols which are
908 # hidden when the library is built via the amalgamation).
910 TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1
911 TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE
912 TESTFIXTURE_FLAGS += -DBUILD_sqlite
914 TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.la
915 TESTFIXTURE_SRC1 = sqlite3.c
916 TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c
917 TESTFIXTURE_SRC += $(TESTFIXTURE_SRC$(USE_AMALGAMATION))
919 testfixture$(TEXE): $(TESTFIXTURE_SRC)
920 $(LTLINK) -DSQLITE_NO_SYNC=1 $(TEMP_STORE) $(TESTFIXTURE_FLAGS) \
921 -o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS)
924 fulltest: testfixture$(TEXE) sqlite3$(TEXE)
925 ./testfixture$(TEXE) $(TOP)/test/all.test
927 soaktest: testfixture$(TEXE) sqlite3$(TEXE)
928 ./testfixture$(TEXE) $(TOP)/test/all.test -soak=1
930 fulltestonly: testfixture$(TEXE) sqlite3$(TEXE)
931 ./testfixture$(TEXE) $(TOP)/test/full.test
933 test: testfixture$(TEXE) sqlite3$(TEXE)
934 ./testfixture$(TEXE) $(TOP)/test/veryquick.test
936 sqlite3_analyzer.c: sqlite3.c $(TOP)/src/test_stat.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
937 echo "#define TCLSH 2" > $@
938 cat sqlite3.c $(TOP)/src/test_stat.c $(TOP)/src/tclsqlite.c >> $@
939 echo "static const char *tclsh_main_loop(void){" >> $@
940 echo "static const char *zMainloop = " >> $@
941 $(NAWK) -f $(TOP)/tool/tostr.awk $(TOP)/tool/spaceanal.tcl >> $@
942 echo "; return zMainloop; }" >> $@
944 sqlite3_analyzer$(TEXE): sqlite3_analyzer.c
945 $(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS)
947 showdb$(TEXE): $(TOP)/tool/showdb.c sqlite3.lo
948 $(LTLINK) -o $@ $(TOP)/tool/showdb.c sqlite3.lo $(TLIBS)
950 showstat4$(TEXE): $(TOP)/tool/showstat4.c sqlite3.lo
951 $(LTLINK) -o $@ $(TOP)/tool/showstat4.c sqlite3.lo $(TLIBS)
953 showjournal$(TEXE): $(TOP)/tool/showjournal.c sqlite3.lo
954 $(LTLINK) -o $@ $(TOP)/tool/showjournal.c sqlite3.lo $(TLIBS)
956 showwal$(TEXE): $(TOP)/tool/showwal.c sqlite3.lo
957 $(LTLINK) -o $@ $(TOP)/tool/showwal.c sqlite3.lo $(TLIBS)
959 rollback-test$(TEXE): $(TOP)/tool/rollback-test.c sqlite3.lo
960 $(LTLINK) -o $@ $(TOP)/tool/rollback-test.c sqlite3.lo $(TLIBS)
962 LogEst$(TEXE): $(TOP)/tool/logest.c sqlite3.h
963 $(LTLINK) -I. -o $@ $(TOP)/tool/logest.c
965 wordcount$(TEXE): $(TOP)/test/wordcount.c sqlite3.c
966 $(LTLINK) -o $@ $(TOP)/test/wordcount.c sqlite3.c $(TLIBS)
968 speedtest1$(TEXE): $(TOP)/test/wordcount.c sqlite3.lo
969 $(LTLINK) -o $@ $(TOP)/test/speedtest1.c sqlite3.lo $(TLIBS)
971 # Standard install and cleanup targets
973 lib_install: libsqlite3.la
974 $(INSTALL) -d $(DESTDIR)$(libdir)
975 $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir)
977 install: sqlite3$(BEXE) lib_install sqlite3.h sqlite3.pc ${HAVE_TCL:1=tcl_install}
978 $(INSTALL) -d $(DESTDIR)$(bindir)
979 $(LTINSTALL) sqlite3$(BEXE) $(DESTDIR)$(bindir)
980 $(INSTALL) -d $(DESTDIR)$(includedir)
981 $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir)
982 $(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir)
983 $(INSTALL) -d $(DESTDIR)$(pkgconfigdir)
984 $(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(pkgconfigdir)
986 pkgIndex.tcl:
987 echo 'package ifneeded sqlite3 $(RELEASE) [list load $(TCLLIBDIR)/libtclsqlite3.so sqlite3]' > $@
988 tcl_install: lib_install libtclsqlite3.la pkgIndex.tcl
989 $(INSTALL) -d $(DESTDIR)$(TCLLIBDIR)
990 $(LTINSTALL) libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)
991 rm -f $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.a
992 $(INSTALL) -m 0644 pkgIndex.tcl $(DESTDIR)$(TCLLIBDIR)
994 clean:
995 rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la
996 rm -f sqlite3.h opcodes.*
997 rm -rf .libs .deps
998 rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz
999 rm -f mkkeywordhash$(BEXE) keywordhash.h
1000 rm -f *.da *.bb *.bbg gmon.out
1001 rm -rf quota2a quota2b quota2c
1002 rm -rf tsrc .target_source
1003 rm -f tclsqlite3$(TEXE)
1004 rm -f testfixture$(TEXE) test.db
1005 rm -f LogEst$(TEXE) fts3view$(TEXE) rollback-test$(TEXE) showdb$(TEXE)
1006 rm -f showjournal$(TEXE) showstat4$(TEXE) showwal$(TEXE) speedtest1$(TEXE)
1007 rm -f wordcount$(TEXE)
1008 rm -f sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def
1009 rm -f sqlite3.c
1010 rm -f sqlite3rc.h
1011 rm -f shell.c sqlite3ext.h
1012 rm -f sqlite3_analyzer$(TEXE) sqlite3_analyzer.c
1013 rm -f sqlite-*-output.vsix
1014 rm -f mptester mptester.exe
1016 distclean: clean
1017 rm -f config.log config.status libtool Makefile sqlite3.pc
1020 # Windows section
1022 dll: sqlite3.dll
1024 REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o)
1026 $(REAL_LIBOBJ): $(LIBOBJ)
1028 sqlite3.def: $(REAL_LIBOBJ)
1029 echo 'EXPORTS' >sqlite3.def
1030 nm $(REAL_LIBOBJ) | grep ' T ' | grep ' _sqlite3_' \
1031 | sed 's/^.* _//' >>sqlite3.def
1033 sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def
1034 $(TCC) -shared -o $@ sqlite3.def \
1035 -Wl,"--strip-all" $(REAL_LIBOBJ)