drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 1 | #!/usr/make |
| 2 | # |
| 3 | # Makefile for SQLITE |
| 4 | # |
| 5 | # This makefile is suppose to be configured automatically using the |
| 6 | # autoconf. But if that does not work for you, you can configure |
| 7 | # the makefile manually. Just set the parameters below to values that |
| 8 | # work well for your system. |
| 9 | # |
| 10 | # If the configure script does not work out-of-the-box, you might |
| 11 | # be able to get it to work by giving it some hints. See the comment |
| 12 | # at the beginning of configure.in for additional information. |
| 13 | # |
| 14 | |
| 15 | # The toplevel directory of the source tree. This is the directory |
| 16 | # that contains this "Makefile.in" and the "configure.in" script. |
| 17 | # |
| 18 | TOP = @srcdir@ |
| 19 | |
| 20 | # C Compiler and options for use in building executables that |
| 21 | # will run on the platform that is doing the build. |
| 22 | # |
| 23 | BCC = @BUILD_CC@ @BUILD_CFLAGS@ |
| 24 | |
| 25 | # C Compile and options for use in building executables that |
| 26 | # will run on the target platform. (BCC and TCC are usually the |
| 27 | # same unless your are cross-compiling.) |
| 28 | # |
mlcreech | 98dc4b1 | 2008-03-06 16:28:58 +0000 | [diff] [blame] | 29 | TCC = @CC@ @CPPFLAGS@ @CFLAGS@ -I. -I${TOP}/src |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 30 | |
mlcreech | 1e12d43 | 2008-05-07 02:42:01 +0000 | [diff] [blame] | 31 | # Define this for the autoconf-based build, so that the code knows it can |
| 32 | # include the generated config.h |
| 33 | # |
| 34 | TCC += -D_HAVE_SQLITE_CONFIG_H |
| 35 | |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 36 | # Define -DNDEBUG to compile without debugging (i.e., for production usage) |
| 37 | # Omitting the define will cause extra debugging code to be inserted and |
| 38 | # includes extra comments when "EXPLAIN stmt" is used. |
| 39 | # |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 40 | TCC += @TARGET_DEBUG@ @XTHREADCONNECT@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 41 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 42 | # Compiler options needed for programs that use the TCL library. |
| 43 | # |
drh | 9346836 | 2004-12-10 03:08:12 +0000 | [diff] [blame] | 44 | TCC += @TCL_INCLUDE_SPEC@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 45 | |
| 46 | # The library that programs using TCL must link against. |
| 47 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 48 | LIBTCL = @TCL_LIB_SPEC@ @TCL_LIBS@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 49 | |
| 50 | # Compiler options needed for programs that use the readline() library. |
| 51 | # |
| 52 | READLINE_FLAGS = -DHAVE_READLINE=@TARGET_HAVE_READLINE@ @TARGET_READLINE_INC@ |
| 53 | |
| 54 | # The library that programs using readline() must link against. |
| 55 | # |
| 56 | LIBREADLINE = @TARGET_READLINE_LIBS@ |
| 57 | |
| 58 | # Should the database engine be compiled threadsafe |
| 59 | # |
drh | 5a3032b | 2007-09-03 16:12:09 +0000 | [diff] [blame] | 60 | TCC += -DSQLITE_THREADSAFE=@SQLITE_THREADSAFE@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 61 | |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 62 | # Do threads override each others locks by default (1), or do we test (-1) |
| 63 | # |
| 64 | TCC += -DSQLITE_THREAD_OVERRIDE_LOCK=@THREADSOVERRIDELOCKS@ |
| 65 | |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 66 | # Any target libraries which libsqlite must be linked against |
| 67 | # |
vapier | 7f19c02 | 2007-02-17 14:46:31 +0000 | [diff] [blame] | 68 | TLIBS = @LIBS@ |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 69 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 70 | # Flags controlling use of the in memory btree implementation |
| 71 | # |
danielk1977 | b06a0b6 | 2008-06-26 10:54:12 +0000 | [diff] [blame] | 72 | # SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 73 | # default to file, 2 to default to memory, and 3 to force temporary |
| 74 | # tables to always be in memory. |
| 75 | # |
danielk1977 | b06a0b6 | 2008-06-26 10:54:12 +0000 | [diff] [blame] | 76 | TEMP_STORE = -DSQLITE_TEMP_STORE=@TEMP_STORE@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 77 | |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 78 | # Enable/disable loadable extensions, and other optional features |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 79 | # based on configuration. (-DSQLITE_OMIT*, -DSQLITE_ENABLE*). |
| 80 | # The same set of OMIT and ENABLE flags should be passed to the |
| 81 | # LEMON parser generator and the mkkeywordhash tool as well. |
shane | fbedede | 2008-07-22 05:05:01 +0000 | [diff] [blame] | 82 | OPT_FEATURE_FLAGS = @OPT_FEATURE_FLAGS@ |
| 83 | |
| 84 | TCC += $(OPT_FEATURE_FLAGS) |
mlcreech | a4edab0 | 2008-03-06 04:14:17 +0000 | [diff] [blame] | 85 | |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 86 | # Add in any optional parameters specified on the make commane line |
| 87 | # ie. make "OPTS=-DSQLITE_ENABLE_FOO=1 -DSQLITE_OMIT_FOO=1". |
| 88 | TCC += $(OPTS) |
| 89 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 90 | # Version numbers and release number for the SQLite being compiled. |
| 91 | # |
| 92 | VERSION = @VERSION@ |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 93 | VERSION_NUMBER = @VERSION_NUMBER@ |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 94 | RELEASE = @RELEASE@ |
| 95 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 96 | # Filename extensions |
| 97 | # |
| 98 | BEXE = @BUILD_EXEEXT@ |
| 99 | TEXE = @TARGET_EXEEXT@ |
| 100 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 101 | # The following variable is "1" if the configure script was able to locate |
| 102 | # the tclConfig.sh file. It is an empty string otherwise. When this |
| 103 | # variable is "1", the TCL extension library (libtclsqlite3.so) is built |
| 104 | # and installed. |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 105 | # |
| 106 | HAVE_TCL = @HAVE_TCL@ |
| 107 | |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 108 | # This is the command to use for tclsh - normally just "tclsh", but we may |
| 109 | # know the specific version we want to use |
| 110 | # |
| 111 | TCLSH_CMD = @TCLSH_CMD@ |
| 112 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 113 | # The suffix used on shared libraries. Ex: ".dll", ".so", ".dylib" |
| 114 | # |
| 115 | SHLIB_SUFFIX = @TCL_SHLIB_SUFFIX@ |
| 116 | |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 117 | # If gcov support was enabled by the configure script, add the appropriate |
| 118 | # flags here. It's not always as easy as just having the user add the right |
| 119 | # CFLAGS / LDFLAGS, because libtool wants to use CFLAGS when linking, which |
| 120 | # causes build errors with -fprofile-arcs -ftest-coverage with some GCCs. |
| 121 | # Supposedly GCC does the right thing if you use --coverage, but in |
| 122 | # practice it still fails. See: |
| 123 | # |
| 124 | # http://www.mail-archive.com/debian-gcc@lists.debian.org/msg26197.html |
| 125 | # |
| 126 | # for more info. |
| 127 | # |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 128 | GCOV_CFLAGS1 = -DSQLITE_COVERAGE_TEST=1 -fprofile-arcs -ftest-coverage |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 129 | GCOV_LDFLAGS1 = -lgcov |
| 130 | USE_GCOV = @USE_GCOV@ |
| 131 | LTCOMPILE_EXTRAS += $(GCOV_CFLAGS$(USE_GCOV)) |
| 132 | LTLINK_EXTRAS += $(GCOV_LDFLAGS$(USE_GCOV)) |
| 133 | |
| 134 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 135 | # The directory into which to store package information for |
| 136 | |
| 137 | # Some standard variables and programs |
| 138 | # |
mlcreech | 3c080bc | 2008-03-07 02:20:56 +0000 | [diff] [blame] | 139 | prefix = @prefix@ |
| 140 | exec_prefix = @exec_prefix@ |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 141 | libdir = @libdir@ |
danielk1977 | 94bdf89 | 2008-08-04 04:28:18 +0000 | [diff] [blame] | 142 | pkgconfigdir = $(libdir)/pkgconfig |
mlcreech | c55771f | 2008-03-06 08:09:12 +0000 | [diff] [blame] | 143 | bindir = @bindir@ |
| 144 | includedir = @includedir@ |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 145 | INSTALL = @INSTALL@ |
| 146 | LIBTOOL = ./libtool |
| 147 | ALLOWRELEASE = @ALLOWRELEASE@ |
| 148 | |
| 149 | # libtool compile/link/install |
mlcreech | aac7b93 | 2008-04-01 02:45:22 +0000 | [diff] [blame] | 150 | LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(TCC) $(LTCOMPILE_EXTRAS) |
shane | b0650c2 | 2008-10-12 01:49:41 +0000 | [diff] [blame] | 151 | LTLINK = $(LIBTOOL) --mode=link $(TCC) $(LTCOMPILE_EXTRAS) @LDFLAGS@ $(LTLINK_EXTRAS) |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 152 | LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) |
| 153 | |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 154 | # nawk compatible awk. |
| 155 | NAWK = @AWK@ |
| 156 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 157 | # You should not have to change anything below this line |
| 158 | ############################################################################### |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 159 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 160 | # Object files for the SQLite library (non-amalgamation). |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 161 | # |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 162 | OBJS0 = alter.lo analyze.lo attach.lo auth.lo bitvec.lo btmutex.lo \ |
| 163 | btree.lo build.lo callback.lo complete.lo date.lo \ |
drh | 70a8ca3 | 2008-08-21 18:49:27 +0000 | [diff] [blame] | 164 | delete.lo expr.lo fault.lo func.lo global.lo \ |
pweilbacher | 87a0328 | 2008-08-22 17:28:45 +0000 | [diff] [blame] | 165 | hash.lo journal.lo insert.lo legacy.lo loadext.lo \ |
drh | d1370b6 | 2008-10-28 18:58:20 +0000 | [diff] [blame] | 166 | main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \ |
shane | 7b607a0 | 2008-11-04 21:51:03 +0000 | [diff] [blame] | 167 | memjournal.lo \ |
drh | 18472fa | 2008-10-07 15:25:48 +0000 | [diff] [blame] | 168 | mutex.lo mutex_noop.lo mutex_os2.lo mutex_unix.lo mutex_w32.lo \ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 169 | opcodes.lo os.lo os_unix.lo os_win.lo os_os2.lo \ |
danielk1977 | bc2ca9e | 2008-11-13 14:28:28 +0000 | [diff] [blame] | 170 | pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \ |
| 171 | random.lo resolve.lo select.lo status.lo \ |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 172 | table.lo tokenize.lo trigger.lo update.lo \ |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 173 | util.lo vacuum.lo \ |
| 174 | vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbefifo.lo vdbemem.lo \ |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 175 | walker.lo where.lo utf.lo vtab.lo |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 176 | |
| 177 | # Object files for the amalgamation. |
| 178 | # |
| 179 | OBJS1 = sqlite3.lo |
| 180 | |
| 181 | # Determine the real value of LIBOBJ based on the 'configure' script |
| 182 | # |
| 183 | USE_AMALGAMATION = @USE_AMALGAMATION@ |
| 184 | LIBOBJ = $(OBJS$(USE_AMALGAMATION)) |
| 185 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 186 | |
| 187 | # All of the source code files. |
| 188 | # |
| 189 | SRC = \ |
drh | d0e4a6c | 2005-02-15 20:47:57 +0000 | [diff] [blame] | 190 | $(TOP)/src/alter.c \ |
drh | 9f18e8a | 2005-07-08 12:13:04 +0000 | [diff] [blame] | 191 | $(TOP)/src/analyze.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 192 | $(TOP)/src/attach.c \ |
| 193 | $(TOP)/src/auth.c \ |
mlcreech | e0414bb | 2008-02-26 03:45:59 +0000 | [diff] [blame] | 194 | $(TOP)/src/bitvec.c \ |
drh | 900b31e | 2007-08-28 02:27:51 +0000 | [diff] [blame] | 195 | $(TOP)/src/btmutex.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 196 | $(TOP)/src/btree.c \ |
| 197 | $(TOP)/src/btree.h \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 198 | $(TOP)/src/btreeInt.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 199 | $(TOP)/src/build.c \ |
danielk1977 | fd9a0a4 | 2005-05-24 12:01:00 +0000 | [diff] [blame] | 200 | $(TOP)/src/callback.c \ |
drh | a2b902d | 2005-08-14 17:53:20 +0000 | [diff] [blame] | 201 | $(TOP)/src/complete.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 202 | $(TOP)/src/date.c \ |
| 203 | $(TOP)/src/delete.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 204 | $(TOP)/src/expr.c \ |
drh | 643167f | 2008-01-22 21:30:53 +0000 | [diff] [blame] | 205 | $(TOP)/src/fault.c \ |
drh | 70a8ca3 | 2008-08-21 18:49:27 +0000 | [diff] [blame] | 206 | $(TOP)/src/func.c \ |
drh | 40257ff | 2008-06-13 18:24:27 +0000 | [diff] [blame] | 207 | $(TOP)/src/global.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 208 | $(TOP)/src/hash.c \ |
| 209 | $(TOP)/src/hash.h \ |
shane | 9bcbdad | 2008-05-29 20:22:37 +0000 | [diff] [blame] | 210 | $(TOP)/src/hwtime.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 211 | $(TOP)/src/insert.c \ |
drh | 4bfc8a9 | 2007-08-27 23:38:43 +0000 | [diff] [blame] | 212 | $(TOP)/src/journal.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 213 | $(TOP)/src/legacy.c \ |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 214 | $(TOP)/src/loadext.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 215 | $(TOP)/src/main.c \ |
drh | 9e91c75 | 2007-05-07 13:11:10 +0000 | [diff] [blame] | 216 | $(TOP)/src/malloc.c \ |
drh | d1370b6 | 2008-10-28 18:58:20 +0000 | [diff] [blame] | 217 | $(TOP)/src/mem0.c \ |
drh | 4bfc8a9 | 2007-08-27 23:38:43 +0000 | [diff] [blame] | 218 | $(TOP)/src/mem1.c \ |
| 219 | $(TOP)/src/mem2.c \ |
drh | 9c7a60d | 2007-10-19 17:47:24 +0000 | [diff] [blame] | 220 | $(TOP)/src/mem3.c \ |
mlcreech | fcfe27d | 2008-03-02 05:34:10 +0000 | [diff] [blame] | 221 | $(TOP)/src/mem5.c \ |
danielk1977 | 6553c5c | 2008-10-21 04:30:31 +0000 | [diff] [blame] | 222 | $(TOP)/src/memjournal.c \ |
drh | 4bfc8a9 | 2007-08-27 23:38:43 +0000 | [diff] [blame] | 223 | $(TOP)/src/mutex.c \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 224 | $(TOP)/src/mutex.h \ |
drh | 18472fa | 2008-10-07 15:25:48 +0000 | [diff] [blame] | 225 | $(TOP)/src/mutex_noop.c \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 226 | $(TOP)/src/mutex_os2.c \ |
| 227 | $(TOP)/src/mutex_unix.c \ |
| 228 | $(TOP)/src/mutex_w32.c \ |
drh | 054889e | 2005-11-30 03:20:31 +0000 | [diff] [blame] | 229 | $(TOP)/src/os.c \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 230 | $(TOP)/src/os.h \ |
| 231 | $(TOP)/src/os_common.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 232 | $(TOP)/src/os_unix.c \ |
| 233 | $(TOP)/src/os_win.c \ |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 234 | $(TOP)/src/os_os2.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 235 | $(TOP)/src/pager.c \ |
| 236 | $(TOP)/src/pager.h \ |
| 237 | $(TOP)/src/parse.y \ |
danielk1977 | 8c0a791 | 2008-08-20 14:49:23 +0000 | [diff] [blame] | 238 | $(TOP)/src/pcache.c \ |
| 239 | $(TOP)/src/pcache.h \ |
danielk1977 | bc2ca9e | 2008-11-13 14:28:28 +0000 | [diff] [blame] | 240 | $(TOP)/src/pcache1.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 241 | $(TOP)/src/pragma.c \ |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 242 | $(TOP)/src/prepare.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 243 | $(TOP)/src/printf.c \ |
| 244 | $(TOP)/src/random.c \ |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 245 | $(TOP)/src/resolve.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 246 | $(TOP)/src/select.c \ |
drh | f714199 | 2008-06-19 00:16:08 +0000 | [diff] [blame] | 247 | $(TOP)/src/status.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 248 | $(TOP)/src/shell.c \ |
| 249 | $(TOP)/src/sqlite.h.in \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 250 | $(TOP)/src/sqlite3ext.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 251 | $(TOP)/src/sqliteInt.h \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 252 | $(TOP)/src/sqliteLimit.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 253 | $(TOP)/src/table.c \ |
| 254 | $(TOP)/src/tclsqlite.c \ |
| 255 | $(TOP)/src/tokenize.c \ |
| 256 | $(TOP)/src/trigger.c \ |
| 257 | $(TOP)/src/utf.c \ |
| 258 | $(TOP)/src/update.c \ |
| 259 | $(TOP)/src/util.c \ |
| 260 | $(TOP)/src/vacuum.c \ |
| 261 | $(TOP)/src/vdbe.c \ |
| 262 | $(TOP)/src/vdbe.h \ |
| 263 | $(TOP)/src/vdbeapi.c \ |
| 264 | $(TOP)/src/vdbeaux.c \ |
danielk1977 | 6338c76 | 2007-05-17 16:38:30 +0000 | [diff] [blame] | 265 | $(TOP)/src/vdbeblob.c \ |
drh | a01f79d | 2005-07-08 13:07:59 +0000 | [diff] [blame] | 266 | $(TOP)/src/vdbefifo.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 267 | $(TOP)/src/vdbemem.c \ |
| 268 | $(TOP)/src/vdbeInt.h \ |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 269 | $(TOP)/src/vtab.c \ |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 270 | $(TOP)/src/walker.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 271 | $(TOP)/src/where.c |
| 272 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 273 | # Generated source code files |
| 274 | # |
| 275 | SRC += \ |
| 276 | keywordhash.h \ |
| 277 | opcodes.c \ |
| 278 | opcodes.h \ |
| 279 | parse.c \ |
| 280 | parse.h \ |
mlcreech | 2379706 | 2008-03-20 02:25:35 +0000 | [diff] [blame] | 281 | config.h \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 282 | sqlite3.h |
| 283 | |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 284 | # Source code for extensions |
| 285 | # |
| 286 | SRC += \ |
| 287 | $(TOP)/ext/fts1/fts1.c \ |
| 288 | $(TOP)/ext/fts1/fts1.h \ |
| 289 | $(TOP)/ext/fts1/fts1_hash.c \ |
| 290 | $(TOP)/ext/fts1/fts1_hash.h \ |
| 291 | $(TOP)/ext/fts1/fts1_porter.c \ |
| 292 | $(TOP)/ext/fts1/fts1_tokenizer.h \ |
| 293 | $(TOP)/ext/fts1/fts1_tokenizer1.c |
mlcreech | 47524b8 | 2008-03-02 05:40:05 +0000 | [diff] [blame] | 294 | SRC += \ |
| 295 | $(TOP)/ext/fts2/fts2.c \ |
| 296 | $(TOP)/ext/fts2/fts2.h \ |
| 297 | $(TOP)/ext/fts2/fts2_hash.c \ |
| 298 | $(TOP)/ext/fts2/fts2_hash.h \ |
| 299 | $(TOP)/ext/fts2/fts2_icu.c \ |
| 300 | $(TOP)/ext/fts2/fts2_porter.c \ |
| 301 | $(TOP)/ext/fts2/fts2_tokenizer.h \ |
| 302 | $(TOP)/ext/fts2/fts2_tokenizer.c \ |
| 303 | $(TOP)/ext/fts2/fts2_tokenizer1.c |
| 304 | SRC += \ |
| 305 | $(TOP)/ext/fts3/fts3.c \ |
| 306 | $(TOP)/ext/fts3/fts3.h \ |
| 307 | $(TOP)/ext/fts3/fts3_hash.c \ |
| 308 | $(TOP)/ext/fts3/fts3_hash.h \ |
| 309 | $(TOP)/ext/fts3/fts3_icu.c \ |
| 310 | $(TOP)/ext/fts3/fts3_porter.c \ |
| 311 | $(TOP)/ext/fts3/fts3_tokenizer.h \ |
| 312 | $(TOP)/ext/fts3/fts3_tokenizer.c \ |
| 313 | $(TOP)/ext/fts3/fts3_tokenizer1.c |
| 314 | SRC += \ |
danielk1977 | 1c82665 | 2008-09-08 08:08:09 +0000 | [diff] [blame] | 315 | $(TOP)/ext/icu/sqliteicu.h \ |
mlcreech | 47524b8 | 2008-03-02 05:40:05 +0000 | [diff] [blame] | 316 | $(TOP)/ext/icu/icu.c |
shane | ca57b87 | 2008-05-28 17:31:17 +0000 | [diff] [blame] | 317 | SRC += \ |
| 318 | $(TOP)/ext/rtree/rtree.h \ |
| 319 | $(TOP)/ext/rtree/rtree.c |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 320 | |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 321 | # Source code to the library files needed by the test fixture |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 322 | # |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 323 | TESTSRC2 = \ |
drh | d33991c | 2007-09-03 22:15:45 +0000 | [diff] [blame] | 324 | $(TOP)/src/attach.c \ |
mlcreech | e0414bb | 2008-02-26 03:45:59 +0000 | [diff] [blame] | 325 | $(TOP)/src/bitvec.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 326 | $(TOP)/src/btree.c \ |
drh | d33991c | 2007-09-03 22:15:45 +0000 | [diff] [blame] | 327 | $(TOP)/src/build.c \ |
drh | 6c62608 | 2004-11-14 21:56:29 +0000 | [diff] [blame] | 328 | $(TOP)/src/date.c \ |
drh | d33991c | 2007-09-03 22:15:45 +0000 | [diff] [blame] | 329 | $(TOP)/src/expr.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 330 | $(TOP)/src/func.c \ |
drh | 3f400ea | 2007-04-02 22:19:38 +0000 | [diff] [blame] | 331 | $(TOP)/src/insert.c \ |
drh | a315289 | 2007-05-05 11:48:52 +0000 | [diff] [blame] | 332 | $(TOP)/src/malloc.c \ |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 333 | $(TOP)/src/os.c \ |
drh | 3225007 | 2006-08-13 21:49:07 +0000 | [diff] [blame] | 334 | $(TOP)/src/os_os2.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 335 | $(TOP)/src/os_unix.c \ |
| 336 | $(TOP)/src/os_win.c \ |
| 337 | $(TOP)/src/pager.c \ |
danielk1977 | 8c0a791 | 2008-08-20 14:49:23 +0000 | [diff] [blame] | 338 | $(TOP)/src/pcache.c \ |
danielk1977 | bc2ca9e | 2008-11-13 14:28:28 +0000 | [diff] [blame] | 339 | $(TOP)/src/pcache1.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 340 | $(TOP)/src/pragma.c \ |
drh | d33991c | 2007-09-03 22:15:45 +0000 | [diff] [blame] | 341 | $(TOP)/src/prepare.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 342 | $(TOP)/src/printf.c \ |
drh | 643167f | 2008-01-22 21:30:53 +0000 | [diff] [blame] | 343 | $(TOP)/src/random.c \ |
drh | d33991c | 2007-09-03 22:15:45 +0000 | [diff] [blame] | 344 | $(TOP)/src/select.c \ |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 345 | $(TOP)/src/tokenize.c \ |
| 346 | $(TOP)/src/utf.c \ |
| 347 | $(TOP)/src/util.c \ |
| 348 | $(TOP)/src/vdbe.c \ |
| 349 | $(TOP)/src/vdbeapi.c \ |
| 350 | $(TOP)/src/vdbeaux.c \ |
| 351 | $(TOP)/src/vdbemem.c \ |
| 352 | $(TOP)/src/where.c \ |
| 353 | parse.c |
| 354 | |
| 355 | # Source code to the actual test files. |
| 356 | # |
| 357 | TESTSRC = \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 358 | $(TOP)/src/test1.c \ |
| 359 | $(TOP)/src/test2.c \ |
| 360 | $(TOP)/src/test3.c \ |
| 361 | $(TOP)/src/test4.c \ |
| 362 | $(TOP)/src/test5.c \ |
drh | 9c06c95 | 2005-11-26 00:25:00 +0000 | [diff] [blame] | 363 | $(TOP)/src/test6.c \ |
drh | 7910e76 | 2006-01-09 23:50:11 +0000 | [diff] [blame] | 364 | $(TOP)/src/test7.c \ |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 365 | $(TOP)/src/test8.c \ |
danielk1977 | a713f2c | 2007-03-29 12:19:11 +0000 | [diff] [blame] | 366 | $(TOP)/src/test9.c \ |
drh | 1409be6 | 2006-08-23 20:07:20 +0000 | [diff] [blame] | 367 | $(TOP)/src/test_autoext.c \ |
drh | 7910e76 | 2006-01-09 23:50:11 +0000 | [diff] [blame] | 368 | $(TOP)/src/test_async.c \ |
drh | 16a9b83 | 2007-05-05 18:39:25 +0000 | [diff] [blame] | 369 | $(TOP)/src/test_btree.c \ |
drh | c797d4d | 2007-05-08 01:08:49 +0000 | [diff] [blame] | 370 | $(TOP)/src/test_config.c \ |
danielk1977 | bf26097 | 2008-01-22 11:50:13 +0000 | [diff] [blame] | 371 | $(TOP)/src/test_devsym.c \ |
drh | 984bfaa | 2008-03-19 16:08:53 +0000 | [diff] [blame] | 372 | $(TOP)/src/test_func.c \ |
drh | 1592659 | 2007-04-06 15:02:13 +0000 | [diff] [blame] | 373 | $(TOP)/src/test_hexio.c \ |
drh | 4bfc8a9 | 2007-08-27 23:38:43 +0000 | [diff] [blame] | 374 | $(TOP)/src/test_malloc.c \ |
drh | 2d02a67 | 2006-01-25 15:55:37 +0000 | [diff] [blame] | 375 | $(TOP)/src/test_md5.c \ |
shane | c6f66c5 | 2008-07-08 22:15:49 +0000 | [diff] [blame] | 376 | $(TOP)/src/test_mutex.c \ |
danielk1977 | 20e987a | 2007-10-05 15:04:12 +0000 | [diff] [blame] | 377 | $(TOP)/src/test_onefile.c \ |
mlcreech | ede2627 | 2008-04-13 23:13:39 +0000 | [diff] [blame] | 378 | $(TOP)/src/test_osinst.c \ |
danielk1977 | 954ce99 | 2006-06-15 15:59:19 +0000 | [diff] [blame] | 379 | $(TOP)/src/test_schema.c \ |
drh | 2d02a67 | 2006-01-25 15:55:37 +0000 | [diff] [blame] | 380 | $(TOP)/src/test_server.c \ |
drh | 4be8b51 | 2006-06-13 23:51:34 +0000 | [diff] [blame] | 381 | $(TOP)/src/test_tclvar.c \ |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 382 | $(TOP)/src/test_thread.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 383 | |
| 384 | # Header files used by all library source files. |
| 385 | # |
| 386 | HDR = \ |
| 387 | sqlite3.h \ |
| 388 | $(TOP)/src/btree.h \ |
drh | a315289 | 2007-05-05 11:48:52 +0000 | [diff] [blame] | 389 | $(TOP)/src/btreeInt.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 390 | $(TOP)/src/hash.h \ |
shane | 9bcbdad | 2008-05-29 20:22:37 +0000 | [diff] [blame] | 391 | $(TOP)/src/hwtime.h \ |
drh | c551dd8 | 2007-06-19 15:23:48 +0000 | [diff] [blame] | 392 | $(TOP)/src/sqliteLimit.h \ |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 393 | $(TOP)/src/mutex.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 394 | opcodes.h \ |
| 395 | $(TOP)/src/os.h \ |
| 396 | $(TOP)/src/os_common.h \ |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 397 | $(TOP)/src/sqlite3ext.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 398 | $(TOP)/src/sqliteInt.h \ |
| 399 | $(TOP)/src/vdbe.h \ |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 400 | $(TOP)/src/vdbeInt.h \ |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 401 | parse.h \ |
mlcreech | 2379706 | 2008-03-20 02:25:35 +0000 | [diff] [blame] | 402 | config.h |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 403 | |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 404 | # Header files used by extensions |
| 405 | # |
| 406 | HDR += \ |
| 407 | $(TOP)/ext/fts1/fts1.h \ |
| 408 | $(TOP)/ext/fts1/fts1_hash.h \ |
| 409 | $(TOP)/ext/fts1/fts1_tokenizer.h |
mlcreech | 47524b8 | 2008-03-02 05:40:05 +0000 | [diff] [blame] | 410 | HDR += \ |
| 411 | $(TOP)/ext/fts2/fts2.h \ |
| 412 | $(TOP)/ext/fts2/fts2_hash.h \ |
| 413 | $(TOP)/ext/fts2/fts2_tokenizer.h |
| 414 | HDR += \ |
| 415 | $(TOP)/ext/fts3/fts3.h \ |
| 416 | $(TOP)/ext/fts3/fts3_hash.h \ |
| 417 | $(TOP)/ext/fts3/fts3_tokenizer.h |
shane | ca57b87 | 2008-05-28 17:31:17 +0000 | [diff] [blame] | 418 | HDR += \ |
| 419 | $(TOP)/ext/rtree/rtree.h |
danielk1977 | 1c82665 | 2008-09-08 08:08:09 +0000 | [diff] [blame] | 420 | HDR += \ |
| 421 | $(TOP)/ext/icu/sqliteicu.h |
drh | 0c97940 | 2006-10-03 19:12:32 +0000 | [diff] [blame] | 422 | |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 423 | # If using the amalgamation, use sqlite3.c directly to build the test |
| 424 | # fixture. Otherwise link against libsqlite3.la. (This distinction is |
| 425 | # necessary because the test fixture requires non-API symbols which are |
| 426 | # hidden when the library is built via the amalgamation). |
| 427 | # |
| 428 | TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.la |
| 429 | TESTFIXTURE_SRC1 = sqlite3.c |
| 430 | TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c $(TESTFIXTURE_SRC$(USE_AMALGAMATION)) |
| 431 | |
| 432 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 433 | # This is the default Makefile target. The objects listed here |
| 434 | # are what get build when you type just "make" with no arguments. |
| 435 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 436 | all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 437 | |
| 438 | Makefile: $(TOP)/Makefile.in |
| 439 | ./config.status |
| 440 | |
| 441 | # Generate the file "last_change" which contains the date of change |
| 442 | # of the most recently modified source code file |
| 443 | # |
| 444 | last_change: $(SRC) |
drh | 0c07fb9 | 2006-06-27 20:05:23 +0000 | [diff] [blame] | 445 | cat $(SRC) | grep '$$Id: ' | sort -k 5 | tail -1 \ |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 446 | | $(NAWK) '{print $$5,$$6}' >last_change |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 447 | |
| 448 | libsqlite3.la: $(LIBOBJ) |
mlcreech | 1428b37 | 2008-03-13 23:28:22 +0000 | [diff] [blame] | 449 | $(LTLINK) -o $@ $(LIBOBJ) $(TLIBS) \ |
mlcreech | 289234c | 2008-03-13 19:55:20 +0000 | [diff] [blame] | 450 | ${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8" |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 451 | |
| 452 | libtclsqlite3.la: tclsqlite.lo libsqlite3.la |
mlcreech | 1428b37 | 2008-03-13 23:28:22 +0000 | [diff] [blame] | 453 | $(LTLINK) -o $@ tclsqlite.lo \ |
drh | 0fcf237 | 2008-07-25 12:49:44 +0000 | [diff] [blame] | 454 | libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \ |
mlcreech | 289234c | 2008-03-13 19:55:20 +0000 | [diff] [blame] | 455 | -rpath "$(libdir)/sqlite" \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 456 | -version-info "8:6:8" |
| 457 | |
drh | cbd2da9 | 2007-12-17 16:20:06 +0000 | [diff] [blame] | 458 | sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h |
mlcreech | c658b0f | 2008-03-09 02:20:11 +0000 | [diff] [blame] | 459 | $(LTLINK) $(READLINE_FLAGS) \ |
drh | c9a67a8 | 2007-12-13 18:20:46 +0000 | [diff] [blame] | 460 | -o $@ $(TOP)/src/shell.c libsqlite3.la \ |
mlcreech | 289234c | 2008-03-13 19:55:20 +0000 | [diff] [blame] | 461 | $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)" |
drh | c9a67a8 | 2007-12-13 18:20:46 +0000 | [diff] [blame] | 462 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 463 | # This target creates a directory named "tsrc" and fills it with |
| 464 | # copies of all of the C source code and header files needed to |
| 465 | # build on the target system. Some of the C source code and header |
| 466 | # files are automatically generated. This target takes care of |
| 467 | # all that automatic generation. |
| 468 | # |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 469 | .target_source: $(SRC) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 470 | rm -rf tsrc |
drh | d2f397f | 2004-09-17 20:47:16 +0000 | [diff] [blame] | 471 | mkdir -p tsrc |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 472 | cp $(SRC) tsrc |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 473 | rm tsrc/sqlite.h.in tsrc/parse.y |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 474 | touch .target_source |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 475 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 476 | sqlite3.c: .target_source $(TOP)/tool/mksqlite3c.tcl |
mlcreech | ab1c47b | 2008-03-09 02:51:10 +0000 | [diff] [blame] | 477 | $(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl |
drh | 93d5753 | 2007-04-05 18:34:58 +0000 | [diff] [blame] | 478 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 479 | # Rules to build the LEMON compiler generator |
| 480 | # |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 481 | lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c |
mlcreech | 1428b37 | 2008-03-13 23:28:22 +0000 | [diff] [blame] | 482 | $(BCC) -o $@ $(TOP)/tool/lemon.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 483 | cp $(TOP)/tool/lempar.c . |
| 484 | |
| 485 | |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 486 | # Rule to build the amalgamation |
| 487 | # |
| 488 | sqlite3.lo: sqlite3.c |
mlcreech | 88ef090 | 2008-03-19 23:15:37 +0000 | [diff] [blame] | 489 | $(LTCOMPILE) -c sqlite3.c |
mlcreech | 9498491 | 2008-03-04 19:03:08 +0000 | [diff] [blame] | 490 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 491 | # Rules to build individual files |
| 492 | # |
drh | d0e4a6c | 2005-02-15 20:47:57 +0000 | [diff] [blame] | 493 | alter.lo: $(TOP)/src/alter.c $(HDR) |
| 494 | $(LTCOMPILE) -c $(TOP)/src/alter.c |
| 495 | |
drh | 9f18e8a | 2005-07-08 12:13:04 +0000 | [diff] [blame] | 496 | analyze.lo: $(TOP)/src/analyze.c $(HDR) |
| 497 | $(LTCOMPILE) -c $(TOP)/src/analyze.c |
| 498 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 499 | attach.lo: $(TOP)/src/attach.c $(HDR) |
| 500 | $(LTCOMPILE) -c $(TOP)/src/attach.c |
| 501 | |
| 502 | auth.lo: $(TOP)/src/auth.c $(HDR) |
| 503 | $(LTCOMPILE) -c $(TOP)/src/auth.c |
| 504 | |
mlcreech | 5b9d867 | 2008-02-27 03:22:49 +0000 | [diff] [blame] | 505 | bitvec.lo: $(TOP)/src/bitvec.c $(HDR) |
| 506 | $(LTCOMPILE) -c $(TOP)/src/bitvec.c |
| 507 | |
drh | 900b31e | 2007-08-28 02:27:51 +0000 | [diff] [blame] | 508 | btmutex.lo: $(TOP)/src/btmutex.c $(HDR) |
| 509 | $(LTCOMPILE) -c $(TOP)/src/btmutex.c |
| 510 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 511 | btree.lo: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h |
| 512 | $(LTCOMPILE) -c $(TOP)/src/btree.c |
| 513 | |
| 514 | build.lo: $(TOP)/src/build.c $(HDR) |
| 515 | $(LTCOMPILE) -c $(TOP)/src/build.c |
| 516 | |
danielk1977 | fd9a0a4 | 2005-05-24 12:01:00 +0000 | [diff] [blame] | 517 | callback.lo: $(TOP)/src/callback.c $(HDR) |
| 518 | $(LTCOMPILE) -c $(TOP)/src/callback.c |
| 519 | |
drh | a2b902d | 2005-08-14 17:53:20 +0000 | [diff] [blame] | 520 | complete.lo: $(TOP)/src/complete.c $(HDR) |
| 521 | $(LTCOMPILE) -c $(TOP)/src/complete.c |
| 522 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 523 | date.lo: $(TOP)/src/date.c $(HDR) |
| 524 | $(LTCOMPILE) -c $(TOP)/src/date.c |
| 525 | |
| 526 | delete.lo: $(TOP)/src/delete.c $(HDR) |
| 527 | $(LTCOMPILE) -c $(TOP)/src/delete.c |
| 528 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 529 | expr.lo: $(TOP)/src/expr.c $(HDR) |
| 530 | $(LTCOMPILE) -c $(TOP)/src/expr.c |
| 531 | |
drh | 643167f | 2008-01-22 21:30:53 +0000 | [diff] [blame] | 532 | fault.lo: $(TOP)/src/fault.c $(HDR) |
| 533 | $(LTCOMPILE) -c $(TOP)/src/fault.c |
| 534 | |
drh | 70a8ca3 | 2008-08-21 18:49:27 +0000 | [diff] [blame] | 535 | func.lo: $(TOP)/src/func.c $(HDR) |
| 536 | $(LTCOMPILE) -c $(TOP)/src/func.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 537 | |
drh | 40257ff | 2008-06-13 18:24:27 +0000 | [diff] [blame] | 538 | global.lo: $(TOP)/src/global.c $(HDR) |
| 539 | $(LTCOMPILE) -c $(TOP)/src/global.c |
| 540 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 541 | hash.lo: $(TOP)/src/hash.c $(HDR) |
| 542 | $(LTCOMPILE) -c $(TOP)/src/hash.c |
| 543 | |
| 544 | insert.lo: $(TOP)/src/insert.c $(HDR) |
| 545 | $(LTCOMPILE) -c $(TOP)/src/insert.c |
| 546 | |
drh | 4bfc8a9 | 2007-08-27 23:38:43 +0000 | [diff] [blame] | 547 | journal.lo: $(TOP)/src/journal.c $(HDR) |
| 548 | $(LTCOMPILE) -c $(TOP)/src/journal.c |
| 549 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 550 | legacy.lo: $(TOP)/src/legacy.c $(HDR) |
| 551 | $(LTCOMPILE) -c $(TOP)/src/legacy.c |
| 552 | |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 553 | loadext.lo: $(TOP)/src/loadext.c $(HDR) |
| 554 | $(LTCOMPILE) -c $(TOP)/src/loadext.c |
| 555 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 556 | main.lo: $(TOP)/src/main.c $(HDR) |
| 557 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/main.c |
| 558 | |
drh | a315289 | 2007-05-05 11:48:52 +0000 | [diff] [blame] | 559 | malloc.lo: $(TOP)/src/malloc.c $(HDR) |
| 560 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/malloc.c |
| 561 | |
drh | d1370b6 | 2008-10-28 18:58:20 +0000 | [diff] [blame] | 562 | mem0.lo: $(TOP)/src/mem0.c $(HDR) |
| 563 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem0.c |
| 564 | |
drh | 4bfc8a9 | 2007-08-27 23:38:43 +0000 | [diff] [blame] | 565 | mem1.lo: $(TOP)/src/mem1.c $(HDR) |
| 566 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem1.c |
| 567 | |
| 568 | mem2.lo: $(TOP)/src/mem2.c $(HDR) |
| 569 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem2.c |
| 570 | |
drh | 9c7a60d | 2007-10-19 17:47:24 +0000 | [diff] [blame] | 571 | mem3.lo: $(TOP)/src/mem3.c $(HDR) |
| 572 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem3.c |
| 573 | |
mlcreech | fcfe27d | 2008-03-02 05:34:10 +0000 | [diff] [blame] | 574 | mem5.lo: $(TOP)/src/mem5.c $(HDR) |
| 575 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem5.c |
| 576 | |
danielk1977 | 6553c5c | 2008-10-21 04:30:31 +0000 | [diff] [blame] | 577 | memjournal.lo: $(TOP)/src/memjournal.c $(HDR) |
| 578 | $(LTCOMPILE) -c $(TOP)/src/memjournal.c |
| 579 | |
drh | 4bfc8a9 | 2007-08-27 23:38:43 +0000 | [diff] [blame] | 580 | mutex.lo: $(TOP)/src/mutex.c $(HDR) |
| 581 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex.c |
| 582 | |
drh | 18472fa | 2008-10-07 15:25:48 +0000 | [diff] [blame] | 583 | mutex_noop.lo: $(TOP)/src/mutex_noop.c $(HDR) |
| 584 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_noop.c |
| 585 | |
drh | 437b901 | 2007-08-28 16:34:42 +0000 | [diff] [blame] | 586 | mutex_os2.lo: $(TOP)/src/mutex_os2.c $(HDR) |
| 587 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_os2.c |
| 588 | |
| 589 | mutex_unix.lo: $(TOP)/src/mutex_unix.c $(HDR) |
| 590 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_unix.c |
| 591 | |
| 592 | mutex_w32.lo: $(TOP)/src/mutex_w32.c $(HDR) |
| 593 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_w32.c |
| 594 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 595 | pager.lo: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h |
| 596 | $(LTCOMPILE) -c $(TOP)/src/pager.c |
| 597 | |
danielk1977 | 8c0a791 | 2008-08-20 14:49:23 +0000 | [diff] [blame] | 598 | pcache.lo: $(TOP)/src/pcache.c $(HDR) $(TOP)/src/pcache.h |
| 599 | $(LTCOMPILE) -c $(TOP)/src/pcache.c |
| 600 | |
danielk1977 | bc2ca9e | 2008-11-13 14:28:28 +0000 | [diff] [blame] | 601 | pcache1.lo: $(TOP)/src/pcache1.c $(HDR) $(TOP)/src/pcache.h |
| 602 | $(LTCOMPILE) -c $(TOP)/src/pcache1.c |
| 603 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 604 | opcodes.lo: opcodes.c |
| 605 | $(LTCOMPILE) -c opcodes.c |
| 606 | |
drh | b327f77 | 2004-10-06 15:03:57 +0000 | [diff] [blame] | 607 | opcodes.c: opcodes.h $(TOP)/mkopcodec.awk |
drh | 0c07fb9 | 2006-06-27 20:05:23 +0000 | [diff] [blame] | 608 | sort -n -b -k 3 opcodes.h | $(NAWK) -f $(TOP)/mkopcodec.awk >opcodes.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 609 | |
drh | f2bc013 | 2004-10-04 13:19:23 +0000 | [diff] [blame] | 610 | opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 611 | cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes.h |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 612 | |
drh | 054889e | 2005-11-30 03:20:31 +0000 | [diff] [blame] | 613 | os.lo: $(TOP)/src/os.c $(HDR) |
| 614 | $(LTCOMPILE) -c $(TOP)/src/os.c |
| 615 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 616 | os_unix.lo: $(TOP)/src/os_unix.c $(HDR) |
drh | cf5f58f | 2005-06-16 18:47:38 +0000 | [diff] [blame] | 617 | $(LTCOMPILE) -c $(TOP)/src/os_unix.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 618 | |
| 619 | os_win.lo: $(TOP)/src/os_win.c $(HDR) |
drh | cf5f58f | 2005-06-16 18:47:38 +0000 | [diff] [blame] | 620 | $(LTCOMPILE) -c $(TOP)/src/os_win.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 621 | |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 622 | os_os2.lo: $(TOP)/src/os_os2.c $(HDR) |
| 623 | $(LTCOMPILE) -c $(TOP)/src/os_os2.c |
| 624 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 625 | parse.lo: parse.c $(HDR) |
| 626 | $(LTCOMPILE) -c parse.c |
| 627 | |
| 628 | parse.h: parse.c |
| 629 | |
drh | fa3b19e | 2005-11-24 22:22:29 +0000 | [diff] [blame] | 630 | parse.c: $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/addopcodes.awk |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 631 | cp $(TOP)/src/parse.y . |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 632 | ./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y |
drh | fa3b19e | 2005-11-24 22:22:29 +0000 | [diff] [blame] | 633 | mv parse.h parse.h.temp |
drh | d3067e8 | 2007-06-20 16:20:36 +0000 | [diff] [blame] | 634 | $(NAWK) -f $(TOP)/addopcodes.awk parse.h.temp >parse.h |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 635 | |
| 636 | pragma.lo: $(TOP)/src/pragma.c $(HDR) |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 637 | $(LTCOMPILE) -c $(TOP)/src/pragma.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 638 | |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 639 | prepare.lo: $(TOP)/src/prepare.c $(HDR) |
| 640 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/prepare.c |
| 641 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 642 | printf.lo: $(TOP)/src/printf.c $(HDR) |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 643 | $(LTCOMPILE) -c $(TOP)/src/printf.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 644 | |
| 645 | random.lo: $(TOP)/src/random.c $(HDR) |
| 646 | $(LTCOMPILE) -c $(TOP)/src/random.c |
| 647 | |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 648 | resolve.lo: $(TOP)/src/resolve.c $(HDR) |
| 649 | $(LTCOMPILE) -c $(TOP)/src/resolve.c |
| 650 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 651 | select.lo: $(TOP)/src/select.c $(HDR) |
| 652 | $(LTCOMPILE) -c $(TOP)/src/select.c |
| 653 | |
drh | f714199 | 2008-06-19 00:16:08 +0000 | [diff] [blame] | 654 | status.lo: $(TOP)/src/status.c $(HDR) |
| 655 | $(LTCOMPILE) -c $(TOP)/src/status.c |
| 656 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 657 | sqlite3.h: $(TOP)/src/sqlite.h.in |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 658 | sed -e s/--VERS--/$(RELEASE)/ $(TOP)/src/sqlite.h.in | \ |
| 659 | sed -e s/--VERSION-NUMBER--/$(VERSION_NUMBER)/ >sqlite3.h |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 660 | |
| 661 | table.lo: $(TOP)/src/table.c $(HDR) |
| 662 | $(LTCOMPILE) -c $(TOP)/src/table.c |
| 663 | |
| 664 | tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR) |
drh | a17378c | 2008-07-25 12:39:23 +0000 | [diff] [blame] | 665 | $(LTCOMPILE) -DUSE_TCL_STUBS=1 -c $(TOP)/src/tclsqlite.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 666 | |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 667 | tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 668 | $(LTCOMPILE) -c $(TOP)/src/tokenize.c |
| 669 | |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 670 | keywordhash.h: $(TOP)/tool/mkkeywordhash.c |
shane | b1cd730 | 2008-10-22 18:27:31 +0000 | [diff] [blame] | 671 | $(BCC) -o mkkeywordhash$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)/tool/mkkeywordhash.c |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 672 | ./mkkeywordhash$(BEXE) >keywordhash.h |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 673 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 674 | trigger.lo: $(TOP)/src/trigger.c $(HDR) |
| 675 | $(LTCOMPILE) -c $(TOP)/src/trigger.c |
| 676 | |
| 677 | update.lo: $(TOP)/src/update.c $(HDR) |
| 678 | $(LTCOMPILE) -c $(TOP)/src/update.c |
| 679 | |
| 680 | utf.lo: $(TOP)/src/utf.c $(HDR) |
| 681 | $(LTCOMPILE) -c $(TOP)/src/utf.c |
| 682 | |
| 683 | util.lo: $(TOP)/src/util.c $(HDR) |
| 684 | $(LTCOMPILE) -c $(TOP)/src/util.c |
| 685 | |
| 686 | vacuum.lo: $(TOP)/src/vacuum.c $(HDR) |
| 687 | $(LTCOMPILE) -c $(TOP)/src/vacuum.c |
| 688 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 689 | vdbe.lo: $(TOP)/src/vdbe.c $(HDR) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 690 | $(LTCOMPILE) -c $(TOP)/src/vdbe.c |
| 691 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 692 | vdbeapi.lo: $(TOP)/src/vdbeapi.c $(HDR) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 693 | $(LTCOMPILE) -c $(TOP)/src/vdbeapi.c |
| 694 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 695 | vdbeaux.lo: $(TOP)/src/vdbeaux.c $(HDR) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 696 | $(LTCOMPILE) -c $(TOP)/src/vdbeaux.c |
| 697 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 698 | vdbeblob.lo: $(TOP)/src/vdbeblob.c $(HDR) |
danielk1977 | 6338c76 | 2007-05-17 16:38:30 +0000 | [diff] [blame] | 699 | $(LTCOMPILE) -c $(TOP)/src/vdbeblob.c |
| 700 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 701 | vdbefifo.lo: $(TOP)/src/vdbefifo.c $(HDR) |
drh | a01f79d | 2005-07-08 13:07:59 +0000 | [diff] [blame] | 702 | $(LTCOMPILE) -c $(TOP)/src/vdbefifo.c |
| 703 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 704 | vdbemem.lo: $(TOP)/src/vdbemem.c $(HDR) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 705 | $(LTCOMPILE) -c $(TOP)/src/vdbemem.c |
| 706 | |
mlcreech | eb6dc14 | 2008-03-13 18:28:03 +0000 | [diff] [blame] | 707 | vtab.lo: $(TOP)/src/vtab.c $(HDR) |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 708 | $(LTCOMPILE) -c $(TOP)/src/vtab.c |
| 709 | |
drh | 7d10d5a | 2008-08-20 16:35:10 +0000 | [diff] [blame] | 710 | walker.lo: $(TOP)/src/walker.c $(HDR) |
| 711 | $(LTCOMPILE) -c $(TOP)/src/walker.c |
| 712 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 713 | where.lo: $(TOP)/src/where.c $(HDR) |
| 714 | $(LTCOMPILE) -c $(TOP)/src/where.c |
| 715 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 716 | tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR) |
| 717 | $(LTCOMPILE) -DTCLSH=1 -o $@ -c $(TOP)/src/tclsqlite.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 718 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 719 | tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR) |
| 720 | $(LTCOMPILE) -DTCL_USE_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c |
| 721 | |
mlcreech | 1428b37 | 2008-03-13 23:28:22 +0000 | [diff] [blame] | 722 | tclsqlite3$(TEXE): tclsqlite-shell.lo libsqlite3.la |
| 723 | $(LTLINK) -o $@ tclsqlite-shell.lo \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 724 | libsqlite3.la $(LIBTCL) |
| 725 | |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 726 | testfixture$(TEXE): $(TESTFIXTURE_SRC) |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 727 | $(LTLINK) -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_NO_SYNC=1\ |
| 728 | -DSQLITE_CRASH_TEST=1 \ |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 729 | -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE $(TEMP_STORE) \ |
drh | 866108f | 2008-05-13 00:57:21 +0000 | [diff] [blame] | 730 | -o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 731 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 732 | |
drh | 9c06c95 | 2005-11-26 00:25:00 +0000 | [diff] [blame] | 733 | fulltest: testfixture$(TEXE) sqlite3$(TEXE) |
mlcreech | 1428b37 | 2008-03-13 23:28:22 +0000 | [diff] [blame] | 734 | ./testfixture$(TEXE) $(TOP)/test/all.test |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 735 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 736 | test: testfixture$(TEXE) sqlite3$(TEXE) |
danielk1977 | ff3c898 | 2008-06-25 17:54:53 +0000 | [diff] [blame] | 737 | ./testfixture$(TEXE) $(TOP)/test/veryquick.test |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 738 | |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 739 | sqlite3_analyzer$(TEXE): $(TESTFIXTURE_SRC) $(TOP)/tool/spaceanal.tcl |
drh | 61212b6 | 2004-12-02 20:17:00 +0000 | [diff] [blame] | 740 | sed \ |
| 741 | -e '/^#/d' \ |
| 742 | -e 's,\\,\\\\,g' \ |
| 743 | -e 's,",\\",g' \ |
| 744 | -e 's,^,",' \ |
| 745 | -e 's,$$,\\n",' \ |
| 746 | $(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h |
mlcreech | 969b2cd | 2008-03-14 04:11:03 +0000 | [diff] [blame] | 747 | $(LTLINK) -DTCLSH=2 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 \ |
| 748 | -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE \ |
| 749 | $(TEMP_STORE) -o $@ $(TESTFIXTURE_SRC) $(LIBTCL) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 750 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 751 | |
drh | afbd06b | 2007-12-01 09:32:53 +0000 | [diff] [blame] | 752 | install: sqlite3$(BEXE) libsqlite3.la sqlite3.h ${HAVE_TCL:1=tcl_install} |
drh | 8d45ec0 | 2004-09-17 21:07:34 +0000 | [diff] [blame] | 753 | $(INSTALL) -d $(DESTDIR)$(libdir) |
| 754 | $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir) |
mlcreech | c55771f | 2008-03-06 08:09:12 +0000 | [diff] [blame] | 755 | $(INSTALL) -d $(DESTDIR)$(bindir) |
| 756 | $(LTINSTALL) sqlite3$(BEXE) $(DESTDIR)$(bindir) |
| 757 | $(INSTALL) -d $(DESTDIR)$(includedir) |
| 758 | $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir) |
| 759 | $(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir) |
danielk1977 | 94bdf89 | 2008-08-04 04:28:18 +0000 | [diff] [blame] | 760 | $(INSTALL) -d $(DESTDIR)$(pkgconfigdir) |
| 761 | $(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(pkgconfigdir) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 762 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 763 | tcl_install: libtclsqlite3.la |
drh | 3e59c01 | 2008-09-23 10:12:13 +0000 | [diff] [blame] | 764 | $(TCLSH_CMD) $(TOP)/tclinstaller.tcl $(RELEASE) |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 765 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 766 | clean: |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 767 | rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 768 | rm -f sqlite3.h opcodes.* |
mlcreech | ae28e67 | 2008-03-06 09:03:20 +0000 | [diff] [blame] | 769 | rm -rf .libs .deps tsrc |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 770 | rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 771 | rm -f mkkeywordhash$(BEXE) keywordhash.h |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 772 | rm -f $(PUBLISH) |
| 773 | rm -f *.da *.bb *.bbg gmon.out |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 774 | rm -f testfixture$(TEXE) test.db |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 775 | rm -f common.tcl |
drh | 79dc669 | 2006-09-02 22:14:11 +0000 | [diff] [blame] | 776 | rm -f sqlite3.dll sqlite3.lib sqlite3.def |
mlcreech | ae28e67 | 2008-03-06 09:03:20 +0000 | [diff] [blame] | 777 | rm -f sqlite3.c .target_source |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 778 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 779 | distclean: clean |
mlcreech | b87057f | 2008-03-06 07:19:20 +0000 | [diff] [blame] | 780 | rm -f config.log config.status libtool Makefile sqlite3.pc |
drh | 79dc669 | 2006-09-02 22:14:11 +0000 | [diff] [blame] | 781 | |
| 782 | # |
| 783 | # Windows section |
| 784 | # |
| 785 | dll: sqlite3.dll |
| 786 | |
| 787 | REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o) |
| 788 | |
| 789 | $(REAL_LIBOBJ): $(LIBOBJ) |
| 790 | |
| 791 | sqlite3.def: $(REAL_LIBOBJ) |
| 792 | echo 'EXPORTS' >sqlite3.def |
| 793 | nm $(REAL_LIBOBJ) | grep ' T ' | grep ' _sqlite3_' \ |
| 794 | | sed 's/^.* _//' >>sqlite3.def |
| 795 | |
| 796 | sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def |
mlcreech | 1428b37 | 2008-03-13 23:28:22 +0000 | [diff] [blame] | 797 | $(TCC) -shared -o $@ sqlite3.def \ |
drh | 79dc669 | 2006-09-02 22:14:11 +0000 | [diff] [blame] | 798 | -Wl,"--strip-all" $(REAL_LIBOBJ) |