Makefile revision 7ff836697c120cb94bd30d5c2204eb9b74718e4c
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# CDDL HEADER START
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz#
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# The contents of this file are subject to the terms of the
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# Common Development and Distribution License (the "License").
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# You may not use this file except in compliance with the License.
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz#
e379fc6d7f79163700290d92ce75deb4f3005301jerenkrantz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# or http://www.opensolaris.org/os/licensing.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# See the License for the specific language governing permissions
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# and limitations under the License.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# When distributing Covered Code, include this CDDL HEADER in each
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# If applicable, add the following below this CDDL HEADER, with the
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# fields enclosed by brackets "[]" replaced with your own identifying
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# information: Portions Copyright [yyyy] [name of copyright owner]
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# CDDL HEADER END
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha# Use is subject to license terms.
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha#
3a47c2ef905c3b6483279637fb8054ca67c5b6ddsascha# This makefile drives the production of the fcoei driver for
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# LEADVILLE.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
e50587e6b2ff25bdcbe29410be5bf8f4792016eegregames#
6ca0e6973c8176100f4a426444823ae5e777e28fsascha# Path to the base of the uts directory tree (usually /usr/src/uts).
0d9c389e9c63d02edb068917d49af2fa8012af91marc#
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaUTSBASE = ../..
dadf206a4cf1eccf5c13b64bd9678610dd763868rbbARCHDIR:sh = cd ..; basename `pwd`
dadf206a4cf1eccf5c13b64bd9678610dd763868rbb
a773226ea345018b49d45cf2e076ff2452eead5arbb#
f9e54e16ac4952a85bb00b8043c1d1e0f495eefbgregames# Define the module and object file sets.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaMODULE = fcoei
ec9b5c4854a4055d00f5459dbbd879d517f1531dmartinOBJECTS = $(FCOEI_OBJS:%=$(OBJS_DIR)/%)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaLINTS = $(FCOEI_OBJS:%.o=$(LINTS_DIR)/%.ln)
5181b311fbd45b65a34b3fddb3ace5fab85f36e4wroweROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaCONF_SRCDIR = $(UTSBASE)/common/io/fibre-channel/fca/fcoei
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
4cbb3bcf66a6788196bcc7244e4e36705acfbb57rbb#
a91a466a0d812a522d492c3c182163f73591ca20aaron# Include common rules.
a91a466a0d812a522d492c3c182163f73591ca20aaron#
5f69f46ccdf50afd8f0a23f134746e6066185e89rbbinclude ../Makefile.$(ARCHDIR)
12b0070d002520b81a273ae892b9ea08e810b123rbb
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
886cd69ebf69e990dbc365be87ff8ea7cd681904rbb# Define targets
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
305a68a1a5db3cc264077d89b3caa6f923257150fieldingALL_TARGET = $(BINARY) $(SRC_CONFILE)
7bfe076b680e6e591add6cdc754ce9a6910682a2saschaLINT_TARGET = $(MODULE).lint
105475009f541187ba7a14a367547d9404c578befieldingINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
105475009f541187ba7a14a367547d9404c578befielding
7bfe076b680e6e591add6cdc754ce9a6910682a2sascha#
f07a80771bc5d30b1e0cfcb7256c1a302da77675rbb# Overrides and depends_on
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
80e9324586de2fa55e2da4df409e6a85885ea659fieldingLDFLAGS += -dy -Nmisc/fctl -Ndrv/fcoe
9022fa73d4ac101553e7c36a1457ead52a73333borlikowskiINC_PATH += -I$(UTSBASE)/common/io/fibre-channel/fca/fcoei
9022fa73d4ac101553e7c36a1457ead52a73333borlikowski
38d37e90b45f2a735e7aecf702c76159e0b9f58ftrawick#
105475009f541187ba7a14a367547d9404c578befielding# Default build targets.
6ca0e6973c8176100f4a426444823ae5e777e28fsascha#
105475009f541187ba7a14a367547d9404c578befielding.KEEP_STATE:
105475009f541187ba7a14a367547d9404c578befielding
105475009f541187ba7a14a367547d9404c578befieldingdef: $(DEF_DEPS)
105475009f541187ba7a14a367547d9404c578befielding
105475009f541187ba7a14a367547d9404c578befieldingall: $(ALL_DEPS)
105475009f541187ba7a14a367547d9404c578befielding
105475009f541187ba7a14a367547d9404c578befieldingclean: $(CLEAN_DEPS)
105475009f541187ba7a14a367547d9404c578befielding
105475009f541187ba7a14a367547d9404c578befieldingclobber: $(CLOBBER_DEPS)
105475009f541187ba7a14a367547d9404c578befielding
105475009f541187ba7a14a367547d9404c578befieldinglint: $(LINT_DEPS)
105475009f541187ba7a14a367547d9404c578befielding
6ca0e6973c8176100f4a426444823ae5e777e28fsaschamodlintlib: $(MODLINTLIB_DEPS)
6ca0e6973c8176100f4a426444823ae5e777e28fsascha
6ca0e6973c8176100f4a426444823ae5e777e28fsaschaclean.lint: $(CLEAN_LINT_DEPS)
cb5d3f2f217d457dada4883addb1dc9f3f17bb85fielding
6a1c919219ae7e3382fb22f1c4cf89f11b4becffcoarinstall: $(INSTALL_DEPS)
95d00ea81131488769296fa5765ed745cbf45207trawick
95d00ea81131488769296fa5765ed745cbf45207trawick#
ce8d7a0627c0f246376cccd980463f8250a6a97ebjh# Include common targets.
ce8d7a0627c0f246376cccd980463f8250a6a97ebjh#
20bca6c9617ad7d0268203c21039424e99acdd91bjhinclude ../Makefile.targ
ce8d7a0627c0f246376cccd980463f8250a6a97ebjh