OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 # | 2 # |
3 # This script is used to compile SQLite into a DLL. | 3 # This script is used to compile SQLite into a DLL. |
4 # | 4 # |
5 # Two separate DLLs are generated. "sqlite3.dll" is the core | 5 # Two separate DLLs are generated. "sqlite3.dll" is the core |
6 # library. "tclsqlite3.dll" contains the TCL bindings and is the | 6 # library. "tclsqlite3.dll" contains the TCL bindings and is the |
7 # library that is loaded into TCL in order to run SQLite. | 7 # library that is loaded into TCL in order to run SQLite. |
8 # | 8 # |
9 make sqlite3.c | 9 make sqlite3.c |
10 PATH=$PATH:/opt/mingw/bin | 10 PATH=$PATH:/opt/mingw/bin |
(...skipping 29 matching lines...) Expand all Loading... |
40 $NM sqlite3.o | grep ' T ' >temp1 | 40 $NM sqlite3.o | grep ' T ' >temp1 |
41 echo 'EXPORTS' >sqlite3.def | 41 echo 'EXPORTS' >sqlite3.def |
42 grep ' _sqlite3_' temp1 | sed 's/^.* _//' >>sqlite3.def | 42 grep ' _sqlite3_' temp1 | sed 's/^.* _//' >>sqlite3.def |
43 i386-mingw32msvc-dllwrap \ | 43 i386-mingw32msvc-dllwrap \ |
44 --def sqlite3.def -v --export-all \ | 44 --def sqlite3.def -v --export-all \ |
45 --driver-name i386-mingw32msvc-gcc \ | 45 --driver-name i386-mingw32msvc-gcc \ |
46 --dlltool-name i386-mingw32msvc-dlltool \ | 46 --dlltool-name i386-mingw32msvc-dlltool \ |
47 --as i386-mingw32msvc-as \ | 47 --as i386-mingw32msvc-as \ |
48 --target i386-mingw32 \ | 48 --target i386-mingw32 \ |
49 -dllname sqlite3.dll -lmsvcrt sqlite3.o | 49 -dllname sqlite3.dll -lmsvcrt sqlite3.o |
OLD | NEW |