tail head cat sleep
QR code linking to this page

Manual Pages  — STYLE.MAKEFILE

NAME

style.Makefile – FreeBSD Makefile file style guide

CONTENTS

DESCRIPTION

This file specifies the preferred style for makefiles in the FreeBSD source tree.

The desire to express a logical grouping often means not obeying some of the above.

EXAMPLES

The simplest program Makefile is:
# $FreeBSDamp;$

PROG=   foo

amp;.include <bsd.prog.mk>

The simplest library Makefile is:

# $FreeBSDamp;$

LIB=    foo SHLIB_MAJOR= 1 MAN=    libfoo.3 SRCS=   foo.c

amp;.include <bsd.lib.mk>

SEE ALSO

make(1), make.conf(5), style(9)

HISTORY

This manual page is inspired from the same source as style(9) manual page in FreeBSD .

BUGS

There are few hard and fast style rules here. The style of many things is too dependent on the context of the whole makefile, or the lines surrounding it.

STYLE.MAKEFILE (5) November 18, 2021

tail head cat sleep
QR code linking to this page


Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

How's my programming? Call 1-800-DEV-NULL