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