Makefile revision a6d42e7d71324c5193c3b94d57d96ba2925d52e1
163N/A#
163N/A# CDDL HEADER START
163N/A#
163N/A# The contents of this file are subject to the terms of the
163N/A# Common Development and Distribution License (the "License").
163N/A# You may not use this file except in compliance with the License.
163N/A#
163N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
163N/A# or http://www.opensolaris.org/os/licensing.
163N/A# See the License for the specific language governing permissions
163N/A# and limitations under the License.
163N/A#
163N/A# When distributing Covered Code, include this CDDL HEADER in each
163N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
163N/A# If applicable, add the following below this CDDL HEADER, with the
163N/A# fields enclosed by brackets "[]" replaced with your own identifying
163N/A# information: Portions Copyright [yyyy] [name of copyright owner]
163N/A#
163N/A# CDDL HEADER END
163N/A#
163N/A#
163N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
163N/A# Use is subject to license terms.
163N/A#
163N/A# This makefile drives the production of the iscsit pseudo-driver for
163N/A# COMSTAR.
163N/A
163N/A#
163N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
211N/A#
211N/A
618N/A
211N/AUTSBASE = ../..
211N/A
211N/AARCHDIR:sh = cd ..; basename `pwd`
618N/A
163N/A#
163N/A# Define the module and object file sets.
163N/A#
163N/AMODULE = iscsit
163N/AOBJECTS = $(ISCSIT_OBJS:%=$(OBJS_DIR)/%)
211N/ALINTS = $(ISCSIT_OBJS:%.o=$(LINTS_DIR)/%.ln)
163N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
163N/ACONF_SRCDIR = $(UTSBASE)/common/io/comstar/port/iscsit
163N/A
163N/A#
163N/A# Include common rules.
163N/A#
163N/Ainclude ../Makefile.$(ARCHDIR)
163N/A
163N/A#
163N/A# Define targets
163N/A#
163N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
163N/ALINT_TARGET = $(MODULE).lint
163N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
163N/A
163N/A#
163N/A# Overrides and depends_on
163N/A#
163N/AMODSTUBS_DIR = $(OBJS_DIR)
163N/ALDFLAGS += -dy -Ndrv/stmf -Nmisc/idm -Nfs/sockfs -Nmisc/md5
163N/A
163N/AINC_PATH += -I$(UTSBASE)/common/io/comstar/port/iscsit
163N/A# This path should be remove with the libiscsit.h/iscsit_common.h issue is
163N/A# resolved.
163N/AINC_PATH += -I../../../lib/libiscsit/common/
163N/A
163N/AC99MODE= -xc99=%all
163N/AC99LMODE= -Xc99=%all
163N/A
163N/A#
211N/A# Default build targets.
163N/A#
163N/A.KEEP_STATE:
163N/A
163N/Adef: $(DEF_DEPS)
163N/A
211N/Aall: $(ALL_DEPS)
163N/A
163N/Aclean: $(CLEAN_DEPS)
163N/A
163N/Aclobber: $(CLOBBER_DEPS)
163N/A
163N/Alint: $(LINT_DEPS)
163N/A
163N/Amodlintlib: $(MODLINTLIB_DEPS)
163N/A
211N/Aclean.lint: $(CLEAN_LINT_DEPS)
211N/A
163N/Ainstall: $(INSTALL_DEPS)
163N/A
163N/A#
163N/A# Include common targets.
163N/A#
163N/Ainclude ../Makefile.targ
181N/A