Makefile revision fcf3ce441efd61da9bb2884968af01cb7c1452cc
5c80172c5f0d59b9f90a4e9732cc189f231166fcMark Andrews#
5c80172c5f0d59b9f90a4e9732cc189f231166fcMark Andrews# CDDL HEADER START
8b82b4982c21dfeb164f04700c7204f6541a7856Evan Hunt#
65a3f6329735860093004f6b0fe69d6be886417bTinderbox User# The contents of this file are subject to the terms of the
8b82b4982c21dfeb164f04700c7204f6541a7856Evan Hunt# Common Development and Distribution License (the "License").
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews# You may not use this file except in compliance with the License.
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews#
c40906dfad6dd6e3a3e3c94b8c8847bc9bc064e5Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f9e49fd80e2ac4fce0fef11d330b88ff3693ad99Witold Krecicki# or http://www.opensolaris.org/os/licensing.
f9e49fd80e2ac4fce0fef11d330b88ff3693ad99Witold Krecicki# See the License for the specific language governing permissions
e8c70b0c35c27a28ea2e0cafb252e1774ccc1727Mark Andrews# and limitations under the License.
e8c70b0c35c27a28ea2e0cafb252e1774ccc1727Mark Andrews#
e8c70b0c35c27a28ea2e0cafb252e1774ccc1727Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
7204d08a319cf590ae4280b8cc20999320398574Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7204d08a319cf590ae4280b8cc20999320398574Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
7204d08a319cf590ae4280b8cc20999320398574Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
7204d08a319cf590ae4280b8cc20999320398574Mark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
6ce5279d0f30c8c760e27baf92bb44b3f4962354Evan Hunt#
6ce5279d0f30c8c760e27baf92bb44b3f4962354Evan Hunt# CDDL HEADER END
6ce5279d0f30c8c760e27baf92bb44b3f4962354Evan Hunt#
6ce5279d0f30c8c760e27baf92bb44b3f4962354Evan Hunt
f5898cf3484b1588d5239faa4062a2b2b606ce91Evan Hunt#
f5898cf3484b1588d5239faa4062a2b2b606ce91Evan Hunt# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
f5898cf3484b1588d5239faa4062a2b2b606ce91Evan Hunt# Use is subject to license terms.
f5898cf3484b1588d5239faa4062a2b2b606ce91Evan Hunt#
f5898cf3484b1588d5239faa4062a2b2b606ce91Evan Hunt
f5898cf3484b1588d5239faa4062a2b2b606ce91Evan Hunt#
f5898cf3484b1588d5239faa4062a2b2b606ce91Evan Hunt# This makefile drives the production of iSCSI initiator Driver
f5898cf3484b1588d5239faa4062a2b2b606ce91Evan Hunt# sparc architecture dependent
f5898cf3484b1588d5239faa4062a2b2b606ce91Evan Hunt#
c27c710939766a7bb315bde1f12ab18d93c77cc8Mark Andrews
c27c710939766a7bb315bde1f12ab18d93c77cc8Mark Andrews#
c27c710939766a7bb315bde1f12ab18d93c77cc8Mark Andrews# Paths to the base of the uts directory trees
4e9a1ad22618a46dab82eeb2d030190cec0afbc6Mukund Sivaraman#
4e9a1ad22618a46dab82eeb2d030190cec0afbc6Mukund SivaramanUTSBASE = ../..
4e9a1ad22618a46dab82eeb2d030190cec0afbc6Mukund Sivaraman
4e9a1ad22618a46dab82eeb2d030190cec0afbc6Mukund Sivaraman#
4e9a1ad22618a46dab82eeb2d030190cec0afbc6Mukund Sivaraman# Define the module and object file sets.
555469af35c12189525921abbc3de3cefb5f9f0fMark Andrews#
555469af35c12189525921abbc3de3cefb5f9f0fMark AndrewsMODULE = iscsi
c5342425ea5568af04f4b87d5d9690453b21c9f1Mark AndrewsOBJECTS = $(ISCSI_INITIATOR_OBJS:%=$(OBJS_DIR)/%)
c5342425ea5568af04f4b87d5d9690453b21c9f1Mark AndrewsLINTS = $(ISCSI_INITIATOR_OBJS:%.o=$(LINTS_DIR)/%.ln)
c5342425ea5568af04f4b87d5d9690453b21c9f1Mark AndrewsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
b4bbf494183e4158b417d9200297ff0764af2f9dMark AndrewsCONF_SRCDIR = $(UTSBASE)/common/io/scsi/adapters/iscsi
b4bbf494183e4158b417d9200297ff0764af2f9dMark Andrews
b4bbf494183e4158b417d9200297ff0764af2f9dMark Andrews#
f3a4a5f8db3d9fd352a3e2eb6be779a78da03f52Mark Andrews# Include common rules.
f3a4a5f8db3d9fd352a3e2eb6be779a78da03f52Mark Andrews#
f3a4a5f8db3d9fd352a3e2eb6be779a78da03f52Mark Andrewsinclude $(UTSBASE)/sparc/Makefile.sparc
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews#
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews# Define targets.
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark Andrews#
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark AndrewsALL_TARGET = $(BINARY) $(SRC_CONFILE)
2fb6d3782b548ba678cfb8ff09e0d1e49fafb84dMark AndrewsLINT_TARGET = $(MODULE).lint
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews
bc09fd1365d1a48972fa99cd6ed2aa788a28ef33Mark Andrews# includes
36be0aad8ec241987e1866a547372eb28ee7dc09Mark AndrewsINC_PATH += -I$(UTSBASE)/common/io/scsi/adapters/iscsi
36be0aad8ec241987e1866a547372eb28ee7dc09Mark Andrews
36be0aad8ec241987e1866a547372eb28ee7dc09Mark Andrews#
36be0aad8ec241987e1866a547372eb28ee7dc09Mark Andrews# Note dependancy on misc/scsi.
36be0aad8ec241987e1866a547372eb28ee7dc09Mark Andrews#
33f91e248b67afa96c5b855ba3ace20b5d89dbd0Mark AndrewsLDFLAGS += -dy -N"misc/scsi" -N"fs/sockfs" -N"sys/doorfs" -N"misc/md5"
33f91e248b67afa96c5b855ba3ace20b5d89dbd0Mark Andrews
33f91e248b67afa96c5b855ba3ace20b5d89dbd0Mark AndrewsLINTFLAGS += -a -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_PTRDIFF_OVERFLOW
51227d6f16840ae359701b5d56970a5f3860db5aEvan HuntLINTFLAGS64 += -a -erroff=E_BAD_PTR_CAST_ALIGN -erroff=E_PTRDIFF_OVERFLOW
51227d6f16840ae359701b5d56970a5f3860db5aEvan Hunt
51227d6f16840ae359701b5d56970a5f3860db5aEvan Hunt#
175a8414a785689cb028e6e133385dba9e1b9a95Evan Hunt# Default build targets.
9e4811dc90cca1f6f2d1ef86182f9613add06df3Mark Andrews#
9e4811dc90cca1f6f2d1ef86182f9613add06df3Mark Andrews.KEEP_STATE:
12b791ae2018561482f3b68dd6658c2ad1a4d934Mark Andrews
12b791ae2018561482f3b68dd6658c2ad1a4d934Mark Andrewsdef: $(DEF_DEPS)
12b791ae2018561482f3b68dd6658c2ad1a4d934Mark Andrews
080582dc4739cabf0170b54e9a453785d577e364Mark Andrewsall: $(ALL_DEPS)
080582dc4739cabf0170b54e9a453785d577e364Mark Andrews
080582dc4739cabf0170b54e9a453785d577e364Mark Andrewsclean: $(CLEAN_DEPS)
3a71cd8ca3c4970b71ef503553eda2666ce3d2b1Mark Andrews
3a71cd8ca3c4970b71ef503553eda2666ce3d2b1Mark Andrewsclobber: $(CLOBBER_DEPS)
3a71cd8ca3c4970b71ef503553eda2666ce3d2b1Mark Andrews
02ceed9f83f82f0de35c7bd73c27a33d4f0fe9cbMark Andrewslint: $(LINT_DEPS)
02ceed9f83f82f0de35c7bd73c27a33d4f0fe9cbMark Andrews
02ceed9f83f82f0de35c7bd73c27a33d4f0fe9cbMark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
32431c79c76257130e1b31223e59a614e19bea1bEvan Hunt
32431c79c76257130e1b31223e59a614e19bea1bEvan Huntclean.lint: $(CLEAN_LINT_DEPS)
32431c79c76257130e1b31223e59a614e19bea1bEvan Hunt
8db83c1e908ac92a28ad0dd6dc2bdcff1d20084cWitold Krecickiinstall: $(INSTALL_DEPS)
8db83c1e908ac92a28ad0dd6dc2bdcff1d20084cWitold Krecicki
ba340e446906b21925df63b0dec9b299ef093ad2Witold Krecicki#
ba340e446906b21925df63b0dec9b299ef093ad2Witold Krecicki# Include common targets.
b62db16a580addacf9b2a4d0a6e272632ad5712aMark Andrews#
b62db16a580addacf9b2a4d0a6e272632ad5712aMark Andrewsinclude $(UTSBASE)/sparc/Makefile.targ
b62db16a580addacf9b2a4d0a6e272632ad5712aMark Andrews