Command Reference Guide

__________________________________________________________________________________________________________________________________________________________________________________________________
__________________________________________________________________________________________________________________________________________________________________________________________________
STANDARD Printed by: Nora Chuang [nchuang] STANDARD
/build/1111/BRICK/man1/!!!intro.1
________________________________________________________________
___ ___
m
mkmf(1) mkmf(1)
Ratfor syntax, P = Pascal syntax). The following list shows the default configuration for mkmf:
.c:sC
C
.C:sC++ C++
.f:sF Fortran
.h:h Include files
.i:h Pascal include files
.l:sC Lex or Lisp
.o:o Object files
.p:sP Pascal
.r:sF Ratfor
.s:s Assembler
.y:sC Yacc
For example, to change the object file sufx to .obj, undefine the Pascal include file suffix, and prevent
Fortran files from being scanned for included files, the SUFFIX macro definition could be:
SUFFIX = .obj:o .i: .f:s
Include Statement Syntax
The syntax of include statements for C, C++, Fortran, and Pascal source code are of the form:
C/C++:
#include "filename"
#include
filename
where # must be the first character in the line.
Fortran:
$include filename ’$
$INCLUDE
filename ’$
where $ must be the first character in the line. Alternatively, the
$ can be omitted if the
include statement starts in column 7. In either case the trailing
$ can be omitted.
Pascal:
$include filename ’$
$INCLUDE
filename ’$
where $ must be the first character in the line and the trailing $ is optional.
User-defined Templates
If
mkmf cannot find a makefile within the current directory, it normally uses one of the standard makefile
templates, C.p or C.l,in/usr/ccs/lib/mf
unless the user has alternative C.p or C.l template
files in a directory
$PROJECT/lib/mf where $PROJECT is the absolute path name of the directory
assigned to the PROJECT environment variable.
Options
mkmf recognizes the following options:
-a Include source files beginning with a . in the makefile.
-c Suppress ‘‘creating makefile from ...’ message.
-d Turn off scanning of source code for include files. Old dependency information is
left untouched in the makefile.
-e Environment variables override macro definitions within makefiles.
-f makefile Specify an alternative makefile file name. The default file name is Makefile.
-i Prompt the user for the name of the program or library and the directory where it is
to be installed. If a carriage-return is typed in response to each of these queries,
mkmf assumes that the default program name is a.out or the default library name
is lib.a, and the destination directory is the current directory.
-l Force the makefile to be a library makefile.
Section 1534 3 HP-UX Release 11i: December 2000
___
___