|
|
|
|
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:
Make sure to specify the correct MySQL client libraries and
header files path in the Makefiles (set the
MYSQL_LIB_PATH and
MYSQL_INCLUDE_PATH variables). The
default header file path is assumed to be
C:\mysql\include . The default library
path is assumed to be C:\mysql\lib\opt
for release DLLs and C:\mysql\lib\debug
for debug versions.
For the complete usage of nmake, visit
https://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vcce4/html/evgrfRunningNMAKE.asp.
If you are using the BitKeeper tree for compiling, All
Windows-specific Makefiles are named as
Win_Makefile* .
|
|
|