2002-08-14 00:45:39 +04:00
|
|
|
###############################################################################
|
|
|
|
# The following macros should be defined before this script is
|
|
|
|
# invoked:
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# TOP The toplevel directory of the source tree. This is the
|
|
|
|
# directory that contains this "Makefile.in" and the
|
|
|
|
# "configure.in" script.
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# BCC C Compiler and options for use in building executables that
|
|
|
|
# will run on the platform that is doing the build.
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# USLEEP If the target operating system supports the "usleep()" system
|
|
|
|
# call, then define the HAVE_USLEEP macro for all C modules.
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# THREADSAFE If you want the SQLite library to be safe for use within a
|
|
|
|
# multi-threaded program, then define the following macro
|
|
|
|
# appropriately:
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# THREADLIB Specify any extra linker options needed to make the library
|
|
|
|
# thread safe
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# OPTS Extra compiler command-line options.
|
2002-01-15 21:39:43 +03:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# EXE The suffix to add to executable files. ".exe" for windows
|
|
|
|
# and "" for Unix.
|
2002-01-15 21:39:43 +03:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# TCC C Compiler and options for use in building executables that
|
|
|
|
# will run on the target platform. This is usually the same
|
|
|
|
# as BCC, unless you are cross-compiling.
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# AR Tools used to build a static library.
|
|
|
|
# RANLIB
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# TCL_FLAGS Extra compiler options needed for programs that use the
|
|
|
|
# TCL library.
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# LIBTCL Linker options needed to link against the TCL library.
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# READLINE_FLAGS Compiler options needed for programs that use the
|
|
|
|
# readline() library.
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# LIBREADLINE Linker options needed by programs using readline() must
|
|
|
|
# link against.
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# ENCODING "UTF8" or "ISO8859"
|
2001-09-28 05:34:43 +04:00
|
|
|
#
|
2002-08-14 00:45:39 +04:00
|
|
|
# Once the macros above are defined, the rest of this make script will
|
|
|
|
# build the SQLite library and testing tools.
|
|
|
|
################################################################################
|
2001-09-28 05:34:43 +04:00
|
|
|
|
|
|
|
# This is how we compile
|
|
|
|
#
|
2002-01-15 21:39:43 +03:00
|
|
|
TCCX = $(TCC) $(OPTS) $(THREADSAFE) $(USLEEP) -I. -I$(TOP)/src
|
2001-09-28 05:34:43 +04:00
|
|
|
|
|
|
|
# Object files for the SQLite library.
|
|
|
|
#
|
2003-04-15 23:22:22 +04:00
|
|
|
LIBOBJ = attach.o auth.o btree.o btree_rb.o build.o copy.o delete.o \
|
2003-04-07 01:08:24 +04:00
|
|
|
expr.o func.o hash.o insert.o \
|
|
|
|
main.o opcodes.o os.o pager.o parse.o pragma.o printf.o random.o \
|
2002-11-20 14:55:18 +03:00
|
|
|
select.o table.o tokenize.o trigger.o update.o util.o \
|
2003-04-07 00:52:32 +04:00
|
|
|
vacuum.o vdbe.o where.o tclsqlite.o
|
2001-09-28 05:34:43 +04:00
|
|
|
|
|
|
|
# All of the source code files.
|
|
|
|
#
|
|
|
|
SRC = \
|
2003-04-07 01:08:24 +04:00
|
|
|
$(TOP)/src/attach.c \
|
2003-01-12 21:02:16 +03:00
|
|
|
$(TOP)/src/auth.c \
|
2001-09-28 05:34:43 +04:00
|
|
|
$(TOP)/src/btree.c \
|
|
|
|
$(TOP)/src/btree.h \
|
2003-04-15 23:22:22 +04:00
|
|
|
$(TOP)/src/btree_rb.c \
|
2001-09-28 05:34:43 +04:00
|
|
|
$(TOP)/src/build.c \
|
2003-04-07 01:08:24 +04:00
|
|
|
$(TOP)/src/copy.c \
|
2001-09-28 05:34:43 +04:00
|
|
|
$(TOP)/src/delete.c \
|
|
|
|
$(TOP)/src/expr.c \
|
2002-02-24 04:55:15 +03:00
|
|
|
$(TOP)/src/func.c \
|
2001-09-28 05:34:43 +04:00
|
|
|
$(TOP)/src/hash.c \
|
|
|
|
$(TOP)/src/hash.h \
|
|
|
|
$(TOP)/src/insert.c \
|
|
|
|
$(TOP)/src/main.c \
|
|
|
|
$(TOP)/src/os.c \
|
|
|
|
$(TOP)/src/pager.c \
|
|
|
|
$(TOP)/src/pager.h \
|
|
|
|
$(TOP)/src/parse.y \
|
2003-04-07 01:08:24 +04:00
|
|
|
$(TOP)/src/pragma.c \
|
2001-09-28 05:34:43 +04:00
|
|
|
$(TOP)/src/printf.c \
|
|
|
|
$(TOP)/src/random.c \
|
|
|
|
$(TOP)/src/select.c \
|
|
|
|
$(TOP)/src/shell.c \
|
|
|
|
$(TOP)/src/sqlite.h.in \
|
|
|
|
$(TOP)/src/sqliteInt.h \
|
|
|
|
$(TOP)/src/table.c \
|
|
|
|
$(TOP)/src/tclsqlite.c \
|
|
|
|
$(TOP)/src/tokenize.c \
|
2002-05-15 16:45:43 +04:00
|
|
|
$(TOP)/src/trigger.c \
|
2001-09-28 05:34:43 +04:00
|
|
|
$(TOP)/src/update.c \
|
|
|
|
$(TOP)/src/util.c \
|
2003-04-07 00:52:32 +04:00
|
|
|
$(TOP)/src/vacuum.c \
|
2001-09-28 05:34:43 +04:00
|
|
|
$(TOP)/src/vdbe.c \
|
|
|
|
$(TOP)/src/vdbe.h \
|
|
|
|
$(TOP)/src/where.c
|
|
|
|
|
|
|
|
# Source code to the test files.
|
|
|
|
#
|
|
|
|
TESTSRC = \
|
|
|
|
$(TOP)/src/btree.c \
|
2002-08-13 04:01:16 +04:00
|
|
|
$(TOP)/src/func.c \
|
2001-10-12 21:30:04 +04:00
|
|
|
$(TOP)/src/os.c \
|
2001-09-28 05:34:43 +04:00
|
|
|
$(TOP)/src/pager.c \
|
|
|
|
$(TOP)/src/test1.c \
|
|
|
|
$(TOP)/src/test2.c \
|
|
|
|
$(TOP)/src/test3.c \
|
|
|
|
$(TOP)/src/md5.c
|
|
|
|
|
|
|
|
# Header files used by all library source files.
|
|
|
|
#
|
|
|
|
HDR = \
|
|
|
|
sqlite.h \
|
|
|
|
$(TOP)/src/btree.h \
|
2002-11-20 14:55:18 +03:00
|
|
|
config.h \
|
2001-09-28 05:34:43 +04:00
|
|
|
$(TOP)/src/hash.h \
|
2002-09-08 04:04:50 +04:00
|
|
|
opcodes.h \
|
2001-09-28 05:34:43 +04:00
|
|
|
$(TOP)/src/os.h \
|
|
|
|
$(TOP)/src/sqliteInt.h \
|
|
|
|
$(TOP)/src/vdbe.h \
|
|
|
|
parse.h
|
|
|
|
|
|
|
|
# This is the default Makefile target. The objects listed here
|
|
|
|
# are what get build when you type just "make" with no arguments.
|
|
|
|
#
|
2002-11-20 14:55:18 +03:00
|
|
|
all: sqlite.h config.h libsqlite.a sqlite$(EXE)
|
2001-09-28 05:34:43 +04:00
|
|
|
|
|
|
|
# Generate the file "last_change" which contains the date of change
|
|
|
|
# of the most recently modified source code file
|
|
|
|
#
|
|
|
|
last_change: $(SRC)
|
|
|
|
cat $(SRC) | grep '$$Id: ' | sort +4 | tail -1 \
|
|
|
|
| awk '{print $$5,$$6}' >last_change
|
|
|
|
|
2002-08-24 22:24:51 +04:00
|
|
|
libsqlite.a: $(LIBOBJ)
|
|
|
|
$(AR) libsqlite.a $(LIBOBJ)
|
2001-09-28 05:34:43 +04:00
|
|
|
$(RANLIB) libsqlite.a
|
|
|
|
|
|
|
|
sqlite$(EXE): $(TOP)/src/shell.c libsqlite.a sqlite.h
|
|
|
|
$(TCCX) $(READLINE_FLAGS) -o sqlite$(EXE) $(TOP)/src/shell.c \
|
2002-01-15 21:39:43 +03:00
|
|
|
libsqlite.a $(LIBREADLINE) $(THREADLIB)
|
2001-09-28 05:34:43 +04:00
|
|
|
|
|
|
|
# This target creates a directory named "tsrc" and fills it with
|
|
|
|
# copies of all of the C source code and header files needed to
|
|
|
|
# build on the target system. Some of the C source code and header
|
|
|
|
# files are automatically generated. This target takes care of
|
|
|
|
# all that automatic generation.
|
|
|
|
#
|
2002-09-08 21:23:41 +04:00
|
|
|
target_source: $(SRC) $(HDR) opcodes.c
|
2001-09-28 05:34:43 +04:00
|
|
|
rm -rf tsrc
|
|
|
|
mkdir tsrc
|
|
|
|
cp $(SRC) $(HDR) tsrc
|
|
|
|
rm tsrc/sqlite.h.in tsrc/parse.y
|
2002-09-08 21:23:41 +04:00
|
|
|
cp parse.c opcodes.c tsrc
|
2001-09-28 05:34:43 +04:00
|
|
|
|
|
|
|
# Rules to build the LEMON compiler generator
|
|
|
|
#
|
|
|
|
lemon: $(TOP)/tool/lemon.c $(TOP)/tool/lempar.c
|
|
|
|
$(BCC) -o lemon $(TOP)/tool/lemon.c
|
|
|
|
cp $(TOP)/tool/lempar.c .
|
|
|
|
|
|
|
|
btree.o: $(TOP)/src/btree.c $(HDR) $(TOP)/src/pager.h
|
|
|
|
$(TCCX) -c $(TOP)/src/btree.c
|
|
|
|
|
2003-04-15 23:22:22 +04:00
|
|
|
btree_rb.o: $(TOP)/src/btree_rb.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/btree_rb.c
|
|
|
|
|
2001-09-28 05:34:43 +04:00
|
|
|
build.o: $(TOP)/src/build.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/build.c
|
|
|
|
|
|
|
|
main.o: $(TOP)/src/main.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/main.c
|
|
|
|
|
|
|
|
pager.o: $(TOP)/src/pager.c $(HDR) $(TOP)/src/pager.h
|
|
|
|
$(TCCX) -c $(TOP)/src/pager.c
|
|
|
|
|
2002-09-08 04:04:50 +04:00
|
|
|
opcodes.o: opcodes.c
|
|
|
|
$(TCCX) -c opcodes.c
|
|
|
|
|
|
|
|
opcodes.c: $(TOP)/src/vdbe.c
|
|
|
|
echo '/* Automatically generated file. Do not edit */' >opcodes.c
|
|
|
|
echo 'char *sqliteOpcodeNames[] = { "???", ' >>opcodes.c
|
|
|
|
grep '^case OP_' $(TOP)/src/vdbe.c | \
|
|
|
|
sed -e 's/^.*OP_/ "/' -e 's/:.*$$/", /' >>opcodes.c
|
|
|
|
echo '};' >>opcodes.c
|
|
|
|
|
|
|
|
opcodes.h: $(TOP)/src/vdbe.h
|
|
|
|
echo '/* Automatically generated file. Do not edit */' >opcodes.h
|
|
|
|
grep '^case OP_' $(TOP)/src/vdbe.c | \
|
|
|
|
sed -e 's/://' | \
|
|
|
|
awk '{printf "#define %-30s %3d\n", $$2, ++cnt}' >>opcodes.h
|
|
|
|
|
2001-09-28 05:34:43 +04:00
|
|
|
os.o: $(TOP)/src/os.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/os.c
|
|
|
|
|
|
|
|
parse.o: parse.c $(HDR)
|
|
|
|
$(TCCX) -c parse.c
|
|
|
|
|
|
|
|
parse.h: parse.c
|
|
|
|
|
|
|
|
parse.c: $(TOP)/src/parse.y lemon
|
|
|
|
cp $(TOP)/src/parse.y .
|
|
|
|
./lemon parse.y
|
|
|
|
|
2002-11-20 14:55:18 +03:00
|
|
|
# The config.h file will contain a single #define that tells us how
|
|
|
|
# many bytes are in a pointer. This only works if a pointer is the
|
|
|
|
# same size on the host as it is on the target. If you are cross-compiling
|
|
|
|
# to a target with a different pointer size, you'll need to manually
|
|
|
|
# configure the config.h file.
|
|
|
|
#
|
|
|
|
config.h:
|
|
|
|
echo '#include <stdio.h>' >temp.c
|
|
|
|
echo 'int main(){printf(' >>temp.c
|
2003-05-17 06:27:21 +04:00
|
|
|
echo '"#define SQLITE_PTR_SZ %d",sizeof(char*));' >>temp.c
|
2002-11-20 14:55:18 +03:00
|
|
|
echo 'exit(0);}' >>temp.c
|
|
|
|
$(BCC) -o temp temp.c
|
|
|
|
./temp >config.h
|
2003-05-17 06:27:21 +04:00
|
|
|
echo >>config.h
|
2002-11-20 14:55:18 +03:00
|
|
|
rm -f temp.c temp
|
|
|
|
|
2001-09-28 05:34:43 +04:00
|
|
|
sqlite.h: $(TOP)/src/sqlite.h.in
|
|
|
|
sed -e s/--VERS--/`cat ${TOP}/VERSION`/ \
|
|
|
|
-e s/--ENCODING--/$(ENCODING)/ \
|
|
|
|
$(TOP)/src/sqlite.h.in >sqlite.h
|
|
|
|
|
|
|
|
tokenize.o: $(TOP)/src/tokenize.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/tokenize.c
|
|
|
|
|
2002-05-15 16:45:43 +04:00
|
|
|
trigger.o: $(TOP)/src/trigger.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/trigger.c
|
|
|
|
|
2001-09-28 05:34:43 +04:00
|
|
|
util.o: $(TOP)/src/util.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/util.c
|
|
|
|
|
2003-04-07 00:52:32 +04:00
|
|
|
vacuum.o: $(TOP)/src/vacuum.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/vacuum.c
|
|
|
|
|
2001-09-28 05:34:43 +04:00
|
|
|
vdbe.o: $(TOP)/src/vdbe.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/vdbe.c
|
|
|
|
|
|
|
|
where.o: $(TOP)/src/where.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/where.c
|
|
|
|
|
2003-04-07 01:08:24 +04:00
|
|
|
copy.o: $(TOP)/src/copy.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/copy.c
|
|
|
|
|
2001-09-28 05:34:43 +04:00
|
|
|
delete.o: $(TOP)/src/delete.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/delete.c
|
|
|
|
|
|
|
|
expr.o: $(TOP)/src/expr.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/expr.c
|
|
|
|
|
2002-02-24 04:55:15 +03:00
|
|
|
func.o: $(TOP)/src/func.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/func.c
|
|
|
|
|
2001-09-28 05:34:43 +04:00
|
|
|
hash.o: $(TOP)/src/hash.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/hash.c
|
|
|
|
|
|
|
|
insert.o: $(TOP)/src/insert.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/insert.c
|
|
|
|
|
|
|
|
random.o: $(TOP)/src/random.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/random.c
|
|
|
|
|
|
|
|
select.o: $(TOP)/src/select.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/select.c
|
|
|
|
|
|
|
|
table.o: $(TOP)/src/table.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/table.c
|
|
|
|
|
|
|
|
update.o: $(TOP)/src/update.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/update.c
|
|
|
|
|
|
|
|
tclsqlite.o: $(TOP)/src/tclsqlite.c $(HDR)
|
|
|
|
$(TCCX) $(TCL_FLAGS) -c $(TOP)/src/tclsqlite.c
|
|
|
|
|
2003-04-07 01:08:24 +04:00
|
|
|
pragma.o: $(TOP)/src/pragma.c $(HDR)
|
|
|
|
$(TCCX) $(TCL_FLAGS) -c $(TOP)/src/pragma.c
|
|
|
|
|
2001-09-28 05:34:43 +04:00
|
|
|
printf.o: $(TOP)/src/printf.c $(HDR)
|
|
|
|
$(TCCX) $(TCL_FLAGS) -c $(TOP)/src/printf.c
|
|
|
|
|
2003-04-07 01:08:24 +04:00
|
|
|
attach.o: $(TOP)/src/attach.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/attach.c
|
|
|
|
|
2003-01-12 21:02:16 +03:00
|
|
|
auth.o: $(TOP)/src/auth.c $(HDR)
|
|
|
|
$(TCCX) -c $(TOP)/src/auth.c
|
|
|
|
|
2001-09-28 05:34:43 +04:00
|
|
|
tclsqlite: $(TOP)/src/tclsqlite.c libsqlite.a
|
|
|
|
$(TCCX) $(TCL_FLAGS) -DTCLSH=1 -o tclsqlite \
|
|
|
|
$(TOP)/src/tclsqlite.c libsqlite.a $(LIBTCL)
|
|
|
|
|
|
|
|
testfixture$(EXE): $(TOP)/src/tclsqlite.c libsqlite.a $(TESTSRC)
|
|
|
|
$(TCCX) $(TCL_FLAGS) -DTCLSH=1 -DSQLITE_TEST=1 -o testfixture$(EXE) \
|
|
|
|
$(TESTSRC) $(TOP)/src/tclsqlite.c \
|
|
|
|
libsqlite.a $(LIBTCL)
|
|
|
|
|
|
|
|
fulltest: testfixture$(EXE) sqlite$(EXE)
|
|
|
|
./testfixture$(EXE) $(TOP)/test/all.test
|
|
|
|
|
|
|
|
test: testfixture$(EXE) sqlite$(EXE)
|
|
|
|
./testfixture$(EXE) $(TOP)/test/quick.test
|
|
|
|
|
2001-09-28 21:47:14 +04:00
|
|
|
index.html: $(TOP)/www/index.tcl last_change
|
2001-09-28 05:34:43 +04:00
|
|
|
tclsh $(TOP)/www/index.tcl `cat $(TOP)/VERSION` >index.html
|
|
|
|
|
|
|
|
sqlite.html: $(TOP)/www/sqlite.tcl
|
|
|
|
tclsh $(TOP)/www/sqlite.tcl >sqlite.html
|
|
|
|
|
|
|
|
c_interface.html: $(TOP)/www/c_interface.tcl
|
|
|
|
tclsh $(TOP)/www/c_interface.tcl >c_interface.html
|
|
|
|
|
|
|
|
changes.html: $(TOP)/www/changes.tcl
|
|
|
|
tclsh $(TOP)/www/changes.tcl >changes.html
|
|
|
|
|
|
|
|
lang.html: $(TOP)/www/lang.tcl
|
|
|
|
tclsh $(TOP)/www/lang.tcl >lang.html
|
|
|
|
|
|
|
|
vdbe.html: $(TOP)/www/vdbe.tcl
|
|
|
|
tclsh $(TOP)/www/vdbe.tcl >vdbe.html
|
|
|
|
|
|
|
|
arch.html: $(TOP)/www/arch.tcl
|
|
|
|
tclsh $(TOP)/www/arch.tcl >arch.html
|
|
|
|
|
|
|
|
arch.png: $(TOP)/www/arch.png
|
|
|
|
cp $(TOP)/www/arch.png .
|
|
|
|
|
|
|
|
opcode.html: $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c
|
|
|
|
tclsh $(TOP)/www/opcode.tcl $(TOP)/src/vdbe.c >opcode.html
|
|
|
|
|
|
|
|
mingw.html: $(TOP)/www/mingw.tcl
|
|
|
|
tclsh $(TOP)/www/mingw.tcl >mingw.html
|
|
|
|
|
|
|
|
tclsqlite.html: $(TOP)/www/tclsqlite.tcl
|
|
|
|
tclsh $(TOP)/www/tclsqlite.tcl >tclsqlite.html
|
|
|
|
|
|
|
|
speed.html: $(TOP)/www/speed.tcl
|
|
|
|
tclsh $(TOP)/www/speed.tcl >speed.html
|
|
|
|
|
2001-11-24 03:31:46 +03:00
|
|
|
faq.html: $(TOP)/www/faq.tcl
|
|
|
|
tclsh $(TOP)/www/faq.tcl >faq.html
|
|
|
|
|
2001-12-22 22:27:39 +03:00
|
|
|
formatchng.html: $(TOP)/www/formatchng.tcl
|
|
|
|
tclsh $(TOP)/www/formatchng.tcl >formatchng.html
|
|
|
|
|
2002-01-30 19:17:23 +03:00
|
|
|
conflict.html: $(TOP)/www/conflict.tcl
|
|
|
|
tclsh $(TOP)/www/conflict.tcl >conflict.html
|
|
|
|
|
2001-09-28 21:47:14 +04:00
|
|
|
download.html: $(TOP)/www/download.tcl
|
|
|
|
tclsh $(TOP)/www/download.tcl >download.html
|
|
|
|
|
2002-08-14 00:45:39 +04:00
|
|
|
omitted.html: $(TOP)/www/omitted.tcl
|
|
|
|
tclsh $(TOP)/www/omitted.tcl >omitted.html
|
|
|
|
|
2002-08-14 04:08:12 +04:00
|
|
|
datatypes.html: $(TOP)/www/datatypes.tcl
|
|
|
|
tclsh $(TOP)/www/datatypes.tcl >datatypes.html
|
|
|
|
|
2002-08-15 17:45:17 +04:00
|
|
|
quickstart.html: $(TOP)/www/quickstart.tcl
|
|
|
|
tclsh $(TOP)/www/quickstart.tcl >quickstart.html
|
|
|
|
|
2002-08-18 23:09:22 +04:00
|
|
|
fileformat.html: $(TOP)/www/fileformat.tcl
|
|
|
|
tclsh $(TOP)/www/fileformat.tcl >fileformat.html
|
|
|
|
|
2002-09-02 18:11:02 +04:00
|
|
|
nulls.html: $(TOP)/www/nulls.tcl
|
|
|
|
tclsh $(TOP)/www/nulls.tcl >nulls.html
|
|
|
|
|
2001-09-28 05:34:43 +04:00
|
|
|
|
|
|
|
# Files to be published on the website.
|
|
|
|
#
|
2001-09-28 21:47:14 +04:00
|
|
|
DOC = \
|
2001-09-28 05:34:43 +04:00
|
|
|
index.html \
|
|
|
|
sqlite.html \
|
|
|
|
changes.html \
|
|
|
|
lang.html \
|
|
|
|
opcode.html \
|
|
|
|
arch.html \
|
|
|
|
arch.png \
|
|
|
|
vdbe.html \
|
|
|
|
c_interface.html \
|
|
|
|
mingw.html \
|
|
|
|
tclsqlite.html \
|
2001-09-28 21:47:14 +04:00
|
|
|
download.html \
|
2001-11-24 03:31:46 +03:00
|
|
|
speed.html \
|
2001-12-22 22:27:39 +03:00
|
|
|
faq.html \
|
2002-01-30 19:17:23 +03:00
|
|
|
formatchng.html \
|
2002-08-14 00:45:39 +04:00
|
|
|
conflict.html \
|
2002-08-14 04:08:12 +04:00
|
|
|
omitted.html \
|
2002-08-15 17:45:17 +04:00
|
|
|
datatypes.html \
|
2002-08-18 23:09:22 +04:00
|
|
|
quickstart.html \
|
2002-09-02 18:11:02 +04:00
|
|
|
fileformat.html \
|
|
|
|
nulls.html
|
2001-09-28 05:34:43 +04:00
|
|
|
|
2001-09-28 21:47:14 +04:00
|
|
|
doc: $(DOC)
|
|
|
|
mkdir -p doc
|
|
|
|
mv $(DOC) doc
|
2001-09-28 05:34:43 +04:00
|
|
|
|
|
|
|
install: sqlite libsqlite.a sqlite.h
|
|
|
|
mv sqlite /usr/bin
|
|
|
|
mv libsqlite.a /usr/lib
|
|
|
|
mv sqlite.h /usr/include
|
|
|
|
|
|
|
|
clean:
|
2002-09-08 04:04:50 +04:00
|
|
|
rm -f *.o sqlite libsqlite.a sqlite.h opcodes.*
|
2001-09-28 21:47:14 +04:00
|
|
|
rm -f lemon lempar.c parse.* sqlite*.tar.gz
|
2001-09-28 05:34:43 +04:00
|
|
|
rm -f $(PUBLISH)
|
|
|
|
rm -f *.da *.bb *.bbg gmon.out
|
|
|
|
rm -rf tsrc
|