4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER START
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# The contents of this file are subject to the terms of the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Common Development and Distribution License (the "License").
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You may not use this file except in compliance with the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# See the License for the specific language governing permissions
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# and limitations under the License.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# When distributing Covered Code, include this CDDL HEADER in each
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# If applicable, add the following below this CDDL HEADER, with the
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# fields enclosed by brackets "[]" replaced with your own identifying
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# information: Portions Copyright [yyyy] [name of copyright owner]
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# CDDL HEADER END
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Use is subject to license terms.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# sparc architecture dependent
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Path to the base of the uts directory tree (usually /usr/src/uts).
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Define the module and object file sets.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Include common rules.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Define targets
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Overrides.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# We need some unusual overrides here so we'll
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# build ioc_check.h for both 32-bit/64-bit,
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# but only build 64-bit binaries.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Build 32-bit also...
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# ... but don't build any 32-bit objects
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# ... and remove -xcg92 (not supported by cw)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# ... same deal for install targets
4bff34e37def8a90f9194d81bc345c52ba20086athurlowINSTALL_TARGET_debug64 = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
4bff34e37def8a90f9194d81bc345c52ba20086athurlowINSTALL_TARGET_obj64 = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Now the normal overrides...
4bff34e37def8a90f9194d81bc345c52ba20086athurlowLDFLAGS += -dy -Ncrypto/md4 -Ncrypto/md5 -Nmisc/tlimod
613a2f6ba31e891e3d947a356daf5e563d43c1ceGordon Ross# Until CR 4994570 is fixed...
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross# The mb_put/md_get functions are intentionally used with and without
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon Ross# return value checks, so filter those out like LGREP.2 does.
02d09e03eb27f3a2dc299de704e45dae5173f43fGordon RossLGREP.nsmb = egrep -v ' ignored: (mb_init|mb_put|md_get)'
878eeb1b7b5326d4b564b97bcde1b89342878bebGordon RossLTAIL += 2>&1 | $(LGREP.2) | $(LGREP.nsmb) || true
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Default build targets.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Create ioc_check.h and compare with the saved
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# ioc_check.ref to ensure 32/64-bit invariance.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# We don't need _ASM_INLINES for this, and it
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# causes #error "port me" in 32-bit builds.
4bff34e37def8a90f9194d81bc345c52ba20086athurlow# Include common targets.