Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# CDDL HEADER START
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# The contents of this file are subject to the terms of the
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# Common Development and Distribution License (the "License").
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# You may not use this file except in compliance with the License.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# or http://www.opensolaris.org/os/licensing.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# See the License for the specific language governing permissions
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# and limitations under the License.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# When distributing Covered Code, include this CDDL HEADER in each
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# If applicable, add the following below this CDDL HEADER, with the
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# fields enclosed by brackets "[]" replaced with your own identifying
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# information: Portions Copyright [yyyy] [name of copyright owner]
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# CDDL HEADER END
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# Path to the base of the uts directory tree (usually /usr/src/uts).
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaUTSBASE = ../..
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# Define the module and object file sets.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaMODULE = rdsv3
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaOBJECTS = $(RDSV3_OBJS:%=$(OBJS_DIR)/%)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaLINTS = $(RDSV3_OBJS:%.o=$(LINTS_DIR)/%.ln)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaCFLAGS += $(CCVERBOSE) $(_XPG4_2)
b27516f55237249607f754e6e42e865f12456675agiriLDFLAGS += -dy -Nfs/sockfs -Nmisc/ksocket -Ndrv/ip -Nmisc/ibtl -Nmisc/ibcm -Nmisc/sol_ofs
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaCONF_SRCDIR = $(UTSBASE)/common/io/ib/clients/rdsv3
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# Include common rules.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Otainclude $(UTSBASE)/intel/Makefile.intel
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# CFLAGS += -DOFA_SOLARIS
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# Disable these lint checks since some errors suppressed here are
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# in the OFED code, but we'd like to keep it as is as much as possible.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# Note. maintainers should endeavor to investigate and remove these for
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# maximum lint coverage, but please do not carry these forward to new
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# Makefiles blindly.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaLINTTAGS += -erroff=E_STATIC_UNUSED
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaLINTTAGS += -erroff=E_CONSTANT_CONDITION
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaLINTTAGS += -erroff=E_FUNC_VAR_UNUSED
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaLINTTAGS += -erroff=E_FUNC_SET_NOT_USED
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-label
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-variable
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-unused-function
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-uninitialized
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# Define targets
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaALL_TARGET = $(BINARY) $(SRC_CONFILE)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaLINT_TARGET = $(MODULE).lint
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji OtaINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# Default build targets.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota.KEEP_STATE:
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Otadef: $(DEF_DEPS)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Otaall: $(ALL_DEPS)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Otaclean: $(CLEAN_DEPS)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Otaclobber: $(CLOBBER_DEPS)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Otalint: $(LINT_DEPS)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Otamodlintlib: $(MODLINTLIB_DEPS)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Otaclean.lint: $(CLEAN_LINT_DEPS)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Otainstall: $(INSTALL_DEPS)
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota# Include common targets.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota#
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Otainclude $(UTSBASE)/intel/Makefile.targ
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota