compilation.cfg revision de572d98af8238405c5d1292a788b1a85b0c68eb
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# This file and its contents are supplied under the terms of the
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Common Development and Distribution License ("CDDL"), version 1.0.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# You may only use this file in accordance with the terms of version
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# 1.0 of the CDDL.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# A full copy of the text of the CDDL should have accompanied this
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# source. A copy of the CDDL is also available via the Internet at
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# http://www.illumos.org/license/CDDL.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Copyright 2015 Garrett D'Amore <garrett@damore.org>
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Compilation environments.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Each compilation environment is declared using the keyword "env", like
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# this:
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# env | <name> | <std> | <defs>
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# <name> is just a symbolic name for environment.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# <std> indicates either c89 or c99, i.e. which C standard to compile
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# under. This infuences choice of compiler and switches.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# <defs> is a list of CPP style -D or -U flags to define C preprocessor
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# symbols.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Groups of compilation environments can be named, using the "env_group"
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# keyword (this can also be used to create aliases):
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# env_group | <name> | <envs>
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# <name> is a name for the group or alias
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# <envs> is a whitespace separated list of previously declared environments
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# or environment groups (or aliases).
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | XPG3 | c89 | -D_XOPEN_SOURCE
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | XPG4 | c89 | -D_XOPEN_SOURCE -D_XOPEN_VERSION=4
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | SUSv1 | c89 | -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | SUSv2 | c89 | -D_XOPEN_SOURCE=500
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | SUSv3 | c99 | -D_XOPEN_SOURCE=600
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | SUSv4 | c99 | -D_XOPEN_SOURCE=700
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | POSIX-1990 | c89 | -D_POSIX_SOURCE
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | POSIX-1992 | c89 | -D_POSIX_SOURCE -D_POSIX_C_SOURCE=2
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | POSIX-1993 | c89 | -D_POSIX_C_SOURCE=199309L
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | POSIX-1995 | c89 | -D_POSIX_C_SOURCE=199506L
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | POSIX-2001 | c99 | -D_POSIX_C_SOURCE=200112L
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | POSIX-2008 | c99 | -D_POSIX_C_SOURCE=200809L
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | C90 | c89 |
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv | C99 | c99 |
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# These are ordered from less inclusive (most recent) to most inclusive.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# This allows for us to "include" by reference.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | POSIX-2008+ | POSIX-2008
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | POSIX-2001+ | POSIX-2008+ POSIX-2001
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | POSIX-1995+ | POSIX-2001+ POSIX-1995
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | POSIX-1993+ | POSIX-1995+ POSIX-1993
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | POSIX-1992+ | POSIX-1993+ POSIX-1992
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | POSIX-1990+ | POSIX-1992+ POSIX-1990
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | POSIX+ | POSIX-1990+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | SUSv4+ | SUSv4 POSIX-2008+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | SUSv3+ | SUSv3 SUSv4+ POSIX-2001+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | SUSv2+ | SUSv2 SUSv3+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | SUSv1+ | SUSv1 SUSv2+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | SUS+ | SUSv1+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | XPG4+ | XPG4 SUSv1+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | XPG3+ | XPG3 XPG4+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | C99+ | C99 POSIX-2001+ SUSv3+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | C+ | C90 C99 POSIX+ SUS+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | ALL | C+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore# Aliases.
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amore#
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | XPG4v2 | SUSv1
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | XPG4v2+ | SUSv1+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | XPG5 | SUSv2
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | XPG5+ | SUSv2+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | XPG6 | SUSv3
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | XPG6+ | SUSv3+
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | XPG7 | SUSv4
de572d98af8238405c5d1292a788b1a85b0c68ebGarrett D'Amoreenv_group | XPG7+ | SUSv4+