Motorola MPC5200 用户手册

下载
页码 28
6
KADAK
KwikNet MPC5200 FEC Device Driver
Creating the Driver Library
The 
KwikNet
 MPC5200 BestComm Library must be constructed from within the driver
installation directory 
KN5200E\MAKE
.  To create the library, proceed as follows.  From the
Windows 
Start
 menu, choose the 
MS-DOS Command Prompt
 from the 
Programs
 folder.
Make the driver installation 
KN5200E\MAKE
 directory the current directory.
To use Microsoft's 
NMAKE
 utility, issue the following command.
NMAKE -fKN5200E.MAK "TOOLSET=XXX" "TRKPATH=treckpath"
The make symbol 
TOOLSET
 is defined to be 
XXX
, the toolset mnemonic which identifies
the software tools which you are using.
The symbol 
TRKPATH
 is defined to be the string 
treckpath
, the full path (or the path
relative to directory 
KN5200E\MAKE
) to your Turbo Treck TCP/IP installation directory.
For example, assume that the Turbo Treck TCP/IP release from Treck Inc. has been
installed in directory 
C:\TRECK
.  Then, to build the driver library using Microsoft's 
NMAKE
utility and Metrowerks tools, issue the following command.
NMAKE -fKN5200E.MAK "TOOLSET=ME" "TRKPATH=C:\TRECK"
During the library construction process, all 
KwikNet
 device driver source files and
BestComm source files will be compiled and the resulting object modules will be placed
in directory 
KN5200E\TOOLXXX\LIB
.  The 
KwikNet
 MPC5200 BestComm Library
KN5200E.A
 will be created from these object files and placed in directory
KN5200E\TOOLXXX\LIB
.  Note that the library file extension will be 
.A
 or 
.LIB
 or some
other extension as dictated by the toolset which you are using.
The 
KwikNet
 MPC5200 BestComm Library file 
KN5200E.A
 must be linked with your
application.  Revise your 
KwikNet
 application link specification to include this library
after the 
KwikNet
 Library.
Note
The BestComm files listed in directory 
M5200BC
 may vary
as new versions of the BestComm software are released.  If
you receive an updated version of the BestComm source
code directly from Freescale, you may have to edit the
library make specification file 
KN5200E.MAK
 to revise the
list of BestComm source files being compiled and to
correct their dependencies.