usr/src/Makefile.ast
author Darren Moffat <Darren.Moffat@Sun.COM>
Mon, 06 Oct 2008 16:17:59 +0100
changeset 13400 56d0b855ece3
parent 4887 feebf9260c2e
child 8462 6e341f5569ba
permissions -rw-r--r--
keywords nits

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# ident	"%Z%%M%	%I%	%E% SMI"
#

# Override this top level flag so the compiler builds in its native
# C99 mode.  This has been enabled to support the math stuff in the
# AST tools (including ksh93).
C99MODE= $(C99_ENABLE) -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1

# silence common AST&co. warnings...
# ... about |#pragma prototyped| ...
CERRWARN += -erroff=E_UNRECOGNIZED_PRAGMA_IGNORED

# common CPP flags for libshell consumers (ksh etc.)
LIBSHELLCPPFLAGS = \
	-I$(ROOT)/usr/include/ast \
	-DKSHELL \
	-DSHOPT_BRACEPAT \
	-DSHOPT_CMDLIB_BLTIN=0 \
	'-DSH_CMDLIB_DIR="/usr/ast/bin"' \
	'-DSHOPT_CMDLIB_HDR="solaris_cmdlist.h"' \
	-DSHOPT_DYNAMIC \
	-DSHOPT_ESH \
	-DSHOPT_FILESCAN \
	-DSHOPT_HISTEXPAND \
	-DSHOPT_KIA \
	-DSHOPT_MULTIBYTE \
	-DSHOPT_NAMESPACE \
	-DSHOPT_OPTIMIZE \
	-DSHOPT_PFSH \
	-DSHOPT_RAWONLY \
	-DSHOPT_SUID_EXEC \
	-DSHOPT_SYSRC \
	-DSHOPT_VSH \
	-D_BLD_shell \
	-D_PACKAGE_ast \
	-DERROR_CONTEXT_T=Error_context_t \
	'-DUSAGE_LICENSE=\
		"[-author?David Korn <[email protected]>]"\
		"[-copyright?Copyright (c) 1982-2007 AT&T Knowledge Ventures]"\
		"[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
		"[--catalog?libshell]"'