Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld# or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld# Use is subject to license terms.
825277341c15b6b0d2c4b8b622ae7b1d2bdc0390Sukumar Swaminathan#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# This makefile drives the production of the fcoe driver
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Path to the base of the uts directory tree (usually /usr/src/uts)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteUTSBASE = ../..
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteARCHDIR:sh = cd ..; basename `pwd`
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld#
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathan# Define the module and object file sets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMODULE = fcoe
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteOBJECTS = $(FCOE_OBJS:%=$(OBJS_DIR)/%)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINTS = $(FCOE_OBJS:%.o=$(LINTS_DIR)/%.ln)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar SwaminathanCONF_SRCDIR = $(UTSBASE)/common/io/fcoe
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
bb63f56ebeb244bd34f5e8d50900e3420f01b394Sukumar Swaminathan# Include common rules.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
bb63f56ebeb244bd34f5e8d50900e3420f01b394Sukumar Swaminathaninclude ../Makefile.$(ARCHDIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
bb63f56ebeb244bd34f5e8d50900e3420f01b394Sukumar Swaminathan# Define targets
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteALL_TARGET = $(BINARY) $(SRC_CONFILE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLINT_TARGET = $(MODULE).lint
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Overrides and depends_on
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteMODSTUBS_DIR = $(OBJS_DIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteLDFLAGS += -dy -Nmisc/mac
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteINC_PATH += -I$(UTSBASE)/common/io/fcoe
8f23e9fa8abcb5857661066b954e63400d589b65Hans Rosenfeld
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar SwaminathanCERRWARN += -_gcc=-Wno-parentheses
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Default build targets.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
825277341c15b6b0d2c4b8b622ae7b1d2bdc0390Sukumar Swaminathan.KEEP_STATE:
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortedef: $(DEF_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteall: $(ALL_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
291a2b48b9adcd7b3666c34e80ba6411929afe7fSukumar Swaminathanclean: $(CLEAN_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclobber: $(CLOBBER_DEPS)
825277341c15b6b0d2c4b8b622ae7b1d2bdc0390Sukumar Swaminathan
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortelint: $(LINT_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Fortemodlintlib: $(MODLINTLIB_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteclean.lint: $(CLEAN_LINT_DEPS)
bb63f56ebeb244bd34f5e8d50900e3420f01b394Sukumar Swaminathan
bb63f56ebeb244bd34f5e8d50900e3420f01b394Sukumar Swaminathaninstall: $(INSTALL_DEPS)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Include common targets
a9800beb32c1006bb21c8da39e0180ea440b7badGarrett D'Amore#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../Makefile.targ
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte