tail head cat sleep
QR code linking to this page

Manual Pages  — STYLE.MAKEFILE


style.Makefile – FreeBSD Makefile file style guide



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.


The simplest program Makefile is:
# $FreeBSD$

PROG=   foo

.include <bsd.prog.mk>

The simplest library Makefile is:

# $FreeBSD$

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

.include <bsd.lib.mk>


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


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


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) October 21, 2015

tail head cat sleep
QR code linking to this page

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

There are two major products of Berkeley, CA -- LSD and UNIX. We don't believe this to be strictly by coincidence.
Jeremy S. Anderson