File
Makefile.linux-gcc
— part of check-in
[5b67752153]
at
2015-10-07 12:36:42
on branch omit-awk
— Convert the tool/tostr.awk script into tool/tostr.tcl. Remove two obsolete
Makefiles. Purge NAWK from the configure script and from unix makefiles.
There are still two uses of NAWK in Makefile.msc.
(user:
drh
size: 3647)
[more...]
0000: 23 21 2f 75 73 72 2f 6d 61 6b 65 0a 23 0a 23 20 #!/usr/make.#.#
0010: 4d 61 6b 65 66 69 6c 65 20 66 6f 72 20 53 51 4c Makefile for SQL
0020: 49 54 45 0a 23 0a 23 20 54 68 69 73 20 69 73 20 ITE.#.# This is
0030: 61 20 74 65 6d 70 6c 61 74 65 20 6d 61 6b 65 66 a template makef
0040: 69 6c 65 20 66 6f 72 20 53 51 4c 69 74 65 2e 20 ile for SQLite.
0050: 20 4d 6f 73 74 20 70 65 6f 70 6c 65 20 70 72 65 Most people pre
0060: 66 65 72 20 74 6f 0a 23 20 75 73 65 20 74 68 65 fer to.# use the
0070: 20 61 75 74 6f 63 6f 6e 66 20 67 65 6e 65 72 61 autoconf genera
0080: 74 65 64 20 22 63 6f 6e 66 69 67 75 72 65 22 20 ted "configure"
0090: 73 63 72 69 70 74 20 74 6f 20 67 65 6e 65 72 61 script to genera
00a0: 74 65 20 74 68 65 0a 23 20 6d 61 6b 65 66 69 6c te the.# makefil
00b0: 65 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c 79 2e e automatically.
00c0: 20 20 42 75 74 20 74 68 61 74 20 64 6f 65 73 20 But that does
00d0: 6e 6f 74 20 77 6f 72 6b 20 66 6f 72 20 65 76 65 not work for eve
00e0: 72 79 62 6f 64 79 0a 23 20 61 6e 64 20 69 6e 20 rybody.# and in
00f0: 65 76 65 72 79 20 73 69 74 75 61 74 69 6f 6e 2e every situation.
0100: 20 20 49 66 20 79 6f 75 20 61 72 65 20 68 61 76 If you are hav
0110: 69 6e 67 20 70 72 6f 62 6c 65 6d 73 20 77 69 74 ing problems wit
0120: 68 20 74 68 65 0a 23 20 22 63 6f 6e 66 69 67 75 h the.# "configu
0130: 72 65 22 20 73 63 72 69 70 74 2c 20 79 6f 75 20 re" script, you
0140: 6d 69 67 68 74 20 77 61 6e 74 20 74 6f 20 74 72 might want to tr
0150: 79 20 74 68 69 73 20 6d 61 6b 65 66 69 6c 65 20 y this makefile
0160: 61 73 20 61 6e 0a 23 20 61 6c 74 65 72 6e 61 74 as an.# alternat
0170: 69 76 65 2e 20 20 43 72 65 61 74 65 20 61 20 63 ive. Create a c
0180: 6f 70 79 20 6f 66 20 74 68 69 73 20 66 69 6c 65 opy of this file
0190: 2c 20 65 64 69 74 20 74 68 65 20 70 61 72 61 6d , edit the param
01a0: 65 74 65 72 73 0a 23 20 62 65 6c 6f 77 20 61 6e eters.# below an
01b0: 64 20 74 79 70 65 20 22 6d 61 6b 65 22 2e 0a 23 d type "make"..#
01c0: 0a 0a 23 23 23 23 20 54 68 65 20 74 6f 70 6c 65 ..#### The tople
01d0: 76 65 6c 20 64 69 72 65 63 74 6f 72 79 20 6f 66 vel directory of
01e0: 20 74 68 65 20 73 6f 75 72 63 65 20 74 72 65 65 the source tree
01f0: 2e 20 20 54 68 69 73 20 69 73 20 74 68 65 20 64 . This is the d
0200: 69 72 65 63 74 6f 72 79 0a 23 20 20 20 20 74 68 irectory.# th
0210: 61 74 20 63 6f 6e 74 61 69 6e 73 20 74 68 69 73 at contains this
0220: 20 22 4d 61 6b 65 66 69 6c 65 2e 69 6e 22 20 61 "Makefile.in" a
0230: 6e 64 20 74 68 65 20 22 63 6f 6e 66 69 67 75 72 nd the "configur
0240: 65 2e 69 6e 22 20 73 63 72 69 70 74 2e 0a 23 0a e.in" script..#.
0250: 54 4f 50 20 3d 20 2e 2e 2f 73 71 6c 69 74 65 0a TOP = ../sqlite.
0260: 0a 23 23 23 23 20 43 20 43 6f 6d 70 69 6c 65 72 .#### C Compiler
0270: 20 61 6e 64 20 6f 70 74 69 6f 6e 73 20 66 6f 72 and options for
0280: 20 75 73 65 20 69 6e 20 62 75 69 6c 64 69 6e 67 use in building
0290: 20 65 78 65 63 75 74 61 62 6c 65 73 20 74 68 61 executables tha
02a0: 74 0a 23 20 20 20 20 77 69 6c 6c 20 72 75 6e 20 t.# will run
02b0: 6f 6e 20 74 68 65 20 70 6c 61 74 66 6f 72 6d 20 on the platform
02c0: 74 68 61 74 20 69 73 20 64 6f 69 6e 67 20 74 68 that is doing th
02d0: 65 20 62 75 69 6c 64 2e 0a 23 0a 42 43 43 20 3d e build..#.BCC =
02e0: 20 67 63 63 20 2d 67 20 2d 4f 32 0a 23 42 43 43 gcc -g -O2.#BCC
02f0: 20 3d 20 2f 6f 70 74 2f 61 6e 63 69 63 2f 62 69 = /opt/ancic/bi
0300: 6e 2f 63 38 39 20 2d 30 0a 0a 23 23 23 23 20 49 n/c89 -0..#### I
0310: 66 20 74 68 65 20 74 61 72 67 65 74 20 6f 70 65 f the target ope
0320: 72 61 74 69 6e 67 20 73 79 73 74 65 6d 20 73 75 rating system su
0330: 70 70 6f 72 74 73 20 74 68 65 20 22 75 73 6c 65 pports the "usle
0340: 65 70 28 29 22 20 73 79 73 74 65 6d 0a 23 20 20 ep()" system.#
0350: 20 20 63 61 6c 6c 2c 20 74 68 65 6e 20 64 65 66 call, then def
0360: 69 6e 65 20 74 68 65 20 48 41 56 45 5f 55 53 4c ine the HAVE_USL
0370: 45 45 50 20 6d 61 63 72 6f 20 66 6f 72 20 61 6c EEP macro for al
0380: 6c 20 43 20 6d 6f 64 75 6c 65 73 2e 0a 23 0a 23 l C modules..#.#
0390: 55 53 4c 45 45 50 20 3d 20 0a 55 53 4c 45 45 50 USLEEP = .USLEEP
03a0: 20 3d 20 2d 44 48 41 56 45 5f 55 53 4c 45 45 50 = -DHAVE_USLEEP
03b0: 3d 31 0a 0a 23 23 23 23 20 49 66 20 79 6f 75 20 =1..#### If you
03c0: 77 61 6e 74 20 74 68 65 20 53 51 4c 69 74 65 20 want the SQLite
03d0: 6c 69 62 72 61 72 79 20 74 6f 20 62 65 20 73 61 library to be sa
03e0: 66 65 20 66 6f 72 20 75 73 65 20 77 69 74 68 69 fe for use withi
03f0: 6e 20 61 20 0a 23 20 20 20 20 6d 75 6c 74 69 2d n a .# multi-
0400: 74 68 72 65 61 64 65 64 20 70 72 6f 67 72 61 6d threaded program
0410: 2c 20 74 68 65 6e 20 64 65 66 69 6e 65 20 74 68 , then define th
0420: 65 20 66 6f 6c 6c 6f 77 69 6e 67 20 6d 61 63 72 e following macr
0430: 6f 0a 23 20 20 20 20 61 70 70 72 6f 70 72 69 61 o.# appropria
0440: 74 65 6c 79 3a 0a 23 0a 23 54 48 52 45 41 44 53 tely:.#.#THREADS
0450: 41 46 45 20 3d 20 2d 44 54 48 52 45 41 44 53 41 AFE = -DTHREADSA
0460: 46 45 3d 31 0a 54 48 52 45 41 44 53 41 46 45 20 FE=1.THREADSAFE
0470: 3d 20 2d 44 54 48 52 45 41 44 53 41 46 45 3d 30 = -DTHREADSAFE=0
0480: 0a 0a 23 23 23 23 20 53 70 65 63 69 66 79 20 61 ..#### Specify a
0490: 6e 79 20 65 78 74 72 61 20 6c 69 6e 6b 65 72 20 ny extra linker
04a0: 6f 70 74 69 6f 6e 73 20 6e 65 65 64 65 64 20 74 options needed t
04b0: 6f 20 6d 61 6b 65 20 74 68 65 20 6c 69 62 72 61 o make the libra
04c0: 72 79 0a 23 20 20 20 20 74 68 72 65 61 64 20 73 ry.# thread s
04d0: 61 66 65 0a 23 0a 23 54 48 52 45 41 44 4c 49 42 afe.#.#THREADLIB
04e0: 20 3d 20 2d 6c 70 74 68 72 65 61 64 0a 54 48 52 = -lpthread.THR
04f0: 45 41 44 4c 49 42 20 3d 20 0a 0a 23 23 23 23 20 EADLIB = ..####
0500: 53 70 65 63 69 66 79 20 61 6e 79 20 65 78 74 72 Specify any extr
0510: 61 20 6c 69 62 72 61 72 69 65 73 20 6e 65 65 64 a libraries need
0520: 65 64 20 74 6f 20 61 63 63 65 73 73 20 72 65 71 ed to access req
0530: 75 69 72 65 64 20 66 75 6e 63 74 69 6f 6e 73 2e uired functions.
0540: 0a 23 0a 23 54 4c 49 42 53 20 3d 20 2d 6c 72 74 .#.#TLIBS = -lrt
0550: 20 20 20 20 23 20 66 64 61 74 61 73 79 6e 63 20 # fdatasync
0560: 6f 6e 20 53 6f 6c 61 72 69 73 20 38 0a 54 4c 49 on Solaris 8.TLI
0570: 42 53 20 3d 20 0a 0a 23 23 23 23 20 4c 65 61 76 BS = ..#### Leav
0580: 65 20 53 51 4c 49 54 45 5f 44 45 42 55 47 20 75 e SQLITE_DEBUG u
0590: 6e 64 65 66 69 6e 65 64 20 66 6f 72 20 6d 61 78 ndefined for max
05a0: 69 6d 75 6d 20 73 70 65 65 64 2e 20 20 55 73 65 imum speed. Use
05b0: 20 53 51 4c 49 54 45 5f 44 45 42 55 47 3d 31 0a SQLITE_DEBUG=1.
05c0: 23 20 20 20 20 74 6f 20 63 68 65 63 6b 20 66 6f # to check fo
05d0: 72 20 6d 65 6d 6f 72 79 20 6c 65 61 6b 73 2e 20 r memory leaks.
05e0: 20 55 73 65 20 53 51 4c 49 54 45 5f 44 45 42 55 Use SQLITE_DEBU
05f0: 47 3d 32 20 74 6f 20 70 72 69 6e 74 20 61 20 6c G=2 to print a l
0600: 6f 67 20 6f 66 20 61 6c 6c 0a 23 20 20 20 20 6d og of all.# m
0610: 61 6c 6c 6f 63 28 29 73 20 61 6e 64 20 66 72 65 alloc()s and fre
0620: 65 28 29 73 20 69 6e 20 6f 72 64 65 72 20 74 6f e()s in order to
0630: 20 74 72 61 63 6b 20 64 6f 77 6e 20 6d 65 6d 6f track down memo
0640: 72 79 20 6c 65 61 6b 73 2e 0a 23 20 20 20 20 0a ry leaks..# .
0650: 23 20 20 20 20 53 51 4c 69 74 65 20 75 73 65 73 # SQLite uses
0660: 20 73 6f 6d 65 20 65 78 70 65 6e 73 69 76 65 20 some expensive
0670: 61 73 73 65 72 74 28 29 20 73 74 61 74 65 6d 65 assert() stateme
0680: 6e 74 73 20 69 6e 20 74 68 65 20 69 6e 6e 65 72 nts in the inner
0690: 20 6c 6f 6f 70 2e 0a 23 20 20 20 20 59 6f 75 20 loop..# You
06a0: 63 61 6e 20 6d 61 6b 65 20 74 68 65 20 6c 69 62 can make the lib
06b0: 72 61 72 79 20 67 6f 20 61 6c 6d 6f 73 74 20 74 rary go almost t
06c0: 77 69 63 65 20 61 73 20 66 61 73 74 20 69 66 20 wice as fast if
06d0: 79 6f 75 20 63 6f 6d 70 69 6c 65 0a 23 20 20 20 you compile.#
06e0: 20 77 69 74 68 20 2d 44 4e 44 45 42 55 47 3d 31 with -DNDEBUG=1
06f0: 0a 23 0a 23 4f 50 54 53 20 3d 20 2d 44 53 51 4c .#.#OPTS = -DSQL
0700: 49 54 45 5f 44 45 42 55 47 3d 32 0a 23 4f 50 54 ITE_DEBUG=2.#OPT
0710: 53 20 3d 20 2d 44 53 51 4c 49 54 45 5f 44 45 42 S = -DSQLITE_DEB
0720: 55 47 3d 31 0a 23 4f 50 54 53 20 3d 20 0a 4f 50 UG=1.#OPTS = .OP
0730: 54 53 20 3d 20 2d 44 4e 44 45 42 55 47 3d 31 0a TS = -DNDEBUG=1.
0740: 4f 50 54 53 20 2b 3d 20 2d 44 48 41 56 45 5f 46 OPTS += -DHAVE_F
0750: 44 41 54 41 53 59 4e 43 3d 31 0a 0a 23 23 23 23 DATASYNC=1..####
0760: 20 54 68 65 20 73 75 66 66 69 78 20 74 6f 20 61 The suffix to a
0770: 64 64 20 74 6f 20 65 78 65 63 75 74 61 62 6c 65 dd to executable
0780: 20 66 69 6c 65 73 2e 20 20 22 2e 65 78 65 22 20 files. ".exe"
0790: 66 6f 72 20 77 69 6e 64 6f 77 73 2e 0a 23 20 20 for windows..#
07a0: 20 20 4e 6f 74 68 69 6e 67 20 66 6f 72 20 75 6e Nothing for un
07b0: 69 78 2e 0a 23 0a 23 45 58 45 20 3d 20 2e 65 78 ix..#.#EXE = .ex
07c0: 65 0a 45 58 45 20 3d 0a 0a 23 23 23 23 20 43 20 e.EXE =..#### C
07d0: 43 6f 6d 70 69 6c 65 20 61 6e 64 20 6f 70 74 69 Compile and opti
07e0: 6f 6e 73 20 66 6f 72 20 75 73 65 20 69 6e 20 62 ons for use in b
07f0: 75 69 6c 64 69 6e 67 20 65 78 65 63 75 74 61 62 uilding executab
0800: 6c 65 73 20 74 68 61 74 20 0a 23 20 20 20 20 77 les that .# w
0810: 69 6c 6c 20 72 75 6e 20 6f 6e 20 74 68 65 20 74 ill run on the t
0820: 61 72 67 65 74 20 70 6c 61 74 66 6f 72 6d 2e 20 arget platform.
0830: 20 54 68 69 73 20 69 73 20 75 73 75 61 6c 6c 79 This is usually
0840: 20 74 68 65 20 73 61 6d 65 0a 23 20 20 20 20 61 the same.# a
0850: 73 20 42 43 43 2c 20 75 6e 6c 65 73 73 20 79 6f s BCC, unless yo
0860: 75 20 61 72 65 20 63 72 6f 73 73 2d 63 6f 6d 70 u are cross-comp
0870: 69 6c 69 6e 67 2e 0a 23 0a 54 43 43 20 3d 20 67 iling..#.TCC = g
0880: 63 63 20 2d 4f 36 0a 23 54 43 43 20 3d 20 67 63 cc -O6.#TCC = gc
0890: 63 20 2d 67 20 2d 4f 30 20 2d 57 61 6c 6c 0a 23 c -g -O0 -Wall.#
08a0: 54 43 43 20 3d 20 67 63 63 20 2d 67 20 2d 4f 30 TCC = gcc -g -O0
08b0: 20 2d 57 61 6c 6c 20 2d 66 70 72 6f 66 69 6c 65 -Wall -fprofile
08c0: 2d 61 72 63 73 20 2d 66 74 65 73 74 2d 63 6f 76 -arcs -ftest-cov
08d0: 65 72 61 67 65 0a 23 54 43 43 20 3d 20 2f 6f 70 erage.#TCC = /op
08e0: 74 2f 6d 69 6e 67 77 2f 62 69 6e 2f 69 33 38 36 t/mingw/bin/i386
08f0: 2d 6d 69 6e 67 77 33 32 2d 67 63 63 20 2d 4f 36 -mingw32-gcc -O6
0900: 0a 23 54 43 43 20 3d 20 2f 6f 70 74 2f 61 6e 73 .#TCC = /opt/ans
0910: 69 63 2f 62 69 6e 2f 63 38 39 20 2d 4f 20 2b 7a ic/bin/c89 -O +z
0920: 20 2d 57 6c 2c 2d 61 2c 61 72 63 68 69 76 65 0a -Wl,-a,archive.
0930: 0a 23 23 23 23 20 54 6f 6f 6c 73 20 75 73 65 64 .#### Tools used
0940: 20 74 6f 20 62 75 69 6c 64 20 61 20 73 74 61 74 to build a stat
0950: 69 63 20 6c 69 62 72 61 72 79 2e 0a 23 0a 41 52 ic library..#.AR
0960: 20 3d 20 61 72 20 63 72 0a 23 41 52 20 3d 20 2f = ar cr.#AR = /
0970: 6f 70 74 2f 6d 69 6e 67 77 2f 62 69 6e 2f 69 33 opt/mingw/bin/i3
0980: 38 36 2d 6d 69 6e 67 77 33 32 2d 61 72 20 63 72 86-mingw32-ar cr
0990: 0a 52 41 4e 4c 49 42 20 3d 20 72 61 6e 6c 69 62 .RANLIB = ranlib
09a0: 0a 23 52 41 4e 4c 49 42 20 3d 20 2f 6f 70 74 2f .#RANLIB = /opt/
09b0: 6d 69 6e 67 77 2f 62 69 6e 2f 69 33 38 36 2d 6d mingw/bin/i386-m
09c0: 69 6e 67 77 33 32 2d 72 61 6e 6c 69 62 0a 0a 4d ingw32-ranlib..M
09d0: 4b 53 48 4c 49 42 20 3d 20 67 63 63 20 2d 73 68 KSHLIB = gcc -sh
09e0: 61 72 65 64 0a 53 4f 20 3d 20 73 6f 0a 53 48 50 ared.SO = so.SHP
09f0: 52 45 46 49 58 20 3d 20 6c 69 62 0a 23 20 53 4f REFIX = lib.# SO
0a00: 20 3d 20 64 6c 6c 0a 23 20 53 48 50 52 45 46 49 = dll.# SHPREFI
0a10: 58 20 3d 0a 0a 23 23 23 23 20 45 78 74 72 61 20 X =..#### Extra
0a20: 63 6f 6d 70 69 6c 65 72 20 6f 70 74 69 6f 6e 73 compiler options
0a30: 20 6e 65 65 64 65 64 20 66 6f 72 20 70 72 6f 67 needed for prog
0a40: 72 61 6d 73 20 74 68 61 74 20 75 73 65 20 74 68 rams that use th
0a50: 65 20 54 43 4c 20 6c 69 62 72 61 72 79 2e 0a 23 e TCL library..#
0a60: 0a 23 54 43 4c 5f 46 4c 41 47 53 20 3d 0a 23 54 .#TCL_FLAGS =.#T
0a70: 43 4c 5f 46 4c 41 47 53 20 3d 20 2d 44 53 54 41 CL_FLAGS = -DSTA
0a80: 54 49 43 5f 42 55 49 4c 44 3d 31 0a 54 43 4c 5f TIC_BUILD=1.TCL_
0a90: 46 4c 41 47 53 20 3d 20 2d 49 2f 68 6f 6d 65 2f FLAGS = -I/home/
0aa0: 64 72 68 2f 74 63 6c 74 6b 2f 38 2e 35 6c 69 6e drh/tcltk/8.5lin
0ab0: 75 78 0a 23 54 43 4c 5f 46 4c 41 47 53 20 3d 20 ux.#TCL_FLAGS =
0ac0: 2d 49 2f 68 6f 6d 65 2f 64 72 68 2f 74 63 6c 74 -I/home/drh/tclt
0ad0: 6b 2f 38 2e 35 77 69 6e 20 2d 44 53 54 41 54 49 k/8.5win -DSTATI
0ae0: 43 5f 42 55 49 4c 44 3d 31 0a 23 54 43 4c 5f 46 C_BUILD=1.#TCL_F
0af0: 4c 41 47 53 20 3d 20 2d 49 2f 68 6f 6d 65 2f 64 LAGS = -I/home/d
0b00: 72 68 2f 74 63 6c 74 6b 2f 38 2e 33 68 70 75 78 rh/tcltk/8.3hpux
0b10: 0a 0a 23 23 23 23 20 4c 69 6e 6b 65 72 20 6f 70 ..#### Linker op
0b20: 74 69 6f 6e 73 20 6e 65 65 64 65 64 20 74 6f 20 tions needed to
0b30: 6c 69 6e 6b 20 61 67 61 69 6e 73 74 20 74 68 65 link against the
0b40: 20 54 43 4c 20 6c 69 62 72 61 72 79 2e 0a 23 0a TCL library..#.
0b50: 23 4c 49 42 54 43 4c 20 3d 20 2d 6c 74 63 6c 20 #LIBTCL = -ltcl
0b60: 2d 6c 6d 20 2d 6c 64 6c 0a 4c 49 42 54 43 4c 20 -lm -ldl.LIBTCL
0b70: 3d 20 2f 68 6f 6d 65 2f 64 72 68 2f 74 63 6c 74 = /home/drh/tclt
0b80: 6b 2f 38 2e 35 6c 69 6e 75 78 2f 6c 69 62 74 63 k/8.5linux/libtc
0b90: 6c 38 2e 35 67 2e 61 20 2d 6c 6d 20 2d 6c 64 6c l8.5g.a -lm -ldl
0ba0: 0a 23 4c 49 42 54 43 4c 20 3d 20 2f 68 6f 6d 65 .#LIBTCL = /home
0bb0: 2f 64 72 68 2f 74 63 6c 74 6b 2f 38 2e 35 77 69 /drh/tcltk/8.5wi
0bc0: 6e 2f 6c 69 62 74 63 6c 38 35 73 2e 61 20 2d 6c n/libtcl85s.a -l
0bd0: 6d 73 76 63 72 74 0a 23 4c 49 42 54 43 4c 20 3d msvcrt.#LIBTCL =
0be0: 20 2f 68 6f 6d 65 2f 64 72 68 2f 74 63 6c 74 6b /home/drh/tcltk
0bf0: 2f 38 2e 33 68 70 75 78 2f 6c 69 62 74 63 6c 38 /8.3hpux/libtcl8
0c00: 2e 33 2e 61 20 2d 6c 64 6c 64 20 2d 6c 6d 20 2d .3.a -ldld -lm -
0c10: 6c 63 0a 0a 23 23 23 23 20 41 64 64 69 74 69 6f lc..#### Additio
0c20: 6e 61 6c 20 6f 62 6a 65 63 74 73 20 66 6f 72 20 nal objects for
0c30: 53 51 4c 69 74 65 20 6c 69 62 72 61 72 79 20 77 SQLite library w
0c40: 68 65 6e 20 54 43 4c 20 73 75 70 70 6f 72 74 20 hen TCL support
0c50: 69 73 20 65 6e 61 62 6c 65 64 2e 0a 23 54 43 4c is enabled..#TCL
0c60: 4f 42 4a 20 3d 0a 54 43 4c 4f 42 4a 20 3d 20 74 OBJ =.TCLOBJ = t
0c70: 63 6c 73 71 6c 69 74 65 2e 6f 0a 0a 23 23 23 23 clsqlite.o..####
0c80: 20 43 6f 6d 70 69 6c 65 72 20 6f 70 74 69 6f 6e Compiler option
0c90: 73 20 6e 65 65 64 65 64 20 66 6f 72 20 70 72 6f s needed for pro
0ca0: 67 72 61 6d 73 20 74 68 61 74 20 75 73 65 20 74 grams that use t
0cb0: 68 65 20 72 65 61 64 6c 69 6e 65 28 29 20 6c 69 he readline() li
0cc0: 62 72 61 72 79 2e 0a 23 0a 52 45 41 44 4c 49 4e brary..#.READLIN
0cd0: 45 5f 46 4c 41 47 53 20 3d 0a 23 52 45 41 44 4c E_FLAGS =.#READL
0ce0: 49 4e 45 5f 46 4c 41 47 53 20 3d 20 2d 44 48 41 INE_FLAGS = -DHA
0cf0: 56 45 5f 52 45 41 44 4c 49 4e 45 3d 31 20 2d 49 VE_READLINE=1 -I
0d00: 2f 75 73 72 2f 69 6e 63 6c 75 64 65 2f 72 65 61 /usr/include/rea
0d10: 64 6c 69 6e 65 0a 0a 23 23 23 23 20 4c 69 6e 6b dline..#### Link
0d20: 65 72 20 6f 70 74 69 6f 6e 73 20 6e 65 65 64 65 er options neede
0d30: 64 20 62 79 20 70 72 6f 67 72 61 6d 73 20 75 73 d by programs us
0d40: 69 6e 67 20 72 65 61 64 6c 69 6e 65 28 29 20 6d ing readline() m
0d50: 75 73 74 20 6c 69 6e 6b 20 61 67 61 69 6e 73 74 ust link against
0d60: 2e 0a 23 0a 4c 49 42 52 45 41 44 4c 49 4e 45 20 ..#.LIBREADLINE
0d70: 3d 0a 23 4c 49 42 52 45 41 44 4c 49 4e 45 20 3d =.#LIBREADLINE =
0d80: 20 2d 73 74 61 74 69 63 20 2d 6c 72 65 61 64 6c -static -lreadl
0d90: 69 6e 65 20 2d 6c 74 65 72 6d 63 61 70 0a 0a 23 ine -ltermcap..#
0da0: 20 59 6f 75 20 73 68 6f 75 6c 64 20 6e 6f 74 20 You should not
0db0: 68 61 76 65 20 74 6f 20 63 68 61 6e 67 65 20 61 have to change a
0dc0: 6e 79 74 68 69 6e 67 20 62 65 6c 6f 77 20 74 68 nything below th
0dd0: 69 73 20 6c 69 6e 65 0a 23 23 23 23 23 23 23 23 is line.########
0de0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0df0: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0e00: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0e10: 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 23 ################
0e20: 23 23 23 23 23 23 23 0a 69 6e 63 6c 75 64 65 20 #######.include
0e30: 24 28 54 4f 50 29 2f 6d 61 69 6e 2e 6d 6b 0a $(TOP)/main.mk.