Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
m
mkmf(1) mkmf(1)
CFLAGS C compiler flags. After searching for included files in the directory currently being
processed, mkmf searches in directories named in -I compiler options and then in the
/usr/include directory.
COMPILESYSTYPE
Location of /usr/include . If the COMPILESYSTYPE macro or environment
variable is defined, mkmf searches for included files in
/$COMPILESYSTYPE/usr/include instead of /usr/include .
CXXFLAGS C++ compiler flags. After searching for included files in the directory currently being
processed, mkmf searches in directories named in -I compiler options and then in the
/usr/include/CC directory, followed by the /usr/include directory.
DEST Directory where the program or library is to be installed.
EXTHDRS List of included files external to the current directory. mkmf automatically updates
this macro definition in the makefile if dependency information is being generated.
FFLAGS Fortran compiler flags. After searching for included files in the directory currently
being processed, mkmf searches in directories named in -I compiler options, then in
the /usr/include directory.
HDRS List of included files in the current directory.
mkmf automatically updates this macro
definition in the makefile.
INSTALL Installation program name.
LD Link editor name.
LDFLAGS Link editor flags.
LIBRARY Library name. This macro also implies the -l option.
LIBS List of libraries needed by the link editor to resolve external references.
MAKEFILE Makefile name.
OBJS List of object files. mkmf automatically updates this macro definition in the makefile.
PROGRAM Program name.
SRCS List of source code files. mkmf automatically updates this macro definition in the
makefile.
SUFFIX List of additional file name suffixes for mkmf to know about.
SYSHDRS List of included files found in the /usr/include directory hierarchy. mkmf
automatically updates this macro definition in the makefile if dependency information
is being generated. If SYSHDRS is omitted from the makefile, mkmf does not gen-
erate
/usr/include dependencies.
Both these and any other macro definitions already within the makefile can be replaced by definitions on
the command line in the form macroname=value. For example, to change the C compiler flags and the pro-
gram name, type the following line:
mkmf "CFLAGS=-I../include -O" PROGRAM=mkmf
Note that macro definitions such as CFLAGS with blanks in them must be enclosed in double quote (")
marks.
Environment
The environment is read by
mkmf. All variables are assumed to be macro definitions with the exception of
HDRS, EXTHDRS, SRCS, and OBJS. Environment variables are processed after command line macro
definitions and the macro definitions in a makefile. The -e option forces the environment to override the
macro definitions in a makefile.
File Name Suffixes
mkmf can recognize additional file name sufxes, or ignore ones that it already recognizes, by specifying
suffix descriptions in the SUFFIX macro definition. Each suffix description takes the form .suffix:tI
where t is a character indicating the contents of the file (s = source file,
o = object file, h = header file, x =
executable file) and I is an optional character indicating the include syntax for header files (
C =Csyntax,
C++ = C syntax plus the addition of /usr/include/CC
as a standard search directory, F = Fortran and
HP-UX Release 11i: December 2000 2 Section 1533
___
___