Makefile revision 4e942d8cd27c7f8bb80549d7c2564445f19ba4a3
128N/A#
128N/A# CDDL HEADER START
128N/A#
128N/A# The contents of this file are subject to the terms of the
128N/A# Common Development and Distribution License (the "License").
128N/A# You may not use this file except in compliance with the License.
128N/A#
128N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
128N/A# or http://www.opensolaris.org/os/licensing.
128N/A# See the License for the specific language governing permissions
128N/A# and limitations under the License.
128N/A#
128N/A# When distributing Covered Code, include this CDDL HEADER in each
128N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
128N/A# If applicable, add the following below this CDDL HEADER, with the
128N/A# fields enclosed by brackets "[]" replaced with your own identifying
128N/A# information: Portions Copyright [yyyy] [name of copyright owner]
128N/A#
128N/A# CDDL HEADER END
128N/A#
5680N/A#
128N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
5680N/A# Use is subject to license terms.
5680N/A#
5680N/A#ident "%Z%%M% %I% %E% SMI"
5680N/A#
128N/A
128N/A#
1244N/A# Path to the base of the uts directory tree.
4068N/A#
618N/AUTSBASE = ../..
1244N/A
844N/A#
4068N/A# Define the module and object file sets.
618N/A#
1289N/AMODULE = scsa1394
128N/AOBJECTS = $(SCSA1394_OBJS:%=$(OBJS_DIR)/%)
4068N/ALINTS = $(SCSA1394_OBJS:%.o=$(LINTS_DIR)/%.ln)
3051N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
5680N/AWARLOCK_OUT = $(SCSA1394_OBJS:%.o=%.ll)
5680N/AWARLOCK_OK = $(MODULE).ok
5680N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
5680N/A
128N/A#
128N/A# Include common rules.
128N/A#
128N/Ainclude $(UTSBASE)/intel/Makefile.intel
128N/A
4068N/A#
4068N/A# Define targets
3955N/A#
3955N/AALL_TARGET = $(BINARY)
3955N/ALINT_TARGET = $(MODULE).lint
3955N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
3955N/A
3955N/A#
3955N/A# depends on
4068N/A#
4068N/ALDFLAGS += -dy -Nmisc/scsi -Nmisc/s1394 -Nmisc/sbp2
4068N/A
4068N/A#
4068N/A# For now, disable these lint checks; maintainers should endeavor
3955N/A# to investigate and remove these for maximum lint coverage.
3955N/A# Please do not carry these forward to new Makefiles.
3955N/A#
3955N/ALINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
3955N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
3955N/ALINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
3955N/A
3955N/A# Default build targets.
3955N/A#
3955N/A.KEEP_STATE:
3955N/A
3955N/Adef: $(DEF_DEPS)
5680N/A
5680N/Aall: $(ALL_DEPS)
128N/A
128N/Aclean: $(CLEAN_DEPS)
128N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
128N/A
128N/Aclobber: $(CLOBBER_DEPS)
128N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
128N/A
128N/Alint: $(LINT_DEPS)
128N/A
128N/Amodlintlib: $(MODLINTLIB_DEPS)
4068N/A
128N/Aclean.lint: $(CLEAN_LINT_DEPS)
4068N/A
128N/Ainstall: $(INSTALL_DEPS)
181N/A
128N/A#
3817N/A# Include common targets.
3817N/A#
3817N/Ainclude $(UTSBASE)/intel/Makefile.targ
3817N/A
3817N/A#
3817N/A# Defines for local commands.
4068N/A#
WARLOCK = warlock
WLCC = wlcc
TOUCH = touch
SCCS = sccs
TEST = test
#
# Warlock targets
#
SBP2_FILES = $(SBP2_OBJS:%.o= -l ../sbp2/%.ll)
SD_FILES = $(SD_OBJS:%.o=../sd/%.ll)
SCSI_FILES = $(SCSI_OBJS:%.o= -l ../scsi/%.ll)
CMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
warlock: $(WARLOCK_OK)
%.wlcmd:
cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
$(WARLOCK_OK): $(WARLOCK_OUT) sbp2.files warlock_ddi.files scsa1394.wlcmd \
sd.files scsi.files cmlb.files
$(WARLOCK) -c $(WLCMD_DIR)/scsa1394.wlcmd $(WARLOCK_OUT) $(SD_FILES) \
$(SCSI_FILES) \
$(CMLB_FILES) \
$(SBP2_FILES) \
-l ../warlock/ddi_dki_impl.ll
$(TOUCH) $@
%.ll: $(UTSBASE)/common/io/1394/targets/scsa1394/%.c
$(WLCC) $(CPPFLAGS) -DNPROBE -DDEBUG -o $@ $<
sbp2.files:
@cd ../sbp2; pwd; $(MAKE) warlock
warlock_ddi.files:
@cd ../warlock; pwd; $(MAKE) warlock
sd.files:
@cd ../sd; pwd; $(MAKE) warlock_alone
scsi.files:
@cd ../scsi; pwd; $(MAKE) warlock
cmlb.files:
@cd ../cmlb; pwd; $(MAKE) warlock