4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
22 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
23 # Use is subject to license terms.
57 include ../../Makefile.astmsg
59 include ../../Makefile.lib
61 # mapfile-vers does not live with the sources in in common/ to make
62 # automated code updates easier.
63 MAPFILES= ../mapfile-vers
65 # Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
66 include ../../../Makefile.ast
68 LIBS = $(DYNLIB) $(LINTLIB)
74 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
78 # We use "=" here since using $(CPPFLAGS.master) is very tricky in our
79 # case - it MUST come as the last element but future changes in -D options
80 # may then cause silent breakage in the AST sources because the last -D
81 # option specified overrides previous -D options so we prefer the current
82 # way to explicitly list each single flag.
84 $(DTEXTDOM) $(DTS_ERRNO) \
86 -I$(ROOT)/usr/include/ast \
87 -I$(ROOT)/usr/include \
90 "[-author?Glenn Fowler <gsf@research.att.com>]"\
91 "[-copyright?Copyright (c) 1986-2009 AT&T Intellectual Property]"\
92 "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
101 CERRWARN += -_gcc=-Wno-parentheses
102 CERRWARN += -_gcc=-Wno-uninitialized
103 CERRWARN += -_gcc=-Wno-char-subscripts
104 CERRWARN += -_gcc=-Wno-empty-body
105 CERRWARN += -_gcc=-Wno-unused-value
107 pics/ppcall.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
108 pics/ppcontrol.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
109 pics/ppcpp.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
110 pics/ppexpr.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
111 pics/pplex.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
112 pics/ppop.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
113 pics/ppsearch.o := CERRWARN += -erroff=E_INTEGER_OVERFLOW_DETECTED
114 pics/ppsearch.o := CERRWARN += -_gcc=-Wno-sequence-point
121 # libpp is not lint-clean yet; fake up a target. (You can use
122 # "make lintcheck" to actually run lint; please send all lint fixes
123 # upstream (to AT&T) so the next update will pull them into ON.)
126 @ print "usr/src/lib/libpp is not lint-clean: skipping"
128 include ../../Makefile.targ