Makefile revision 4558d122136f151d62acbbc02ddb42df89a5ef66
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# CDDL HEADER START
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# The contents of this file are subject to the terms of the
f808c858fa61e7769218966759510a8b1190dfcfraf# Common Development and Distribution License (the "License").
f808c858fa61e7769218966759510a8b1190dfcfraf# You may not use this file except in compliance with the License.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f808c858fa61e7769218966759510a8b1190dfcfraf# or http://www.opensolaris.org/os/licensing.
f808c858fa61e7769218966759510a8b1190dfcfraf# See the License for the specific language governing permissions
f808c858fa61e7769218966759510a8b1190dfcfraf# and limitations under the License.
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# When distributing Covered Code, include this CDDL HEADER in each
f808c858fa61e7769218966759510a8b1190dfcfraf# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f808c858fa61e7769218966759510a8b1190dfcfraf# If applicable, add the following below this CDDL HEADER, with the
f808c858fa61e7769218966759510a8b1190dfcfraf# fields enclosed by brackets "[]" replaced with your own identifying
f808c858fa61e7769218966759510a8b1190dfcfraf# information: Portions Copyright [yyyy] [name of copyright owner]
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# CDDL HEADER END
f808c858fa61e7769218966759510a8b1190dfcfraf#
3f9d6ad73e45c6823b409f93b0c8d4f62861d2d5Lin Ling#
1af68beac368dae20a9c5d738cf6b6320cf9d63aAlexander Stetsenko# Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# This makefile drives the production of the iscsit pseudo-driver for
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# COMSTAR.
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami# Path to the base of the uts directory tree (usually /usr/src/uts).
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiUTSBASE = ../..
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali BahramiARCHDIR:sh = cd ..; basename `pwd`
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami
bfed486ad8de8b8ebc6345a8e10accae08bf2f45Ali Bahrami#
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami# Define the module and object file sets.
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali Bahrami#
cd3e933325e68e23516a196a8fea7f49b1e497c3Ali BahramiMODULE = iscsit
f808c858fa61e7769218966759510a8b1190dfcfrafOBJECTS = $(ISCSIT_OBJS:%=$(OBJS_DIR)/%)
495db6fbcd9e8ab893e91f6f5627df6e0cec63cfLori AltLINTS = $(ISCSIT_OBJS:%.o=$(LINTS_DIR)/%.ln)
495db6fbcd9e8ab893e91f6f5627df6e0cec63cfLori AltROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
495db6fbcd9e8ab893e91f6f5627df6e0cec63cfLori AltCONF_SRCDIR = $(UTSBASE)/common/io/comstar/port/iscsit
495db6fbcd9e8ab893e91f6f5627df6e0cec63cfLori Alt
495db6fbcd9e8ab893e91f6f5627df6e0cec63cfLori Alt#
495db6fbcd9e8ab893e91f6f5627df6e0cec63cfLori Alt# Include common rules.
9d9a58e3638ed2e79c339c93e9c52b7150075364Eric Taylor#
9d9a58e3638ed2e79c339c93e9c52b7150075364Eric Taylorinclude ../Makefile.$(ARCHDIR)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Define targets
f808c858fa61e7769218966759510a8b1190dfcfraf#
069f55e237020c4a4907b235fc38fafc6442ce94Eric SchrockALL_TARGET = $(BINARY) $(SRC_CONFILE)
069f55e237020c4a4907b235fc38fafc6442ce94Eric SchrockLINT_TARGET = $(MODULE).lint
069f55e237020c4a4907b235fc38fafc6442ce94Eric SchrockINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
069f55e237020c4a4907b235fc38fafc6442ce94Eric Schrock
069f55e237020c4a4907b235fc38fafc6442ce94Eric Schrock#
f808c858fa61e7769218966759510a8b1190dfcfraf# Overrides and depends_on
b2634b9c57bbcfa01bb5dec2e196aec32957925fEric Taylor#
f808c858fa61e7769218966759510a8b1190dfcfrafMODSTUBS_DIR = $(OBJS_DIR)
b7b97454b9b1f6625e7e655e9651e744a8dee09dperrinLDFLAGS += -dy -Ndrv/stmf -Nmisc/idm -Nfs/sockfs -Nmisc/md5 -Nmisc/ksocket
99d5e173470cf967aa87653364ed614299e7b511Tim Haley
f808c858fa61e7769218966759510a8b1190dfcfrafC99MODE= -xc99=%all
f808c858fa61e7769218966759510a8b1190dfcfrafC99LMODE= -Xc99=%all
f808c858fa61e7769218966759510a8b1190dfcfraf
7f1f55ea3af0e6153a8ee9316c7f0b8b4f1ba773vb#
7f1f55ea3af0e6153a8ee9316c7f0b8b4f1ba773vb# Default build targets.
ecd6cf800b63704be73fb264c3f5b6e0dafc068dmarks#
f808c858fa61e7769218966759510a8b1190dfcfraf.KEEP_STATE:
f808c858fa61e7769218966759510a8b1190dfcfraf
e9dbad6f263d5570ed7ff5443ec5b958af8c24d7eschrockdef: $(DEF_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
1af68beac368dae20a9c5d738cf6b6320cf9d63aAlexander Stetsenkoall: $(ALL_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
d5b5bb256c576fe5ef26e0795bd40abe77f93246Rich Morrisclean: $(CLEAN_DEPS)
e9dbad6f263d5570ed7ff5443ec5b958af8c24d7eschrock
f808c858fa61e7769218966759510a8b1190dfcfrafclobber: $(CLOBBER_DEPS)
3f9d6ad73e45c6823b409f93b0c8d4f62861d2d5Lin Ling
842727c2f41f01b380de4f5e787d905702870f23Chris Kirbylint: $(LINT_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafmodlintlib: $(MODLINTLIB_DEPS)
f3861e1a2ceec23a5b699c24d814b7775a9e0b52ahl
da6c28aaf62fa55f0fdb8004aa40f88f23bf53f0amwclean.lint: $(CLEAN_LINT_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfrafinstall: $(INSTALL_DEPS)
f808c858fa61e7769218966759510a8b1190dfcfraf
f808c858fa61e7769218966759510a8b1190dfcfraf#
f808c858fa61e7769218966759510a8b1190dfcfraf# Include common targets.
ca45db4129beff691dc46576c328149443788af2Chris Kirby#
f808c858fa61e7769218966759510a8b1190dfcfrafinclude ../Makefile.targ
f808c858fa61e7769218966759510a8b1190dfcfraf