mfbuild(1)

NAME
mfbuild - construct a Makefile for a C program

SYNOPSIS
mfbuild program_name

DESCRIPTION
Given the name of a main C source file (ie. one containing function main), mfbuild constructs a Makefile for that C program, which includes rules for that C source file and any other related modules in the same directory.

mfbuild operates by searching the C source file for #include "name.h" lines, and then attempting to locate corresponding name.c files and analysing them in turn.

If present, mfbuild will first include the contents of a file called mfbuilddefs (either in the current directory or in $HOME/c-tools/lib).

FILES

mfbuilddefs
    (in the current directory) - per-project definitions incorporated into the top of the Makefile.

$HOME/c-tools/lib/mfbuilddefs
    all-project definitions for the top of each generated Makefile.

Makefile
    generated Unix makefile.

SEE ALSO
make(1)