Makefile.ast revision da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# The contents of this file are subject to the terms of the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Common Development and Distribution License (the "License").
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You may not use this file except in compliance with the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# or http://www.opensolaris.org/os/licensing.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# When distributing Covered Code, include this CDDL HEADER in each
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# If applicable, add the following below this CDDL HEADER, with the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# fields enclosed by brackets "[]" replaced with your own identifying
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# information: Portions Copyright [yyyy] [name of copyright owner]
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER END
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Use is subject to license terms.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# ident "%Z%%M% %I% %E% SMI"
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin#
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# Override this top level flag so the compiler builds in its native
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# C99 mode. This has been enabled to support the math stuff in the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# AST tools (including ksh93).
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinC99MODE= $(C99_ENABLE) -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# silence common AST&co. warnings...
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# ... about |#pragma prototyped| ...
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinCERRWARN += -erroff=E_UNRECOGNIZED_PRAGMA_IGNORED
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# common CPP flags for libshell consumers (ksh etc.)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chinLIBSHELLCPPFLAGS = \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -I$(ROOT)/usr/include/ast \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DKSHELL \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_BRACEPAT \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_CMDLIB_BLTIN=0 \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-DSH_CMDLIB_DIR="/usr/ast/bin"' \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-DSHOPT_CMDLIB_HDR="solaris_cmdlist.h"' \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_DYNAMIC \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_ESH \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_FILESCAN \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_HISTEXPAND \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_KIA \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_MULTIBYTE \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_NAMESPACE \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_OPTIMIZE \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_PFSH \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_RAWONLY \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_SUID_EXEC \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_SYSRC \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DSHOPT_VSH \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -D_BLD_shell \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -D_PACKAGE_ast \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin -DERROR_CONTEXT_T=Error_context_t \
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin '-DUSAGE_LICENSE=\
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin "[-author?David Korn <dgk@research.att.com>]"\
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin "[-copyright?Copyright (c) 1982-2007 AT&T Knowledge Ventures]"\
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin "[--catalog?libshell]"'
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin