1 # VC++ 6.0 Makefile for SQLite 3.6.22
3 #### The toplevel directory of the source tree.
8 #### C Compiler and options for use in building executables that
9 # will run on the platform that is doing the build.
11 BCC = cl -Gs -GX -D_WIN32 -nologo -Zi
13 #### Leave MEMORY_DEBUG undefined for maximum speed. Use MEMORY_DEBUG=1
14 # to check for memory leaks. Use MEMORY_DEBUG=2 to print a log of all
15 # malloc()s and free()s in order to track down memory leaks.
17 # SQLite uses some expensive assert() statements in the inner loop.
18 # You can make the library go almost twice as fast if you compile
21 #OPTS = -DMEMORY_DEBUG=2
22 #OPTS = -DMEMORY_DEBUG=1
26 #### C Compile and options for use in building executables that
27 # will run on the target platform. This is usually the same
28 # as BCC, unless you are cross-compiling.
30 TCC = cl -Gs -GX -D_WIN32 -nologo -Zi -DOS_WIN=1
32 # You should not have to change anything below this line
33 ###############################################################################
35 # This is how we compile
37 TCCX = $(TCC) $(OPTS) -DWIN32=1 -DTHREADSAFE=1 -DSQLITE_OS_WIN=1 \
38 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_SOUNDEX=1 \
39 -DSQLITE_OMIT_LOAD_EXTENSION=1 -I. -I$(TOP)
41 TCCXD = $(TCCX) -D_DLL
43 # Object files for the SQLite library.
47 # This is the default Makefile target. The objects listed here
48 # are what get build when you type just "make" with no arguments.
50 all: libsqlite3.lib sqlite3.exe
52 libsqlite3.lib: $(LIBOBJ)
55 sqlite3.obj: sqlite3.c $(TOP)\sqlite3.h
58 sqlite3.exe: $(TOP)\shell.c sqlite3.c $(TOP)\sqlite3.h
59 $(TCCX) -o $@ shell.c sqlite3.c