[Author: zork]
[google-gears.git] / gears / third_party / sqlite_google / Makefile.linux-gcc
blob42aa03ade90155829bb6dc396cb8281c07513206
1 #!/usr/make
3 # Makefile for SQLITE
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.
17 TOP = ..
19 #### C Compiler and options for use in building executables that
20 # will run on the platform that is doing the build.
22 BCC = gcc -g -O2
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.
28 #USLEEP =
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
33 # appropriately:
35 #THREADSAFE = -DTHREADSAFE=1
36 THREADSAFE = -DTHREADSAFE=1
38 #### Specify any extra linker options needed to make the library
39 # thread safe
41 #THREADLIB = -lpthread
42 THREADLIB = -lpthread
44 #### Specify any extra libraries needed to access required functions.
46 #TLIBS = -lrt # fdatasync on Solaris 8
47 TLIBS =
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
55 # with -DNDEBUG=1
57 #OPTS = -DSQLITE_DEBUG=2
58 #OPTS = -DSQLITE_DEBUG=1
59 #OPTS =
61 # These flags match those for SQLITE_CFLAGS in config.mk.
63 OPTS += -DNDEBUG -DSQLITE_CORE -DSQLITE_ENABLE_FTS1 -DSQLITE_ENABLE_FTS2 \
64 -DSQLITE_DEFAULT_FILE_PERMISSIONS=0600
65 OPTS += -DHAVE_USLEEP=1
67 # Additional SQLite tests.
68 OPTS += -DSQLITE_MEMDEBUG=1
70 # Don't include these ones, they break the SQLite tests.
71 # -DSQLITE_OMIT_ATTACH=1 \
72 # -DSQLITE_OMIT_LOAD_EXTENSION=1 \
73 # -DSQLITE_OMIT_VACUUM=1 \
74 # -DSQLITE_TRANSACTION_DEFAULT_IMMEDIATE=1 \
76 # TODO(shess) I can't see why I need this setting.
77 OPTS += -DOS_UNIX=1
79 #### The suffix to add to executable files. ".exe" for windows.
80 # Nothing for unix.
82 #EXE = .exe
83 EXE =
85 #### C Compile and options for use in building executables that
86 # will run on the target platform. This is usually the same
87 # as BCC, unless you are cross-compiling.
89 TCC = gcc -O6
90 #TCC = gcc -g -O0 -Wall
91 #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
92 #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6
93 #TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive
95 #### Tools used to build a static library.
97 AR = ar cr
98 #AR = /opt/mingw/bin/i386-mingw32-ar cr
99 RANLIB = ranlib
100 #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib
102 MKSHLIB = gcc -shared
103 SO = so
104 SHPREFIX = lib
105 # SO = dll
106 # SHPREFIX =
108 #### Extra compiler options needed for programs that use the TCL library.
110 TCL_FLAGS = -I/usr/include/tcl8.4
111 #TCL_FLAGS = -DSTATIC_BUILD=1
112 #TCL_FLAGS = -I/home/drh/tcltk/8.4linux
113 #TCL_FLAGS = -I/home/drh/tcltk/8.4win -DSTATIC_BUILD=1
114 #TCL_FLAGS = -I/home/drh/tcltk/8.3hpux
116 #### Linker options needed to link against the TCL library.
118 LIBTCL = -ltcl8.4 -lm -ldl
119 #LIBTCL = /home/drh/tcltk/8.4linux/libtcl8.4g.a -lm -ldl
120 #LIBTCL = /home/drh/tcltk/8.4win/libtcl84s.a -lmsvcrt
121 #LIBTCL = /home/drh/tcltk/8.3hpux/libtcl8.3.a -ldld -lm -lc
123 #### Compiler options needed for programs that use the readline() library.
125 READLINE_FLAGS =
126 #READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline
128 #### Linker options needed by programs using readline() must link against.
130 LIBREADLINE =
131 #LIBREADLINE = -static -lreadline -ltermcap
133 #### Should the database engine assume text is coded as UTF-8 or iso8859?
135 # ENCODING = UTF8
136 ENCODING = ISO8859
139 #### Which "awk" program provides nawk compatibilty
141 # NAWK = nawk
142 NAWK = awk
144 # You should not have to change anything below this line
145 ###############################################################################
146 include $(TOP)/main.mk