Makefile.com revision 4f14b0f29aa144cc03efdde5508ae126ae197acf
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
#
VERS= .1
SOAP_OBJECTS =\
envC.o \
OBJECTS= \
$(LIB_C_OBJECTS) \
$(LIB_CPP_OBJECTS) \
$(SOAP_OBJECTS)
CCOBJS = $(LIB_CPP_OBJECTS:%.o=pics/%.o) \
$(SOAP_OBJECTS:%.o=pics/%.o)
#
# When building C++ objects, redefine CCFLAGS for 32-bit builds to
# use "compat=5" instead of "compat=4".
# The 64-bit CCFLAGS already use compat=5 option (see $SRC/Makefile.master)
#
$(CCOBJS) := i386_CCFLAGS = \
-compat=5 \
$(CCERRWARN)
$(CCOBJS) := sparc_CCFLAGS = \
$(CCERRWARN)
COPTFLAG64 += -xCC
#
# Don't lint C++ code
#
lint:
#
# Need special rules here because the files are named ".cpp" instead
# of ".cc". The source comes from KMS, and we need to keep them in sync
# so we won't change the naming convention.
#
$(COMPILE.cc) -o $@ $<
$(COMPILE.cc) -o $@ $<
.cpp:
$(POST_PROCESS)
$(COMPILE.cc) $(OUTPUT_OPTION) $<