1*da2e3ebdSchin# 2*da2e3ebdSchin# CDDL HEADER START 3*da2e3ebdSchin# 4*da2e3ebdSchin# The contents of this file are subject to the terms of the 5*da2e3ebdSchin# Common Development and Distribution License (the "License"). 6*da2e3ebdSchin# You may not use this file except in compliance with the License. 7*da2e3ebdSchin# 8*da2e3ebdSchin# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9*da2e3ebdSchin# or http://www.opensolaris.org/os/licensing. 10*da2e3ebdSchin# See the License for the specific language governing permissions 11*da2e3ebdSchin# and limitations under the License. 12*da2e3ebdSchin# 13*da2e3ebdSchin# When distributing Covered Code, include this CDDL HEADER in each 14*da2e3ebdSchin# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15*da2e3ebdSchin# If applicable, add the following below this CDDL HEADER, with the 16*da2e3ebdSchin# fields enclosed by brackets "[]" replaced with your own identifying 17*da2e3ebdSchin# information: Portions Copyright [yyyy] [name of copyright owner] 18*da2e3ebdSchin# 19*da2e3ebdSchin# CDDL HEADER END 20*da2e3ebdSchin# 21*da2e3ebdSchin# 22*da2e3ebdSchin# Copyright 2007 Sun Microsystems, Inc. All rights reserved. 23*da2e3ebdSchin# Use is subject to license terms. 24*da2e3ebdSchin# 25*da2e3ebdSchin# ident "%Z%%M% %I% %E% SMI" 26*da2e3ebdSchin# 27*da2e3ebdSchin 28*da2e3ebdSchin# Override this top level flag so the compiler builds in its native 29*da2e3ebdSchin# C99 mode. This has been enabled to support the math stuff in the 30*da2e3ebdSchin# AST tools (including ksh93). 31*da2e3ebdSchinC99MODE= $(C99_ENABLE) -D_XOPEN_SOURCE=600 -D__EXTENSIONS__=1 32*da2e3ebdSchin 33*da2e3ebdSchin# silence common AST&co. warnings... 34*da2e3ebdSchin# ... about |#pragma prototyped| ... 35*da2e3ebdSchinCERRWARN += -erroff=E_UNRECOGNIZED_PRAGMA_IGNORED 36*da2e3ebdSchin 37*da2e3ebdSchin# common CPP flags for libshell consumers (ksh etc.) 38*da2e3ebdSchinLIBSHELLCPPFLAGS = \ 39*da2e3ebdSchin -I$(ROOT)/usr/include/ast \ 40*da2e3ebdSchin -DKSHELL \ 41*da2e3ebdSchin -DSHOPT_BRACEPAT \ 42*da2e3ebdSchin -DSHOPT_CMDLIB_BLTIN=0 \ 43*da2e3ebdSchin '-DSH_CMDLIB_DIR="/usr/ast/bin"' \ 44*da2e3ebdSchin '-DSHOPT_CMDLIB_HDR="solaris_cmdlist.h"' \ 45*da2e3ebdSchin -DSHOPT_DYNAMIC \ 46*da2e3ebdSchin -DSHOPT_ESH \ 47*da2e3ebdSchin -DSHOPT_FILESCAN \ 48*da2e3ebdSchin -DSHOPT_HISTEXPAND \ 49*da2e3ebdSchin -DSHOPT_KIA \ 50*da2e3ebdSchin -DSHOPT_MULTIBYTE \ 51*da2e3ebdSchin -DSHOPT_NAMESPACE \ 52*da2e3ebdSchin -DSHOPT_OPTIMIZE \ 53*da2e3ebdSchin -DSHOPT_PFSH \ 54*da2e3ebdSchin -DSHOPT_RAWONLY \ 55*da2e3ebdSchin -DSHOPT_SUID_EXEC \ 56*da2e3ebdSchin -DSHOPT_SYSRC \ 57*da2e3ebdSchin -DSHOPT_VSH \ 58*da2e3ebdSchin -D_BLD_shell \ 59*da2e3ebdSchin -D_PACKAGE_ast \ 60*da2e3ebdSchin -DERROR_CONTEXT_T=Error_context_t \ 61*da2e3ebdSchin '-DUSAGE_LICENSE=\ 62*da2e3ebdSchin "[-author?David Korn <dgk@research.att.com>]"\ 63*da2e3ebdSchin "[-copyright?Copyright (c) 1982-2007 AT&T Knowledge Ventures]"\ 64*da2e3ebdSchin "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\ 65*da2e3ebdSchin "[--catalog?libshell]"' 66*da2e3ebdSchin 67*da2e3ebdSchin 68