869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# CDDL HEADER START
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# The contents of this file are subject to the terms of the
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# Common Development and Distribution License (the "License").
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# You may not use this file except in compliance with the License.
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# or http://www.opensolaris.org/os/licensing.
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# See the License for the specific language governing permissions
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# and limitations under the License.
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# If applicable, add the following below this CDDL HEADER, with the
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# CDDL HEADER END
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# Use is subject to license terms.
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# This makefile drives the production of the fcoei driver for
d1b57e78cf72f41c7c6a52bd7c2a6d6aa4da6ba4Craig McDonnell# LEADVILLE.
4505caaaadb03cc04b4ecb08d728ddcbf690b9e4Mark de Reeper
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# Path to the base of the uts directory tree (usually /usr/src/uts).
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterUTSBASE = ../..
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterARCHDIR:sh = cd ..; basename `pwd`
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew Forrest
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew Forrest#
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew Forrest# Define the module and object file sets.
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew Forrest#
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew ForrestMODULE = fcoei
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew ForrestOBJECTS = $(FCOEI_OBJS:%=$(OBJS_DIR)/%)
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterLINTS = $(FCOEI_OBJS:%.o=$(LINTS_DIR)/%.ln)
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew ForrestCONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/fca/fcoei
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew Forrest
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew Forrest#
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew Forrest# Include common rules.
8f8f8324cd7eb3d7d1d6b446be35096b9eff5f58Andrew Forrest#
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterinclude ../Makefile.$(ARCHDIR)
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# Define targets
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterALL_TARGET = $(BINARY) $(SRC_CONFILE)
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterLINT_TARGET = $(MODULE).lint
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# Overrides and depends_on
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterLDFLAGS += -dy -Nmisc/fctl -Ndrv/fcoe
869a36e2649ae064c98063cf1e55198488d78d12Allan FosterINC_PATH += -I$(UTSBASE)/common/io/fibre-channel/fca/fcoei
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# Default build targets.
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster.KEEP_STATE:
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterdef: $(DEF_DEPS)
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterall: $(ALL_DEPS)
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterclean: $(CLEAN_DEPS)
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterclobber: $(CLOBBER_DEPS)
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterlint: $(LINT_DEPS)
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Fostermodlintlib: $(MODLINTLIB_DEPS)
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterclean.lint: $(CLEAN_LINT_DEPS)
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterinstall: $(INSTALL_DEPS)
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster# Include common targets.
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster#
869a36e2649ae064c98063cf1e55198488d78d12Allan Fosterinclude ../Makefile.targ
869a36e2649ae064c98063cf1e55198488d78d12Allan Foster