Makefile.ssh-common revision bda1f129971950880940a17bab0bf096d5744b0c
744N/A#
744N/A# CDDL HEADER START
744N/A#
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#
744N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
744N/A# or http://www.opensolaris.org/os/licensing.
744N/A# See the License for the specific language governing permissions
744N/A# and limitations under the License.
744N/A#
744N/A# When distributing Covered Code, include this CDDL HEADER in each
744N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
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#
744N/A# CDDL HEADER END
744N/A#
744N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
744N/A# Use is subject to license terms.
3735N/A#
744N/A# Common definitions for all of usr/src/cmd/ssh subdirs
744N/A#
744N/A
744N/A
744N/ATEXT_DOMAIN=SUNW_OST_OSCMD
3045N/A
744N/ACFLAGS += $(CCVERBOSE)
1569N/ALDFLAGS += $(MAPFILE.NGB:%=-M%)
749N/A
844N/ASSH_VERSION=\"Sun_SSH_1.4\"
3045N/A
749N/AC99MODE= $(C99_ENABLE)
1289N/A
744N/ACPPFLAGS = -DSSH_VERSION=$(SSH_VERSION) \
3045N/A -I../include -I../../include \
2899N/A -D_FILE_OFFSET_BITS=64 \
744N/A -erroff=E_STATEMENT_NOT_REACHED \
744N/A $(CPPFLAGS.master)
744N/A
744N/ASSH_COMMON_LDLIBS = \
1938N/A -L../libssh/$(MACH) -lssh \
1938N/A -L../libopenbsd-compat/$(MACH) -lopenbsd-compat
2790N/A
3045N/A$(PROG): $(MAPFILE.NGB)
3045N/A
3045N/A#
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#
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#
3045N/A# The MD5 macros in <openssl/md5.h> trigger E_EXPR_NULL_EFFECT.
3045N/A#
3045N/A# Lots of function return values are ignored in OpenSSH.
3045N/A#
3045N/A# Lots of globals could be static, sometimes due to portable code paths
3045N/A# which are dead on Solaris.
3045N/A#
3045N/ALINTFLAGS += \
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_STATIC_UNUSED \
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/A -errtags=yes
3752N/A
3752N/AROOTLIBSSH= $(ROOTLIB)/ssh
3752N/AROOTLIBSSHPROG= $(PROG:%=$(ROOTLIBSSH)/%)
3752N/A
3752N/APOFILE= _messages.po
1716N/A
744N/A$(ROOTLIBSSH)/%: %
1716N/A $(INS.file)
744N/A