[Author: zork]
[google-gears.git] / gears / third_party / sqlite_google / main.mk
blob39aef355dd67e92f776a889cf8a2c6fa5286baa8
1 ###############################################################################
2 # The following macros should be defined before this script is
3 # invoked:
5 # TOP The toplevel directory of the source tree. This is the
6 # directory that contains this "Makefile.in" and the
7 # "configure.in" script.
9 # BCC C Compiler and options for use in building executables that
10 # will run on the platform that is doing the build.
12 # USLEEP If the target operating system supports the "usleep()" system
13 # call, then define the HAVE_USLEEP macro for all C modules.
15 # THREADSAFE If you want the SQLite library to be safe for use within a
16 # multi-threaded program, then define the following macro
17 # appropriately:
19 # THREADLIB Specify any extra linker options needed to make the library
20 # thread safe
22 # OPTS Extra compiler command-line options.
24 # EXE The suffix to add to executable files. ".exe" for windows
25 # and "" for Unix.
27 # TCC C Compiler and options for use in building executables that
28 # will run on the target platform. This is usually the same
29 # as BCC, unless you are cross-compiling.
31 # AR Tools used to build a static library.
32 # RANLIB
34 # TCL_FLAGS Extra compiler options needed for programs that use the
35 # TCL library.
37 # LIBTCL Linker options needed to link against the TCL library.
39 # READLINE_FLAGS Compiler options needed for programs that use the
40 # readline() library.
42 # LIBREADLINE Linker options needed by programs using readline() must
43 # link against.
45 # NAWK Nawk compatible awk program. Older (obsolete?) solaris
46 # systems need this to avoid using the original AT&T AWK.
48 # Once the macros above are defined, the rest of this make script will
49 # build the SQLite library and testing tools.
50 ################################################################################
52 # This is how we compile
54 TCCX = $(TCC) $(OPTS) $(THREADSAFE) $(USLEEP) -I. -I$(TOP)/src
56 # Object files for the SQLite library.
58 LIBOBJ+= alter.o analyze.o attach.o auth.o btree.o build.o \
59 callback.o complete.o date.o delete.o \
60 expr.o func.o hash.o insert.o loadext.o \
61 main.o malloc.o opcodes.o os.o os_os2.o os_unix.o os_win.o \
62 pager.o parse.o pragma.o prepare.o printf.o random.o \
63 select.o table.o tclsqlite.o tokenize.o trigger.o \
64 update.o util.o vacuum.o \
65 vdbe.o vdbeapi.o vdbeaux.o vdbeblob.o vdbefifo.o vdbemem.o \
66 where.o utf.o legacy.o vtab.o
68 LIBOBJ += fts1.o \
69 fts1_hash.o \
70 fts1_tokenizer1.o \
71 fts1_porter.o
72 LIBOBJ += fts2.o \
73 fts2_hash.o \
74 fts2_porter.o \
75 fts2_tokenizer1.o
77 # All of the source code files.
79 SRC = \
80 $(TOP)/src/alter.c \
81 $(TOP)/src/analyze.c \
82 $(TOP)/src/attach.c \
83 $(TOP)/src/auth.c \
84 $(TOP)/src/btree.c \
85 $(TOP)/src/btree.h \
86 $(TOP)/src/build.c \
87 $(TOP)/src/callback.c \
88 $(TOP)/src/complete.c \
89 $(TOP)/src/date.c \
90 $(TOP)/src/delete.c \
91 $(TOP)/src/expr.c \
92 $(TOP)/src/func.c \
93 $(TOP)/src/hash.c \
94 $(TOP)/src/hash.h \
95 $(TOP)/src/insert.c \
96 $(TOP)/src/legacy.c \
97 $(TOP)/src/loadext.c \
98 $(TOP)/src/main.c \
99 $(TOP)/src/malloc.c \
100 $(TOP)/src/os.c \
101 $(TOP)/src/os_os2.c \
102 $(TOP)/src/os_unix.c \
103 $(TOP)/src/os_win.c \
104 $(TOP)/src/pager.c \
105 $(TOP)/src/pager.h \
106 $(TOP)/src/parse.y \
107 $(TOP)/src/pragma.c \
108 $(TOP)/src/prepare.c \
109 $(TOP)/src/printf.c \
110 $(TOP)/src/random.c \
111 $(TOP)/src/select.c \
112 $(TOP)/src/shell.c \
113 $(TOP)/src/sqlite.h.in \
114 $(TOP)/src/sqlite3ext.h \
115 $(TOP)/src/sqliteInt.h \
116 $(TOP)/src/table.c \
117 $(TOP)/src/tclsqlite.c \
118 $(TOP)/src/tokenize.c \
119 $(TOP)/src/trigger.c \
120 $(TOP)/src/utf.c \
121 $(TOP)/src/update.c \
122 $(TOP)/src/util.c \
123 $(TOP)/src/vacuum.c \
124 $(TOP)/src/vdbe.c \
125 $(TOP)/src/vdbe.h \
126 $(TOP)/src/vdbeapi.c \
127 $(TOP)/src/vdbeaux.c \
128 $(TOP)/src/vdbeblob.c \
129 $(TOP)/src/vdbefifo.c \
130 $(TOP)/src/vdbemem.c \
131 $(TOP)/src/vdbeInt.h \
132 $(TOP)/src/vtab.c \
133 $(TOP)/src/where.c
135 # Source code for extensions
137 SRC += \
138 $(TOP)/ext/fts1/fts1.c \
139 $(TOP)/ext/fts1/fts1.h \
140 $(TOP)/ext/fts1/fts1_hash.c \
141 $(TOP)/ext/fts1/fts1_hash.h \
142 $(TOP)/ext/fts1/fts1_porter.c \
143 $(TOP)/ext/fts1/fts1_tokenizer.h \
144 $(TOP)/ext/fts1/fts1_tokenizer1.c
145 SRC += \
146 $(TOP)/ext/fts2/fts2.c \
147 $(TOP)/ext/fts2/fts2.h \
148 $(TOP)/ext/fts2/fts2_hash.c \
149 $(TOP)/ext/fts2/fts2_hash.h \
150 $(TOP)/ext/fts2/fts2_porter.c \
151 $(TOP)/ext/fts2/fts2_tokenizer.h \
152 $(TOP)/ext/fts2/fts2_tokenizer1.c
154 # Generated source code files
156 SRC += \
157 keywordhash.h \
158 opcodes.c \
159 opcodes.h \
160 parse.c \
161 parse.h \
162 sqlite3.h
165 # Source code to the test files.
167 TESTSRC = \
168 $(TOP)/src/btree.c \
169 $(TOP)/src/date.c \
170 $(TOP)/src/func.c \
171 $(TOP)/src/insert.c \
172 $(TOP)/src/main.c \
173 $(TOP)/src/malloc.c \
174 $(TOP)/src/os.c \
175 $(TOP)/src/os_os2.c \
176 $(TOP)/src/os_unix.c \
177 $(TOP)/src/os_win.c \
178 $(TOP)/src/pager.c \
179 $(TOP)/src/pragma.c \
180 $(TOP)/src/printf.c \
181 $(TOP)/src/test1.c \
182 $(TOP)/src/test2.c \
183 $(TOP)/src/test3.c \
184 $(TOP)/src/test4.c \
185 $(TOP)/src/test5.c \
186 $(TOP)/src/test6.c \
187 $(TOP)/src/test7.c \
188 $(TOP)/src/test8.c \
189 $(TOP)/src/test9.c \
190 $(TOP)/src/test_autoext.c \
191 $(TOP)/src/test_async.c \
192 $(TOP)/src/test_btree.c \
193 $(TOP)/src/test_config.c \
194 $(TOP)/src/test_hexio.c \
195 $(TOP)/src/test_md5.c \
196 $(TOP)/src/test_schema.c \
197 $(TOP)/src/test_server.c \
198 $(TOP)/src/test_tclvar.c \
199 $(TOP)/src/utf.c \
200 $(TOP)/src/util.c \
201 $(TOP)/src/vdbe.c \
202 $(TOP)/src/vdbeaux.c \
203 $(TOP)/src/where.c
205 # Header files used by all library source files.
207 HDR = \
208 sqlite3.h \
209 $(TOP)/src/btree.h \
210 $(TOP)/src/btreeInt.h \
211 $(TOP)/src/hash.h \
212 $(TOP)/src/limits.h \
213 opcodes.h \
214 $(TOP)/src/os.h \
215 $(TOP)/src/os_common.h \
216 $(TOP)/src/sqlite3ext.h \
217 $(TOP)/src/sqliteInt.h \
218 $(TOP)/src/vdbe.h \
219 parse.h
221 # Header files used by extensions
223 EXTHDR += \
224 $(TOP)/ext/fts1/fts1.h \
225 $(TOP)/ext/fts1/fts1_hash.h \
226 $(TOP)/ext/fts1/fts1_tokenizer.h
227 EXTHDR += \
228 $(TOP)/ext/fts2/fts2.h \
229 $(TOP)/ext/fts2/fts2_hash.h \
230 $(TOP)/ext/fts2/fts2_tokenizer.h
233 # Header files used by the VDBE submodule
235 VDBEHDR = \
236 $(TOP)/src/vdbeInt.h
238 # This is the default Makefile target. The objects listed here
239 # are what get build when you type just "make" with no arguments.
241 all: sqlite3.h libsqlite3.a sqlite3$(EXE)
243 # Generate the file "last_change" which contains the date of change
244 # of the most recently modified source code file
246 last_change: $(SRC)
247 cat $(SRC) | grep '$$Id: ' | sort -k 5 | tail -1 \
248 | $(NAWK) '{print $$5,$$6}' >last_change
250 libsqlite3.a: $(LIBOBJ)
251 $(AR) libsqlite3.a $(LIBOBJ)
252 $(RANLIB) libsqlite3.a
254 sqlite3$(EXE): $(TOP)/src/shell.c libsqlite3.a sqlite3.h
255 $(TCCX) $(READLINE_FLAGS) -o sqlite3$(EXE) $(TOP)/src/shell.c \
256 libsqlite3.a $(LIBREADLINE) $(TLIBS) $(THREADLIB) -ldl
258 objects: $(LIBOBJ_ORIG)
260 # This target creates a directory named "tsrc" and fills it with
261 # copies of all of the C source code and header files needed to
262 # build on the target system. Some of the C source code and header
263 # files are automatically generated. This target takes care of
264 # all that automatic generation.
266 target_source: $(SRC)
267 rm -rf tsrc
268 mkdir tsrc
269 cp -f $(SRC) $(TOP)/src/*.h tsrc 2>/dev/null
270 rm tsrc/sqlite.h.in tsrc/parse.y
272 sqlite3.c: target_source $(TOP)/tool/mksqlite3c.tcl
273 tclsh $(TOP)/tool/mksqlite3c.tcl
274 cp sqlite3.c tclsqlite3.c
275 cat $(TOP)/src/tclsqlite.c >>tclsqlite3.c
276 tclsh $(TOP)/tool/mksqlite3internalh.tcl
278 # Rules to build the LEMON compiler generator
280 lemon: $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
281 $(BCC) -o lemon $(TOP)/tool/lemon.c
282 cp $(TOP)/tool/lempar.c .
284 # Rules to build individual files
286 alter.o: $(TOP)/src/alter.c $(HDR)
287 $(TCCX) -c $(TOP)/src/alter.c
289 analyze.o: $(TOP)/src/analyze.c $(HDR)
290 $(TCCX) -c $(TOP)/src/analyze.c
292 attach.o: $(TOP)/src/attach.c $(HDR)
293 $(TCCX) -c $(TOP)/src/attach.c
295 auth.o: $(TOP)/src/auth.c $(HDR)
296 $(TCCX) -c $(TOP)/src/auth.c
298 btree.o: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h
299 $(TCCX) -c $(TOP)/src/btree.c
301 build.o: $(TOP)/src/build.c $(HDR)
302 $(TCCX) -c $(TOP)/src/build.c
304 callback.o: $(TOP)/src/callback.c $(HDR)
305 $(TCCX) -c $(TOP)/src/callback.c
307 complete.o: $(TOP)/src/complete.c $(HDR)
308 $(TCCX) -c $(TOP)/src/complete.c
310 date.o: $(TOP)/src/date.c $(HDR)
311 $(TCCX) -c $(TOP)/src/date.c
313 delete.o: $(TOP)/src/delete.c $(HDR)
314 $(TCCX) -c $(TOP)/src/delete.c
316 expr.o: $(TOP)/src/expr.c $(HDR)
317 $(TCCX) -c $(TOP)/src/expr.c
319 func.o: $(TOP)/src/func.c $(HDR)
320 $(TCCX) -c $(TOP)/src/func.c
322 hash.o: $(TOP)/src/hash.c $(HDR)
323 $(TCCX) -c $(TOP)/src/hash.c
325 icu.o: $(TOP)/ext/icu/icu.c $(HDR)
326 $(TCCX) -c $(TOP)/ext/icu/icu.c
328 insert.o: $(TOP)/src/insert.c $(HDR)
329 $(TCCX) -c $(TOP)/src/insert.c
331 legacy.o: $(TOP)/src/legacy.c $(HDR)
332 $(TCCX) -c $(TOP)/src/legacy.c
334 loadext.o: $(TOP)/src/loadext.c $(HDR)
335 $(TCCX) -c $(TOP)/src/loadext.c
337 main.o: $(TOP)/src/main.c $(HDR)
338 $(TCCX) -c $(TOP)/src/main.c
340 malloc.o: $(TOP)/src/malloc.c $(HDR)
341 $(TCCX) -c $(TOP)/src/malloc.c
343 pager.o: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h
344 $(TCCX) -c $(TOP)/src/pager.c
346 opcodes.o: opcodes.c
347 $(TCCX) -c opcodes.c
349 opcodes.c: opcodes.h $(TOP)/mkopcodec.awk
350 sort -n -b -k 3 opcodes.h | $(NAWK) -f $(TOP)/mkopcodec.awk >opcodes.c
352 opcodes.h: parse.h $(TOP)/src/vdbe.c $(TOP)/mkopcodeh.awk
353 cat parse.h $(TOP)/src/vdbe.c | $(NAWK) -f $(TOP)/mkopcodeh.awk >opcodes.h
355 os.o: $(TOP)/src/os.c $(HDR)
356 $(TCCX) -c $(TOP)/src/os.c
358 os_os2.o: $(TOP)/src/os_os2.c $(HDR)
359 $(TCCX) -c $(TOP)/src/os_os2.c
361 os_unix.o: $(TOP)/src/os_unix.c $(HDR)
362 $(TCCX) -c $(TOP)/src/os_unix.c
364 os_win.o: $(TOP)/src/os_win.c $(HDR)
365 $(TCCX) -c $(TOP)/src/os_win.c
367 parse.o: parse.c $(HDR)
368 $(TCCX) -c parse.c
370 parse.h: parse.c
372 parse.c: $(TOP)/src/parse.y lemon $(TOP)/addopcodes.awk
373 cp $(TOP)/src/parse.y .
374 ./lemon $(OPTS) parse.y
375 mv parse.h parse.h.temp
376 awk -f $(TOP)/addopcodes.awk parse.h.temp >parse.h
378 pragma.o: $(TOP)/src/pragma.c $(HDR)
379 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/pragma.c
381 prepare.o: $(TOP)/src/prepare.c $(HDR)
382 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/prepare.c
384 printf.o: $(TOP)/src/printf.c $(HDR)
385 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/printf.c
387 random.o: $(TOP)/src/random.c $(HDR)
388 $(TCCX) -c $(TOP)/src/random.c
390 select.o: $(TOP)/src/select.c $(HDR)
391 $(TCCX) -c $(TOP)/src/select.c
393 sqlite3.h: $(TOP)/src/sqlite.h.in
394 sed -e s/--VERS--/`cat ${TOP}/VERSION`/ \
395 -e s/--VERSION-NUMBER--/`cat ${TOP}/VERSION | sed 's/[^0-9]/ /g' | $(NAWK) '{printf "%d%03d%03d",$$1,$$2,$$3}'`/ \
396 $(TOP)/src/sqlite.h.in >sqlite3.h
398 table.o: $(TOP)/src/table.c $(HDR)
399 $(TCCX) -c $(TOP)/src/table.c
401 tclsqlite.o: $(TOP)/src/tclsqlite.c $(HDR)
402 $(TCCX) $(TCL_FLAGS) -c $(TOP)/src/tclsqlite.c
404 tokenize.o: $(TOP)/src/tokenize.c keywordhash.h $(HDR)
405 $(TCCX) -c $(TOP)/src/tokenize.c
407 keywordhash.h: $(TOP)/tool/mkkeywordhash.c
408 $(BCC) -o mkkeywordhash $(OPTS) $(TOP)/tool/mkkeywordhash.c
409 ./mkkeywordhash >keywordhash.h
411 trigger.o: $(TOP)/src/trigger.c $(HDR)
412 $(TCCX) -c $(TOP)/src/trigger.c
414 update.o: $(TOP)/src/update.c $(HDR)
415 $(TCCX) -c $(TOP)/src/update.c
417 utf.o: $(TOP)/src/utf.c $(HDR)
418 $(TCCX) -c $(TOP)/src/utf.c
420 util.o: $(TOP)/src/util.c $(HDR)
421 $(TCCX) -c $(TOP)/src/util.c
423 vacuum.o: $(TOP)/src/vacuum.c $(HDR)
424 $(TCCX) -c $(TOP)/src/vacuum.c
426 vdbe.o: $(TOP)/src/vdbe.c $(VDBEHDR) $(HDR)
427 $(TCCX) -c $(TOP)/src/vdbe.c
429 vdbeapi.o: $(TOP)/src/vdbeapi.c $(VDBEHDR) $(HDR)
430 $(TCCX) -c $(TOP)/src/vdbeapi.c
432 vdbeaux.o: $(TOP)/src/vdbeaux.c $(VDBEHDR) $(HDR)
433 $(TCCX) -c $(TOP)/src/vdbeaux.c
435 vdbeblob.o: $(TOP)/src/vdbeblob.c $(VDBEHDR) $(HDR)
436 $(TCCX) -c $(TOP)/src/vdbeblob.c
438 vdbefifo.o: $(TOP)/src/vdbefifo.c $(VDBEHDR) $(HDR)
439 $(TCCX) -c $(TOP)/src/vdbefifo.c
441 vdbemem.o: $(TOP)/src/vdbemem.c $(VDBEHDR) $(HDR)
442 $(TCCX) -c $(TOP)/src/vdbemem.c
444 vtab.o: $(TOP)/src/vtab.c $(VDBEHDR) $(HDR)
445 $(TCCX) -c $(TOP)/src/vtab.c
447 where.o: $(TOP)/src/where.c $(HDR)
448 $(TCCX) -c $(TOP)/src/where.c
452 fts1.o: $(TOP)/ext/fts1/fts1.c $(HDR) $(EXTHDR)
453 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts1/fts1.c
455 fts1_hash.o: $(TOP)/ext/fts1/fts1_hash.c $(HDR) $(EXTHDR)
456 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts1/fts1_hash.c
458 fts1_tokenizer1.o: $(TOP)/ext/fts1/fts1_tokenizer1.c $(HDR) $(EXTHDR)
459 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts1/fts1_tokenizer1.c
461 fts1_porter.o: $(TOP)/ext/fts1/fts1_porter.c $(HDR) $(EXTHDR)
462 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts1/fts1_porter.c
464 fts2.o: $(TOP)/ext/fts2/fts2.c $(HDR) $(EXTHDR)
465 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2.c
467 fts2_hash.o: $(TOP)/ext/fts2/fts2_hash.c $(HDR) $(EXTHDR)
468 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_hash.c
470 fts2_porter.o: $(TOP)/ext/fts2/fts2_porter.c $(HDR) $(EXTHDR)
471 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_porter.c
473 fts2_tokenizer1.o: $(TOP)/ext/fts2/fts2_tokenizer1.c $(HDR) $(EXTHDR)
474 $(TCCX) -DSQLITE_CORE -c $(TOP)/ext/fts2/fts2_tokenizer1.c
476 # Rules for building test programs and for running tests
478 tclsqlite3: $(TOP)/src/tclsqlite.c libsqlite3.a
479 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 -o tclsqlite3 \
480 $(TOP)/src/tclsqlite.c libsqlite3.a $(LIBTCL) $(THREADLIB)
482 testfixture$(EXE): $(TOP)/src/tclsqlite.c libsqlite3.a $(TESTSRC)
483 $(TCCX) $(TCL_FLAGS) -DTCLSH=1 -DSQLITE_TEST=1 -DSQLITE_CRASH_TEST=1 \
484 -DSQLITE_SERVER=1 -o testfixture$(EXE) \
485 $(TESTSRC) $(TOP)/src/tclsqlite.c \
486 libsqlite3.a $(LIBTCL) $(THREADLIB)
488 fulltest: testfixture$(EXE) sqlite3$(EXE)
489 ./testfixture$(EXE) $(TOP)/test/all.test
491 soaktest: testfixture$(EXE) sqlite3$(EXE)
492 ./testfixture$(EXE) $(TOP)/test/all.test -soak 1
494 test: testfixture$(EXE) sqlite3$(EXE)
495 ./testfixture$(EXE) $(TOP)/test/quick.test
497 ftstest: testfixture$(EXE) sqlite3$(EXE)
498 ./testfixture$(EXE) $(TOP)/test/fts.test
500 fts1test: testfixture$(EXE) sqlite3$(EXE)
501 ./testfixture$(EXE) $(TOP)/test/fts1.test
503 fts2test: testfixture$(EXE) sqlite3$(EXE)
504 ./testfixture$(EXE) $(TOP)/test/fts2.test
506 sqlite3_analyzer$(EXE): $(TOP)/src/tclsqlite.c libsqlite3.a $(TESTSRC) \
507 $(TOP)/tool/spaceanal.tcl
508 sed \
509 -e '/^#/d' \
510 -e 's,\\,\\\\,g' \
511 -e 's,",\\",g' \
512 -e 's,^,",' \
513 -e 's,$$,\\n",' \
514 $(TOP)/tool/spaceanal.tcl >spaceanal_tcl.h
515 $(TCCX) $(TCL_FLAGS) -DTCLSH=2 -DSQLITE_TEST=1 -DSQLITE_DEBUG=1 -o \
516 sqlite3_analyzer$(EXE) $(TESTSRC) $(TOP)/src/tclsqlite.c \
517 libsqlite3.a $(LIBTCL) $(THREADLIB)
519 TEST_EXTENSION = $(SHPREFIX)testloadext.$(SO)
520 $(TEST_EXTENSION): $(TOP)/src/test_loadext.c
521 $(MKSHLIB) $(TOP)/src/test_loadext.c -o $(TEST_EXTENSION)
523 extensiontest: testfixture$(EXE) $(TEST_EXTENSION)
524 ./testfixture$(EXE) $(TOP)/test/loadext.test
526 # Rules used to build documentation
528 arch.html: $(TOP)/www/arch.tcl
529 tclsh $(TOP)/www/arch.tcl >arch.html
531 autoinc.html: $(TOP)/www/autoinc.tcl
532 tclsh $(TOP)/www/autoinc.tcl >autoinc.html
534 c_interface.html: $(TOP)/www/c_interface.tcl
535 tclsh $(TOP)/www/c_interface.tcl >c_interface.html
537 capi3.html: $(TOP)/www/capi3.tcl
538 tclsh $(TOP)/www/capi3.tcl >capi3.html
540 capi3ref.html: $(TOP)/www/mkapidoc.tcl sqlite3.h
541 tclsh $(TOP)/www/mkapidoc.tcl <sqlite3.h >capi3ref.html
543 changes.html: $(TOP)/www/changes.tcl
544 tclsh $(TOP)/www/changes.tcl >changes.html
546 compile.html: $(TOP)/www/compile.tcl
547 tclsh $(TOP)/www/compile.tcl >compile.html
549 copyright.html: $(TOP)/www/copyright.tcl
550 tclsh $(TOP)/www/copyright.tcl >copyright.html
552 copyright-release.html: $(TOP)/www/copyright-release.html
553 cp $(TOP)/www/copyright-release.html .
555 copyright-release.pdf: $(TOP)/www/copyright-release.pdf
556 cp $(TOP)/www/copyright-release.pdf .
558 common.tcl: $(TOP)/www/common.tcl
559 cp $(TOP)/www/common.tcl .
561 conflict.html: $(TOP)/www/conflict.tcl
562 tclsh $(TOP)/www/conflict.tcl >conflict.html
564 datatypes.html: $(TOP)/www/datatypes.tcl
565 tclsh $(TOP)/www/datatypes.tcl >datatypes.html
567 datatype3.html: $(TOP)/www/datatype3.tcl
568 tclsh $(TOP)/www/datatype3.tcl >datatype3.html
570 different.html: $(TOP)/www/different.tcl
571 tclsh $(TOP)/www/different.tcl >different.html
573 docs.html: $(TOP)/www/docs.tcl
574 tclsh $(TOP)/www/docs.tcl >docs.html
576 download.html: $(TOP)/www/download.tcl
577 mkdir -p doc
578 tclsh $(TOP)/www/download.tcl >download.html
580 faq.html: $(TOP)/www/faq.tcl
581 tclsh $(TOP)/www/faq.tcl >faq.html
583 fileformat.html: $(TOP)/www/fileformat.tcl
584 tclsh $(TOP)/www/fileformat.tcl >fileformat.html
586 formatchng.html: $(TOP)/www/formatchng.tcl
587 tclsh $(TOP)/www/formatchng.tcl >formatchng.html
589 index.html: $(TOP)/www/index.tcl last_change
590 tclsh $(TOP)/www/index.tcl >index.html
592 limits.html: $(TOP)/www/limits.tcl last_change
593 tclsh $(TOP)/www/limits.tcl >limits.html
595 lang.html: $(TOP)/www/lang.tcl
596 tclsh $(TOP)/www/lang.tcl doc >lang.html
598 pragma.html: $(TOP)/www/pragma.tcl
599 tclsh $(TOP)/www/pragma.tcl >pragma.html
601 lockingv3.html: $(TOP)/www/lockingv3.tcl
602 tclsh $(TOP)/www/lockingv3.tcl >lockingv3.html
604 sharedcache.html: $(TOP)/www/sharedcache.tcl
605 tclsh $(TOP)/www/sharedcache.tcl >sharedcache.html
607 mingw.html: $(TOP)/www/mingw.tcl
608 tclsh $(TOP)/www/mingw.tcl >mingw.html
610 nulls.html: $(TOP)/www/nulls.tcl
611 tclsh $(TOP)/www/nulls.tcl >nulls.html
613 oldnews.html: $(TOP)/www/oldnews.tcl
614 tclsh $(TOP)/www/oldnews.tcl >oldnews.html
616 omitted.html: $(TOP)/www/omitted.tcl
617 tclsh $(TOP)/www/omitted.tcl >omitted.html
619 opcode.html: $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c
620 tclsh $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c >opcode.html
622 optimizer.html: $(TOP)/www/optimizer.tcl
623 tclsh $(TOP)/www/optimizer.tcl >optimizer.html
625 optoverview.html: $(TOP)/www/optoverview.tcl
626 tclsh $(TOP)/www/optoverview.tcl >optoverview.html
628 quickstart.html: $(TOP)/www/quickstart.tcl
629 tclsh $(TOP)/www/quickstart.tcl >quickstart.html
631 speed.html: $(TOP)/www/speed.tcl
632 tclsh $(TOP)/www/speed.tcl >speed.html
634 sqlite.html: $(TOP)/www/sqlite.tcl
635 tclsh $(TOP)/www/sqlite.tcl >sqlite.html
637 support.html: $(TOP)/www/support.tcl
638 tclsh $(TOP)/www/support.tcl >support.html
640 tclsqlite.html: $(TOP)/www/tclsqlite.tcl
641 tclsh $(TOP)/www/tclsqlite.tcl >tclsqlite.html
643 vdbe.html: $(TOP)/www/vdbe.tcl
644 tclsh $(TOP)/www/vdbe.tcl >vdbe.html
646 version3.html: $(TOP)/www/version3.tcl
647 tclsh $(TOP)/www/version3.tcl >version3.html
649 whentouse.html: $(TOP)/www/whentouse.tcl
650 tclsh $(TOP)/www/whentouse.tcl >whentouse.html
653 # Files to be published on the website.
655 DOC = \
656 arch.html \
657 autoinc.html \
658 c_interface.html \
659 capi3.html \
660 capi3ref.html \
661 changes.html \
662 compile.html \
663 copyright.html \
664 copyright-release.html \
665 copyright-release.pdf \
666 conflict.html \
667 datatypes.html \
668 datatype3.html \
669 different.html \
670 docs.html \
671 download.html \
672 faq.html \
673 fileformat.html \
674 formatchng.html \
675 index.html \
676 limits.html \
677 lang.html \
678 lockingv3.html \
679 mingw.html \
680 nulls.html \
681 oldnews.html \
682 omitted.html \
683 opcode.html \
684 optimizer.html \
685 optoverview.html \
686 pragma.html \
687 quickstart.html \
688 sharedcache.html \
689 speed.html \
690 sqlite.html \
691 support.html \
692 tclsqlite.html \
693 vdbe.html \
694 version3.html \
695 whentouse.html
697 doc: common.tcl $(DOC)
698 mkdir -p doc
699 mv $(DOC) doc
700 cp $(TOP)/www/*.gif $(TOP)/art/*.gif doc
702 # Standard install and cleanup targets
704 install: sqlite3 libsqlite3.a sqlite3.h
705 mv sqlite3 /usr/bin
706 mv libsqlite3.a /usr/lib
707 mv sqlite3.h /usr/include
709 clean:
710 rm -f *.o sqlite3 libsqlite3.a sqlite3.h opcodes.*
711 rm -f lemon lempar.c parse.* sqlite*.tar.gz mkkeywordhash keywordhash.h
712 rm -f $(PUBLISH)
713 rm -f *.da *.bb *.bbg gmon.out
714 rm -rf tsrc
715 rm -f testloadext.dll libtestloadext.so