OLD | NEW |
| (Empty) |
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 directory where to find the mingw32ce tools | |
15 MINGW32CE = /opt/mingw32ce/bin | |
16 | |
17 #### The target prefix of the mingw32ce tools | |
18 TARGET = arm-wince-mingw32ce | |
19 | |
20 #### The toplevel directory of the source tree. This is the directory | |
21 # that contains this "Makefile.in" and the "configure.in" script. | |
22 # | |
23 TOP = ../sqlite | |
24 | |
25 #### C Compiler and options for use in building executables that | |
26 # will run on the platform that is doing the build. | |
27 # | |
28 BCC = gcc -g -O2 | |
29 #BCC = /opt/ancic/bin/c89 -0 | |
30 | |
31 #### If the target operating system supports the "usleep()" system | |
32 # call, then define the HAVE_USLEEP macro for all C modules. | |
33 # | |
34 USLEEP = | |
35 #USLEEP = -DHAVE_USLEEP=1 | |
36 | |
37 #### If you want the SQLite library to be safe for use within a | |
38 # multi-threaded program, then define the following macro | |
39 # appropriately: | |
40 # | |
41 THREADSAFE = -DTHREADSAFE=1 | |
42 #THREADSAFE = -DTHREADSAFE=0 | |
43 | |
44 #### Specify any extra linker options needed to make the library | |
45 # thread safe | |
46 # | |
47 #THREADLIB = -lpthread | |
48 THREADLIB = | |
49 | |
50 #### Specify any extra libraries needed to access required functions. | |
51 # | |
52 #TLIBS = -lrt # fdatasync on Solaris 8 | |
53 TLIBS = | |
54 | |
55 #### Leave SQLITE_DEBUG undefined for maximum speed. Use SQLITE_DEBUG=1 | |
56 # to check for memory leaks. Use SQLITE_DEBUG=2 to print a log of all | |
57 # malloc()s and free()s in order to track down memory leaks. | |
58 # | |
59 # SQLite uses some expensive assert() statements in the inner loop. | |
60 # You can make the library go almost twice as fast if you compile | |
61 # with -DNDEBUG=1 | |
62 # | |
63 #OPTS = -DSQLITE_DEBUG=2 | |
64 #OPTS = -DSQLITE_DEBUG=1 | |
65 #OPTS = | |
66 OPTS = -DNDEBUG=1 -DSQLITE_OS_WIN=1 -D_WIN32_WCE=1 | |
67 #OPTS += -DHAVE_FDATASYNC=1 | |
68 | |
69 #### The suffix to add to executable files. ".exe" for windows. | |
70 # Nothing for unix. | |
71 # | |
72 EXE = .exe | |
73 #EXE = | |
74 | |
75 #### C Compile and options for use in building executables that | |
76 # will run on the target platform. This is usually the same | |
77 # as BCC, unless you are cross-compiling. | |
78 # | |
79 #TCC = gcc -O6 | |
80 #TCC = gcc -g -O0 -Wall | |
81 #TCC = gcc -g -O0 -Wall -fprofile-arcs -ftest-coverage | |
82 #TCC = /opt/mingw/bin/i386-mingw32-gcc -O6 | |
83 TCC = $(MINGW32CE)/$(TARGET)-gcc -O2 | |
84 #TCC = /opt/ansic/bin/c89 -O +z -Wl,-a,archive | |
85 | |
86 #### Tools used to build a static library. | |
87 # | |
88 #AR = ar cr | |
89 #AR = /opt/mingw/bin/i386-mingw32-ar cr | |
90 AR = $(MINGW32CE)/$(TARGET)-ar cr | |
91 #RANLIB = ranlib | |
92 #RANLIB = /opt/mingw/bin/i386-mingw32-ranlib | |
93 RANLIB = $(MINGW32CE)/$(TARGET)-ranlib | |
94 | |
95 #MKSHLIB = gcc -shared | |
96 #SO = so | |
97 #SHPREFIX = lib | |
98 MKSHLIB = $(MINGW32CE)/$(TARGET)-gcc -shared | |
99 SO = dll | |
100 SHPREFIX = | |
101 | |
102 #### Extra compiler options needed for programs that use the TCL library. | |
103 # | |
104 #TCL_FLAGS = | |
105 #TCL_FLAGS = -DSTATIC_BUILD=1 | |
106 TCL_FLAGS = -I/home/drh/tcltk/8.5linux | |
107 #TCL_FLAGS = -I/home/drh/tcltk/8.5win -DSTATIC_BUILD=1 | |
108 #TCL_FLAGS = -I/home/drh/tcltk/8.3hpux | |
109 | |
110 #### Linker options needed to link against the TCL library. | |
111 # | |
112 #LIBTCL = -ltcl -lm -ldl | |
113 LIBTCL = /home/drh/tcltk/8.5linux/libtcl8.5g.a -lm -ldl | |
114 #LIBTCL = /home/drh/tcltk/8.5win/libtcl85s.a -lmsvcrt | |
115 #LIBTCL = /home/drh/tcltk/8.3hpux/libtcl8.3.a -ldld -lm -lc | |
116 | |
117 #### Additional objects for SQLite library when TCL support is enabled. | |
118 TCLOBJ = | |
119 #TCLOBJ = tclsqlite.o | |
120 | |
121 #### Compiler options needed for programs that use the readline() library. | |
122 # | |
123 READLINE_FLAGS = | |
124 #READLINE_FLAGS = -DHAVE_READLINE=1 -I/usr/include/readline | |
125 | |
126 #### Linker options needed by programs using readline() must link against. | |
127 # | |
128 LIBREADLINE = | |
129 #LIBREADLINE = -static -lreadline -ltermcap | |
130 | |
131 #### Which "awk" program provides nawk compatibilty | |
132 # | |
133 # NAWK = nawk | |
134 NAWK = awk | |
135 | |
136 # You should not have to change anything below this line | |
137 ############################################################################### | |
138 include $(TOP)/main.mk | |
OLD | NEW |