253N/A# The contents of this file are subject to the terms of the
253N/A# Common Development and Distribution License (the "License").
253N/A# You may not use this file except in compliance with the License.
253N/A# See the License for the specific language governing permissions
253N/A# and limitations under the License.
253N/A# When distributing Covered Code, include this CDDL HEADER in each
253N/A# If applicable, add the following below this CDDL HEADER, with the
253N/A# fields enclosed by brackets "[]" replaced with your own identifying
253N/A# information: Portions Copyright [yyyy] [name of copyright owner]
844N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
253N/A# Use is subject to license terms.
253N/ATEXT_DOMAIN=SUNW_OST_OSCMD
618N/ASSH_VERSION=\"Sun_SSH_1.3\"
253N/ACPPFLAGS = -DSSH_VERSION=$(SSH_VERSION) \
253N/A -I../include -I../../include \
253N/A -D_FILE_OFFSET_BITS=64 \
253N/A -erroff=E_STATEMENT_NOT_REACHED \
253N/A -L../libssh/$(MACH) -lssh \
253N/A -L../libopenbsd-compat/$(MACH) -lopenbsd-compat
253N/A# Some the lint -erroff flags listed below are because of deficiencies in
253N/A# lint not because we are hiding real errors or to avoid massive resync-
253N/A# hindering changes that will not be returned to OpenSSH.
253N/A# OpenSSH has several instances of "do {...} while (0);" - a common
253N/A# idiom in C macros, but it elicits E_CONSTANT_CONDITION from lint.
253N/A# Lots of function return values are ignored in OpenSSH.
253N/A# Lots of globals could be static, sometimes due to portable code paths
253N/A# which are dead on Solaris.
253N/A -erroff=E_FUNC_ARG_UNUSED \
253N/A -erroff=E_NAME_USED_NOT_DEF2 \
253N/A -erroff=E_FUNC_DECL_VAR_ARG2 \
253N/A -erroff=E_INCONS_VAL_TYPE_DECL2 \
253N/A -erroff=E_INCONS_ARG_DECL2 \
253N/A -erroff=E_STATIC_UNUSED \
253N/A -erroff=E_STATEMENT_NOT_REACHED \
253N/A -erroff=E_FUNC_RET_ALWAYS_IGNOR2 \
253N/A -erroff=E_FUNC_RET_MAYBE_IGNORED2 \
253N/A -erroff=E_GLOBAL_COULD_BE_STATIC2 \
253N/A -erroff=E_CONSTANT_CONDITION \
253N/A -erroff=E_EXPR_NULL_EFFECT \
253N/AROOTLIBSSH= $(ROOTLIB)/ssh
253N/AROOTLIBSSHPROG= $(PROG:%=$(ROOTLIBSSH)/%)