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]
23 # Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
82 include ../../Makefile.astmsg
84 include ../../Makefile.lib
86 # mapfile-vers does not live with the sources in in common/ to make
87 # automated code updates easier.
88 MAPFILES= ../mapfile-vers
90 # Set common AST build flags (e.g. C99/XPG6, needed to support the math stuff)
91 include ../../../Makefile.ast
93 LIBS = $(DYNLIB) $(LINTLIB)
95 $(LINTLIB) := SRCS = $(SRCDIR)/$(LINTSRC)
106 # We use "=" here since using $(CPPFLAGS.master) is very tricky in our
107 # case - it MUST come as the last element but future changes in -D options
108 # may then cause silent breakage in the AST sources because the last -D
109 # option specified overrides previous -D options so we prefer the current
110 # way to explicitly list each single flag.
112 # - "-D_BLD_DLL" comes from ${mam_cc_DLL} in Mamfile
114 $(DTEXTDOM) $(DTS_ERRNO) \
117 -I$(ROOT)/usr/include/ast \
118 -I$(ROOT)/usr/include \
122 '-DERROR_CATALOG="libcmd"' \
124 "[-author?Glenn Fowler <gsf@research.att.com>]"\
125 "[-author?David Korn <dgk@research.att.com>]"\
126 "[-copyright?Copyright (c) 1992-2010 AT&T Intellectual Property]"\
127 "[-license?http://www.opensource.org/licenses/cpl1.0.txt]"\
128 "[--catalog?libcmd]"'
135 CERRWARN += -_gcc=-Wno-unused-value
136 CERRWARN += -_gcc=-Wno-parentheses
137 CERRWARN += -_gcc=-Wno-uninitialized
138 CERRWARN += -_gcc=-Wno-unused-variable
139 CERRWARN += -_gcc=-Wno-implicit-function-declaration
141 pics/cut.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
142 pics/sync.o := CERRWARN += -erroff=E_END_OF_LOOP_CODE_NOT_REACHED
143 pics/vmstate.o := CERRWARN += -erroff=E_NO_IMPLICIT_DECL_ALLOWED
150 # libcmd is not lint-clean yet; fake up a target. (You can use
151 # "make lintcheck" to actually run lint; please send all lint fixes
152 # upstream (to AT&T) so the next update will pull them into ON.)
155 @ print "usr/src/lib/libcmd is not lint-clean: skipping"
157 include ../../Makefile.targ