/ Hex Artifact Content
Login

Artifact 22fe523eb36dfce31e0f6349f782eb084e86a5620b2b0b4f84a2d6133f53f5ac:


0000: 23 21 2f 75 73 72 2f 62 69 6e 2f 6d 61 6b 65 0a  #!/usr/bin/make.
0010: 23 0a 23 20 49 66 20 74 68 65 20 63 6f 6e 66 69  #.# If the confi
0020: 67 75 72 65 20 73 63 72 69 70 74 20 64 6f 65 73  gure script does
0030: 20 6e 6f 74 20 77 6f 72 6b 2c 20 74 68 65 6e 20   not work, then 
0040: 74 68 69 73 20 4d 61 6b 65 66 69 6c 65 20 69 73  this Makefile is
0050: 20 61 76 61 69 6c 61 62 6c 65 0a 23 20 61 73 20   available.# as 
0060: 61 20 62 61 63 6b 75 70 2e 20 20 4d 61 6e 75 61  a backup.  Manua
0070: 6c 6c 79 20 63 6f 6e 66 69 67 75 72 65 20 74 68  lly configure th
0080: 65 20 76 61 72 69 61 62 6c 65 73 20 62 65 6c 6f  e variables belo
0090: 77 2e 0a 23 0a 23 20 4e 6f 74 65 3a 20 20 54 68  w..#.# Note:  Th
00a0: 69 73 20 6d 61 6b 65 66 69 6c 65 20 77 6f 72 6b  is makefile work
00b0: 73 20 6f 75 74 2d 6f 66 2d 74 68 65 2d 62 6f 78  s out-of-the-box
00c0: 20 6f 6e 20 4d 61 63 4f 53 20 31 30 2e 32 20 28   on MacOS 10.2 (
00d0: 4a 61 67 75 61 72 29 0a 23 0a 43 43 20 3d 20 67  Jaguar).#.CC = g
00e0: 63 63 0a 43 46 4c 41 47 53 20 3d 20 2d 4f 30 20  cc.CFLAGS = -O0 
00f0: 2d 49 2e 0a 4c 49 42 53 20 3d 20 2d 6c 7a 0a 43  -I..LIBS = -lz.C
0100: 4f 50 54 53 20 2b 3d 20 2d 44 5f 42 53 44 5f 53  OPTS += -D_BSD_S
0110: 4f 55 52 43 45 0a 43 4f 50 54 53 20 2b 3d 20 2d  OURCE.COPTS += -
0120: 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c 45 5f 4c  DSQLITE_ENABLE_L
0130: 4f 43 4b 49 4e 47 5f 53 54 59 4c 45 3d 30 0a 43  OCKING_STYLE=0.C
0140: 4f 50 54 53 20 2b 3d 20 2d 44 53 51 4c 49 54 45  OPTS += -DSQLITE
0150: 5f 54 48 52 45 41 44 53 41 46 45 3d 30 0a 43 4f  _THREADSAFE=0.CO
0160: 50 54 53 20 2b 3d 20 2d 44 53 51 4c 49 54 45 5f  PTS += -DSQLITE_
0170: 4f 4d 49 54 5f 4c 4f 41 44 5f 45 58 54 45 4e 53  OMIT_LOAD_EXTENS
0180: 49 4f 4e 0a 43 4f 50 54 53 20 2b 3d 20 2d 44 53  ION.COPTS += -DS
0190: 51 4c 49 54 45 5f 57 49 54 48 4f 55 54 5f 5a 4f  QLITE_WITHOUT_ZO
01a0: 4e 45 4d 41 4c 4c 4f 43 0a 43 4f 50 54 53 20 2b  NEMALLOC.COPTS +
01b0: 3d 20 2d 44 53 51 4c 49 54 45 5f 45 4e 41 42 4c  = -DSQLITE_ENABL
01c0: 45 5f 52 54 52 45 45 0a 0a 73 71 6c 69 74 65 33  E_RTREE..sqlite3
01d0: 3a 09 73 68 65 6c 6c 2e 63 20 73 71 6c 69 74 65  :.shell.c sqlite
01e0: 33 2e 63 0a 09 24 28 43 43 29 20 24 28 43 46 4c  3.c..$(CC) $(CFL
01f0: 41 47 53 29 20 24 28 43 4f 50 54 53 29 20 2d 6f  AGS) $(COPTS) -o
0200: 20 73 71 6c 69 74 65 33 20 73 68 65 6c 6c 2e 63   sqlite3 shell.c
0210: 20 73 71 6c 69 74 65 33 2e 63 20 24 28 4c 49 42   sqlite3.c $(LIB
0220: 53 29 0a                                         S).