5 # This is a template makefile for SQLite. Most people prefer to
6 # use the autoconf generated "configure" script to generate the
7 # makefile automatically. But that does not work for everybody
8 # and in every situation. If you are having problems with the
9 # "configure" script, you might want to try this makefile as an
10 # alternative. Create a copy of this file, edit the parameters
11 # below and type "make".
14 #### The toplevel directory of the source tree. This is the directory
15 # that contains this "Makefile.in" and the "configure.in" script.
19 #### C Compiler and options for use in building executables that
20 # will run on the platform that is doing the build.
23 #BCC = /opt/ancic/bin/c89 -0
25 #### If the target operating system supports the "usleep()" system
26 # call, then define the HAVE_USLEEP macro for all C modules.
29 USLEEP
= -DHAVE_USLEEP
=1
31 #### If you want the SQLite library to be safe for use within a
32 # multi-threaded program, then define the following macro
35 #THREADSAFE = -DTHREADSAFE=1
36 THREADSAFE
= -DTHREADSAFE
=1
38 #### Specify any extra linker options needed to make the library
41 #THREADLIB = -lpthread
44 #### Specify any extra libraries needed to access required functions.
46 #TLIBS = -lrt # fdatasync on Solaris 8
49 #### Leave SQLITE_DEBUG undefined for maximum speed. Use SQLITE_DEBUG=1
50 # to check for memory leaks. Use SQLITE_DEBUG=2 to print a log of all
51 # malloc()s and free()s in order to track down memory leaks.
53 # SQLite uses some expensive assert() statements in the inner loop.
54 # You can make the library go almost twice as fast if you compile
57 #OPTS = -DSQLITE_DEBUG=2
58 #OPTS = -DSQLITE_DEBUG=1
61 # These flags match those for SQLITE_CFLAGS in config.mk.
65 OPTS
+= -DSQLITE_ENABLE_FTS2
-DSQLITE_ENABLE_BROKEN_FTS2
66 OPTS
+= -DSQLITE_DEFAULT_FILE_PERMISSIONS
=0600
67 OPTS
+= -DHAVE_USLEEP
=1
69 # Additional SQLite tests.
70 OPTS
+= -DSQLITE_MEMDEBUG
=1
72 # Don't include these ones, they break the SQLite tests.
73 # -DSQLITE_OMIT_ATTACH=1 \
74 # -DSQLITE_OMIT_LOAD_EXTENSION=1 \
75 # -DSQLITE_OMIT_VACUUM=1 \
76 # -DSQLITE_TRANSACTION_DEFAULT_IMMEDIATE=1 \
78 SHELL_ICU
= $(TOP
)/src
/shell_icu_linux.c
-licuuc
80 # TODO(shess) I can't see why I need this setting.
83 #### The suffix to add to executable files. ".exe" for windows.
89 #### C Compile and options for use in building executables that
90 # will run on the target platform. This is usually the same
91 # as BCC, unless you are cross-compiling.
94 #TCC = gcc -g -O0 -Wall
95 #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
96 #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6
97 #TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive
99 #### Tools used to build a static library.
102 #AR = /opt/mingw/bin/i386-mingw32-ar cr
104 #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib
106 MKSHLIB
= gcc
-shared
112 #### Extra compiler options needed for programs that use the TCL library.
114 TCL_FLAGS
= -I
/usr
/include/tcl8.5
115 #TCL_FLAGS = -DSTATIC_BUILD=1
116 #TCL_FLAGS = -I/home/drh/tcltk/8.5linux
117 #TCL_FLAGS = -I/home/drh/tcltk/8.5win -DSTATIC_BUILD=1
118 #TCL_FLAGS = -I/home/drh/tcltk/8.3hpux
120 #### Linker options needed to link against the TCL library.
122 LIBTCL
= -ltcl8.5
-lm
-ldl
123 #LIBTCL = /home/drh/tcltk/8.5linux/libtcl8.5g.a -lm -ldl
124 #LIBTCL = /home/drh/tcltk/8.5win/libtcl85s.a -lmsvcrt
125 #LIBTCL = /home/drh/tcltk/8.3hpux/libtcl8.3.a -ldld -lm -lc
127 #### Additional objects for SQLite library when TCL support is enabled.
131 #### Compiler options needed for programs that use the readline() library.
134 #READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline
136 #### Linker options needed by programs using readline() must link against.
139 #LIBREADLINE = -static -lreadline -ltermcap
141 #### Which "awk" program provides nawk compatibilty
146 # You should not have to change anything below this line
147 ###############################################################################
148 include $(TOP
)/main.mk