| OLD | NEW |
| (Empty) |
| 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 # | |
| 29 TCC = @CC@ @CPPFLAGS@ @CFLAGS@ -I. -I${TOP}/src | |
| 30 | |
| 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 | |
| 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 # | |
| 40 TCC += @TARGET_DEBUG@ @XTHREADCONNECT@ | |
| 41 | |
| 42 # Compiler options needed for programs that use the TCL library. | |
| 43 # | |
| 44 TCC += @TCL_INCLUDE_SPEC@ | |
| 45 | |
| 46 # The library that programs using TCL must link against. | |
| 47 # | |
| 48 LIBTCL = @TCL_LIB_SPEC@ @TCL_LIBS@ | |
| 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 # | |
| 60 TCC += -DSQLITE_THREADSAFE=@SQLITE_THREADSAFE@ | |
| 61 | |
| 62 # Do threads override each others locks by default (1), or do we test (-1) | |
| 63 # | |
| 64 TCC += -DSQLITE_THREAD_OVERRIDE_LOCK=@THREADSOVERRIDELOCKS@ | |
| 65 | |
| 66 # Any target libraries which libsqlite must be linked against | |
| 67 # | |
| 68 TLIBS = @LIBS@ | |
| 69 | |
| 70 # Flags controlling use of the in memory btree implementation | |
| 71 # | |
| 72 # SQLITE_TEMP_STORE is 0 to force temporary tables to be in a file, 1 to | |
| 73 # default to file, 2 to default to memory, and 3 to force temporary | |
| 74 # tables to always be in memory. | |
| 75 # | |
| 76 TEMP_STORE = -DSQLITE_TEMP_STORE=@TEMP_STORE@ | |
| 77 | |
| 78 # Enable/disable loadable extensions, and other optional features | |
| 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. | |
| 82 OPT_FEATURE_FLAGS = @OPT_FEATURE_FLAGS@ | |
| 83 | |
| 84 TCC += $(OPT_FEATURE_FLAGS) | |
| 85 | |
| 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 | |
| 90 # Version numbers and release number for the SQLite being compiled. | |
| 91 # | |
| 92 VERSION = @VERSION@ | |
| 93 VERSION_NUMBER = @VERSION_NUMBER@ | |
| 94 RELEASE = @RELEASE@ | |
| 95 | |
| 96 # Filename extensions | |
| 97 # | |
| 98 BEXE = @BUILD_EXEEXT@ | |
| 99 TEXE = @TARGET_EXEEXT@ | |
| 100 | |
| 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. | |
| 105 # | |
| 106 HAVE_TCL = @HAVE_TCL@ | |
| 107 | |
| 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 | |
| 113 # Where do we want to install the tcl plugin | |
| 114 # | |
| 115 TCLLIBDIR = @TCLLIBDIR@ | |
| 116 | |
| 117 # The suffix used on shared libraries. Ex: ".dll", ".so", ".dylib" | |
| 118 # | |
| 119 SHLIB_SUFFIX = @TCL_SHLIB_SUFFIX@ | |
| 120 | |
| 121 # If gcov support was enabled by the configure script, add the appropriate | |
| 122 # flags here. It's not always as easy as just having the user add the right | |
| 123 # CFLAGS / LDFLAGS, because libtool wants to use CFLAGS when linking, which | |
| 124 # causes build errors with -fprofile-arcs -ftest-coverage with some GCCs. | |
| 125 # Supposedly GCC does the right thing if you use --coverage, but in | |
| 126 # practice it still fails. See: | |
| 127 # | |
| 128 # http://www.mail-archive.com/debian-gcc@lists.debian.org/msg26197.html | |
| 129 # | |
| 130 # for more info. | |
| 131 # | |
| 132 GCOV_CFLAGS1 = -DSQLITE_COVERAGE_TEST=1 -fprofile-arcs -ftest-coverage | |
| 133 GCOV_LDFLAGS1 = -lgcov | |
| 134 USE_GCOV = @USE_GCOV@ | |
| 135 LTCOMPILE_EXTRAS += $(GCOV_CFLAGS$(USE_GCOV)) | |
| 136 LTLINK_EXTRAS += $(GCOV_LDFLAGS$(USE_GCOV)) | |
| 137 | |
| 138 | |
| 139 # The directory into which to store package information for | |
| 140 | |
| 141 # Some standard variables and programs | |
| 142 # | |
| 143 prefix = @prefix@ | |
| 144 exec_prefix = @exec_prefix@ | |
| 145 libdir = @libdir@ | |
| 146 pkgconfigdir = $(libdir)/pkgconfig | |
| 147 bindir = @bindir@ | |
| 148 includedir = @includedir@ | |
| 149 INSTALL = @INSTALL@ | |
| 150 LIBTOOL = ./libtool | |
| 151 ALLOWRELEASE = @ALLOWRELEASE@ | |
| 152 | |
| 153 # libtool compile/link/install | |
| 154 LTCOMPILE = $(LIBTOOL) --mode=compile --tag=CC $(TCC) $(LTCOMPILE_EXTRAS) | |
| 155 LTLINK = $(LIBTOOL) --mode=link $(TCC) $(LTCOMPILE_EXTRAS) @LDFLAGS@ $(LTLINK_EX
TRAS) | |
| 156 LTINSTALL = $(LIBTOOL) --mode=install $(INSTALL) | |
| 157 | |
| 158 # nawk compatible awk. | |
| 159 NAWK = @AWK@ | |
| 160 | |
| 161 # You should not have to change anything below this line | |
| 162 ############################################################################### | |
| 163 | |
| 164 # Object files for the SQLite library (non-amalgamation). | |
| 165 # | |
| 166 OBJS0 = alter.lo analyze.lo attach.lo auth.lo backup.lo bitvec.lo btmutex.lo \ | |
| 167 btree.lo build.lo callback.lo complete.lo date.lo \ | |
| 168 delete.lo expr.lo fault.lo func.lo global.lo \ | |
| 169 hash.lo journal.lo insert.lo legacy.lo loadext.lo \ | |
| 170 main.lo malloc.lo mem0.lo mem1.lo mem2.lo mem3.lo mem5.lo \ | |
| 171 memjournal.lo \ | |
| 172 mutex.lo mutex_noop.lo mutex_os2.lo mutex_unix.lo mutex_w32.lo \ | |
| 173 notify.lo opcodes.lo os.lo os_unix.lo os_win.lo os_os2.lo \ | |
| 174 pager.lo parse.lo pcache.lo pcache1.lo pragma.lo prepare.lo printf.lo \ | |
| 175 random.lo resolve.lo rowset.lo select.lo status.lo \ | |
| 176 table.lo tokenize.lo trigger.lo update.lo \ | |
| 177 util.lo vacuum.lo \ | |
| 178 vdbe.lo vdbeapi.lo vdbeaux.lo vdbeblob.lo vdbemem.lo \ | |
| 179 walker.lo where.lo utf.lo vtab.lo | |
| 180 | |
| 181 # Object files for the amalgamation. | |
| 182 # | |
| 183 OBJS1 = sqlite3.lo | |
| 184 | |
| 185 # Determine the real value of LIBOBJ based on the 'configure' script | |
| 186 # | |
| 187 USE_AMALGAMATION = @USE_AMALGAMATION@ | |
| 188 LIBOBJ = $(OBJS$(USE_AMALGAMATION)) | |
| 189 | |
| 190 | |
| 191 # All of the source code files. | |
| 192 # | |
| 193 SRC = \ | |
| 194 $(TOP)/src/alter.c \ | |
| 195 $(TOP)/src/analyze.c \ | |
| 196 $(TOP)/src/attach.c \ | |
| 197 $(TOP)/src/auth.c \ | |
| 198 $(TOP)/src/backup.c \ | |
| 199 $(TOP)/src/bitvec.c \ | |
| 200 $(TOP)/src/btmutex.c \ | |
| 201 $(TOP)/src/btree.c \ | |
| 202 $(TOP)/src/btree.h \ | |
| 203 $(TOP)/src/btreeInt.h \ | |
| 204 $(TOP)/src/build.c \ | |
| 205 $(TOP)/src/callback.c \ | |
| 206 $(TOP)/src/complete.c \ | |
| 207 $(TOP)/src/date.c \ | |
| 208 $(TOP)/src/delete.c \ | |
| 209 $(TOP)/src/expr.c \ | |
| 210 $(TOP)/src/fault.c \ | |
| 211 $(TOP)/src/func.c \ | |
| 212 $(TOP)/src/global.c \ | |
| 213 $(TOP)/src/hash.c \ | |
| 214 $(TOP)/src/hash.h \ | |
| 215 $(TOP)/src/hwtime.h \ | |
| 216 $(TOP)/src/insert.c \ | |
| 217 $(TOP)/src/journal.c \ | |
| 218 $(TOP)/src/legacy.c \ | |
| 219 $(TOP)/src/loadext.c \ | |
| 220 $(TOP)/src/main.c \ | |
| 221 $(TOP)/src/malloc.c \ | |
| 222 $(TOP)/src/mem0.c \ | |
| 223 $(TOP)/src/mem1.c \ | |
| 224 $(TOP)/src/mem2.c \ | |
| 225 $(TOP)/src/mem3.c \ | |
| 226 $(TOP)/src/mem5.c \ | |
| 227 $(TOP)/src/memjournal.c \ | |
| 228 $(TOP)/src/mutex.c \ | |
| 229 $(TOP)/src/mutex.h \ | |
| 230 $(TOP)/src/mutex_noop.c \ | |
| 231 $(TOP)/src/mutex_os2.c \ | |
| 232 $(TOP)/src/mutex_unix.c \ | |
| 233 $(TOP)/src/mutex_w32.c \ | |
| 234 $(TOP)/src/notify.c \ | |
| 235 $(TOP)/src/os.c \ | |
| 236 $(TOP)/src/os.h \ | |
| 237 $(TOP)/src/os_common.h \ | |
| 238 $(TOP)/src/os_os2.c \ | |
| 239 $(TOP)/src/os_unix.c \ | |
| 240 $(TOP)/src/os_win.c \ | |
| 241 $(TOP)/src/pager.c \ | |
| 242 $(TOP)/src/pager.h \ | |
| 243 $(TOP)/src/parse.y \ | |
| 244 $(TOP)/src/pcache.c \ | |
| 245 $(TOP)/src/pcache.h \ | |
| 246 $(TOP)/src/pcache1.c \ | |
| 247 $(TOP)/src/pragma.c \ | |
| 248 $(TOP)/src/prepare.c \ | |
| 249 $(TOP)/src/printf.c \ | |
| 250 $(TOP)/src/random.c \ | |
| 251 $(TOP)/src/resolve.c \ | |
| 252 $(TOP)/src/rowset.c \ | |
| 253 $(TOP)/src/select.c \ | |
| 254 $(TOP)/src/status.c \ | |
| 255 $(TOP)/src/shell.c \ | |
| 256 $(TOP)/src/sqlite.h.in \ | |
| 257 $(TOP)/src/sqlite3ext.h \ | |
| 258 $(TOP)/src/sqliteInt.h \ | |
| 259 $(TOP)/src/sqliteLimit.h \ | |
| 260 $(TOP)/src/table.c \ | |
| 261 $(TOP)/src/tclsqlite.c \ | |
| 262 $(TOP)/src/tokenize.c \ | |
| 263 $(TOP)/src/trigger.c \ | |
| 264 $(TOP)/src/utf.c \ | |
| 265 $(TOP)/src/update.c \ | |
| 266 $(TOP)/src/util.c \ | |
| 267 $(TOP)/src/vacuum.c \ | |
| 268 $(TOP)/src/vdbe.c \ | |
| 269 $(TOP)/src/vdbe.h \ | |
| 270 $(TOP)/src/vdbeapi.c \ | |
| 271 $(TOP)/src/vdbeaux.c \ | |
| 272 $(TOP)/src/vdbeblob.c \ | |
| 273 $(TOP)/src/vdbemem.c \ | |
| 274 $(TOP)/src/vdbeInt.h \ | |
| 275 $(TOP)/src/vtab.c \ | |
| 276 $(TOP)/src/walker.c \ | |
| 277 $(TOP)/src/where.c | |
| 278 | |
| 279 # Generated source code files | |
| 280 # | |
| 281 SRC += \ | |
| 282 keywordhash.h \ | |
| 283 opcodes.c \ | |
| 284 opcodes.h \ | |
| 285 parse.c \ | |
| 286 parse.h \ | |
| 287 config.h \ | |
| 288 sqlite3.h | |
| 289 | |
| 290 # Source code for extensions | |
| 291 # | |
| 292 SRC += \ | |
| 293 $(TOP)/ext/fts1/fts1.c \ | |
| 294 $(TOP)/ext/fts1/fts1.h \ | |
| 295 $(TOP)/ext/fts1/fts1_hash.c \ | |
| 296 $(TOP)/ext/fts1/fts1_hash.h \ | |
| 297 $(TOP)/ext/fts1/fts1_porter.c \ | |
| 298 $(TOP)/ext/fts1/fts1_tokenizer.h \ | |
| 299 $(TOP)/ext/fts1/fts1_tokenizer1.c | |
| 300 SRC += \ | |
| 301 $(TOP)/ext/fts2/fts2.c \ | |
| 302 $(TOP)/ext/fts2/fts2.h \ | |
| 303 $(TOP)/ext/fts2/fts2_hash.c \ | |
| 304 $(TOP)/ext/fts2/fts2_hash.h \ | |
| 305 $(TOP)/ext/fts2/fts2_icu.c \ | |
| 306 $(TOP)/ext/fts2/fts2_porter.c \ | |
| 307 $(TOP)/ext/fts2/fts2_tokenizer.h \ | |
| 308 $(TOP)/ext/fts2/fts2_tokenizer.c \ | |
| 309 $(TOP)/ext/fts2/fts2_tokenizer1.c | |
| 310 SRC += \ | |
| 311 $(TOP)/ext/fts3/fts3.c \ | |
| 312 $(TOP)/ext/fts3/fts3.h \ | |
| 313 $(TOP)/ext/fts3/fts3_expr.c \ | |
| 314 $(TOP)/ext/fts3/fts3_expr.h \ | |
| 315 $(TOP)/ext/fts3/fts3_hash.c \ | |
| 316 $(TOP)/ext/fts3/fts3_hash.h \ | |
| 317 $(TOP)/ext/fts3/fts3_icu.c \ | |
| 318 $(TOP)/ext/fts3/fts3_porter.c \ | |
| 319 $(TOP)/ext/fts3/fts3_tokenizer.h \ | |
| 320 $(TOP)/ext/fts3/fts3_tokenizer.c \ | |
| 321 $(TOP)/ext/fts3/fts3_tokenizer1.c | |
| 322 SRC += \ | |
| 323 $(TOP)/ext/icu/sqliteicu.h \ | |
| 324 $(TOP)/ext/icu/icu.c | |
| 325 SRC += \ | |
| 326 $(TOP)/ext/rtree/rtree.h \ | |
| 327 $(TOP)/ext/rtree/rtree.c | |
| 328 | |
| 329 # Source code to the library files needed by the test fixture | |
| 330 # | |
| 331 TESTSRC2 = \ | |
| 332 $(TOP)/src/attach.c \ | |
| 333 $(TOP)/src/backup.c \ | |
| 334 $(TOP)/src/bitvec.c \ | |
| 335 $(TOP)/src/btree.c \ | |
| 336 $(TOP)/src/build.c \ | |
| 337 $(TOP)/src/date.c \ | |
| 338 $(TOP)/src/expr.c \ | |
| 339 $(TOP)/src/func.c \ | |
| 340 $(TOP)/src/insert.c \ | |
| 341 $(TOP)/src/mem5.c \ | |
| 342 $(TOP)/src/os.c \ | |
| 343 $(TOP)/src/os_os2.c \ | |
| 344 $(TOP)/src/os_unix.c \ | |
| 345 $(TOP)/src/os_win.c \ | |
| 346 $(TOP)/src/pager.c \ | |
| 347 $(TOP)/src/pcache.c \ | |
| 348 $(TOP)/src/pcache1.c \ | |
| 349 $(TOP)/src/pragma.c \ | |
| 350 $(TOP)/src/prepare.c \ | |
| 351 $(TOP)/src/printf.c \ | |
| 352 $(TOP)/src/random.c \ | |
| 353 $(TOP)/src/select.c \ | |
| 354 $(TOP)/src/tokenize.c \ | |
| 355 $(TOP)/src/utf.c \ | |
| 356 $(TOP)/src/util.c \ | |
| 357 $(TOP)/src/vdbe.c \ | |
| 358 $(TOP)/src/vdbeapi.c \ | |
| 359 $(TOP)/src/vdbeaux.c \ | |
| 360 $(TOP)/src/vdbemem.c \ | |
| 361 $(TOP)/src/where.c \ | |
| 362 parse.c | |
| 363 | |
| 364 # Source code to the actual test files. | |
| 365 # | |
| 366 TESTSRC = \ | |
| 367 $(TOP)/src/test1.c \ | |
| 368 $(TOP)/src/test2.c \ | |
| 369 $(TOP)/src/test3.c \ | |
| 370 $(TOP)/src/test4.c \ | |
| 371 $(TOP)/src/test5.c \ | |
| 372 $(TOP)/src/test6.c \ | |
| 373 $(TOP)/src/test7.c \ | |
| 374 $(TOP)/src/test8.c \ | |
| 375 $(TOP)/src/test9.c \ | |
| 376 $(TOP)/src/test_autoext.c \ | |
| 377 $(TOP)/src/test_async.c \ | |
| 378 $(TOP)/src/test_backup.c \ | |
| 379 $(TOP)/src/test_btree.c \ | |
| 380 $(TOP)/src/test_config.c \ | |
| 381 $(TOP)/src/test_devsym.c \ | |
| 382 $(TOP)/src/test_func.c \ | |
| 383 $(TOP)/src/test_hexio.c \ | |
| 384 $(TOP)/src/test_init.c \ | |
| 385 $(TOP)/src/test_journal.c \ | |
| 386 $(TOP)/src/test_malloc.c \ | |
| 387 $(TOP)/src/test_md5.c \ | |
| 388 $(TOP)/src/test_mutex.c \ | |
| 389 $(TOP)/src/test_onefile.c \ | |
| 390 $(TOP)/src/test_osinst.c \ | |
| 391 $(TOP)/src/test_pcache.c \ | |
| 392 $(TOP)/src/test_schema.c \ | |
| 393 $(TOP)/src/test_server.c \ | |
| 394 $(TOP)/src/test_tclvar.c \ | |
| 395 $(TOP)/src/test_thread.c \ | |
| 396 $(TOP)/src/test_wsd.c | |
| 397 | |
| 398 # Header files used by all library source files. | |
| 399 # | |
| 400 HDR = \ | |
| 401 sqlite3.h \ | |
| 402 $(TOP)/src/btree.h \ | |
| 403 $(TOP)/src/btreeInt.h \ | |
| 404 $(TOP)/src/hash.h \ | |
| 405 $(TOP)/src/hwtime.h \ | |
| 406 $(TOP)/src/sqliteLimit.h \ | |
| 407 $(TOP)/src/mutex.h \ | |
| 408 opcodes.h \ | |
| 409 $(TOP)/src/os.h \ | |
| 410 $(TOP)/src/os_common.h \ | |
| 411 $(TOP)/src/sqlite3ext.h \ | |
| 412 $(TOP)/src/sqliteInt.h \ | |
| 413 $(TOP)/src/vdbe.h \ | |
| 414 $(TOP)/src/vdbeInt.h \ | |
| 415 parse.h \ | |
| 416 config.h | |
| 417 | |
| 418 # Header files used by extensions | |
| 419 # | |
| 420 HDR += \ | |
| 421 $(TOP)/ext/fts1/fts1.h \ | |
| 422 $(TOP)/ext/fts1/fts1_hash.h \ | |
| 423 $(TOP)/ext/fts1/fts1_tokenizer.h | |
| 424 HDR += \ | |
| 425 $(TOP)/ext/fts2/fts2.h \ | |
| 426 $(TOP)/ext/fts2/fts2_hash.h \ | |
| 427 $(TOP)/ext/fts2/fts2_tokenizer.h | |
| 428 HDR += \ | |
| 429 $(TOP)/ext/fts3/fts3.h \ | |
| 430 $(TOP)/ext/fts3/fts3_expr.h \ | |
| 431 $(TOP)/ext/fts3/fts3_hash.h \ | |
| 432 $(TOP)/ext/fts3/fts3_tokenizer.h | |
| 433 HDR += \ | |
| 434 $(TOP)/ext/rtree/rtree.h | |
| 435 HDR += \ | |
| 436 $(TOP)/ext/icu/sqliteicu.h | |
| 437 | |
| 438 # If using the amalgamation, use sqlite3.c directly to build the test | |
| 439 # fixture. Otherwise link against libsqlite3.la. (This distinction is | |
| 440 # necessary because the test fixture requires non-API symbols which are | |
| 441 # hidden when the library is built via the amalgamation). | |
| 442 # | |
| 443 TESTFIXTURE_SRC0 = $(TESTSRC2) libsqlite3.la | |
| 444 TESTFIXTURE_SRC1 = sqlite3.c | |
| 445 TESTFIXTURE_SRC = $(TESTSRC) $(TOP)/src/tclsqlite.c $(TESTFIXTURE_SRC$(USE_AMALG
AMATION)) | |
| 446 | |
| 447 | |
| 448 # This is the default Makefile target. The objects listed here | |
| 449 # are what get build when you type just "make" with no arguments. | |
| 450 # | |
| 451 all: sqlite3.h libsqlite3.la sqlite3$(TEXE) $(HAVE_TCL:1=libtclsqlite3.la) | |
| 452 | |
| 453 Makefile: $(TOP)/Makefile.in | |
| 454 ./config.status | |
| 455 | |
| 456 sqlite3.pc: $(TOP)/sqlite3.pc.in | |
| 457 ./config.status | |
| 458 | |
| 459 # Generate the file "last_change" which contains the date of change | |
| 460 # of the most recently modified source code file | |
| 461 # | |
| 462 last_change: $(SRC) | |
| 463 cat $(SRC) | grep '$$Id: ' | sort -k 5 | tail -1 \ | |
| 464 | $(NAWK) '{print $$5,$$6}' >last_change | |
| 465 | |
| 466 libsqlite3.la: $(LIBOBJ) | |
| 467 $(LTLINK) -o $@ $(LIBOBJ) $(TLIBS) \ | |
| 468 ${ALLOWRELEASE} -rpath "$(libdir)" -version-info "8:6:8" | |
| 469 | |
| 470 libtclsqlite3.la: tclsqlite.lo libsqlite3.la | |
| 471 $(LTLINK) -o $@ tclsqlite.lo \ | |
| 472 libsqlite3.la @TCL_STUB_LIB_SPEC@ $(TLIBS) \ | |
| 473 -rpath "$(TCLLIBDIR)" \ | |
| 474 -version-info "8:6:8" \ | |
| 475 -avoid-version | |
| 476 | |
| 477 sqlite3$(TEXE): $(TOP)/src/shell.c libsqlite3.la sqlite3.h | |
| 478 $(LTLINK) $(READLINE_FLAGS) \ | |
| 479 -o $@ $(TOP)/src/shell.c libsqlite3.la \ | |
| 480 $(LIBREADLINE) $(TLIBS) -rpath "$(libdir)" | |
| 481 | |
| 482 # This target creates a directory named "tsrc" and fills it with | |
| 483 # copies of all of the C source code and header files needed to | |
| 484 # build on the target system. Some of the C source code and header | |
| 485 # files are automatically generated. This target takes care of | |
| 486 # all that automatic generation. | |
| 487 # | |
| 488 .target_source: $(SRC) | |
| 489 rm -rf tsrc | |
| 490 mkdir -p tsrc | |
| 491 cp $(SRC) tsrc | |
| 492 rm tsrc/sqlite.h.in tsrc/parse.y | |
| 493 $(TCLSH_CMD) $(TOP)/tool/vdbe-compress.tcl <tsrc/vdbe.c >vdbe.new | |
| 494 mv vdbe.new tsrc/vdbe.c | |
| 495 touch .target_source | |
| 496 | |
| 497 sqlite3.c: .target_source $(TOP)/tool/mksqlite3c.tcl | |
| 498 $(TCLSH_CMD) $(TOP)/tool/mksqlite3c.tcl | |
| 499 | |
| 500 # Rules to build the LEMON compiler generator | |
| 501 # | |
| 502 lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/src/lempar.c | |
| 503 $(BCC) -o $@ $(TOP)/tool/lemon.c | |
| 504 cp $(TOP)/src/lempar.c . | |
| 505 | |
| 506 | |
| 507 # Rule to build the amalgamation | |
| 508 # | |
| 509 sqlite3.lo: sqlite3.c | |
| 510 $(LTCOMPILE) $(TEMP_STORE) -c sqlite3.c | |
| 511 | |
| 512 # Rules to build individual files | |
| 513 # | |
| 514 alter.lo: $(TOP)/src/alter.c $(HDR) | |
| 515 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/alter.c | |
| 516 | |
| 517 analyze.lo: $(TOP)/src/analyze.c $(HDR) | |
| 518 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/analyze.c | |
| 519 | |
| 520 attach.lo: $(TOP)/src/attach.c $(HDR) | |
| 521 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/attach.c | |
| 522 | |
| 523 auth.lo: $(TOP)/src/auth.c $(HDR) | |
| 524 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/auth.c | |
| 525 | |
| 526 backup.lo: $(TOP)/src/backup.c $(HDR) | |
| 527 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/backup.c | |
| 528 | |
| 529 bitvec.lo: $(TOP)/src/bitvec.c $(HDR) | |
| 530 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/bitvec.c | |
| 531 | |
| 532 btmutex.lo: $(TOP)/src/btmutex.c $(HDR) | |
| 533 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btmutex.c | |
| 534 | |
| 535 btree.lo: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h | |
| 536 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/btree.c | |
| 537 | |
| 538 build.lo: $(TOP)/src/build.c $(HDR) | |
| 539 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/build.c | |
| 540 | |
| 541 callback.lo: $(TOP)/src/callback.c $(HDR) | |
| 542 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/callback.c | |
| 543 | |
| 544 complete.lo: $(TOP)/src/complete.c $(HDR) | |
| 545 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/complete.c | |
| 546 | |
| 547 date.lo: $(TOP)/src/date.c $(HDR) | |
| 548 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/date.c | |
| 549 | |
| 550 delete.lo: $(TOP)/src/delete.c $(HDR) | |
| 551 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/delete.c | |
| 552 | |
| 553 expr.lo: $(TOP)/src/expr.c $(HDR) | |
| 554 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/expr.c | |
| 555 | |
| 556 fault.lo: $(TOP)/src/fault.c $(HDR) | |
| 557 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/fault.c | |
| 558 | |
| 559 func.lo: $(TOP)/src/func.c $(HDR) | |
| 560 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/func.c | |
| 561 | |
| 562 global.lo: $(TOP)/src/global.c $(HDR) | |
| 563 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/global.c | |
| 564 | |
| 565 hash.lo: $(TOP)/src/hash.c $(HDR) | |
| 566 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/hash.c | |
| 567 | |
| 568 insert.lo: $(TOP)/src/insert.c $(HDR) | |
| 569 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/insert.c | |
| 570 | |
| 571 journal.lo: $(TOP)/src/journal.c $(HDR) | |
| 572 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/journal.c | |
| 573 | |
| 574 legacy.lo: $(TOP)/src/legacy.c $(HDR) | |
| 575 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/legacy.c | |
| 576 | |
| 577 loadext.lo: $(TOP)/src/loadext.c $(HDR) | |
| 578 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/loadext.c | |
| 579 | |
| 580 main.lo: $(TOP)/src/main.c $(HDR) | |
| 581 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/main.c | |
| 582 | |
| 583 malloc.lo: $(TOP)/src/malloc.c $(HDR) | |
| 584 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/malloc.c | |
| 585 | |
| 586 mem0.lo: $(TOP)/src/mem0.c $(HDR) | |
| 587 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem0.c | |
| 588 | |
| 589 mem1.lo: $(TOP)/src/mem1.c $(HDR) | |
| 590 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem1.c | |
| 591 | |
| 592 mem2.lo: $(TOP)/src/mem2.c $(HDR) | |
| 593 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem2.c | |
| 594 | |
| 595 mem3.lo: $(TOP)/src/mem3.c $(HDR) | |
| 596 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem3.c | |
| 597 | |
| 598 mem5.lo: $(TOP)/src/mem5.c $(HDR) | |
| 599 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mem5.c | |
| 600 | |
| 601 memjournal.lo: $(TOP)/src/memjournal.c $(HDR) | |
| 602 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/memjournal.c | |
| 603 | |
| 604 mutex.lo: $(TOP)/src/mutex.c $(HDR) | |
| 605 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex.c | |
| 606 | |
| 607 mutex_noop.lo: $(TOP)/src/mutex_noop.c $(HDR) | |
| 608 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_noop.c | |
| 609 | |
| 610 mutex_os2.lo: $(TOP)/src/mutex_os2.c $(HDR) | |
| 611 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_os2.c | |
| 612 | |
| 613 mutex_unix.lo: $(TOP)/src/mutex_unix.c $(HDR) | |
| 614 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_unix.c | |
| 615 | |
| 616 mutex_w32.lo: $(TOP)/src/mutex_w32.c $(HDR) | |
| 617 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/mutex_w32.c | |
| 618 | |
| 619 notify.lo: $(TOP)/src/notify.c $(HDR) | |
| 620 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/notify.c | |
| 621 | |
| 622 pager.lo: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h | |
| 623 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pager.c | |
| 624 | |
| 625 pcache.lo: $(TOP)/src/pcache.c $(HDR) $(TOP)/src/pcache.h | |
| 626 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache.c | |
| 627 | |
| 628 pcache1.lo: $(TOP)/src/pcache1.c $(HDR) $(TOP)/src/pcache.h | |
| 629 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pcache1.c | |
| 630 | |
| 631 opcodes.lo: opcodes.c | |
| 632 $(LTCOMPILE) $(TEMP_STORE) -c opcodes.c | |
| 633 | |
| 634 opcodes.c: opcodes.h $(TOP)/mkopcodec.awk | |
| 635 sort -n -b -k 3 opcodes.h | $(NAWK) -f $(TOP)/mkopcodec.awk >opcodes.c | |
| 636 | |
| 637 opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk | |
| 638 cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes
.h | |
| 639 | |
| 640 os.lo: $(TOP)/src/os.c $(HDR) | |
| 641 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os.c | |
| 642 | |
| 643 os_unix.lo: $(TOP)/src/os_unix.c $(HDR) | |
| 644 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_unix.c | |
| 645 | |
| 646 os_win.lo: $(TOP)/src/os_win.c $(HDR) | |
| 647 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_win.c | |
| 648 | |
| 649 os_os2.lo: $(TOP)/src/os_os2.c $(HDR) | |
| 650 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/os_os2.c | |
| 651 | |
| 652 parse.lo: parse.c $(HDR) | |
| 653 $(LTCOMPILE) $(TEMP_STORE) -c parse.c | |
| 654 | |
| 655 parse.h: parse.c | |
| 656 | |
| 657 parse.c: $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/addopcodes.awk | |
| 658 cp $(TOP)/src/parse.y . | |
| 659 ./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y | |
| 660 mv parse.h parse.h.temp | |
| 661 $(NAWK) -f $(TOP)/addopcodes.awk parse.h.temp >parse.h | |
| 662 | |
| 663 pragma.lo: $(TOP)/src/pragma.c $(HDR) | |
| 664 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/pragma.c | |
| 665 | |
| 666 prepare.lo: $(TOP)/src/prepare.c $(HDR) | |
| 667 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/prepare.c | |
| 668 | |
| 669 printf.lo: $(TOP)/src/printf.c $(HDR) | |
| 670 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/printf.c | |
| 671 | |
| 672 random.lo: $(TOP)/src/random.c $(HDR) | |
| 673 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/random.c | |
| 674 | |
| 675 resolve.lo: $(TOP)/src/resolve.c $(HDR) | |
| 676 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/resolve.c | |
| 677 | |
| 678 rowset.lo: $(TOP)/src/rowset.c $(HDR) | |
| 679 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/rowset.c | |
| 680 | |
| 681 select.lo: $(TOP)/src/select.c $(HDR) | |
| 682 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/select.c | |
| 683 | |
| 684 status.lo: $(TOP)/src/status.c $(HDR) | |
| 685 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/status.c | |
| 686 | |
| 687 sqlite3.h: $(TOP)/src/sqlite.h.in $(TOP)/manifest.uuid $(TOP)/VERSION | |
| 688 tclsh $(TOP)/tool/mksqlite3h.tcl $(TOP) >sqlite3.h | |
| 689 | |
| 690 table.lo: $(TOP)/src/table.c $(HDR) | |
| 691 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/table.c | |
| 692 | |
| 693 tclsqlite.lo: $(TOP)/src/tclsqlite.c $(HDR) | |
| 694 $(LTCOMPILE) -DUSE_TCL_STUBS=1 -c $(TOP)/src/tclsqlite.c | |
| 695 | |
| 696 tokenize.lo: $(TOP)/src/tokenize.c keywordhash.h $(HDR) | |
| 697 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/tokenize.c | |
| 698 | |
| 699 keywordhash.h: $(TOP)/tool/mkkeywordhash.c | |
| 700 $(BCC) -o mkkeywordhash$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) $(TOP)/tool/
mkkeywordhash.c | |
| 701 ./mkkeywordhash$(BEXE) >keywordhash.h | |
| 702 | |
| 703 trigger.lo: $(TOP)/src/trigger.c $(HDR) | |
| 704 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/trigger.c | |
| 705 | |
| 706 update.lo: $(TOP)/src/update.c $(HDR) | |
| 707 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/update.c | |
| 708 | |
| 709 utf.lo: $(TOP)/src/utf.c $(HDR) | |
| 710 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/utf.c | |
| 711 | |
| 712 util.lo: $(TOP)/src/util.c $(HDR) | |
| 713 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/util.c | |
| 714 | |
| 715 vacuum.lo: $(TOP)/src/vacuum.c $(HDR) | |
| 716 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vacuum.c | |
| 717 | |
| 718 vdbe.lo: $(TOP)/src/vdbe.c $(HDR) | |
| 719 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbe.c | |
| 720 | |
| 721 vdbeapi.lo: $(TOP)/src/vdbeapi.c $(HDR) | |
| 722 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeapi.c | |
| 723 | |
| 724 vdbeaux.lo: $(TOP)/src/vdbeaux.c $(HDR) | |
| 725 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeaux.c | |
| 726 | |
| 727 vdbeblob.lo: $(TOP)/src/vdbeblob.c $(HDR) | |
| 728 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbeblob.c | |
| 729 | |
| 730 vdbemem.lo: $(TOP)/src/vdbemem.c $(HDR) | |
| 731 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vdbemem.c | |
| 732 | |
| 733 vtab.lo: $(TOP)/src/vtab.c $(HDR) | |
| 734 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/vtab.c | |
| 735 | |
| 736 walker.lo: $(TOP)/src/walker.c $(HDR) | |
| 737 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/walker.c | |
| 738 | |
| 739 where.lo: $(TOP)/src/where.c $(HDR) | |
| 740 $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/where.c | |
| 741 | |
| 742 tclsqlite-shell.lo: $(TOP)/src/tclsqlite.c $(HDR) | |
| 743 $(LTCOMPILE) -DTCLSH=1 -o $@ -c $(TOP)/src/tclsqlite.c | |
| 744 | |
| 745 tclsqlite-stubs.lo: $(TOP)/src/tclsqlite.c $(HDR) | |
| 746 $(LTCOMPILE) -DTCL_USE_STUBS=1 -o $@ -c $(TOP)/src/tclsqlite.c | |
| 747 | |
| 748 tclsqlite3$(TEXE): tclsqlite-shell.lo libsqlite3.la | |
| 749 $(LTLINK) -o $@ tclsqlite-shell.lo \ | |
| 750 libsqlite3.la $(LIBTCL) | |
| 751 | |
| 752 testfixture$(TEXE): $(TESTFIXTURE_SRC) | |
| 753 $(LTLINK) -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_NO_SYNC=1\ | |
| 754 -DSQLITE_CRASH_TEST=1 \ | |
| 755 -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE $(TEMP_STORE
) \ | |
| 756 -o $@ $(TESTFIXTURE_SRC) $(LIBTCL) $(TLIBS) | |
| 757 | |
| 758 | |
| 759 fulltest: testfixture$(TEXE) sqlite3$(TEXE) | |
| 760 ./testfixture$(TEXE) $(TOP)/test/all.test | |
| 761 | |
| 762 test: testfixture$(TEXE) sqlite3$(TEXE) | |
| 763 ./testfixture$(TEXE) $(TOP)/test/veryquick.test | |
| 764 | |
| 765 sqlite3_analyzer$(TEXE): $(TESTFIXTURE_SRC) $(TOP)/tool/spaceanal.tcl | |
| 766 sed \ | |
| 767 -e '/^#/d' \ | |
| 768 -e 's,\\,\\\\,g' \ | |
| 769 -e 's,",\\",g' \ | |
| 770 -e 's,^,",' \ | |
| 771 -e 's,$$,\\n",' \ | |
| 772 $(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h | |
| 773 $(LTLINK) -DTCLSH=2 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 \ | |
| 774 -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE \ | |
| 775 $(TEMP_STORE) -o $@ $(TESTFIXTURE_SRC) $(LIBTCL) | |
| 776 | |
| 777 | |
| 778 lib_install: libsqlite3.la | |
| 779 $(INSTALL) -d $(DESTDIR)$(libdir) | |
| 780 $(LTINSTALL) libsqlite3.la $(DESTDIR)$(libdir) | |
| 781 | |
| 782 install: sqlite3$(BEXE) lib_install sqlite3.h sqlite3.pc ${HAVE_TCL:1=tcl
_install} | |
| 783 $(INSTALL) -d $(DESTDIR)$(bindir) | |
| 784 $(LTINSTALL) sqlite3$(BEXE) $(DESTDIR)$(bindir) | |
| 785 $(INSTALL) -d $(DESTDIR)$(includedir) | |
| 786 $(INSTALL) -m 0644 sqlite3.h $(DESTDIR)$(includedir) | |
| 787 $(INSTALL) -m 0644 $(TOP)/src/sqlite3ext.h $(DESTDIR)$(includedir) | |
| 788 $(INSTALL) -d $(DESTDIR)$(pkgconfigdir) | |
| 789 $(INSTALL) -m 0644 sqlite3.pc $(DESTDIR)$(pkgconfigdir) | |
| 790 | |
| 791 pkgIndex.tcl: | |
| 792 echo 'package ifneeded sqlite3 $(RELEASE) [list load $(TCLLIBDIR)/libtcl
sqlite3.so sqlite3]' > $@ | |
| 793 tcl_install: lib_install libtclsqlite3.la pkgIndex.tcl | |
| 794 $(INSTALL) -d $(DESTDIR)$(TCLLIBDIR) | |
| 795 $(LTINSTALL) libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR) | |
| 796 rm -f $(DESTDIR)$(TCLLIBDIR)/libtclsqlite3.la $(DESTDIR)$(TCLLIBDIR)/lib
tclsqlite3.a | |
| 797 $(INSTALL) -m 0644 pkgIndex.tcl $(DESTDIR)$(TCLLIBDIR) | |
| 798 | |
| 799 clean: | |
| 800 rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la | |
| 801 rm -f sqlite3.h opcodes.* | |
| 802 rm -rf .libs .deps tsrc | |
| 803 rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz | |
| 804 rm -f mkkeywordhash$(BEXE) keywordhash.h | |
| 805 rm -f $(PUBLISH) | |
| 806 rm -f *.da *.bb *.bbg gmon.out | |
| 807 rm -f testfixture$(TEXE) test.db | |
| 808 rm -f common.tcl | |
| 809 rm -f sqlite3.dll sqlite3.lib sqlite3.def | |
| 810 rm -f sqlite3.c .target_source | |
| 811 | |
| 812 distclean: clean | |
| 813 rm -f config.log config.status libtool Makefile sqlite3.pc | |
| 814 | |
| 815 # | |
| 816 # Windows section | |
| 817 # | |
| 818 dll: sqlite3.dll | |
| 819 | |
| 820 REAL_LIBOBJ = $(LIBOBJ:%.lo=.libs/%.o) | |
| 821 | |
| 822 $(REAL_LIBOBJ): $(LIBOBJ) | |
| 823 | |
| 824 sqlite3.def: $(REAL_LIBOBJ) | |
| 825 echo 'EXPORTS' >sqlite3.def | |
| 826 nm $(REAL_LIBOBJ) | grep ' T ' | grep ' _sqlite3_' \ | |
| 827 | sed 's/^.* _//' >>sqlite3.def | |
| 828 | |
| 829 sqlite3.dll: $(REAL_LIBOBJ) sqlite3.def | |
| 830 $(TCC) -shared -o $@ sqlite3.def \ | |
| 831 -Wl,"--strip-all" $(REAL_LIBOBJ) | |
| OLD | NEW |