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# Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved.
1N/A#
1N/A
1N/ASHELL=/usr/bin/ksh93
1N/A
1N/ALIBRARY= libpp.a
1N/AVERS= .1
1N/A
1N/AOBJECTS= \
1N/A ppargs.o \
1N/A ppbuiltin.o \
1N/A ppcall.o \
1N/A ppcomment.o \
1N/A ppcontext.o \
1N/A ppcontrol.o \
1N/A ppcpp.o \
1N/A ppdata.o \
1N/A pperror.o \
1N/A ppexpr.o \
1N/A ppfsm.o \
1N/A ppincref.o \
1N/A ppinput.o \
1N/A ppkey.o \
1N/A pplex.o \
1N/A ppline.o \
1N/A ppmacref.o \
1N/A ppmisc.o \
1N/A ppop.o \
1N/A pppragma.o \
1N/A ppprintf.o \
1N/A ppproto.o \
1N/A ppsearch.o \
1N/A pptrace.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 -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/ACPPFLAGS = \
1N/A $(DTEXTDOM) $(DTS_ERRNO) \
1N/A -I. \
1N/A -I$(ROOT)/usr/include/ast \
1N/A -I$(ROOT)/usr/include \
1N/A -D_PACKAGE_ast \
1N/A '-DUSAGE_LICENSE=\
1N/A "[-author?Glenn Fowler <gsf@research.att.com>]"\
1N/A "[-copyright?Copyright (c) 1986-2011 AT&T Intellectual Property]"\
1N/A "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
1N/A "[--catalog?libpp]"'
1N/A
1N/A
1N/ACFLAGS += \
1N/A $(ASTCFLAGS)
1N/ACFLAGS64 += \
1N/A $(ASTCFLAGS64)
1N/A
1N/Apics/ppcall.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
1N/Apics/ppcontrol.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
1N/Apics/ppcpp.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
1N/Apics/ppexpr.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
1N/Apics/pplex.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
1N/Apics/ppop.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
1N/Apics/ppsearch.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
1N/Apics/ppsearch.o := CERRWARN += -_gcc=-Wno-sequence-point
1N/A
1N/A.KEEP_STATE:
1N/A
1N/Aall: stub $(LIBS)
1N/A
1N/A#
1N/A# libpp 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/libpp is not lint-clean: skipping"
1N/A
1N/Ainclude ../../Makefile.targ