home *** CD-ROM | disk | FTP | other *** search
- Making and Installing lsof 1.0
-
- The Makefile contains rules for making Makefile's for specific UNIX versions
- -- e. g., ``make Makefile.sun''. If none of the supplied rules fits your
- configuration, the Makefile has comments about the strings that you may need
- to change. You may need to check your cpp documentation to see if the standard
- symbol that lsof.c assumes for your system is defined. As an example, if the
- ``hpux'' symbol is defined by cpp, to compile lsof under HP-UX 8.x, you need
- to declare:
-
- SYSDEFS = -DHPUX8
-
- Set the following Makefile strings for installing lsof:
-
- BIN destination directory for the install rule
- CDEFS compiler definitions
- DEBUG compiler optimizations -- e. g., -g or -O
- DOC destination directory for the PUCC-specific mkcat rule
- GRP group (may need to be the group that can read
- /dev/kmem) (see MODE)
- LDLIB special loader library -- e. g., -lkvm for SunOS
- MODE 0755 + 2000 if setgid access needed to /dev/kmem,
- and +4000 if any user should be able to search for
- any file, regardless of ownership or permissions
- SHELL the shell make(1) should use -- usually /bin/sh
-
- You may also have to change the install rule to use separate commands --
- cp, chown, chgrp, chmod -- if your system's install command does not honor
- Berkeley syntax.
-
- If your HP-UX hp9000s800 system does not have the <sys/fss.h> header file
- add ``-I.'' to the CDEFS rule -- e. g.,
-
- CDEFS= -I.
-
-
- Vic Abell <abe@mace.cc.purdue.edu>
- Purdue University Computing Center (PUCC)
- November 22, 1991
-