## Using Your DDK

[prev][next][parent][TOC]

### 16-Bit Pen for OS/2 Driver

Driver Description:

The Pen for OS/2 Driver is a 16-bit device driver that requires a 16-bit assembler compiler for the ASM code provided in the DDK. It also requires Pen for OS/2 Developer's Toolkit. These products are available separately from IBM.

Compilers/Assemblers Required:

         Microsoft MASM 5.1      (supplied with the DDK)

Build Instructions:

1.Set the environment variables so the correct tools are picked up during the build.

    e.g., SET PATH=<drive>:\DDK\TOOLS;\DDK\BASE\TOOLS;%PATH%
          SET LIB=%LIB%;<drive>:\DDK\BASE\LIB;
          SET INCLUDE=%INCLUDE%;<drive>:\DDK\BASE\H;<drive>:\DDK\BASE\INC;

Where <drive> represents your DDK installed drive and DDK represents the DDK installed directory. On the CD-ROM, the TOOLS directory path is DDK\ BASE\TOOLS.

2.Make sure the Pen for OS/2 Developer's Toolkit is installed and the environment variables are correctly set. (The environment variables are set when Pen for OS/2 Toolkit is installed).

The Pen for OS/2 Developer's Toolkit is located on CD-ROM 3 of the Developer Connection.

To build the Pen for OS/2 Device Driver:

3.Change the directory to DDK\BASE\SRC\PEN\PENTKT\PENBASE\INC.

4.Invoke NMAKE on the resident makefile.

5.Change the directory to DDK\BASE\SRC\PEN\PENTKT\PENBASE\PENDD.

6.Invoke NMAKE on the resident makefile.

Build Notes:

The makefiles should be run in the following order:

         <drive>:\DDK\BASE\SRC\PEN\PENTKT\PENBASE\INC
         <drive>:\DDK\BASE\SRC\PEN\PENTKT\PENBASE\PENDD

Files Created by Successful Build:

         Directory:  \DDK\BASE\SRC\PEN\PENTKT\PENBASE\PENDD

         o  PENDD.SYS