Makefile revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# CDDL HEADER START
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# The contents of this file are subject to the terms of the
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# Common Development and Distribution License (the "License").
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# You may not use this file except in compliance with the License.
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# or http://www.opensolaris.org/os/licensing.
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# See the License for the specific language governing permissions
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# and limitations under the License.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# When distributing Covered Code, include this CDDL HEADER in each
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# If applicable, add the following below this CDDL HEADER, with the
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# fields enclosed by brackets "[]" replaced with your own identifying
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# information: Portions Copyright [yyyy] [name of copyright owner]
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# CDDL HEADER END
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# uts/intel/fcp/Makefile
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Use is subject to license terms.
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# This makefile drives the production of fcp driver kernel module.
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# i86pc architecture dependent
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
8d1cf9fc1abcce38714c9f54a51d40e718774decjim
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# Path to the base of the uts directory tree (usually /usr/src/uts).
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
8d1cf9fc1abcce38714c9f54a51d40e718774decjimUTSBASE = ../..
8d1cf9fc1abcce38714c9f54a51d40e718774decjim
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# Define the module and object file sets.
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
8d1cf9fc1abcce38714c9f54a51d40e718774decjimMODULE = fcp
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingOBJECTS = $(FCP_OBJS:%=$(OBJS_DIR)/%)
8d1cf9fc1abcce38714c9f54a51d40e718774decjimLINTS = $(FCP_OBJS:%.o=$(LINTS_DIR)/%.ln)
8d1cf9fc1abcce38714c9f54a51d40e718774decjimROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
8d1cf9fc1abcce38714c9f54a51d40e718774decjimCONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/ulp/
8d1cf9fc1abcce38714c9f54a51d40e718774decjim
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
8d1cf9fc1abcce38714c9f54a51d40e718774decjim# Include common rules.
8d1cf9fc1abcce38714c9f54a51d40e718774decjim#
b8d55029467b9f139d081cf38c6d06ff45e742a9ndinclude $(UTSBASE)/Makefile.uts
8d1cf9fc1abcce38714c9f54a51d40e718774decjiminclude $(UTSBASE)/intel/Makefile.intel
8d1cf9fc1abcce38714c9f54a51d40e718774decjim
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding# Define targets
0f081398cf0eef8cc7c66a535d450110a92dc8aefielding#
0f081398cf0eef8cc7c66a535d450110a92dc8aefieldingALL_TARGET = $(BINARY) $(CONFMOD) $(ITUMOD)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# header file directories
#
INC_PATH += -I$(ROOT)/usr/include
#
# Overrides
#
LDFLAGS += -dy -Nmisc/fctl -Nmisc/scsi
#
# Lint tags
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
LINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
LINTTAGS += -erroff=E_STATIC_UNUSED
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
warlock:
@echo warlock is not supported
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ