Makefile
is a sample make file for Linux kernel drivers that
use a single .C
file for its source code. Simply replace the
word myprogram
with the name of your executable file that will
result from the linking of your compiled .C
file. Copy
Makefile
to the source code directory and enter make to
compile your driver code.
Multiple
is a sample make file for Linux kernel drivers that
use multiple .C
files for its source code. Rename the file to
Makefile
before using it. Simply replace the word
myprogram
with the name of your executable file that will
result from the linking of your compiled .C
files. Then replace
each instance of myprog1, myprog2, etc., with the names of your
.O
files. Copy Makefile
to the source code
directory and enter make to compile your driver code.
The files NPA.H
, NBI.H
, NPA_HAM.H
,
and NPA_CDM.H
, mentioned in the NWPA spec, have been replaced
by NWPA.H
, so that the NWPA driver developer can modify that
single file for all NWPA driver needs.
For HAM driver development, the hamSpace structure field of the HACBStruct structure must be modified to fit the needs of the driver.
For CDM driver development, the first 32 bytes of the SuperHACBStruct structure must be modified to fit its needs.
The NetWare operating system uses XDC data to identify code that can handle
operations across multiple processors. Without this tag NetWare will display
a warning concerning the inability of the driver to support multiple
processors. Use the syntax
xdcdata nwpa.xdc
LINK.DEF
file of the driver, so
that its contents will be incorporated into the driver at link time.
Every function referenced by the driver must be declared to the linker, so
that proper resolution could take place at load time. In the
LINK.DEF
file of the HAM or CDM driver, the import
tag is used to specify the functions the driver references or a file that
contains a list of these functions. Use the syntax
import @nwpa.imp
LINK.DEF
file of the driver.
NLMLinkX is the linker for all NetWare Loadable Modules under DOS or Windows
95, 98, ME, and 2000. NLMLinkX will not work with Windows XP if all the
current Windows patches are installed, and will not work on Windows XP SP2
or NT. The only command-line parameter accepted by the program is the name
of the LINK.DEF
file, which contains a list of tags required by
the linker to perform its various tasks.