Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER START
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# The contents of this file are subject to the terms of the
66e2aacc02a4625d105fb249ad16c27e79604ff2gw# Common Development and Distribution License (the "License").
66e2aacc02a4625d105fb249ad16c27e79604ff2gw# You may not use this file except in compliance with the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fa9e4066f08beec538e775443c5be79dd423fcabahrens# or http://www.opensolaris.org/os/licensing.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# See the License for the specific language governing permissions
fa9e4066f08beec538e775443c5be79dd423fcabahrens# and limitations under the License.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# When distributing Covered Code, include this CDDL HEADER in each
fa9e4066f08beec538e775443c5be79dd423fcabahrens# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# If applicable, add the following below this CDDL HEADER, with the
fa9e4066f08beec538e775443c5be79dd423fcabahrens# fields enclosed by brackets "[]" replaced with your own identifying
fa9e4066f08beec538e775443c5be79dd423fcabahrens# information: Portions Copyright [yyyy] [name of copyright owner]
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# CDDL HEADER END
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# uts/sparc/fcip/Makefile
66e2aacc02a4625d105fb249ad16c27e79604ff2gw#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Use is subject to license terms.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# This makefile drives the production of fcip driver kernel module.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# i86pc architecture dependent
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
dc307942eac821bc70a7a69cbb1ddec4184607c1talley# Path to the base of the uts directory tree (usually /usr/src/uts).
dc307942eac821bc70a7a69cbb1ddec4184607c1talley#
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyUTSBASE = ../..
dc307942eac821bc70a7a69cbb1ddec4184607c1talley
dc307942eac821bc70a7a69cbb1ddec4184607c1talley#
dc307942eac821bc70a7a69cbb1ddec4184607c1talley# Define the module and object file sets.
dc307942eac821bc70a7a69cbb1ddec4184607c1talley#
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyMODULE = fcip
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyOBJECTS = $(FCIP_OBJS:%=$(OBJS_DIR)/%)
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyLINTS = $(FCIP_OBJS:%.o=$(LINTS_DIR)/%.ln)
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyCONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/ulp/
dc307942eac821bc70a7a69cbb1ddec4184607c1talley
dc307942eac821bc70a7a69cbb1ddec4184607c1talley#
dc307942eac821bc70a7a69cbb1ddec4184607c1talley# Include common rules.
dc307942eac821bc70a7a69cbb1ddec4184607c1talley#
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyinclude $(UTSBASE)/Makefile.uts
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyinclude $(UTSBASE)/sparc/Makefile.sparc
dc307942eac821bc70a7a69cbb1ddec4184607c1talley
dc307942eac821bc70a7a69cbb1ddec4184607c1talley#
dc307942eac821bc70a7a69cbb1ddec4184607c1talley# Define targets
dc307942eac821bc70a7a69cbb1ddec4184607c1talley#
fa9e4066f08beec538e775443c5be79dd423fcabahrensALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
fa9e4066f08beec538e775443c5be79dd423fcabahrensLINT_TARGET = $(MODULE).lint
fa9e4066f08beec538e775443c5be79dd423fcabahrensINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
dc307942eac821bc70a7a69cbb1ddec4184607c1talley#
dc307942eac821bc70a7a69cbb1ddec4184607c1talley# header file directories
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrensINC_PATH += -I$(SRC)/uts/common
fa9e4066f08beec538e775443c5be79dd423fcabahrens
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyLDFLAGS += -dy -Nmisc/fctl -Ndrv/ip
dc307942eac821bc70a7a69cbb1ddec4184607c1talley
dc307942eac821bc70a7a69cbb1ddec4184607c1talley#
dc307942eac821bc70a7a69cbb1ddec4184607c1talley# Lint tags
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrensLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
fa9e4066f08beec538e775443c5be79dd423fcabahrensLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyLINTTAGS += -erroff=E_INCONS_ARG_USED2
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyLINTTAGS += -erroff=E_INCONS_VAL_TYPE_USED2
dc307942eac821bc70a7a69cbb1ddec4184607c1talley
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyCERRWARN += -_gcc=-Wno-parentheses
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyCERRWARN += -_gcc=-Wno-type-limits
dc307942eac821bc70a7a69cbb1ddec4184607c1talley
dc307942eac821bc70a7a69cbb1ddec4184607c1talley#
dc307942eac821bc70a7a69cbb1ddec4184607c1talley# Default build targets.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens.KEEP_STATE:
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensdef: $(DEF_DEPS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensall: $(ALL_DEPS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensclean: $(CLEAN_DEPS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensclobber: $(CLOBBER_DEPS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrenslint: $(LINT_DEPS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrenswarlock:
fa9e4066f08beec538e775443c5be79dd423fcabahrens @echo warlock is not supported
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensmodlintlib: $(MODLINTLIB_DEPS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
dc307942eac821bc70a7a69cbb1ddec4184607c1talleyclean.lint: $(CLEAN_LINT_DEPS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrensinstall: $(INSTALL_DEPS)
fa9e4066f08beec538e775443c5be79dd423fcabahrens
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrens# Include common targets.
fa9e4066f08beec538e775443c5be79dd423fcabahrens#
fa9e4066f08beec538e775443c5be79dd423fcabahrensinclude $(UTSBASE)/sparc/Makefile.targ
fa9e4066f08beec538e775443c5be79dd423fcabahrens