Merge pull request #37 from developernotes/prerelease
[sqlcipher.git] / Makefile.in
blobf6c51b01c70f242f00475d8d2922e062eba00027
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@
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@ @TCL_LIBS@
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
65 TLIBS = @LIBS@
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".
85 TCC += $(OPTS)
87 # Version numbers and release number for the SQLite being compiled.
89 VERSION = @VERSION@
90 VERSION_NUMBER = @VERSION_NUMBER@
91 RELEASE = @RELEASE@
93 # Filename extensions
95 BEXE = @BUILD_EXEEXT@
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
101 # and installed.
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
127 # for more info.
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))
135 # BEGIN CRYPTO
136 CRYPTOLIBOBJ = \
137 crypto.lo \
138 crypto_impl.lo
140 CRYPTOSRC = \
141 $(TOP)/src/crypto.h \
142 $(TOP)/src/crypto.c \
143 $(TOP)/src/crypto_impl.c
145 # END CRYPTO
147 # The directory into which to store package information for
149 # Some standard variables and programs
151 prefix = @prefix@
152 exec_prefix = @exec_prefix@
153 libdir = @libdir@
154 pkgconfigdir = $(libdir)/pkgconfig
155 bindir = @bindir@
156 includedir = @includedir@
157 INSTALL = @INSTALL@
158 LIBTOOL = ./libtool
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.
167 NAWK = @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_unicode.lo fts3_unicode2.lo fts3_write.lo \
183 func.lo global.lo hash.lo \
184 icu.lo insert.lo journal.lo legacy.lo loadext.lo \
185 main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \
186 memjournal.lo \
187 mutex.lo mutex_noop.lo mutex_os2.lo mutex_unix.lo mutex_w32.lo \
188 notify.lo opcodes.lo os.lo os_os2.lo os_unix.lo os_win.lo \
189 pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \
190 random.lo resolve.lo rowset.lo rtree.lo select.lo status.lo \
191 table.lo tokenize.lo trigger.lo \
192 update.lo util.lo vacuum.lo \
193 vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo vdbesort.lo \
194 vdbetrace.lo wal.lo walker.lo where.lo utf.lo vtab.lo $(CRYPTOLIBOBJ)
196 # Object files for the amalgamation.
198 LIBOBJS1 = sqlite3.lo
200 # Determine the real value of LIBOBJ based on the 'configure' script
202 LIBOBJ = $(LIBOBJS$(USE_AMALGAMATION))
205 # All of the source code files.
207 SRC = \
208 $(CRYPTOSRC) \
209 $(TOP)/src/alter.c \
210 $(TOP)/src/analyze.c \
211 $(TOP)/src/attach.c \
212 $(TOP)/src/auth.c \
213 $(TOP)/src/backup.c \
214 $(TOP)/src/bitvec.c \
215 $(TOP)/src/btmutex.c \
216 $(TOP)/src/btree.c \
217 $(TOP)/src/btree.h \
218 $(TOP)/src/btreeInt.h \
219 $(TOP)/src/build.c \
220 $(TOP)/src/callback.c \
221 $(TOP)/src/complete.c \
222 $(TOP)/src/ctime.c \
223 $(TOP)/src/date.c \
224 $(TOP)/src/delete.c \
225 $(TOP)/src/expr.c \
226 $(TOP)/src/fault.c \
227 $(TOP)/src/fkey.c \
228 $(TOP)/src/func.c \
229 $(TOP)/src/global.c \
230 $(TOP)/src/hash.c \
231 $(TOP)/src/hash.h \
232 $(TOP)/src/hwtime.h \
233 $(TOP)/src/insert.c \
234 $(TOP)/src/journal.c \
235 $(TOP)/src/legacy.c \
236 $(TOP)/src/loadext.c \
237 $(TOP)/src/main.c \
238 $(TOP)/src/malloc.c \
239 $(TOP)/src/mem0.c \
240 $(TOP)/src/mem1.c \
241 $(TOP)/src/mem2.c \
242 $(TOP)/src/mem3.c \
243 $(TOP)/src/mem5.c \
244 $(TOP)/src/memjournal.c \
245 $(TOP)/src/mutex.c \
246 $(TOP)/src/mutex.h \
247 $(TOP)/src/mutex_noop.c \
248 $(TOP)/src/mutex_os2.c \
249 $(TOP)/src/mutex_unix.c \
250 $(TOP)/src/mutex_w32.c \
251 $(TOP)/src/notify.c \
252 $(TOP)/src/os.c \
253 $(TOP)/src/os.h \
254 $(TOP)/src/os_common.h \
255 $(TOP)/src/os_os2.c \
256 $(TOP)/src/os_unix.c \
257 $(TOP)/src/os_win.c \
258 $(TOP)/src/pager.c \
259 $(TOP)/src/pager.h \
260 $(TOP)/src/parse.y \
261 $(TOP)/src/pcache.c \
262 $(TOP)/src/pcache.h \
263 $(TOP)/src/pcache1.c \
264 $(TOP)/src/pragma.c \
265 $(TOP)/src/prepare.c \
266 $(TOP)/src/printf.c \
267 $(TOP)/src/random.c \
268 $(TOP)/src/resolve.c \
269 $(TOP)/src/rowset.c \
270 $(TOP)/src/select.c \
271 $(TOP)/src/status.c \
272 $(TOP)/src/shell.c \
273 $(TOP)/src/sqlite.h.in \
274 $(TOP)/src/sqlite3ext.h \
275 $(TOP)/src/sqliteInt.h \
276 $(TOP)/src/sqliteLimit.h \
277 $(TOP)/src/table.c \
278 $(TOP)/src/tclsqlite.c \
279 $(TOP)/src/tokenize.c \
280 $(TOP)/src/trigger.c \
281 $(TOP)/src/utf.c \
282 $(TOP)/src/update.c \
283 $(TOP)/src/util.c \
284 $(TOP)/src/vacuum.c \
285 $(TOP)/src/vdbe.c \
286 $(TOP)/src/vdbe.h \
287 $(TOP)/src/vdbeapi.c \
288 $(TOP)/src/vdbeaux.c \
289 $(TOP)/src/vdbeblob.c \
290 $(TOP)/src/vdbemem.c \
291 $(TOP)/src/vdbesort.c \
292 $(TOP)/src/vdbetrace.c \
293 $(TOP)/src/vdbeInt.h \
294 $(TOP)/src/vtab.c \
295 $(TOP)/src/wal.c \
296 $(TOP)/src/wal.h \
297 $(TOP)/src/walker.c \
298 $(TOP)/src/where.c
300 # Source code for extensions
302 SRC += \
303 $(TOP)/ext/fts1/fts1.c \
304 $(TOP)/ext/fts1/fts1.h \
305 $(TOP)/ext/fts1/fts1_hash.c \
306 $(TOP)/ext/fts1/fts1_hash.h \
307 $(TOP)/ext/fts1/fts1_porter.c \
308 $(TOP)/ext/fts1/fts1_tokenizer.h \
309 $(TOP)/ext/fts1/fts1_tokenizer1.c
310 SRC += \
311 $(TOP)/ext/fts2/fts2.c \
312 $(TOP)/ext/fts2/fts2.h \
313 $(TOP)/ext/fts2/fts2_hash.c \
314 $(TOP)/ext/fts2/fts2_hash.h \
315 $(TOP)/ext/fts2/fts2_icu.c \
316 $(TOP)/ext/fts2/fts2_porter.c \
317 $(TOP)/ext/fts2/fts2_tokenizer.h \
318 $(TOP)/ext/fts2/fts2_tokenizer.c \
319 $(TOP)/ext/fts2/fts2_tokenizer1.c
320 SRC += \
321 $(TOP)/ext/fts3/fts3.c \
322 $(TOP)/ext/fts3/fts3.h \
323 $(TOP)/ext/fts3/fts3Int.h \
324 $(TOP)/ext/fts3/fts3_aux.c \
325 $(TOP)/ext/fts3/fts3_expr.c \
326 $(TOP)/ext/fts3/fts3_hash.c \
327 $(TOP)/ext/fts3/fts3_hash.h \
328 $(TOP)/ext/fts3/fts3_icu.c \
329 $(TOP)/ext/fts3/fts3_porter.c \
330 $(TOP)/ext/fts3/fts3_snippet.c \
331 $(TOP)/ext/fts3/fts3_tokenizer.h \
332 $(TOP)/ext/fts3/fts3_tokenizer.c \
333 $(TOP)/ext/fts3/fts3_tokenizer1.c \
334 $(TOP)/ext/fts3/fts3_unicode.c \
335 $(TOP)/ext/fts3/fts3_unicode2.c \
336 $(TOP)/ext/fts3/fts3_write.c
337 SRC += \
338 $(TOP)/ext/icu/sqliteicu.h \
339 $(TOP)/ext/icu/icu.c
340 SRC += \
341 $(TOP)/ext/rtree/rtree.h \
342 $(TOP)/ext/rtree/rtree.c
345 # Generated source code files
347 SRC += \
348 keywordhash.h \
349 opcodes.c \
350 opcodes.h \
351 parse.c \
352 parse.h \
353 config.h \
354 sqlite3.h
356 # Source code to the test files.
358 TESTSRC = \
359 $(TOP)/src/test1.c \
360 $(TOP)/src/test2.c \
361 $(TOP)/src/test3.c \
362 $(TOP)/src/test4.c \
363 $(TOP)/src/test5.c \
364 $(TOP)/src/test6.c \
365 $(TOP)/src/test7.c \
366 $(TOP)/src/test8.c \
367 $(TOP)/src/test9.c \
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_func.c \
376 $(TOP)/src/test_fuzzer.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_wholenumber.c \
398 $(TOP)/src/test_wsd.c \
399 $(TOP)/ext/fts3/fts3_term.c \
400 $(TOP)/ext/fts3/fts3_test.c
402 # Source code to the library files needed by the test fixture
404 TESTSRC2 = \
405 $(TOP)/src/attach.c \
406 $(TOP)/src/backup.c \
407 $(TOP)/src/bitvec.c \
408 $(TOP)/src/btree.c \
409 $(TOP)/src/build.c \
410 $(TOP)/src/ctime.c \
411 $(TOP)/src/date.c \
412 $(TOP)/src/expr.c \
413 $(TOP)/src/func.c \
414 $(TOP)/src/insert.c \
415 $(TOP)/src/wal.c \
416 $(TOP)/src/mem5.c \
417 $(TOP)/src/os.c \
418 $(TOP)/src/os_os2.c \
419 $(TOP)/src/os_unix.c \
420 $(TOP)/src/os_win.c \
421 $(TOP)/src/pager.c \
422 $(TOP)/src/pragma.c \
423 $(TOP)/src/prepare.c \
424 $(TOP)/src/printf.c \
425 $(TOP)/src/random.c \
426 $(TOP)/src/pcache.c \
427 $(TOP)/src/pcache1.c \
428 $(TOP)/src/select.c \
429 $(TOP)/src/tokenize.c \
430 $(TOP)/src/utf.c \
431 $(TOP)/src/util.c \
432 $(TOP)/src/vdbeapi.c \
433 $(TOP)/src/vdbeaux.c \
434 $(TOP)/src/vdbe.c \
435 $(TOP)/src/vdbemem.c \
436 $(TOP)/src/vdbetrace.c \
437 $(TOP)/src/where.c \
438 parse.c \
439 $(TOP)/ext/fts3/fts3.c \
440 $(TOP)/ext/fts3/fts3_aux.c \
441 $(TOP)/ext/fts3/fts3_expr.c \
442 $(TOP)/ext/fts3/fts3_term.c \
443 $(TOP)/ext/fts3/fts3_tokenizer.c \
444 $(TOP)/ext/fts3/fts3_write.c \
445 $(TOP)/ext/async/sqlite3async.c
447 # Header files used by all library source files.
449 HDR = \
450 $(TOP)/src/btree.h \
451 $(TOP)/src/btreeInt.h \
452 $(TOP)/src/hash.h \
453 $(TOP)/src/hwtime.h \
454 keywordhash.h \
455 $(TOP)/src/mutex.h \
456 opcodes.h \
457 $(TOP)/src/os.h \
458 $(TOP)/src/os_common.h \
459 $(TOP)/src/pager.h \
460 $(TOP)/src/pcache.h \
461 parse.h \
462 sqlite3.h \
463 $(TOP)/src/sqlite3ext.h \
464 $(TOP)/src/sqliteInt.h \
465 $(TOP)/src/sqliteLimit.h \
466 $(TOP)/src/vdbe.h \
467 $(TOP)/src/vdbeInt.h \
468 config.h
470 # Header files used by extensions
472 EXTHDR += \
473 $(TOP)/ext/fts1/fts1.h \
474 $(TOP)/ext/fts1/fts1_hash.h \
475 $(TOP)/ext/fts1/fts1_tokenizer.h
476 EXTHDR += \
477 $(TOP)/ext/fts2/fts2.h \
478 $(TOP)/ext/fts2/fts2_hash.h \
479 $(TOP)/ext/fts2/fts2_tokenizer.h
480 EXTHDR += \
481 $(TOP)/ext/fts3/fts3.h \
482 $(TOP)/ext/fts3/fts3Int.h \
483 $(TOP)/ext/fts3/fts3_hash.h \
484 $(TOP)/ext/fts3/fts3_tokenizer.h
485 EXTHDR += \
486 $(TOP)/ext/rtree/rtree.h
487 EXTHDR += \
488 $(TOP)/ext/icu/sqliteicu.h
489 EXTHDR += \
490 $(TOP)/ext/rtree/sqlite3rtree.h
492 # This is the default Makefile target. The objects listed here
493 # are what get build when you type just "make" with no arguments.
495 all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la)
497 Makefile: $(TOP)/Makefile.in
498 ./config.status
500 sqlite3.pc: $(TOP)/sqlite3.pc.in
501 ./config.status
503 libsqlite3.la: $(LIBOBJ)
504 $(LTLINK) -o $@ $(LIBOBJ) $(TLIBS) \
505 ${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8"
507 libtclsqlite3.la: tclsqlite.lo libsqlite3.la
508 $(LTLINK) -o $@ tclsqlite.lo \
509 libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \
510 -rpath "$(TCLLIBDIR)" \
511 -version-info "8:6:8" \
512 -avoid-version
514 sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h
515 $(LTLINK) $(READLINE_FLAGS) \
516 -o $@ $(TOP)/src/shell.c libsqlite3.la \
517 $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)"
519 # This target creates a directory named "tsrc" and fills it with
520 # copies of all of the C source code and header files needed to
521 # build on the target system. Some of the C source code and header
522 # files are automatically generated. This target takes care of
523 # all that automatic generation.
525 .target_source: $(SRC) $(TOP)/tool/vdbe-compress.tcl
526 rm -rf tsrc
527 mkdir tsrc
528 cp -f $(SRC) tsrc
529 rm tsrc/sqlite.h.in tsrc/parse.y
530 $(TCLSH_CMD) $(TOP)/tool/vdbe-compress.tcl <tsrc/vdbe.c >vdbe.new
531 mv vdbe.new tsrc/vdbe.c
532 touch .target_source
534 sqlite3.c: .target_source $(TOP)/tool/mksqlite3c.tcl
535 $(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl
537 tclsqlite3.c: sqlite3.c
538 echo '#ifndef USE_SYSTEM_SQLITE' >tclsqlite3.c
539 cat sqlite3.c >>tclsqlite3.c
540 echo '#endif /* USE_SYSTEM_SQLITE */' >>tclsqlite3.c
541 cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c
543 sqlite3-all.c: sqlite3.c $(TOP)/tool/split-sqlite3c.tcl
544 $(TCLSH_CMD) $(TOP)/tool/split-sqlite3c.tcl
546 # Rule to build the amalgamation
548 sqlite3.lo: sqlite3.c
549 $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c
551 # Rules to build the LEMON compiler generator
553 lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/src/lempar.c
554 $(BCC) -o $@ $(TOP)/tool/lemon.c
555 cp $(TOP)/src/lempar.c .
557 # Rules to build individual *.o files from generated *.c files. This
558 # applies to:
560 # parse.o
561 # opcodes.o
563 parse.lo: parse.c $(HDR)
564 $(LTCOMPILE) $(TEMP_STORE) -c parse.c
566 opcodes.lo: opcodes.c
567 $(LTCOMPILE) $(TEMP_STORE) -c opcodes.c
569 # BEGIN CRYPTO
570 crypto.lo: $(TOP)/src/crypto.c $(HDR)
571 $(LTCOMPILE) -c $(TOP)/src/crypto.c
572 crypto_impl.lo: $(TOP)/src/crypto_impl.c $(HDR)
573 $(LTCOMPILE) -c $(TOP)/src/crypto_impl.c
574 # END CRYPTO
576 # Rules to build individual *.o files from files in the src directory.
578 alter.lo: $(TOP)/src/alter.c $(HDR)
579 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/alter.c
581 analyze.lo: $(TOP)/src/analyze.c $(HDR)
582 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/analyze.c
584 attach.lo: $(TOP)/src/attach.c $(HDR)
585 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/attach.c
587 auth.lo: $(TOP)/src/auth.c $(HDR)
588 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/auth.c
590 backup.lo: $(TOP)/src/backup.c $(HDR)
591 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/backup.c
593 bitvec.lo: $(TOP)/src/bitvec.c $(HDR)
594 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/bitvec.c
596 btmutex.lo: $(TOP)/src/btmutex.c $(HDR)
597 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btmutex.c
599 btree.lo: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h
600 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btree.c
602 build.lo: $(TOP)/src/build.c $(HDR)
603 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/build.c
605 callback.lo: $(TOP)/src/callback.c $(HDR)
606 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/callback.c
608 complete.lo: $(TOP)/src/complete.c $(HDR)
609 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/complete.c
611 ctime.lo: $(TOP)/src/ctime.c $(HDR)
612 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/ctime.c
614 date.lo: $(TOP)/src/date.c $(HDR)
615 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/date.c
617 delete.lo: $(TOP)/src/delete.c $(HDR)
618 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/delete.c
620 expr.lo: $(TOP)/src/expr.c $(HDR)
621 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/expr.c
623 fault.lo: $(TOP)/src/fault.c $(HDR)
624 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fault.c
626 fkey.lo: $(TOP)/src/fkey.c $(HDR)
627 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fkey.c
629 func.lo: $(TOP)/src/func.c $(HDR)
630 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/func.c
632 global.lo: $(TOP)/src/global.c $(HDR)
633 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/global.c
635 hash.lo: $(TOP)/src/hash.c $(HDR)
636 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/hash.c
638 insert.lo: $(TOP)/src/insert.c $(HDR)
639 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/insert.c
641 journal.lo: $(TOP)/src/journal.c $(HDR)
642 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/journal.c
644 legacy.lo: $(TOP)/src/legacy.c $(HDR)
645 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/legacy.c
647 loadext.lo: $(TOP)/src/loadext.c $(HDR)
648 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/loadext.c
650 main.lo: $(TOP)/src/main.c $(HDR)
651 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/main.c
653 malloc.lo: $(TOP)/src/malloc.c $(HDR)
654 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/malloc.c
656 mem0.lo: $(TOP)/src/mem0.c $(HDR)
657 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem0.c
659 mem1.lo: $(TOP)/src/mem1.c $(HDR)
660 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem1.c
662 mem2.lo: $(TOP)/src/mem2.c $(HDR)
663 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem2.c
665 mem3.lo: $(TOP)/src/mem3.c $(HDR)
666 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem3.c
668 mem5.lo: $(TOP)/src/mem5.c $(HDR)
669 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem5.c
671 memjournal.lo: $(TOP)/src/memjournal.c $(HDR)
672 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/memjournal.c
674 mutex.lo: $(TOP)/src/mutex.c $(HDR)
675 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex.c
677 mutex_noop.lo: $(TOP)/src/mutex_noop.c $(HDR)
678 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_noop.c
680 mutex_os2.lo: $(TOP)/src/mutex_os2.c $(HDR)
681 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_os2.c
683 mutex_unix.lo: $(TOP)/src/mutex_unix.c $(HDR)
684 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_unix.c
686 mutex_w32.lo: $(TOP)/src/mutex_w32.c $(HDR)
687 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_w32.c
689 notify.lo: $(TOP)/src/notify.c $(HDR)
690 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/notify.c
692 pager.lo: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h
693 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pager.c
695 pcache.lo: $(TOP)/src/pcache.c $(HDR) $(TOP)/src/pcache.h
696 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache.c
698 pcache1.lo: $(TOP)/src/pcache1.c $(HDR) $(TOP)/src/pcache.h
699 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache1.c
701 os.lo: $(TOP)/src/os.c $(HDR)
702 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os.c
704 os_unix.lo: $(TOP)/src/os_unix.c $(HDR)
705 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_unix.c
707 os_win.lo: $(TOP)/src/os_win.c $(HDR)
708 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_win.c
710 os_os2.lo: $(TOP)/src/os_os2.c $(HDR)
711 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_os2.c
713 pragma.lo: $(TOP)/src/pragma.c $(HDR)
714 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pragma.c
716 prepare.lo: $(TOP)/src/prepare.c $(HDR)
717 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/prepare.c
719 printf.lo: $(TOP)/src/printf.c $(HDR)
720 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/printf.c
722 random.lo: $(TOP)/src/random.c $(HDR)
723 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/random.c
725 resolve.lo: $(TOP)/src/resolve.c $(HDR)
726 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/resolve.c
728 rowset.lo: $(TOP)/src/rowset.c $(HDR)
729 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/rowset.c
731 select.lo: $(TOP)/src/select.c $(HDR)
732 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/select.c
734 status.lo: $(TOP)/src/status.c $(HDR)
735 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/status.c
737 table.lo: $(TOP)/src/table.c $(HDR)
738 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/table.c
740 tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR)
741 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/tokenize.c
743 trigger.lo: $(TOP)/src/trigger.c $(HDR)
744 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/trigger.c
746 update.lo: $(TOP)/src/update.c $(HDR)
747 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/update.c
749 utf.lo: $(TOP)/src/utf.c $(HDR)
750 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/utf.c
752 util.lo: $(TOP)/src/util.c $(HDR)
753 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/util.c
755 vacuum.lo: $(TOP)/src/vacuum.c $(HDR)
756 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vacuum.c
758 vdbe.lo: $(TOP)/src/vdbe.c $(HDR)
759 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbe.c
761 vdbeapi.lo: $(TOP)/src/vdbeapi.c $(HDR)
762 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeapi.c
764 vdbeaux.lo: $(TOP)/src/vdbeaux.c $(HDR)
765 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeaux.c
767 vdbeblob.lo: $(TOP)/src/vdbeblob.c $(HDR)
768 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeblob.c
770 vdbemem.lo: $(TOP)/src/vdbemem.c $(HDR)
771 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbemem.c
773 vdbesort.lo: $(TOP)/src/vdbesort.c $(HDR)
774 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbesort.c
776 vdbetrace.lo: $(TOP)/src/vdbetrace.c $(HDR)
777 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbetrace.c
779 vtab.lo: $(TOP)/src/vtab.c $(HDR)
780 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vtab.c
782 wal.lo: $(TOP)/src/wal.c $(HDR)
783 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/wal.c
785 walker.lo: $(TOP)/src/walker.c $(HDR)
786 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/walker.c
788 where.lo: $(TOP)/src/where.c $(HDR)
789 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/where.c
791 tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR)
792 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -c $(TOP)/src/tclsqlite.c
794 tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR)
795 $(LTCOMPILE) -DTCLSH=1 -o $@ -c $(TOP)/src/tclsqlite.c
797 tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR)
798 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c
800 tclsqlite3$(TEXE): tclsqlite-shell.lo libsqlite3.la
801 $(LTLINK) -o $@ tclsqlite-shell.lo \
802 libsqlite3.la $(LIBTCL)
804 # Rules to build opcodes.c and opcodes.h
806 opcodes.c: opcodes.h $(TOP)/mkopcodec.awk
807 $(NAWK) -f $(TOP)/mkopcodec.awk opcodes.h >opcodes.c
809 opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk
810 cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes.h
812 # Rules to build parse.c and parse.h - the outputs of lemon.
814 parse.h: parse.c
816 parse.c: $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/addopcodes.awk
817 cp $(TOP)/src/parse.y .
818 rm -f parse.h
819 ./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y
820 mv parse.h parse.h.temp
821 $(NAWK) -f $(TOP)/addopcodes.awk parse.h.temp >parse.h
823 sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest.uuid $(TOP)/VERSION
824 $(TCLSH_CMD) $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h
826 keywordhash.h: $(TOP)/tool/mkkeywordhash.c
827 $(BCC) -o mkkeywordhash$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)/tool/mkkeywordhash.c
828 ./mkkeywordhash$(BEXE) >keywordhash.h
832 # Rules to build the extension objects.
834 icu.lo: $(TOP)/ext/icu/icu.c $(HDR) $(EXTHDR)
835 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/icu/icu.c
837 fts2.lo: $(TOP)/ext/fts2/fts2.c $(HDR) $(EXTHDR)
838 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2.c
840 fts2_hash.lo: $(TOP)/ext/fts2/fts2_hash.c $(HDR) $(EXTHDR)
841 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_hash.c
843 fts2_icu.lo: $(TOP)/ext/fts2/fts2_icu.c $(HDR) $(EXTHDR)
844 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_icu.c
846 fts2_porter.lo: $(TOP)/ext/fts2/fts2_porter.c $(HDR) $(EXTHDR)
847 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_porter.c
849 fts2_tokenizer.lo: $(TOP)/ext/fts2/fts2_tokenizer.c $(HDR) $(EXTHDR)
850 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer.c
852 fts2_tokenizer1.lo: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR) $(EXTHDR)
853 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer1.c
855 fts3.lo: $(TOP)/ext/fts3/fts3.c $(HDR) $(EXTHDR)
856 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3.c
858 fts3_aux.lo: $(TOP)/ext/fts3/fts3_aux.c $(HDR) $(EXTHDR)
859 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_aux.c
861 fts3_expr.lo: $(TOP)/ext/fts3/fts3_expr.c $(HDR) $(EXTHDR)
862 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_expr.c
864 fts3_hash.lo: $(TOP)/ext/fts3/fts3_hash.c $(HDR) $(EXTHDR)
865 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_hash.c
867 fts3_icu.lo: $(TOP)/ext/fts3/fts3_icu.c $(HDR) $(EXTHDR)
868 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_icu.c
870 fts3_porter.lo: $(TOP)/ext/fts3/fts3_porter.c $(HDR) $(EXTHDR)
871 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_porter.c
873 fts3_snippet.lo: $(TOP)/ext/fts3/fts3_snippet.c $(HDR) $(EXTHDR)
874 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_snippet.c
876 fts3_tokenizer.lo: $(TOP)/ext/fts3/fts3_tokenizer.c $(HDR) $(EXTHDR)
877 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer.c
879 fts3_tokenizer1.lo: $(TOP)/ext/fts3/fts3_tokenizer1.c $(HDR) $(EXTHDR)
880 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_tokenizer1.c
882 fts3_unicode.lo: $(TOP)/ext/fts3/fts3_unicode.c $(HDR) $(EXTHDR)
883 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode.c
885 fts3_unicode2.lo: $(TOP)/ext/fts3/fts3_unicode2.c $(HDR) $(EXTHDR)
886 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_unicode2.c
888 fts3_write.lo: $(TOP)/ext/fts3/fts3_write.c $(HDR) $(EXTHDR)
889 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/fts3/fts3_write.c
891 rtree.lo: $(TOP)/ext/rtree/rtree.c $(HDR) $(EXTHDR)
892 $(LTCOMPILE) -DSQLITE_CORE -c $(TOP)/ext/rtree/rtree.c
895 # Rules to build the 'testfixture' application.
897 # If using the amalgamation, use sqlite3.c directly to build the test
898 # fixture. Otherwise link against libsqlite3.la. (This distinction is
899 # necessary because the test fixture requires non-API symbols which are
900 # hidden when the library is built via the amalgamation).
902 TESTFIXTURE_FLAGS = -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1
903 TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE
904 TESTFIXTURE_FLAGS += -DBUILD_sqlite
906 TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.la
907 TESTFIXTURE_SRC1 = sqlite3.c
908 TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c $(TESTFIXTURE_SRC$(USE_AMALGAMATION))
910 testfixture$(TEXE): $(TESTFIXTURE_SRC)
911 $(LTLINK) -DSQLITE_NO_SYNC=1 $(TEMP_STORE) $(TESTFIXTURE_FLAGS) \
912 -o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS)
915 fulltest: testfixture$(TEXE) sqlite3$(TEXE)
916 ./testfixture$(TEXE) $(TOP)/test/all.test
918 soaktest: testfixture$(TEXE) sqlite3$(TEXE)
919 ./testfixture$(TEXE) $(TOP)/test/all.test -soak=1
921 test: testfixture$(TEXE) sqlite3$(TEXE)
922 ./testfixture$(TEXE) $(TOP)/test/veryquick.test
924 sqlite3_analyzer.c: sqlite3.c $(TOP)/src/test_stat.c $(TOP)/src/tclsqlite.c $(TOP)/tool/spaceanal.tcl
925 echo "#define TCLSH 2" > $@
926 cat sqlite3.c $(TOP)/src/test_stat.c $(TOP)/src/tclsqlite.c >> $@
927 echo "static const char *tclsh_main_loop(void){" >> $@
928 echo "static const char *zMainloop = " >> $@
929 $(NAWK) -f $(TOP)/tool/tostr.awk $(TOP)/tool/spaceanal.tcl >> $@
930 echo "; return zMainloop; }" >> $@
932 sqlite3_analyzer$(TEXE): sqlite3_analyzer.c
933 $(LTLINK) sqlite3_analyzer.c -o $@ $(LIBTCL) $(TLIBS)
935 # Standard install and cleanup targets
937 lib_install: libsqlite3.la
938 $(INSTALL) -d $(DESTDIR)$(libdir)
939 $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir)
941 install: sqlite3$(BEXE) lib_install sqlite3.h sqlite3.pc ${HAVE_TCL:1=tcl_install}
942 $(INSTALL) -d $(DESTDIR)$(bindir)
943 $(LTINSTALL) sqlite3$(BEXE) $(DESTDIR)$(bindir)
944 $(INSTALL) -d $(DESTDIR)$(includedir)
945 $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir)
946 $(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir)
947 $(INSTALL) -d $(DESTDIR)$(pkgconfigdir)
948 $(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(pkgconfigdir)
950 pkgIndex.tcl:
951 echo 'package ifneeded sqlite3 $(RELEASE) [list load $(TCLLIBDIR)/libtclsqlite3.so sqlite3]' > $@
952 tcl_install: lib_install libtclsqlite3.la pkgIndex.tcl
953 $(INSTALL) -d $(DESTDIR)$(TCLLIBDIR)
954 $(LTINSTALL) libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)
955 rm -f $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.a
956 $(INSTALL) -m 0644 pkgIndex.tcl $(DESTDIR)$(TCLLIBDIR)
958 clean:
959 rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la
960 rm -f sqlite3.h opcodes.*
961 rm -rf .libs .deps
962 rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz
963 rm -f mkkeywordhash$(BEXE) keywordhash.h
964 rm -f $(PUBLISH)
965 rm -f *.da *.bb *.bbg gmon.out
966 rm -rf quota2a quota2b quota2c
967 rm -rf tsrc .target_source
968 rm -f tclsqlite3$(TEXE)
969 rm -f testfixture$(TEXE) test.db
970 rm -f sqlite3.dll sqlite3.lib sqlite3.exp sqlite3.def
971 rm -f sqlite3.c
972 rm -f sqlite3_analyzer$(TEXE) sqlite3_analyzer.c
974 distclean: clean
975 rm -f config.log config.status libtool Makefile sqlite3.pc
978 # Windows section
980 dll: sqlite3.dll
982 REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o)
984 $(REAL_LIBOBJ): $(LIBOBJ)
986 sqlite3.def: $(REAL_LIBOBJ)
987 echo 'EXPORTS' >sqlite3.def
988 nm $(REAL_LIBOBJ) | grep ' T ' | grep ' _sqlite3_' \
989 | sed 's/^.* _//' >>sqlite3.def
991 sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def
992 $(TCC) -shared -o $@ sqlite3.def \
993 -Wl,"--strip-all" $(REAL_LIBOBJ)