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 | # |
tpoindex | 9d9f76c | 2005-01-03 21:28:56 +0000 | [diff] [blame] | 29 | TCC = @TARGET_CC@ @TARGET_CFLAGS@ -I. -I${TOP}/src |
| 30 | |
| 31 | # Define -DNDEBUG to compile without debugging (i.e., for production usage) |
| 32 | # Omitting the define will cause extra debugging code to be inserted and |
| 33 | # includes extra comments when "EXPLAIN stmt" is used. |
| 34 | # |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 35 | TCC += @TARGET_DEBUG@ @XTHREADCONNECT@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 36 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 37 | # Compiler options needed for programs that use the TCL library. |
| 38 | # |
drh | 9346836 | 2004-12-10 03:08:12 +0000 | [diff] [blame] | 39 | TCC += @TCL_INCLUDE_SPEC@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 40 | |
| 41 | # The library that programs using TCL must link against. |
| 42 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 43 | LIBTCL = @TCL_LIB_SPEC@ @TCL_LIBS@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 44 | |
| 45 | # Compiler options needed for programs that use the readline() library. |
| 46 | # |
| 47 | READLINE_FLAGS = -DHAVE_READLINE=@TARGET_HAVE_READLINE@ @TARGET_READLINE_INC@ |
| 48 | |
| 49 | # The library that programs using readline() must link against. |
| 50 | # |
| 51 | LIBREADLINE = @TARGET_READLINE_LIBS@ |
| 52 | |
| 53 | # Should the database engine be compiled threadsafe |
| 54 | # |
drh | 65d415c | 2005-08-24 18:04:51 +0000 | [diff] [blame] | 55 | TCC += -DTHREADSAFE=@THREADSAFE@ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 56 | |
dougcurrie | 65623c7 | 2004-09-20 14:57:23 +0000 | [diff] [blame] | 57 | # The pthreads library if needed |
| 58 | # |
| 59 | LIBPTHREAD=@TARGET_THREAD_LIB@ |
| 60 | |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 61 | # Do threads override each others locks by default (1), or do we test (-1) |
| 62 | # |
| 63 | TCC += -DSQLITE_THREAD_OVERRIDE_LOCK=@THREADSOVERRIDELOCKS@ |
| 64 | |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 65 | # The fdatasync library |
| 66 | TLIBS = @TARGET_LIBS@ |
| 67 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 68 | # Flags controlling use of the in memory btree implementation |
| 69 | # |
| 70 | # TEMP_STORE is 0 to force temporary tables to be in a file, 1 to |
| 71 | # default to file, 2 to default to memory, and 3 to force temporary |
| 72 | # tables to always be in memory. |
| 73 | # |
| 74 | TEMP_STORE = -DTEMP_STORE=@TEMP_STORE@ |
| 75 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 76 | # Version numbers and release number for the SQLite being compiled. |
| 77 | # |
| 78 | VERSION = @VERSION@ |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 79 | VERSION_NUMBER = @VERSION_NUMBER@ |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 80 | RELEASE = @RELEASE@ |
| 81 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 82 | # Filename extensions |
| 83 | # |
| 84 | BEXE = @BUILD_EXEEXT@ |
| 85 | TEXE = @TARGET_EXEEXT@ |
| 86 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 87 | # The following variable is "1" if the configure script was able to locate |
| 88 | # the tclConfig.sh file. It is an empty string otherwise. When this |
| 89 | # variable is "1", the TCL extension library (libtclsqlite3.so) is built |
| 90 | # and installed. |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 91 | # |
| 92 | HAVE_TCL = @HAVE_TCL@ |
| 93 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 94 | # The suffix used on shared libraries. Ex: ".dll", ".so", ".dylib" |
| 95 | # |
| 96 | SHLIB_SUFFIX = @TCL_SHLIB_SUFFIX@ |
| 97 | |
| 98 | # The directory into which to store package information for |
| 99 | |
| 100 | # Some standard variables and programs |
| 101 | # |
| 102 | prefix = @prefix@ |
| 103 | exec_prefix = @exec_prefix@ |
| 104 | libdir = @libdir@ |
| 105 | INSTALL = @INSTALL@ |
| 106 | LIBTOOL = ./libtool |
| 107 | ALLOWRELEASE = @ALLOWRELEASE@ |
| 108 | |
| 109 | # libtool compile/link/install |
| 110 | LTCOMPILE = $(LIBTOOL) --mode=compile $(TCC) |
| 111 | LTLINK = $(LIBTOOL) --mode=link $(TCC) |
| 112 | LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) |
| 113 | |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 114 | # nawk compatible awk. |
| 115 | NAWK = @AWK@ |
| 116 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 117 | # You should not have to change anything below this line |
| 118 | ############################################################################### |
drh | 91636d5 | 2005-11-24 23:14:00 +0000 | [diff] [blame] | 119 | OPTS = |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 120 | OPTS += -DSQLITE_OMIT_CURSOR # Cursors do not work at this time |
| 121 | TCC += -DSQLITE_OMIT_CURSOR |
| 122 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 123 | # Object files for the SQLite library. |
| 124 | # |
drh | 9f18e8a | 2005-07-08 12:13:04 +0000 | [diff] [blame] | 125 | LIBOBJ = alter.lo analyze.lo attach.lo auth.lo btree.lo build.lo \ |
drh | a2b902d | 2005-08-14 17:53:20 +0000 | [diff] [blame] | 126 | callback.lo complete.lo date.lo \ |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 127 | delete.lo expr.lo func.lo hash.lo insert.lo loadext.lo \ |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 128 | main.lo opcodes.lo os.lo os_unix.lo os_win.lo os_os2.lo \ |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 129 | pager.lo parse.lo pragma.lo prepare.lo printf.lo random.lo \ |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 130 | select.lo table.lo tokenize.lo trigger.lo update.lo \ |
drh | a01f79d | 2005-07-08 13:07:59 +0000 | [diff] [blame] | 131 | util.lo vacuum.lo \ |
| 132 | vdbe.lo vdbeapi.lo vdbeaux.lo vdbefifo.lo vdbemem.lo \ |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 133 | where.lo utf.lo legacy.lo vtab.lo |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 134 | |
| 135 | # All of the source code files. |
| 136 | # |
| 137 | SRC = \ |
drh | d0e4a6c | 2005-02-15 20:47:57 +0000 | [diff] [blame] | 138 | $(TOP)/src/alter.c \ |
drh | 9f18e8a | 2005-07-08 12:13:04 +0000 | [diff] [blame] | 139 | $(TOP)/src/analyze.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 140 | $(TOP)/src/attach.c \ |
| 141 | $(TOP)/src/auth.c \ |
| 142 | $(TOP)/src/btree.c \ |
| 143 | $(TOP)/src/btree.h \ |
| 144 | $(TOP)/src/build.c \ |
danielk1977 | fd9a0a4 | 2005-05-24 12:01:00 +0000 | [diff] [blame] | 145 | $(TOP)/src/callback.c \ |
drh | a2b902d | 2005-08-14 17:53:20 +0000 | [diff] [blame] | 146 | $(TOP)/src/complete.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 147 | $(TOP)/src/date.c \ |
| 148 | $(TOP)/src/delete.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 149 | $(TOP)/src/expr.c \ |
| 150 | $(TOP)/src/func.c \ |
| 151 | $(TOP)/src/hash.c \ |
| 152 | $(TOP)/src/hash.h \ |
| 153 | $(TOP)/src/insert.c \ |
| 154 | $(TOP)/src/legacy.c \ |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 155 | $(TOP)/src/loadext.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 156 | $(TOP)/src/main.c \ |
drh | 054889e | 2005-11-30 03:20:31 +0000 | [diff] [blame] | 157 | $(TOP)/src/os.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 158 | $(TOP)/src/os_unix.c \ |
| 159 | $(TOP)/src/os_win.c \ |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 160 | $(TOP)/src/os_os2.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 161 | $(TOP)/src/pager.c \ |
| 162 | $(TOP)/src/pager.h \ |
| 163 | $(TOP)/src/parse.y \ |
| 164 | $(TOP)/src/pragma.c \ |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 165 | $(TOP)/src/prepare.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 166 | $(TOP)/src/printf.c \ |
| 167 | $(TOP)/src/random.c \ |
| 168 | $(TOP)/src/select.c \ |
| 169 | $(TOP)/src/shell.c \ |
| 170 | $(TOP)/src/sqlite.h.in \ |
| 171 | $(TOP)/src/sqliteInt.h \ |
| 172 | $(TOP)/src/table.c \ |
| 173 | $(TOP)/src/tclsqlite.c \ |
| 174 | $(TOP)/src/tokenize.c \ |
| 175 | $(TOP)/src/trigger.c \ |
| 176 | $(TOP)/src/utf.c \ |
| 177 | $(TOP)/src/update.c \ |
| 178 | $(TOP)/src/util.c \ |
| 179 | $(TOP)/src/vacuum.c \ |
| 180 | $(TOP)/src/vdbe.c \ |
| 181 | $(TOP)/src/vdbe.h \ |
| 182 | $(TOP)/src/vdbeapi.c \ |
| 183 | $(TOP)/src/vdbeaux.c \ |
drh | a01f79d | 2005-07-08 13:07:59 +0000 | [diff] [blame] | 184 | $(TOP)/src/vdbefifo.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 185 | $(TOP)/src/vdbemem.c \ |
| 186 | $(TOP)/src/vdbeInt.h \ |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 187 | $(TOP)/src/vtab.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 188 | $(TOP)/src/where.c |
| 189 | |
| 190 | # Source code to the test files. |
| 191 | # |
| 192 | TESTSRC = \ |
| 193 | $(TOP)/src/btree.c \ |
drh | 6c62608 | 2004-11-14 21:56:29 +0000 | [diff] [blame] | 194 | $(TOP)/src/date.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 195 | $(TOP)/src/func.c \ |
drh | 8e2e2a1 | 2006-02-01 01:55:17 +0000 | [diff] [blame] | 196 | $(TOP)/src/os.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 197 | $(TOP)/src/os_unix.c \ |
| 198 | $(TOP)/src/os_win.c \ |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 199 | $(TOP)/src/os_os2.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 200 | $(TOP)/src/pager.c \ |
| 201 | $(TOP)/src/pragma.c \ |
| 202 | $(TOP)/src/printf.c \ |
| 203 | $(TOP)/src/test1.c \ |
| 204 | $(TOP)/src/test2.c \ |
| 205 | $(TOP)/src/test3.c \ |
| 206 | $(TOP)/src/test4.c \ |
| 207 | $(TOP)/src/test5.c \ |
drh | 9c06c95 | 2005-11-26 00:25:00 +0000 | [diff] [blame] | 208 | $(TOP)/src/test6.c \ |
drh | 7910e76 | 2006-01-09 23:50:11 +0000 | [diff] [blame] | 209 | $(TOP)/src/test7.c \ |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 210 | $(TOP)/src/test8.c \ |
drh | 7910e76 | 2006-01-09 23:50:11 +0000 | [diff] [blame] | 211 | $(TOP)/src/test_async.c \ |
drh | 2d02a67 | 2006-01-25 15:55:37 +0000 | [diff] [blame] | 212 | $(TOP)/src/test_md5.c \ |
| 213 | $(TOP)/src/test_server.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 214 | $(TOP)/src/utf.c \ |
drh | ed6b3eb | 2004-09-08 21:12:50 +0000 | [diff] [blame] | 215 | $(TOP)/src/util.c \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 216 | $(TOP)/src/vdbe.c \ |
drh | a2b902d | 2005-08-14 17:53:20 +0000 | [diff] [blame] | 217 | $(TOP)/src/where.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 218 | |
| 219 | # Header files used by all library source files. |
| 220 | # |
| 221 | HDR = \ |
| 222 | sqlite3.h \ |
| 223 | $(TOP)/src/btree.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 224 | $(TOP)/src/hash.h \ |
| 225 | opcodes.h \ |
| 226 | $(TOP)/src/os.h \ |
| 227 | $(TOP)/src/os_common.h \ |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 228 | $(TOP)/src/sqlite3ext.h \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 229 | $(TOP)/src/sqliteInt.h \ |
| 230 | $(TOP)/src/vdbe.h \ |
| 231 | parse.h |
| 232 | |
| 233 | # Header files used by the VDBE submodule |
| 234 | # |
| 235 | VDBEHDR = \ |
| 236 | $(HDR) \ |
| 237 | $(TOP)/src/vdbeInt.h |
| 238 | |
| 239 | # This is the default Makefile target. The objects listed here |
| 240 | # are what get build when you type just "make" with no arguments. |
| 241 | # |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 242 | all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 243 | |
| 244 | Makefile: $(TOP)/Makefile.in |
| 245 | ./config.status |
| 246 | |
| 247 | # Generate the file "last_change" which contains the date of change |
| 248 | # of the most recently modified source code file |
| 249 | # |
| 250 | last_change: $(SRC) |
| 251 | cat $(SRC) | grep '$$Id: ' | sort +4 | tail -1 \ |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 252 | | $(NAWK) '{print $$5,$$6}' >last_change |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 253 | |
| 254 | libsqlite3.la: $(LIBOBJ) |
drh | cc01bc0 | 2004-09-17 21:35:30 +0000 | [diff] [blame] | 255 | $(LTLINK) -o libsqlite3.la $(LIBOBJ) $(LIBPTHREAD) \ |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 256 | ${ALLOWRELEASE} -rpath $(libdir) -version-info "8:6:8" |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 257 | |
| 258 | libtclsqlite3.la: tclsqlite.lo libsqlite3.la |
| 259 | $(LTLINK) -o libtclsqlite3.la tclsqlite.lo \ |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 260 | $(LIBOBJ) @TCL_STUB_LIB_SPEC@ $(LIBPTHREAD) \ |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 261 | -rpath $(libdir)/sqlite \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 262 | -version-info "8:6:8" |
| 263 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 264 | sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h |
drh | cc01bc0 | 2004-09-17 21:35:30 +0000 | [diff] [blame] | 265 | $(LTLINK) $(READLINE_FLAGS) $(LIBPTHREAD) \ |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 266 | -o $@ $(TOP)/src/shell.c libsqlite3.la \ |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 267 | $(LIBREADLINE) $(TLIBS) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 268 | |
| 269 | # This target creates a directory named "tsrc" and fills it with |
| 270 | # copies of all of the C source code and header files needed to |
| 271 | # build on the target system. Some of the C source code and header |
| 272 | # files are automatically generated. This target takes care of |
| 273 | # all that automatic generation. |
| 274 | # |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 275 | target_source: $(SRC) parse.c opcodes.c keywordhash.h $(VDBEHDR) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 276 | rm -rf tsrc |
drh | d2f397f | 2004-09-17 20:47:16 +0000 | [diff] [blame] | 277 | mkdir -p tsrc |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 278 | cp $(SRC) $(VDBEHDR) tsrc |
| 279 | rm tsrc/sqlite.h.in tsrc/parse.y |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 280 | cp parse.c opcodes.c keywordhash.h tsrc |
drh | 4aec8b6 | 2004-08-28 16:19:00 +0000 | [diff] [blame] | 281 | cp $(TOP)/sqlite3.def tsrc |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 282 | |
| 283 | # Rules to build the LEMON compiler generator |
| 284 | # |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 285 | lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 286 | $(BCC) -o lemon $(TOP)/tool/lemon.c |
| 287 | cp $(TOP)/tool/lempar.c . |
| 288 | |
| 289 | |
| 290 | # Rules to build individual files |
| 291 | # |
drh | d0e4a6c | 2005-02-15 20:47:57 +0000 | [diff] [blame] | 292 | alter.lo: $(TOP)/src/alter.c $(HDR) |
| 293 | $(LTCOMPILE) -c $(TOP)/src/alter.c |
| 294 | |
drh | 9f18e8a | 2005-07-08 12:13:04 +0000 | [diff] [blame] | 295 | analyze.lo: $(TOP)/src/analyze.c $(HDR) |
| 296 | $(LTCOMPILE) -c $(TOP)/src/analyze.c |
| 297 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 298 | attach.lo: $(TOP)/src/attach.c $(HDR) |
| 299 | $(LTCOMPILE) -c $(TOP)/src/attach.c |
| 300 | |
| 301 | auth.lo: $(TOP)/src/auth.c $(HDR) |
| 302 | $(LTCOMPILE) -c $(TOP)/src/auth.c |
| 303 | |
| 304 | btree.lo: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h |
| 305 | $(LTCOMPILE) -c $(TOP)/src/btree.c |
| 306 | |
| 307 | build.lo: $(TOP)/src/build.c $(HDR) |
| 308 | $(LTCOMPILE) -c $(TOP)/src/build.c |
| 309 | |
danielk1977 | fd9a0a4 | 2005-05-24 12:01:00 +0000 | [diff] [blame] | 310 | callback.lo: $(TOP)/src/callback.c $(HDR) |
| 311 | $(LTCOMPILE) -c $(TOP)/src/callback.c |
| 312 | |
drh | a2b902d | 2005-08-14 17:53:20 +0000 | [diff] [blame] | 313 | complete.lo: $(TOP)/src/complete.c $(HDR) |
| 314 | $(LTCOMPILE) -c $(TOP)/src/complete.c |
| 315 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 316 | date.lo: $(TOP)/src/date.c $(HDR) |
| 317 | $(LTCOMPILE) -c $(TOP)/src/date.c |
| 318 | |
| 319 | delete.lo: $(TOP)/src/delete.c $(HDR) |
| 320 | $(LTCOMPILE) -c $(TOP)/src/delete.c |
| 321 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 322 | expr.lo: $(TOP)/src/expr.c $(HDR) |
| 323 | $(LTCOMPILE) -c $(TOP)/src/expr.c |
| 324 | |
| 325 | func.lo: $(TOP)/src/func.c $(HDR) |
| 326 | $(LTCOMPILE) -c $(TOP)/src/func.c |
| 327 | |
| 328 | hash.lo: $(TOP)/src/hash.c $(HDR) |
| 329 | $(LTCOMPILE) -c $(TOP)/src/hash.c |
| 330 | |
| 331 | insert.lo: $(TOP)/src/insert.c $(HDR) |
| 332 | $(LTCOMPILE) -c $(TOP)/src/insert.c |
| 333 | |
| 334 | legacy.lo: $(TOP)/src/legacy.c $(HDR) |
| 335 | $(LTCOMPILE) -c $(TOP)/src/legacy.c |
| 336 | |
drh | 1e397f8 | 2006-06-08 15:28:43 +0000 | [diff] [blame] | 337 | loadext.lo: $(TOP)/src/loadext.c $(HDR) |
| 338 | $(LTCOMPILE) -c $(TOP)/src/loadext.c |
| 339 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 340 | main.lo: $(TOP)/src/main.c $(HDR) |
| 341 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/main.c |
| 342 | |
| 343 | pager.lo: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h |
| 344 | $(LTCOMPILE) -c $(TOP)/src/pager.c |
| 345 | |
| 346 | opcodes.lo: opcodes.c |
| 347 | $(LTCOMPILE) -c opcodes.c |
| 348 | |
drh | b327f77 | 2004-10-06 15:03:57 +0000 | [diff] [blame] | 349 | opcodes.c: opcodes.h $(TOP)/mkopcodec.awk |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 350 | sort -n -b +2 opcodes.h | $(NAWK) -f $(TOP)/mkopcodec.awk >opcodes.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 351 | |
drh | f2bc013 | 2004-10-04 13:19:23 +0000 | [diff] [blame] | 352 | opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk |
drh | f1878b4 | 2006-01-23 18:06:52 +0000 | [diff] [blame] | 353 | 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] | 354 | |
drh | 054889e | 2005-11-30 03:20:31 +0000 | [diff] [blame] | 355 | os.lo: $(TOP)/src/os.c $(HDR) |
| 356 | $(LTCOMPILE) -c $(TOP)/src/os.c |
| 357 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 358 | os_unix.lo: $(TOP)/src/os_unix.c $(HDR) |
drh | cf5f58f | 2005-06-16 18:47:38 +0000 | [diff] [blame] | 359 | $(LTCOMPILE) -c $(TOP)/src/os_unix.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 360 | |
| 361 | os_win.lo: $(TOP)/src/os_win.c $(HDR) |
drh | cf5f58f | 2005-06-16 18:47:38 +0000 | [diff] [blame] | 362 | $(LTCOMPILE) -c $(TOP)/src/os_win.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 363 | |
drh | 60a1e4b | 2006-06-03 18:02:15 +0000 | [diff] [blame] | 364 | os_os2.lo: $(TOP)/src/os_os2.c $(HDR) |
| 365 | $(LTCOMPILE) -c $(TOP)/src/os_os2.c |
| 366 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 367 | parse.lo: parse.c $(HDR) |
| 368 | $(LTCOMPILE) -c parse.c |
| 369 | |
| 370 | parse.h: parse.c |
| 371 | |
drh | fa3b19e | 2005-11-24 22:22:29 +0000 | [diff] [blame] | 372 | parse.c: $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/addopcodes.awk |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 373 | cp $(TOP)/src/parse.y . |
drh | 27d258a | 2004-10-30 20:23:09 +0000 | [diff] [blame] | 374 | ./lemon $(OPTS) parse.y |
drh | fa3b19e | 2005-11-24 22:22:29 +0000 | [diff] [blame] | 375 | mv parse.h parse.h.temp |
| 376 | awk -f $(TOP)/addopcodes.awk parse.h.temp >parse.h |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 377 | |
| 378 | pragma.lo: $(TOP)/src/pragma.c $(HDR) |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 379 | $(LTCOMPILE) -c $(TOP)/src/pragma.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 380 | |
danielk1977 | fa256a3 | 2005-05-25 04:11:56 +0000 | [diff] [blame] | 381 | prepare.lo: $(TOP)/src/prepare.c $(HDR) |
| 382 | $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/prepare.c |
| 383 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 384 | printf.lo: $(TOP)/src/printf.c $(HDR) |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 385 | $(LTCOMPILE) -c $(TOP)/src/printf.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 386 | |
| 387 | random.lo: $(TOP)/src/random.c $(HDR) |
| 388 | $(LTCOMPILE) -c $(TOP)/src/random.c |
| 389 | |
| 390 | select.lo: $(TOP)/src/select.c $(HDR) |
| 391 | $(LTCOMPILE) -c $(TOP)/src/select.c |
| 392 | |
| 393 | sqlite3.h: $(TOP)/src/sqlite.h.in |
danielk1977 | 99ba19e | 2005-02-05 07:33:34 +0000 | [diff] [blame] | 394 | sed -e s/--VERS--/$(RELEASE)/ $(TOP)/src/sqlite.h.in | \ |
| 395 | sed -e s/--VERSION-NUMBER--/$(VERSION_NUMBER)/ >sqlite3.h |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 396 | |
| 397 | table.lo: $(TOP)/src/table.c $(HDR) |
| 398 | $(LTCOMPILE) -c $(TOP)/src/table.c |
| 399 | |
| 400 | tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR) |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 401 | $(LTCOMPILE) -c $(TOP)/src/tclsqlite.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 402 | |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 403 | tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 404 | $(LTCOMPILE) -c $(TOP)/src/tokenize.c |
| 405 | |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 406 | keywordhash.h: $(TOP)/tool/mkkeywordhash.c |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 407 | $(BCC) -o mkkeywordhash$(BEXE) $(OPTS) $(TOP)/tool/mkkeywordhash.c |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 408 | ./mkkeywordhash$(BEXE) >keywordhash.h |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 409 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 410 | trigger.lo: $(TOP)/src/trigger.c $(HDR) |
| 411 | $(LTCOMPILE) -c $(TOP)/src/trigger.c |
| 412 | |
| 413 | update.lo: $(TOP)/src/update.c $(HDR) |
| 414 | $(LTCOMPILE) -c $(TOP)/src/update.c |
| 415 | |
| 416 | utf.lo: $(TOP)/src/utf.c $(HDR) |
| 417 | $(LTCOMPILE) -c $(TOP)/src/utf.c |
| 418 | |
| 419 | util.lo: $(TOP)/src/util.c $(HDR) |
| 420 | $(LTCOMPILE) -c $(TOP)/src/util.c |
| 421 | |
| 422 | vacuum.lo: $(TOP)/src/vacuum.c $(HDR) |
| 423 | $(LTCOMPILE) -c $(TOP)/src/vacuum.c |
| 424 | |
| 425 | vdbe.lo: $(TOP)/src/vdbe.c $(VDBEHDR) |
| 426 | $(LTCOMPILE) -c $(TOP)/src/vdbe.c |
| 427 | |
| 428 | vdbeapi.lo: $(TOP)/src/vdbeapi.c $(VDBEHDR) |
| 429 | $(LTCOMPILE) -c $(TOP)/src/vdbeapi.c |
| 430 | |
| 431 | vdbeaux.lo: $(TOP)/src/vdbeaux.c $(VDBEHDR) |
| 432 | $(LTCOMPILE) -c $(TOP)/src/vdbeaux.c |
| 433 | |
drh | a01f79d | 2005-07-08 13:07:59 +0000 | [diff] [blame] | 434 | vdbefifo.lo: $(TOP)/src/vdbefifo.c $(VDBEHDR) |
| 435 | $(LTCOMPILE) -c $(TOP)/src/vdbefifo.c |
| 436 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 437 | vdbemem.lo: $(TOP)/src/vdbemem.c $(VDBEHDR) |
| 438 | $(LTCOMPILE) -c $(TOP)/src/vdbemem.c |
| 439 | |
drh | b9bb7c1 | 2006-06-11 23:41:55 +0000 | [diff] [blame] | 440 | vtab.lo: $(TOP)/src/vtab.c $(VDBEHDR) |
| 441 | $(LTCOMPILE) -c $(TOP)/src/vtab.c |
| 442 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 443 | where.lo: $(TOP)/src/where.c $(HDR) |
| 444 | $(LTCOMPILE) -c $(TOP)/src/where.c |
| 445 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 446 | tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR) |
| 447 | $(LTCOMPILE) -DTCLSH=1 -o $@ -c $(TOP)/src/tclsqlite.c |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 448 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 449 | tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR) |
| 450 | $(LTCOMPILE) -DTCL_USE_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c |
| 451 | |
| 452 | tclsqlite3: tclsqlite-shell.lo libsqlite3.la |
| 453 | $(LTLINK) -o tclsqlite3 tclsqlite-shell.lo \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 454 | libsqlite3.la $(LIBTCL) |
| 455 | |
drh | 77207ab | 2005-08-27 09:07:14 +0000 | [diff] [blame] | 456 | testfixture$(TEXE): $(TOP)/src/tclsqlite.c libsqlite3.la $(TESTSRC) |
drh | 66560ad | 2006-01-06 14:32:19 +0000 | [diff] [blame] | 457 | $(LTLINK) -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 \ |
| 458 | $(TEMP_STORE) -o testfixture $(TESTSRC) $(TOP)/src/tclsqlite.c \ |
drh | 77207ab | 2005-08-27 09:07:14 +0000 | [diff] [blame] | 459 | libsqlite3.la $(LIBTCL) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 460 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 461 | |
drh | 9c06c95 | 2005-11-26 00:25:00 +0000 | [diff] [blame] | 462 | fulltest: testfixture$(TEXE) sqlite3$(TEXE) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 463 | ./testfixture $(TOP)/test/all.test |
| 464 | |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 465 | test: testfixture$(TEXE) sqlite3$(TEXE) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 466 | ./testfixture $(TOP)/test/quick.test |
| 467 | |
drh | 61212b6 | 2004-12-02 20:17:00 +0000 | [diff] [blame] | 468 | sqlite3_analyzer$(TEXE): $(TOP)/src/tclsqlite.c libtclsqlite3.la \ |
| 469 | $(TESTSRC) $(TOP)/tool/spaceanal.tcl |
| 470 | sed \ |
| 471 | -e '/^#/d' \ |
| 472 | -e 's,\\,\\\\,g' \ |
| 473 | -e 's,",\\",g' \ |
| 474 | -e 's,^,",' \ |
| 475 | -e 's,$$,\\n",' \ |
| 476 | $(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h |
drh | cf5f58f | 2005-06-16 18:47:38 +0000 | [diff] [blame] | 477 | $(LTLINK) -DTCLSH=2 -DSQLITE_TEST=1 $(TEMP_STORE)\ |
drh | 61212b6 | 2004-12-02 20:17:00 +0000 | [diff] [blame] | 478 | -o sqlite3_analyzer$(EXE) $(TESTSRC) $(TOP)/src/tclsqlite.c \ |
| 479 | libtclsqlite3.la $(LIBTCL) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 480 | |
| 481 | # Rules used to build documentation |
| 482 | # |
| 483 | arch.html: $(TOP)/www/arch.tcl |
| 484 | tclsh $(TOP)/www/arch.tcl >arch.html |
| 485 | |
| 486 | arch2.gif: $(TOP)/www/arch2.gif |
| 487 | cp $(TOP)/www/arch2.gif . |
| 488 | |
drh | f856582 | 2004-11-21 01:02:00 +0000 | [diff] [blame] | 489 | autoinc.html: $(TOP)/www/autoinc.tcl |
| 490 | tclsh $(TOP)/www/autoinc.tcl >autoinc.html |
| 491 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 492 | c_interface.html: $(TOP)/www/c_interface.tcl |
| 493 | tclsh $(TOP)/www/c_interface.tcl >c_interface.html |
| 494 | |
| 495 | capi3.html: $(TOP)/www/capi3.tcl |
| 496 | tclsh $(TOP)/www/capi3.tcl >capi3.html |
| 497 | |
| 498 | capi3ref.html: $(TOP)/www/capi3ref.tcl |
| 499 | tclsh $(TOP)/www/capi3ref.tcl >capi3ref.html |
| 500 | |
| 501 | changes.html: $(TOP)/www/changes.tcl |
| 502 | tclsh $(TOP)/www/changes.tcl >changes.html |
| 503 | |
drh | f856582 | 2004-11-21 01:02:00 +0000 | [diff] [blame] | 504 | compile.html: $(TOP)/www/compile.tcl |
| 505 | tclsh $(TOP)/www/compile.tcl >compile.html |
| 506 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 507 | copyright.html: $(TOP)/www/copyright.tcl |
| 508 | tclsh $(TOP)/www/copyright.tcl >copyright.html |
| 509 | |
| 510 | copyright-release.html: $(TOP)/www/copyright-release.html |
| 511 | cp $(TOP)/www/copyright-release.html . |
| 512 | |
| 513 | copyright-release.pdf: $(TOP)/www/copyright-release.pdf |
| 514 | cp $(TOP)/www/copyright-release.pdf . |
| 515 | |
| 516 | common.tcl: $(TOP)/www/common.tcl |
| 517 | cp $(TOP)/www/common.tcl . |
| 518 | |
| 519 | conflict.html: $(TOP)/www/conflict.tcl |
| 520 | tclsh $(TOP)/www/conflict.tcl >conflict.html |
| 521 | |
| 522 | datatypes.html: $(TOP)/www/datatypes.tcl |
| 523 | tclsh $(TOP)/www/datatypes.tcl >datatypes.html |
| 524 | |
| 525 | datatype3.html: $(TOP)/www/datatype3.tcl |
| 526 | tclsh $(TOP)/www/datatype3.tcl >datatype3.html |
| 527 | |
| 528 | docs.html: $(TOP)/www/docs.tcl |
| 529 | tclsh $(TOP)/www/docs.tcl >docs.html |
| 530 | |
| 531 | download.html: $(TOP)/www/download.tcl |
drh | d2f397f | 2004-09-17 20:47:16 +0000 | [diff] [blame] | 532 | mkdir -p doc |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 533 | tclsh $(TOP)/www/download.tcl >download.html |
| 534 | |
| 535 | faq.html: $(TOP)/www/faq.tcl |
| 536 | tclsh $(TOP)/www/faq.tcl >faq.html |
| 537 | |
| 538 | fileformat.html: $(TOP)/www/fileformat.tcl |
| 539 | tclsh $(TOP)/www/fileformat.tcl >fileformat.html |
| 540 | |
| 541 | formatchng.html: $(TOP)/www/formatchng.tcl |
| 542 | tclsh $(TOP)/www/formatchng.tcl >formatchng.html |
| 543 | |
| 544 | index.html: $(TOP)/www/index.tcl last_change |
| 545 | tclsh $(TOP)/www/index.tcl >index.html |
| 546 | |
| 547 | lang.html: $(TOP)/www/lang.tcl |
| 548 | tclsh $(TOP)/www/lang.tcl >lang.html |
| 549 | |
tpoindex | 9a09a3c | 2004-12-20 19:01:32 +0000 | [diff] [blame] | 550 | pragma.html: $(TOP)/www/pragma.tcl |
| 551 | tclsh $(TOP)/www/pragma.tcl >pragma.html |
| 552 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 553 | lockingv3.html: $(TOP)/www/lockingv3.tcl |
| 554 | tclsh $(TOP)/www/lockingv3.tcl >lockingv3.html |
| 555 | |
| 556 | oldnews.html: $(TOP)/www/oldnews.tcl |
| 557 | tclsh $(TOP)/www/oldnews.tcl >oldnews.html |
| 558 | |
| 559 | omitted.html: $(TOP)/www/omitted.tcl |
| 560 | tclsh $(TOP)/www/omitted.tcl >omitted.html |
| 561 | |
| 562 | opcode.html: $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c |
| 563 | tclsh $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c >opcode.html |
| 564 | |
| 565 | mingw.html: $(TOP)/www/mingw.tcl |
| 566 | tclsh $(TOP)/www/mingw.tcl >mingw.html |
| 567 | |
| 568 | nulls.html: $(TOP)/www/nulls.tcl |
| 569 | tclsh $(TOP)/www/nulls.tcl >nulls.html |
| 570 | |
| 571 | quickstart.html: $(TOP)/www/quickstart.tcl |
| 572 | tclsh $(TOP)/www/quickstart.tcl >quickstart.html |
| 573 | |
| 574 | speed.html: $(TOP)/www/speed.tcl |
| 575 | tclsh $(TOP)/www/speed.tcl >speed.html |
| 576 | |
| 577 | sqlite.gif: $(TOP)/art/SQLite.gif |
| 578 | cp $(TOP)/art/SQLite.gif sqlite.gif |
| 579 | |
| 580 | sqlite.html: $(TOP)/www/sqlite.tcl |
| 581 | tclsh $(TOP)/www/sqlite.tcl >sqlite.html |
| 582 | |
| 583 | support.html: $(TOP)/www/support.tcl |
| 584 | tclsh $(TOP)/www/support.tcl >support.html |
| 585 | |
| 586 | tclsqlite.html: $(TOP)/www/tclsqlite.tcl |
| 587 | tclsh $(TOP)/www/tclsqlite.tcl >tclsqlite.html |
| 588 | |
| 589 | vdbe.html: $(TOP)/www/vdbe.tcl |
| 590 | tclsh $(TOP)/www/vdbe.tcl >vdbe.html |
| 591 | |
| 592 | version3.html: $(TOP)/www/version3.tcl |
| 593 | tclsh $(TOP)/www/version3.tcl >version3.html |
| 594 | |
| 595 | |
| 596 | # Files to be published on the website. |
| 597 | # |
| 598 | DOC = \ |
| 599 | arch.html \ |
drh | 6eb8577 | 2005-06-15 18:07:39 +0000 | [diff] [blame] | 600 | arch2.gif \ |
drh | f856582 | 2004-11-21 01:02:00 +0000 | [diff] [blame] | 601 | autoinc.html \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 602 | c_interface.html \ |
| 603 | capi3.html \ |
| 604 | capi3ref.html \ |
| 605 | changes.html \ |
drh | f856582 | 2004-11-21 01:02:00 +0000 | [diff] [blame] | 606 | compile.html \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 607 | copyright.html \ |
| 608 | copyright-release.html \ |
| 609 | copyright-release.pdf \ |
| 610 | conflict.html \ |
| 611 | datatypes.html \ |
| 612 | datatype3.html \ |
| 613 | docs.html \ |
| 614 | download.html \ |
| 615 | faq.html \ |
| 616 | fileformat.html \ |
| 617 | formatchng.html \ |
| 618 | index.html \ |
| 619 | lang.html \ |
| 620 | lockingv3.html \ |
| 621 | mingw.html \ |
| 622 | nulls.html \ |
| 623 | oldnews.html \ |
| 624 | omitted.html \ |
| 625 | opcode.html \ |
drh | f856582 | 2004-11-21 01:02:00 +0000 | [diff] [blame] | 626 | pragma.html \ |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 627 | quickstart.html \ |
| 628 | speed.html \ |
| 629 | sqlite.gif \ |
| 630 | sqlite.html \ |
| 631 | support.html \ |
| 632 | tclsqlite.html \ |
| 633 | vdbe.html \ |
drh | f856582 | 2004-11-21 01:02:00 +0000 | [diff] [blame] | 634 | version3.html |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 635 | |
| 636 | doc: common.tcl $(DOC) |
| 637 | mkdir -p doc |
| 638 | mv $(DOC) doc |
| 639 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 640 | install: sqlite3 libsqlite3.la sqlite3.h ${HAVE_TCL:1=tcl_install} |
drh | 8d45ec0 | 2004-09-17 21:07:34 +0000 | [diff] [blame] | 641 | $(INSTALL) -d $(DESTDIR)$(libdir) |
| 642 | $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir) |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 643 | $(INSTALL) -d $(DESTDIR)$(exec_prefix)/bin |
| 644 | $(LTINSTALL) sqlite3 $(DESTDIR)$(exec_prefix)/bin |
| 645 | $(INSTALL) -d $(DESTDIR)$(prefix)/include |
| 646 | $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(prefix)/include |
drh | 8d45ec0 | 2004-09-17 21:07:34 +0000 | [diff] [blame] | 647 | $(INSTALL) -d $(DESTDIR)$(libdir)/pkgconfig; |
| 648 | $(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(libdir)/pkgconfig; |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 649 | |
drh | 4b2266a | 2004-11-27 15:52:16 +0000 | [diff] [blame] | 650 | tcl_install: libtclsqlite3.la |
| 651 | tclsh $(TOP)/tclinstaller.tcl $(VERSION) |
| 652 | |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 653 | clean: |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 654 | rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 655 | rm -f sqlite3.h opcodes.* |
| 656 | rm -rf .libs .deps |
drh | 52fb6d7 | 2004-11-03 03:59:57 +0000 | [diff] [blame] | 657 | rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz |
drh | 73b211a | 2005-01-18 04:00:42 +0000 | [diff] [blame] | 658 | rm -f mkkeywordhash$(BEXE) keywordhash.h |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 659 | rm -f $(PUBLISH) |
| 660 | rm -f *.da *.bb *.bbg gmon.out |
drh | 7b5717e | 2004-11-25 13:50:01 +0000 | [diff] [blame] | 661 | rm -f testfixture$(TEXE) test.db |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 662 | rm -rf doc |
| 663 | rm -f common.tcl |
| 664 | rm -f sqlite3.dll sqlite3.lib |
| 665 | |
| 666 | # |
| 667 | # Windows section; all this funky .dll stuff ;-) |
| 668 | # |
| 669 | dll: sqlite3.dll |
| 670 | |
| 671 | REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o) |
| 672 | |
| 673 | sqlite3.dll: $(LIBOBJ) $(TOP)/sqlite3.def |
| 674 | dllwrap --dllname sqlite3.dll --def $(TOP)/sqlite3.def $(REAL_LIBOBJ) |
| 675 | strip sqlite3.dll |
| 676 | |
| 677 | #target for dll import libraries |
| 678 | implib: sqlite3.lib |
| 679 | |
| 680 | #make Borland C++ and/or Microsoft VC import library for the dll |
| 681 | # ignore any errors (usually due to missing programs) |
| 682 | sqlite3.lib: sqlite3.dll |
drh | bf8f1b3 | 2005-06-16 16:51:15 +0000 | [diff] [blame] | 683 | -impdef -a sqlite3.def sqlite3.dll |
| 684 | -implib sqlite3.lib sqlite3.def |
drh | 376deb1 | 2004-06-30 11:41:55 +0000 | [diff] [blame] | 685 | -lib /machine:i386 /def:$(TOP)/sqlite3.def |
| 686 | |
| 687 | distclean: clean |
| 688 | rm -f config.log config.status libtool Makefile config.h |