Makefile revision 4bb7efa72ed531c10f097919636e67724ec4c25a
48N/A#
48N/A# CDDL HEADER START
48N/A#
48N/A# The contents of this file are subject to the terms of the
911N/A# Common Development and Distribution License (the "License").
750N/A# You may not use this file except in compliance with the License.
48N/A#
48N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
48N/A# or http://www.opensolaris.org/os/licensing.
48N/A# See the License for the specific language governing permissions
48N/A# and limitations under the License.
48N/A#
48N/A# When distributing Covered Code, include this CDDL HEADER in each
48N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
48N/A# If applicable, add the following below this CDDL HEADER, with the
48N/A# fields enclosed by brackets "[]" replaced with your own identifying
48N/A# information: Portions Copyright [yyyy] [name of copyright owner]
48N/A#
48N/A# CDDL HEADER END
48N/A#
48N/A
48N/A#
48N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
48N/A# Use is subject to license terms.
48N/A#
48N/A
48N/A#
48N/A# This makefile drives the production of the blk2scsa driver
48N/A# sparc architecture dependent
48N/A#
48N/A
48N/A#
48N/A# Paths to the base of the uts directory trees
48N/A#
70N/AUTSBASE = ../..
493N/A
48N/A#
48N/A# Define the module and object file sets.
851N/A#
48N/AMODULE = blk2scsa
911N/AOBJECTS = $(BLK2SCSA_OBJS:%=$(OBJS_DIR)/%)
911N/ALINTS = $(BLK2SCSA_OBJS:%.o=$(LINTS_DIR)/%.ln)
911N/AROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
911N/AWARLOCK_OUT = $(BLK2SCSA_OBJS:%.o=%.ll)
48N/AWARLOCK_OK = $(MODULE).ok
48N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
48N/A
70N/A#
48N/A# Include common rules.
48N/A#
48N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
48N/A
70N/A#
493N/A# Define targets.
70N/A#
493N/AALL_TARGET = $(BINARY)
48N/ALINT_TARGET = $(MODULE).lint
70N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
48N/A
70N/A#
493N/A# Note dependancy on misc/scsi.
493N/A#
70N/ALDFLAGS += -dy -N"misc/scsi"
70N/A
70N/A#
70N/A# Default build targets.
70N/A#
48N/A.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 $(UTSBASE)/sparc/Makefile.targ
WLCC = wlcc
TOUCH = touch
WARLOCK = warlock
warlock: $(WARLOCK_OK)
$(WARLOCK_OK): $(WARLOCK_OUT)
$(WARLOCK) -c $(WLCMD_DIR)/blk2scsa.wlcmd \
$(WARLOCK_OUT) \
-l ../warlock/scsi.ll -l ../warlock/ddi_dki_impl.ll
$(TOUCH) $@
%.ll: $(UTSBASE)/common/io/scsi/adapters/blk2scsa/%.c
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<