]>
Commit | Line | Data |
---|---|---|
76800328 | 1 | #!/usr/make |
2 | # | |
3 | # Makefile for SQLITE | |
4 | # | |
5 | # This is a template makefile for SQLite. Most people prefer to | |
6 | # use the autoconf generated "configure" script to generate the | |
7 | # makefile automatically. But that does not work for everybody | |
8 | # and in every situation. If you are having problems with the | |
9 | # "configure" script, you might want to try this makefile as an | |
10 | # alternative. Create a copy of this file, edit the parameters | |
11 | # below and type "make". | |
12 | # | |
13 | ||
14 | #### The toplevel directory of the source tree. This is the directory | |
15 | # that contains this "Makefile.in" and the "configure.in" script. | |
16 | # | |
17 | TOP = ../sqlite | |
18 | ||
19 | #### C Compiler and options for use in building executables that | |
20 | # will run on the platform that is doing the build. | |
21 | # | |
7dc3547e | 22 | BCC = gcc -g -O0 |
76800328 | 23 | #BCC = /opt/ancic/bin/c89 -0 |
24 | ||
76800328 | 25 | #### If you want the SQLite library to be safe for use within a |
26 | # multi-threaded program, then define the following macro | |
27 | # appropriately: | |
28 | # | |
29 | #THREADSAFE = -DTHREADSAFE=1 | |
30 | THREADSAFE = -DTHREADSAFE=0 | |
31 | ||
32 | #### Specify any extra linker options needed to make the library | |
33 | # thread safe | |
34 | # | |
7dc3547e | 35 | THREADLIB = -lpthread -lm -ldl |
36 | #THREADLIB = | |
76800328 | 37 | |
f1878b4a | 38 | #### Specify any extra libraries needed to access required functions. |
39 | # | |
40 | #TLIBS = -lrt # fdatasync on Solaris 8 | |
41 | TLIBS = | |
42 | ||
faa57acc | 43 | #### Leave SQLITE_DEBUG undefined for maximum speed. Use SQLITE_DEBUG=1 |
44 | # to check for memory leaks. Use SQLITE_DEBUG=2 to print a log of all | |
76800328 | 45 | # malloc()s and free()s in order to track down memory leaks. |
46 | # | |
47 | # SQLite uses some expensive assert() statements in the inner loop. | |
48 | # You can make the library go almost twice as fast if you compile | |
49 | # with -DNDEBUG=1 | |
50 | # | |
7dc3547e | 51 | OPTS += -DSQLITE_DEBUG=1 |
52 | OPTS += -DSQLITE_ENABLE_WHERETRACE | |
53 | OPTS += -DSQLITE_ENABLE_SELECTTRACE | |
76800328 | 54 | |
55 | #### The suffix to add to executable files. ".exe" for windows. | |
56 | # Nothing for unix. | |
57 | # | |
58 | #EXE = .exe | |
59 | EXE = | |
60 | ||
61 | #### C Compile and options for use in building executables that | |
62 | # will run on the target platform. This is usually the same | |
63 | # as BCC, unless you are cross-compiling. | |
64 | # | |
7dc3547e | 65 | TCC = gcc -O0 |
76800328 | 66 | #TCC = gcc -g -O0 -Wall |
67 | #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage | |
68 | #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6 | |
69 | #TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive | |
70 | ||
71 | #### Tools used to build a static library. | |
72 | # | |
73 | AR = ar cr | |
74 | #AR = /opt/mingw/bin/i386-mingw32-ar cr | |
75 | RANLIB = ranlib | |
76 | #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib | |
77 | ||
69e777f3 | 78 | MKSHLIB = gcc -shared |
79 | SO = so | |
80 | SHPREFIX = lib | |
81 | # SO = dll | |
82 | # SHPREFIX = | |
83 | ||
76800328 | 84 | #### Extra compiler options needed for programs that use the TCL library. |
85 | # | |
7dc3547e | 86 | TCL_FLAGS = -I/home/drh/tcl/include/tcl8.6 |
76800328 | 87 | |
88 | #### Linker options needed to link against the TCL library. | |
89 | # | |
90 | #LIBTCL = -ltcl -lm -ldl | |
7dc3547e | 91 | LIBTCL = /home/drh/tcl/lib/libtcl8.6.a -lm -lpthread -ldl -lz |
76800328 | 92 | |
65d3c13c | 93 | #### Additional objects for SQLite library when TCL support is enabled. |
94 | #TCLOBJ = | |
95 | TCLOBJ = tclsqlite.o | |
96 | ||
76800328 | 97 | #### Compiler options needed for programs that use the readline() library. |
98 | # | |
9c2ba47e | 99 | READLINE_FLAGS = |
100 | #READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline | |
76800328 | 101 | |
102 | #### Linker options needed by programs using readline() must link against. | |
103 | # | |
9c2ba47e | 104 | LIBREADLINE = |
105 | #LIBREADLINE = -static -lreadline -ltermcap | |
76800328 | 106 | |
76800328 | 107 | # You should not have to change anything below this line |
108 | ############################################################################### | |
109 | include $(TOP)/main.mk |