Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# CDDL HEADER START
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# The contents of this file are subject to the terms of the
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# Common Development and Distribution License (the "License").
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# You may not use this file except in compliance with the License.
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# or http://www.opensolaris.org/os/licensing.
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# See the License for the specific language governing permissions
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# and limitations under the License.
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# CDDL HEADER END
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# uts/intel/fcip/Makefile
ffe1bb0585ffb6af6830932b147f5711733a9a9eTimo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# Use is subject to license terms.
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# This makefile drives the production of fcip driver kernel module.
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# i86pc architecture dependent
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# Path to the base of the uts directory tree (usually /usr/src/uts).
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenUTSBASE = ../..
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# Define the module and object file sets.
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenMODULE = fcip
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenOBJECTS = $(FCIP_OBJS:%=$(OBJS_DIR)/%)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenLINTS = $(FCIP_OBJS:%.o=$(LINTS_DIR)/%.ln)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenCONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/ulp/
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# Include common rules.
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Siraineninclude $(UTSBASE)/Makefile.uts
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Siraineninclude $(UTSBASE)/intel/Makefile.intel
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# Define targets
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenLINT_TARGET = $(MODULE).lint
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# header file directories
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenINC_PATH += -I$(SRC)/uts/common
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenLDFLAGS += -dy -Nmisc/fctl -Ndrv/ip
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# Lint tags
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenLINTTAGS += -erroff=E_INCONS_ARG_USED2
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenLINTTAGS += -erroff=E_INCONS_VAL_TYPE_USED2
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenCERRWARN += -_gcc=-Wno-parentheses
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo SirainenCERRWARN += -_gcc=-Wno-type-limits
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# Default build targets.
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen.KEEP_STATE:
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainendef: $(DEF_DEPS)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainenall: $(ALL_DEPS)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainenclean: $(CLEAN_DEPS)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainenclobber: $(CLOBBER_DEPS)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainenlint: $(LINT_DEPS)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainenwarlock:
ffe1bb0585ffb6af6830932b147f5711733a9a9eTimo Sirainen @echo warlock is not supported
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
ffe1bb0585ffb6af6830932b147f5711733a9a9eTimo Sirainenmodlintlib: $(MODLINTLIB_DEPS)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainenclean.lint: $(CLEAN_LINT_DEPS)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Siraineninstall: $(INSTALL_DEPS)
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen# Include common targets.
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen#
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Siraineninclude $(UTSBASE)/intel/Makefile.targ
2c38504860da8a8de915f8e0f5f39d7e7bd00cf8Timo Sirainen