# # 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 2009 Sun Microsystems, Inc. All rights reserved. # Use is subject to license terms. # # 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, shcomp etc.) LIBSHELLCPPFLAGS = \ -I$(LIBSHELLBASE)/$(LIBSHELLMACH)/src/cmd/ksh93 \ -I$(LIBSHELLBASE)/common/include \ -I$(ROOT)/usr/include/ast \ -I$(ROOT)/usr/include \ -DKSHELL \ -DSHOPT_BGX \ -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_STATS \ -DSHOPT_SUID_EXEC \ -DSHOPT_SYSRC \ -DSHOPT_TYPEDEF \ -DSHOPT_VSH \ -D_BLD_shell \ -D_PACKAGE_ast \ '-DERROR_CATALOG="libshell"' \ -DERROR_CONTEXT_T=Error_context_t \ '-DUSAGE_LICENSE=\ "[-author?David Korn ]"\ "[-copyright?Copyright (c) 1982-2009 AT&T Intellectual Property]"\ "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\ "[--catalog?libshell]"' # Default CFLAGS/CFLAGS64 for AST sources # (-xstrconst makes string litereals read-only and -xcsi works # around compiler issues) ASTCFLAGS = \ $(CCVERBOSE) \ -_cc=-xcsi \ -xstrconst ASTCFLAGS64 = \ $(CCVERBOSE) \ -_cc=-xcsi \ -xstrconst # We need this for C99/VLA support DEBUGFORMAT=-xdebugformat=dwarf