.BG
.VE $Header: /usr3/s/current/s/.help/RCS/PROGRAM,v 1.4 84/01/10 15:44:07 rab Exp $
.FN PROGRAM
.FN RATFOR
.FN FORTRAN
.FN C
.TL
PROGRAM: Creating Stand-alone FORTRAN, RATFOR, or C programs
.PP
To create stand-alone programs which use the S libraries of
algorithms and/or are written with the S facilities
use the command:
.nf
!S PROGRAM [options] name files ...   # UNIX command
!S MAKE name   # UNIX command
.PP
.AG options
optional flag, where the value `\-g' indicates a graphics program that
should search the graphics libraries, and `\-d' indicates a device driver.
.AG name
name of the stand-alone program to be produced.
.AG files
names of files on which the program depends
(in addition to standard S algorithm libraries),
typically source files (which must end in ".r", ".f", ".C" or ".c")
or library files.
.PP
The `PROGRAM' command is used once to specify the name of the
stand-alone program and the names of source files of programs
(including a main program) needed to produce `name'.
.PP
The `MAKE' command will ensure that the executable program
is loaded with up-to-date object versions of the files on which it depends.
.KW utilities
.KW UNIX
.WR
