|
 |
|
|
26.1.6.2. Building MyODBC 3.51
MyODBC 3.51 source distributions include
Makefiles that uses
nmake. In the distribution, you can find
Makefile for building the release version
and Makefile_debug for building debugging
versions of the driver libraries and DLLs.
To build the driver, use this procedure:
-
Download and extract the sources to a folder, then change
location into that folder. The following command assumes the
folder is named myodbc3-src :
C:\> cd myodbc3-src
-
Edit Makefile to specify the correct
path for the MySQL client libraries and header files. Then
use the following commands to build and install the release
version:
C:\> nmake -f Makefile
C:\> nmake -f Makefile install
nmake -f Makefile builds the release
version of the driver and places the binaries in
subdirectory called Release .
nmake -f Makefile install installs
(copies) the driver DLLs and
libraries(myodbc3.dll ,
myodbc3.lib ) to your system directory.
-
To build the debug version, use
Makefile_Debug rather than
Makefile , as shown below:
C:\> nmake -f Makefile_debug
C:\> nmake -f Makefile_debug install
-
You can clean and rebuild the driver by using:
C:\> nmake -f Makefile clean
C:\> nmake -f Makefile install
Note:
|
|
|