da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# CDDL HEADER START
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# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# See the License for the specific language governing permissions
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# and limitations under the License.
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# CDDL HEADER END
134a1f4e3289b54e0f980e9cf05352e419a60beeCasper H.S. Dik# Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# We are storing the object files into subdirs avoid the
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# confusion with having too many object files in the toplevel pics/
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# directory (this matches the way how the original AST build system
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# deals with this "logistic" issue) - the rules below ensure that
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# the destination directory is available.
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# Specify the MACH we currently use to build and test ksh
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# mapfile-vers does not live with the sources in in common/ to make
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# automated code updates easier.
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chin# Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# 1. Make sure that the -D/-U defines in CPPFLAGS below are in sync
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# 2. We use "=" here since using $(CPPFLAGS.master) is very tricky in our
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# case - it MUST come as the last element but future changes in -D options
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# may then cause silent breakage in the AST sources because the last -D
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# option specified overrides previous -D options so we prefer the current
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# way to explicitly list each single flag.
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chinpics/sh/macro.o := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
7c2fbfb345896881c631598ee3852ce9ce33fb07April Chinpics/sh/nvdisc.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# libshell is not lint-clean yet; fake up a target. (You can use
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# "make lintcheck" to actually run lint; please send all lint fixes
da2e3ebdc1edfbc5028edf1354e7dd2fa69a7968chin# upstream (to AT&T) so the next update will pull them into ON.)