/ Hex Artifact Content
Login

Artifact 416f9b7089d80e5590a29692c9d9280a10dbad9f:


0000: 23 21 2f 62 69 6e 2f 73 68 0a 23 0a 23 20 54 68  #!/bin/sh.#.# Th
0010: 69 73 20 73 63 72 69 70 74 20 69 73 20 75 73 65  is script is use
0020: 64 20 74 6f 20 63 6f 6d 70 69 6c 65 20 53 51 4c  d to compile SQL
0030: 69 74 65 20 69 6e 74 6f 20 61 20 73 68 61 72 65  ite into a share
0040: 64 20 6c 69 62 72 61 72 79 20 6f 6e 20 4c 69 6e  d library on Lin
0050: 75 78 2e 0a 23 0a 23 20 54 77 6f 20 73 65 70 61  ux..#.# Two sepa
0060: 72 61 74 65 20 73 68 61 72 65 64 20 6c 69 62 72  rate shared libr
0070: 61 72 69 65 73 20 61 72 65 20 67 65 6e 65 72 61  aries are genera
0080: 74 65 64 2e 20 20 22 73 71 6c 69 74 65 33 2e 73  ted.  "sqlite3.s
0090: 6f 22 20 69 73 20 74 68 65 20 63 6f 72 65 0a 23  o" is the core.#
00a0: 20 6c 69 62 72 61 72 79 2e 20 20 22 74 63 6c 73   library.  "tcls
00b0: 71 6c 69 74 65 33 2e 73 6f 22 20 63 6f 6e 74 61  qlite3.so" conta
00c0: 69 6e 73 20 74 68 65 20 54 43 4c 20 62 69 6e 64  ins the TCL bind
00d0: 69 6e 67 73 20 61 6e 64 20 69 73 20 74 68 65 0a  ings and is the.
00e0: 23 20 6c 69 62 72 61 72 79 20 74 68 61 74 20 69  # library that i
00f0: 73 20 6c 6f 61 64 65 64 20 69 6e 74 6f 20 54 43  s loaded into TC
0100: 4c 20 69 6e 20 6f 72 64 65 72 20 74 6f 20 72 75  L in order to ru
0110: 6e 20 53 51 4c 69 74 65 2e 0a 23 0a 43 46 4c 41  n SQLite..#.CFLA
0120: 47 53 3d 2d 4f 32 20 2d 57 61 6c 6c 0a 6d 61 6b  GS=-O2 -Wall.mak
0130: 65 20 66 74 73 32 61 6d 61 6c 2e 63 0a 65 63 68  e fts2amal.c.ech
0140: 6f 20 67 63 63 20 24 43 46 4c 41 47 53 20 2d 73  o gcc $CFLAGS -s
0150: 68 61 72 65 64 20 66 74 73 32 61 6d 61 6c 2e 63  hared fts2amal.c
0160: 20 2d 6f 20 66 74 73 32 2e 73 6f 0a 67 63 63 20   -o fts2.so.gcc 
0170: 24 43 46 4c 41 47 53 20 2d 73 68 61 72 65 64 20  $CFLAGS -shared 
0180: 66 74 73 32 61 6d 61 6c 2e 63 20 2d 6f 20 66 74  fts2amal.c -o ft
0190: 73 32 2e 73 6f 0a 73 74 72 69 70 20 66 74 73 32  s2.so.strip fts2
01a0: 2e 73 6f 0a                                      .so.