Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: third_party/sqlite/Makefile.linux-gcc

Issue 3108030: Move bundled copy of sqlite one level deeper to better separate it... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/sqlite/Makefile.in ('k') | third_party/sqlite/Makefile.vxworks » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/make
2 #
3 # Makefile for SQLITE
4 #
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".
12 #
13
14 #### The toplevel directory of the source tree. This is the directory
15 # that contains this "Makefile.in" and the "configure.in" script.
16 #
17 TOP = ..
18
19 #### C Compiler and options for use in building executables that
20 # will run on the platform that is doing the build.
21 #
22 BCC = gcc -g -O2
23 #BCC = /opt/ancic/bin/c89 -0
24
25 #### If the target operating system supports the "usleep()" system
26 # call, then define the HAVE_USLEEP macro for all C modules.
27 #
28 #USLEEP =
29 USLEEP = -DHAVE_USLEEP=1
30
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:
34 #
35 #THREADSAFE = -DTHREADSAFE=1
36 THREADSAFE = -DTHREADSAFE=1
37
38 #### Specify any extra linker options needed to make the library
39 # thread safe
40 #
41 #THREADLIB = -lpthread
42 THREADLIB = -lpthread
43
44 #### Specify any extra libraries needed to access required functions.
45 #
46 #TLIBS = -lrt # fdatasync on Solaris 8
47 TLIBS =
48
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.
52 #
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
56 #
57 #OPTS = -DSQLITE_DEBUG=2
58 #OPTS = -DSQLITE_DEBUG=1
59 #OPTS =
60
61 # These flags match those for SQLITE_CFLAGS in config.mk.
62
63 OPTS += -DNDEBUG
64 OPTS += -DSQLITE_CORE
65 OPTS += -DSQLITE_ENABLE_FTS1 -DSQLITE_ENABLE_BROKEN_FTS1
66 OPTS += -DSQLITE_ENABLE_FTS2 -DSQLITE_ENABLE_BROKEN_FTS2
67 OPTS += -DSQLITE_DEFAULT_FILE_PERMISSIONS=0600
68 OPTS += -DHAVE_USLEEP=1
69
70 # Additional SQLite tests.
71 OPTS += -DSQLITE_MEMDEBUG=1
72
73 # Don't include these ones, they break the SQLite tests.
74 # -DSQLITE_OMIT_ATTACH=1 \
75 # -DSQLITE_OMIT_LOAD_EXTENSION=1 \
76 # -DSQLITE_OMIT_VACUUM=1 \
77 # -DSQLITE_TRANSACTION_DEFAULT_IMMEDIATE=1 \
78
79 SHELL_ICU = $(TOP)/src/shell_icu_linux.c -licuuc
80
81 # TODO(shess) I can't see why I need this setting.
82 OPTS += -DOS_UNIX=1
83
84 #### The suffix to add to executable files. ".exe" for windows.
85 # Nothing for unix.
86 #
87 #EXE = .exe
88 EXE =
89
90 #### C Compile and options for use in building executables that
91 # will run on the target platform. This is usually the same
92 # as BCC, unless you are cross-compiling.
93 #
94 TCC = gcc -O6
95 #TCC = gcc -g -O0 -Wall
96 #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage
97 #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6
98 #TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive
99
100 #### Tools used to build a static library.
101 #
102 AR = ar cr
103 #AR = /opt/mingw/bin/i386-mingw32-ar cr
104 RANLIB = ranlib
105 #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib
106
107 MKSHLIB = gcc -shared
108 SO = so
109 SHPREFIX = lib
110 # SO = dll
111 # SHPREFIX =
112
113 #### Extra compiler options needed for programs that use the TCL library.
114 #
115 TCL_FLAGS = -I/usr/include/tcl8.4
116 #TCL_FLAGS = -DSTATIC_BUILD=1
117 #TCL_FLAGS = -I/home/drh/tcltk/8.4linux
118 #TCL_FLAGS = -I/home/drh/tcltk/8.4win -DSTATIC_BUILD=1
119 #TCL_FLAGS = -I/home/drh/tcltk/8.3hpux
120
121 #### Linker options needed to link against the TCL library.
122 #
123 LIBTCL = -ltcl8.4 -lm -ldl
124 #LIBTCL = /home/drh/tcltk/8.4linux/libtcl8.4g.a -lm -ldl
125 #LIBTCL = /home/drh/tcltk/8.4win/libtcl84s.a -lmsvcrt
126 #LIBTCL = /home/drh/tcltk/8.3hpux/libtcl8.3.a -ldld -lm -lc
127
128 #### Additional objects for SQLite library when TCL support is enabled.
129 #TCLOBJ =
130 TCLOBJ = tclsqlite.o
131
132 #### Compiler options needed for programs that use the readline() library.
133 #
134 READLINE_FLAGS =
135 #READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline
136
137 #### Linker options needed by programs using readline() must link against.
138 #
139 LIBREADLINE =
140 #LIBREADLINE = -static -lreadline -ltermcap
141
142 #### Which "awk" program provides nawk compatibilty
143 #
144 # NAWK = nawk
145 NAWK = awk
146
147 # You should not have to change anything below this line
148 ###############################################################################
149 include $(TOP)/main.mk
OLDNEW
« no previous file with comments | « third_party/sqlite/Makefile.in ('k') | third_party/sqlite/Makefile.vxworks » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698