The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]

Поиск:  Каталог документации / Документация по FreeBSD / Руководства по FreeBSD на английском

15.7 Writing something after

Do not write anything after the .include <> line. It usually can be avoided by including somewhere in the middle of your Makefile and at the end.

Note: You need to include either the pair or only; do not mix these two. only defines a few variables, which can be used in tests in the Makefile, defines the rest.

Here are some important variables defined in (this is not the complete list, please read for the complete list).

Variable Description
ARCH The architecture as returned by uname -m (e.g., i386)
OPSYS The operating system type, as returned by uname -s (e.g., FreeBSD)
OSREL The release version of the operating system (e.g., 2.1.5 or 2.2.7)
OSVERSION The numeric version of the operating system, same as __FreeBSD_version.
PORTOBJFORMAT The object format of the system (aout or elf)
LOCALBASE The base of the ``local'' tree (e.g., /usr/local/)
X11BASE The base of the ``X11'' tree (e.g., /usr/X11R6)
PREFIX Where the port installs itself (see more on PREFIX).

Note: If you have to define the variables USE_IMAKE, USE_X_PREFIX, or MASTERDIR, do so before including

Here are some examples of things you can write after

    # no need to compile lang/perl5 if perl5 is already in system
    .if ${OSVERSION} > 300003
    BROKEN= perl is in system
    # only one shlib version number for ELF
    .if ${PORTOBJFORMAT} == "elf"
    # software already makes link for ELF, but not for a.out
    .if ${PORTOBJFORMAT} == "aout"
           ${LN} -sf ${PREFIX}/lib/
For questions about the FreeBSD ports system, e-mail <>.
For questions about this documentation, e-mail <>.

Inferno Solutions
Hosting by

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру