1N/A#
1N/A# CDDL HEADER START
1N/A#
1N/A# The contents of this file are subject to the terms of the
1N/A# Common Development and Distribution License (the "License").
1N/A# You may not use this file except in compliance with the License.
1N/A#
1N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A# or http://www.opensolaris.org/os/licensing.
1N/A# See the License for the specific language governing permissions
1N/A# and limitations under the License.
1N/A#
1N/A# When distributing Covered Code, include this CDDL HEADER in each
1N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/A# If applicable, add the following below this CDDL HEADER, with the
1N/A# fields enclosed by brackets "[]" replaced with your own identifying
1N/A# information: Portions Copyright [yyyy] [name of copyright owner]
1N/A#
1N/A# CDDL HEADER END
1N/A#
1N/A
1N/A#
1N/A# Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/ASHELL=/usr/bin/ksh93
1N/A
1N/ALIBRARY= libsum.a
1N/AVERS= .1
1N/A
1N/AOBJECTS= \
1N/A sumlib.o
1N/A
1N/Ainclude ../../Makefile.astmsg
1N/A
1N/Ainclude ../../Makefile.lib
1N/A
1N/A# mapfile-vers does not live with the sources in in common/ to make
1N/A# automated code updates easier.
1N/AMAPFILES= ../mapfile-vers
1N/A
1N/A# Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
1N/Ainclude ../../../Makefile.ast
1N/A
1N/ALIBS = $(DYNLIB) $(LINTLIB)
1N/A
1N/ALDLIBS += \
1N/A -last \
1N/A -lmd \
1N/A -lc
1N/A
1N/A$(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
1N/A
1N/ASRCDIR = ../common
1N/A
1N/A# We use "=" here since using $(CPPFLAGS.master) is very tricky in our
1N/A# case - it MUST come as the last element but future changes in -D options
1N/A# may then cause silent breakage in the AST sources because the last -D
1N/A# option specified overrides previous -D options so we prefer the current
1N/A# way to explicitly list each single flag.
1N/A# Notes:
1N/A# - "-D_BLD_DLL" comes from ${mam_cc_DLL} in Mamfile
1N/ACPPFLAGS = \
1N/A $(DTEXTDOM) $(DTS_ERRNO) \
1N/A -Isrc/lib/libsum \
1N/A -I$(ROOT)/usr/include/ast \
1N/A -I$(ROOT)/usr/include \
1N/A -D_PACKAGE_ast \
1N/A -D_BLD_DLL
1N/A
1N/ACFLAGS += \
1N/A $(ASTCFLAGS)
1N/ACFLAGS64 += \
1N/A $(ASTCFLAGS64)
1N/A
1N/A# This codepath is performance-critical
1N/Asparc_COPTFLAG=-xO5 -_cc=-xprefetch=auto,explicit
1N/Asparcv9_COPTFLAG=-xO5 -_cc=-xprefetch=auto,explicit
1N/Ai386_COPTFLAG=-_cc=-xO5 -_cc=-xprefetch=auto,explicit
1N/Aamd64_COPTFLAG=-_cc=-xO5 -_cc=-xprefetch=auto,explicit
1N/A
1N/A# Suppress this one warning as the fix would break old gcc, which upstream
1N/A# still supports. This needs a better fix (later).
1N/Apics/sumlib.o := CERRWARN += -erroff=E_CONST_PROMOTED_UNSIGNED_LONG
1N/A
1N/A.KEEP_STATE:
1N/A
1N/Aall: stub $(LIBS)
1N/A
1N/A#
1N/A# libsum is not lint-clean yet; fake up a target. (You can use
1N/A# "make lintcheck" to actually run lint; please send all lint fixes
1N/A# upstream (to AT&T) so the next update will pull them into ON.)
1N/A#
1N/Alint:
1N/A @ print "usr/src/lib/libsum is not lint-clean: skipping"
1N/A
1N/Ainclude ../../Makefile.targ