Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
m
mkmf(1) mkmf(1)
NAME
mkmf - make a makefile
SYNOPSIS
mkmf [-acdeil ][-f makefile ][-F template ][-M language][macroname=value ...]
DESCRIPTION
The mkmf command creates a makefile that informs the make command how to construct and maintain
programs and libraries (see make(1)). After gathering up all source code file names in the current working
directory and inserting them into the makefile, mkmf scans source code files for included files and gen-
erates dependency information that is appended to the makefile. Source code files are identified by their
file name suffixes. mkmf recognizes the following suffixes:
.c C
.C C++
.f FORTRAN
.h Include files
.i Pascal include files
.l Lex or Lisp
.o Object files
.p Pascal
.r Ratfor
.s Assembler
.y Yacc
The mkmf command checks for an existing makefile before creating one. If no -f option is present,
mkmf
tries the makefiles makefile and Makefile, respectively.
After the makefile has been created, arbitrary changes can be made using a text editor. mkmf
can also be
used to re-edit the macro definitions in the makefile, regardless of changes that may have been made since
it was created.
By default,
mkmf creates a program makefile. To create a makefile that handles libraries, the
-l option
must be used.
Make Requests
Given a makefile created by
mkmf, make recognizes the following requests:
all Compile and load a program or library.
clean Remove all object and core files.
clobber Remove all files that can be regenerated.
depend Update included file dependencies in a makefile.
echo List the names of the source code files on standard output.
extract Extract all object files from the library and place them in the same directory as the
source code files. The library is not altered.
index Print an index of functions on standard output.
install Compile and load the program or library and move it to its destination directory.
print Print source code files on standard output.
tags Create a tags file for the ex editor (see ex(1) and ctags(1)), for C, Pascal, and Fortran
source code files.
update Recompile only if there are source code files that are newer than the program or library,
link and installthe program or library.
Several requests can be given simultaneously. For example, to (1) compile and link a program, (2) move
the program to its destination directory, and (3) remove any unnecessary object files, use:
make install clean
Macro Definitions
mkmf understands the following macro definitions:
Section 1−−532 − 1 − HP-UX Release 11i: December 2000
___
___