
- Change into the lib subdirectory

- copy all the files from the util subdirectory to the lib directory

- add the following code to shhopt.c:

char *rindex(char *s, int c)
{
   char *back = NULL;
   char *ptr;
   ptr = s;
   while(*ptr) {
    if(*ptr == c) {
     back = ptr;
    }
    ptr++;
   }
   return back;
}

- add the following code to libpm.c:

#include <io.h>
#include <process.h>
#include <stdlib.h>

static int S_ISREG(int m)
{
  int back = 0;
  if((m & _S_IFMT) == _S_IFREG) {
    back = 1;
  }
  return back;
}

- Remove all "#include <compile.h>" and "#include <unistd.h>"
  from headers in the lib subdirectory and in the netpbm main
  directory.

- Now make netpbm.lib using either dll.mak or static.mak

- Copy the *.h, *.lib and *.dll files to the appropriate target
  directories. Do not forget to copy the *.h files from the
  netpbm main directory too.
