Imported Upstream version 5.3.21
[platform/upstream/libdb.git] / lang / sql / jdbc / sqlite-3.6.22.mak
1 # VC++ 6.0 Makefile for SQLite 3.6.22
2
3 #### The toplevel directory of the source tree.
4 #
5
6 TOP = ..\sqlite-3.6.22
7
8 #### C Compiler and options for use in building executables that
9 #    will run on the platform that is doing the build.
10
11 BCC = cl -Gs -GX -D_WIN32 -nologo -Zi
12
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.
16 #    
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
19 #    with -DNDEBUG=1
20
21 #OPTS = -DMEMORY_DEBUG=2
22 #OPTS = -DMEMORY_DEBUG=1
23 #OPTS = 
24 OPTS = -DNDEBUG=1
25
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.
29
30 TCC = cl -Gs -GX -D_WIN32 -nologo -Zi -DOS_WIN=1
31
32 # You should not have to change anything below this line
33 ###############################################################################
34
35 # This is how we compile
36
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)
40
41 TCCXD = $(TCCX) -D_DLL
42
43 # Object files for the SQLite library.
44
45 LIBOBJ = sqlite3.obj
46
47 # This is the default Makefile target.  The objects listed here
48 # are what get build when you type just "make" with no arguments.
49
50 all:    libsqlite3.lib sqlite3.exe
51
52 libsqlite3.lib: $(LIBOBJ)
53         lib -out:$@ $(LIBOBJ)
54
55 sqlite3.obj:    sqlite3.c $(TOP)\sqlite3.h
56         $(TCCXD) -c sqlite3.c
57
58 sqlite3.exe:            $(TOP)\shell.c sqlite3.c $(TOP)\sqlite3.h
59         $(TCCX) -o $@ shell.c sqlite3.c
60
61 clean:
62         del *.obj
63         del *.pdb
64         del *.lib
65         del *.exe
66