Makefile revision 0f1702c5201310f0529cd5abb77652e5e9b241b6
803N/A#
803N/A# CDDL HEADER START
910N/A#
803N/A# The contents of this file are subject to the terms of the
803N/A# Common Development and Distribution License (the "License").
803N/A# You may not use this file except in compliance with the License.
919N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A#
919N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
919N/A# Use is subject to license terms.
803N/A#
803N/A# This makefile drives the production of the iscsit pseudo-driver for
803N/A# COMSTAR.
803N/A
803N/A#
803N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
803N/A#
803N/A
803N/A
803N/AUTSBASE = ../..
803N/A
803N/AARCHDIR:sh = cd ..; basename `pwd`
803N/A
803N/A#
803N/A# Define the module and object file sets.
910N/A#
803N/AMODULE = iscsit
803N/AOBJECTS = $(ISCSIT_OBJS:%=$(OBJS_DIR)/%)
803N/ALINTS = $(ISCSIT_OBJS:%.o=$(LINTS_DIR)/%.ln)
803N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
803N/ACONF_SRCDIR = $(UTSBASE)/common/io/comstar/port/iscsit
803N/A
803N/A#
803N/A# Include common rules.
803N/A#
910N/Ainclude ../Makefile.$(ARCHDIR)
803N/A
803N/A#
803N/A# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# Overrides and depends_on
#
MODSTUBS_DIR = $(OBJS_DIR)
LDFLAGS += -dy -Ndrv/stmf -Nmisc/idm -Nfs/sockfs -Nmisc/md5 -Nmisc/ksocket
INC_PATH += -I$(UTSBASE)/common/io/comstar/port/iscsit
C99MODE= -xc99=%all
C99LMODE= -Xc99=%all
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include ../Makefile.targ