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

Side by Side Diff: third_party/sqlite/src/main.mk

Issue 885473002: [sql] Rewrite sqlite patching "system". (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo in readme. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/ext/fts2/fts2.c ('k') | third_party/sqlite/src/src/func.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 ############################################################################### 1 ###############################################################################
2 # The following macros should be defined before this script is 2 # The following macros should be defined before this script is
3 # invoked: 3 # invoked:
4 # 4 #
5 # TOP The toplevel directory of the source tree. This is the 5 # TOP The toplevel directory of the source tree. This is the
6 # directory that contains this "Makefile.in" and the 6 # directory that contains this "Makefile.in" and the
7 # "configure.in" script. 7 # "configure.in" script.
8 # 8 #
9 # BCC C Compiler and options for use in building executables that 9 # BCC C Compiler and options for use in building executables that
10 # will run on the platform that is doing the build. 10 # will run on the platform that is doing the build.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 callback.o complete.o ctime.o date.o delete.o expr.o fault.o fkey.o \ 55 callback.o complete.o ctime.o date.o delete.o expr.o fault.o fkey.o \
56 fts3.o fts3_aux.o fts3_expr.o fts3_hash.o fts3_icu.o fts3_porter.o \ 56 fts3.o fts3_aux.o fts3_expr.o fts3_hash.o fts3_icu.o fts3_porter.o \
57 fts3_snippet.o fts3_tokenizer.o fts3_tokenizer1.o fts3_write.o \ 57 fts3_snippet.o fts3_tokenizer.o fts3_tokenizer1.o fts3_write.o \
58 func.o global.o hash.o \ 58 func.o global.o hash.o \
59 icu.o insert.o journal.o legacy.o loadext.o \ 59 icu.o insert.o journal.o legacy.o loadext.o \
60 main.o malloc.o mem0.o mem1.o mem2.o mem3.o mem5.o \ 60 main.o malloc.o mem0.o mem1.o mem2.o mem3.o mem5.o \
61 memjournal.o \ 61 memjournal.o \
62 mutex.o mutex_noop.o mutex_os2.o mutex_unix.o mutex_w32.o \ 62 mutex.o mutex_noop.o mutex_os2.o mutex_unix.o mutex_w32.o \
63 notify.o opcodes.o os.o os_os2.o os_unix.o os_win.o \ 63 notify.o opcodes.o os.o os_os2.o os_unix.o os_win.o \
64 pager.o parse.o pcache.o pcache1.o pragma.o prepare.o printf.o \ 64 pager.o parse.o pcache.o pcache1.o pragma.o prepare.o printf.o \
65 random.o resolve.o rowset.o rtree.o select.o status.o \ 65 random.o recover.o resolve.o rowset.o rtree.o select.o status.o \
66 table.o tokenize.o trigger.o \ 66 table.o tokenize.o trigger.o \
67 update.o util.o vacuum.o \ 67 update.o util.o vacuum.o \
68 vdbe.o vdbeapi.o vdbeaux.o vdbeblob.o vdbemem.o vdbetrace.o \ 68 vdbe.o vdbeapi.o vdbeaux.o vdbeblob.o vdbemem.o vdbetrace.o \
69 wal.o walker.o where.o utf.o vtab.o 69 wal.o walker.o where.o utf.o vtab.o
70 70
71 71
72 LIBOBJ += fts2.o \ 72 LIBOBJ+= fts2.o \
73 » fts2_hash.o \ 73 fts2_hash.o \
74 » fts2_icu.o \ 74 fts2_icu.o \
75 » fts2_porter.o \ 75 fts2_porter.o \
76 fts2_tokenizer.o \ 76 fts2_tokenizer.o \
77 » fts2_tokenizer1.o 77 fts2_tokenizer1.o
78 78
79 # All of the source code files. 79 # All of the source code files.
80 # 80 #
81 SRC = \ 81 SRC = \
82 $(TOP)/src/alter.c \ 82 $(TOP)/src/alter.c \
83 $(TOP)/src/analyze.c \ 83 $(TOP)/src/analyze.c \
84 $(TOP)/src/attach.c \ 84 $(TOP)/src/attach.c \
85 $(TOP)/src/auth.c \ 85 $(TOP)/src/auth.c \
86 $(TOP)/src/backup.c \ 86 $(TOP)/src/backup.c \
87 $(TOP)/src/bitvec.c \ 87 $(TOP)/src/bitvec.c \
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 $(TOP)/src/pager.c \ 131 $(TOP)/src/pager.c \
132 $(TOP)/src/pager.h \ 132 $(TOP)/src/pager.h \
133 $(TOP)/src/parse.y \ 133 $(TOP)/src/parse.y \
134 $(TOP)/src/pcache.c \ 134 $(TOP)/src/pcache.c \
135 $(TOP)/src/pcache.h \ 135 $(TOP)/src/pcache.h \
136 $(TOP)/src/pcache1.c \ 136 $(TOP)/src/pcache1.c \
137 $(TOP)/src/pragma.c \ 137 $(TOP)/src/pragma.c \
138 $(TOP)/src/prepare.c \ 138 $(TOP)/src/prepare.c \
139 $(TOP)/src/printf.c \ 139 $(TOP)/src/printf.c \
140 $(TOP)/src/random.c \ 140 $(TOP)/src/random.c \
141 $(TOP)/src/recover.c \
141 $(TOP)/src/resolve.c \ 142 $(TOP)/src/resolve.c \
142 $(TOP)/src/rowset.c \ 143 $(TOP)/src/rowset.c \
143 $(TOP)/src/select.c \ 144 $(TOP)/src/select.c \
144 $(TOP)/src/status.c \ 145 $(TOP)/src/status.c \
145 $(TOP)/src/shell.c \ 146 $(TOP)/src/shell.c \
146 $(TOP)/src/sqlite.h.in \ 147 $(TOP)/src/sqlite.h.in \
147 $(TOP)/src/sqlite3ext.h \ 148 $(TOP)/src/sqlite3ext.h \
148 $(TOP)/src/sqliteInt.h \ 149 $(TOP)/src/sqliteInt.h \
149 $(TOP)/src/sqliteLimit.h \ 150 $(TOP)/src/sqliteLimit.h \
150 $(TOP)/src/table.c \ 151 $(TOP)/src/table.c \
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 $(TOP)/src/test_server.c \ 261 $(TOP)/src/test_server.c \
261 $(TOP)/src/test_stat.c \ 262 $(TOP)/src/test_stat.c \
262 $(TOP)/src/test_superlock.c \ 263 $(TOP)/src/test_superlock.c \
263 $(TOP)/src/test_syscall.c \ 264 $(TOP)/src/test_syscall.c \
264 $(TOP)/src/test_tclvar.c \ 265 $(TOP)/src/test_tclvar.c \
265 $(TOP)/src/test_thread.c \ 266 $(TOP)/src/test_thread.c \
266 $(TOP)/src/test_vfs.c \ 267 $(TOP)/src/test_vfs.c \
267 $(TOP)/src/test_wholenumber.c \ 268 $(TOP)/src/test_wholenumber.c \
268 $(TOP)/src/test_wsd.c 269 $(TOP)/src/test_wsd.c
269 270
270 TESTSRC += \
271 $(TOP)/ext/fts2/fts2.c \
272 $(TOP)/ext/fts2/fts2.h \
273 $(TOP)/ext/fts2/fts2_hash.c \
274 $(TOP)/ext/fts2/fts2_hash.h \
275 $(TOP)/ext/fts2/fts2_icu.c \
276 $(TOP)/ext/fts2/fts2_porter.c \
277 $(TOP)/ext/fts2/fts2_tokenizer.h \
278 $(TOP)/ext/fts2/fts2_tokenizer.c \
279 $(TOP)/ext/fts2/fts2_tokenizer1.c
280
281 #TESTSRC += $(TOP)/ext/fts2/fts2_tokenizer.c 271 #TESTSRC += $(TOP)/ext/fts2/fts2_tokenizer.c
282 #TESTSRC += $(TOP)/ext/fts3/fts3_tokenizer.c 272 #TESTSRC += $(TOP)/ext/fts3/fts3_tokenizer.c
283 273
284 TESTSRC2 = \ 274 TESTSRC2 = \
285 $(TOP)/src/attach.c \ 275 $(TOP)/src/attach.c \
286 $(TOP)/src/backup.c \ 276 $(TOP)/src/backup.c \
287 $(TOP)/src/btree.c \ 277 $(TOP)/src/btree.c \
288 $(TOP)/src/build.c \ 278 $(TOP)/src/build.c \
289 $(TOP)/src/date.c \ 279 $(TOP)/src/date.c \
290 $(TOP)/src/expr.c \ 280 $(TOP)/src/expr.c \
291 $(TOP)/src/func.c \ 281 $(TOP)/src/func.c \
292 $(TOP)/src/insert.c \ 282 $(TOP)/src/insert.c \
293 $(TOP)/src/wal.c \ 283 $(TOP)/src/wal.c \
294 $(TOP)/src/mem5.c \ 284 $(TOP)/src/mem5.c \
295 $(TOP)/src/os.c \ 285 $(TOP)/src/os.c \
296 $(TOP)/src/os_os2.c \ 286 $(TOP)/src/os_os2.c \
297 $(TOP)/src/os_unix.c \ 287 $(TOP)/src/os_unix.c \
298 $(TOP)/src/os_win.c \ 288 $(TOP)/src/os_win.c \
299 $(TOP)/src/pager.c \ 289 $(TOP)/src/pager.c \
300 $(TOP)/src/pragma.c \ 290 $(TOP)/src/pragma.c \
301 $(TOP)/src/prepare.c \ 291 $(TOP)/src/prepare.c \
302 $(TOP)/src/printf.c \ 292 $(TOP)/src/printf.c \
303 $(TOP)/src/random.c \ 293 $(TOP)/src/random.c \
294 $(TOP)/src/recover.c \
304 $(TOP)/src/pcache.c \ 295 $(TOP)/src/pcache.c \
305 $(TOP)/src/pcache1.c \ 296 $(TOP)/src/pcache1.c \
306 $(TOP)/src/select.c \ 297 $(TOP)/src/select.c \
307 $(TOP)/src/tokenize.c \ 298 $(TOP)/src/tokenize.c \
308 $(TOP)/src/utf.c \ 299 $(TOP)/src/utf.c \
309 $(TOP)/src/util.c \ 300 $(TOP)/src/util.c \
310 $(TOP)/src/vdbeapi.c \ 301 $(TOP)/src/vdbeapi.c \
311 $(TOP)/src/vdbeaux.c \ 302 $(TOP)/src/vdbeaux.c \
312 $(TOP)/src/vdbe.c \ 303 $(TOP)/src/vdbe.c \
313 $(TOP)/src/vdbemem.c \ 304 $(TOP)/src/vdbemem.c \
314 $(TOP)/src/where.c \ 305 $(TOP)/src/where.c \
315 parse.c \ 306 parse.c \
316 $(TOP)/ext/fts3/fts3.c \ 307 $(TOP)/ext/fts3/fts3.c \
317 $(TOP)/ext/fts3/fts3_aux.c \ 308 $(TOP)/ext/fts3/fts3_aux.c \
318 $(TOP)/ext/fts3/fts3_expr.c \ 309 $(TOP)/ext/fts3/fts3_expr.c \
319 $(TOP)/ext/fts3/fts3_tokenizer.c \ 310 $(TOP)/ext/fts3/fts3_tokenizer.c \
320 $(TOP)/ext/fts3/fts3_write.c \ 311 $(TOP)/ext/fts3/fts3_write.c \
321 $(TOP)/ext/async/sqlite3async.c 312 $(TOP)/ext/async/sqlite3async.c
322 313
314 TESTSRC2 += \
315 $(TOP)/ext/fts2/fts2.c \
316 $(TOP)/ext/fts2/fts2.h \
317 $(TOP)/ext/fts2/fts2_hash.c \
318 $(TOP)/ext/fts2/fts2_hash.h \
319 $(TOP)/ext/fts2/fts2_icu.c \
320 $(TOP)/ext/fts2/fts2_porter.c \
321 $(TOP)/ext/fts2/fts2_tokenizer.h \
322 $(TOP)/ext/fts2/fts2_tokenizer.c \
323 $(TOP)/ext/fts2/fts2_tokenizer1.c
324
323 # Header files used by all library source files. 325 # Header files used by all library source files.
324 # 326 #
325 HDR = \ 327 HDR = \
326 $(TOP)/src/btree.h \ 328 $(TOP)/src/btree.h \
327 $(TOP)/src/btreeInt.h \ 329 $(TOP)/src/btreeInt.h \
328 $(TOP)/src/hash.h \ 330 $(TOP)/src/hash.h \
329 $(TOP)/src/hwtime.h \ 331 $(TOP)/src/hwtime.h \
330 keywordhash.h \ 332 keywordhash.h \
331 $(TOP)/src/mutex.h \ 333 $(TOP)/src/mutex.h \
332 opcodes.h \ 334 opcodes.h \
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 # 369 #
368 all: sqlite3.h libsqlite3.a sqlite3$(EXE) 370 all: sqlite3.h libsqlite3.a sqlite3$(EXE)
369 371
370 libsqlite3.a: $(LIBOBJ) 372 libsqlite3.a: $(LIBOBJ)
371 $(AR) libsqlite3.a $(LIBOBJ) 373 $(AR) libsqlite3.a $(LIBOBJ)
372 $(RANLIB) libsqlite3.a 374 $(RANLIB) libsqlite3.a
373 375
374 sqlite3$(EXE): $(TOP)/src/shell.c libsqlite3.a sqlite3.h 376 sqlite3$(EXE): $(TOP)/src/shell.c libsqlite3.a sqlite3.h
375 $(TCCX) $(READLINE_FLAGS) -o sqlite3$(EXE) \ 377 $(TCCX) $(READLINE_FLAGS) -o sqlite3$(EXE) \
376 $(TOP)/src/shell.c $(SHELL_ICU) \ 378 $(TOP)/src/shell.c $(SHELL_ICU) \
377 » » libsqlite3.a $(LIBREADLINE) $(TLIBS) $(THREADLIB) -ldl 379 » » libsqlite3.a $(LIBREADLINE) $(TLIBS) $(THREADLIB)
378 380
379 # This target creates a directory named "tsrc" and fills it with 381 # This target creates a directory named "tsrc" and fills it with
380 # copies of all of the C source code and header files needed to 382 # copies of all of the C source code and header files needed to
381 # build on the target system. Some of the C source code and header 383 # build on the target system. Some of the C source code and header
382 # files are automatically generated. This target takes care of 384 # files are automatically generated. This target takes care of
383 # all that automatic generation. 385 # all that automatic generation.
384 # 386 #
385 target_source: $(SRC) $(TOP)/tool/vdbe-compress.tcl 387 target_source: $(SRC) $(TOP)/tool/vdbe-compress.tcl
386 rm -rf tsrc 388 rm -rf tsrc
387 mkdir tsrc 389 mkdir tsrc
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 525
524 526
525 # Rules to build the 'testfixture' application. 527 # Rules to build the 'testfixture' application.
526 # 528 #
527 TESTFIXTURE_FLAGS = -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 529 TESTFIXTURE_FLAGS = -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1
528 TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE 530 TESTFIXTURE_FLAGS += -DSQLITE_SERVER=1 -DSQLITE_PRIVATE="" -DSQLITE_CORE
529 531
530 testfixture$(EXE): $(TESTSRC2) libsqlite3.a $(TESTSRC) $(TOP)/src/tclsqlite.c 532 testfixture$(EXE): $(TESTSRC2) libsqlite3.a $(TESTSRC) $(TOP)/src/tclsqlite.c
531 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 $(TESTFIXTURE_FLAGS) \ 533 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 $(TESTFIXTURE_FLAGS) \
532 $(TESTSRC) $(TESTSRC2) $(TOP)/src/tclsqlite.c \ 534 $(TESTSRC) $(TESTSRC2) $(TOP)/src/tclsqlite.c \
533 » » -o testfixture$(EXE) $(LIBTCL) $(THREADLIB) libsqlite3.a 535 » » $(LIBTCL) $(THREADLIB) libsqlite3.a $(TLIBS)
536 » mv a.out testfixture$(EXE)
534 537
535 amalgamation-testfixture$(EXE): sqlite3.c $(TESTSRC) $(TOP)/src/tclsqlite.c 538 amalgamation-testfixture$(EXE): sqlite3.c $(TESTSRC) $(TOP)/src/tclsqlite.c
536 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 $(TESTFIXTURE_FLAGS) \ 539 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 $(TESTFIXTURE_FLAGS) \
537 $(TESTSRC) $(TOP)/src/tclsqlite.c sqlite3.c \ 540 $(TESTSRC) $(TOP)/src/tclsqlite.c sqlite3.c \
538 -o testfixture$(EXE) $(LIBTCL) $(THREADLIB) 541 -o testfixture$(EXE) $(LIBTCL) $(THREADLIB)
539 542
540 fts3-testfixture$(EXE): sqlite3.c fts3amal.c $(TESTSRC) $(TOP)/src/tclsqlite.c 543 fts3-testfixture$(EXE): sqlite3.c fts3amal.c $(TESTSRC) $(TOP)/src/tclsqlite.c
541 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 $(TESTFIXTURE_FLAGS) \ 544 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 $(TESTFIXTURE_FLAGS) \
542 -DSQLITE_ENABLE_FTS3=1 \ 545 -DSQLITE_ENABLE_FTS3=1 \
543 $(TESTSRC) $(TOP)/src/tclsqlite.c sqlite3.c fts3amal.c \ 546 $(TESTSRC) $(TOP)/src/tclsqlite.c sqlite3.c fts3amal.c \
(...skipping 12 matching lines...) Expand all
556 # threadtest runs a few thread-safety tests that are implemented in C. This 559 # threadtest runs a few thread-safety tests that are implemented in C. This
557 # target is invoked by the releasetest.tcl script. 560 # target is invoked by the releasetest.tcl script.
558 # 561 #
559 threadtest3$(EXE): sqlite3.o $(TOP)/test/threadtest3.c $(TOP)/test/tt3_checkpoin t.c 562 threadtest3$(EXE): sqlite3.o $(TOP)/test/threadtest3.c $(TOP)/test/tt3_checkpoin t.c
560 $(TCCX) -O2 sqlite3.o $(TOP)/test/threadtest3.c \ 563 $(TCCX) -O2 sqlite3.o $(TOP)/test/threadtest3.c \
561 -o threadtest3$(EXE) $(THREADLIB) 564 -o threadtest3$(EXE) $(THREADLIB)
562 565
563 threadtest: threadtest3$(EXE) 566 threadtest: threadtest3$(EXE)
564 ./threadtest3$(EXE) 567 ./threadtest3$(EXE)
565 568
566 fts2test: testfixture$(EXE) sqlite3$(EXE)
567 ./testfixture$(EXE) $(TOP)/test/fts2.test
568
569 sqlite3_analyzer$(EXE): $(TOP)/src/tclsqlite.c sqlite3.c $(TESTSRC) \ 569 sqlite3_analyzer$(EXE): $(TOP)/src/tclsqlite.c sqlite3.c $(TESTSRC) \
570 $(TOP)/tool/spaceanal.tcl 570 $(TOP)/tool/spaceanal.tcl
571 sed \ 571 sed \
572 -e '/^#/d' \ 572 -e '/^#/d' \
573 -e 's,\\,\\\\,g' \ 573 -e 's,\\,\\\\,g' \
574 -e 's,",\\",g' \ 574 -e 's,",\\",g' \
575 -e 's,^,",' \ 575 -e 's,^,",' \
576 -e 's,$$,\\n",' \ 576 -e 's,$$,\\n",' \
577 $(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h 577 $(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h
578 $(TCCX) $(TCL_FLAGS) -DTCLSH=2 $(TESTFIXTURE_FLAGS) \ 578 $(TCCX) $(TCL_FLAGS) -DTCLSH=2 $(TESTFIXTURE_FLAGS) \
(...skipping 18 matching lines...) Expand all
597 mv sqlite3.h /usr/include 597 mv sqlite3.h /usr/include
598 598
599 clean: 599 clean:
600 rm -f *.o sqlite3 libsqlite3.a sqlite3.h opcodes.* 600 rm -f *.o sqlite3 libsqlite3.a sqlite3.h opcodes.*
601 rm -f lemon lempar.c parse.* sqlite*.tar.gz mkkeywordhash keywordhash.h 601 rm -f lemon lempar.c parse.* sqlite*.tar.gz mkkeywordhash keywordhash.h
602 rm -f $(PUBLISH) 602 rm -f $(PUBLISH)
603 rm -f *.da *.bb *.bbg gmon.out 603 rm -f *.da *.bb *.bbg gmon.out
604 rm -rf tsrc target_source 604 rm -rf tsrc target_source
605 rm -f testloadext.dll libtestloadext.so 605 rm -f testloadext.dll libtestloadext.so
606 rm -f sqlite3.c fts?amal.c tclsqlite3.c 606 rm -f sqlite3.c fts?amal.c tclsqlite3.c
OLDNEW
« no previous file with comments | « third_party/sqlite/src/ext/fts2/fts2.c ('k') | third_party/sqlite/src/src/func.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698