Makefile revision 4e942d8cd27c7f8bb80549d7c2564445f19ba4a3
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# CDDL HEADER START
7968d3a131e5a684ec1ff0c6d88aae638549153dChristian Maeder# The contents of this file are subject to the terms of the
97018cf5fa25b494adffd7e9b4e87320dae6bf47Christian Maeder# Common Development and Distribution License (the "License").
b4fbc96e05117839ca409f5f20f97b3ac872d1edTill Mossakowski# You may not use this file except in compliance with the License.
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95c3e5d11dcee331dc3876a9bf0c1d6daa38e2caChristian Maeder# or http://www.opensolaris.org/os/licensing.
e6d40133bc9f858308654afb1262b8b483ec5922Till Mossakowski# See the License for the specific language governing permissions
679d3f541f7a9ede4079e045f7758873bb901872Till Mossakowski# and limitations under the License.
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# When distributing Covered Code, include this CDDL HEADER in each
306763c67bb99228487345b32ab8c5c6cd41f23cChristian Maeder# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c092fcac4b8f5c524c22ca579189c4487c13edf7Christian Maeder# If applicable, add the following below this CDDL HEADER, with the
c83546084a1344bb2ef752b83d0e082823508db2Christian Maeder# fields enclosed by brackets "[]" replaced with your own identifying
9248af0871ebcf3796514f8d835cb5d6ca0b0398Christian Maeder# information: Portions Copyright [yyyy] [name of copyright owner]
c092fcac4b8f5c524c22ca579189c4487c13edf7Christian Maeder# CDDL HEADER END
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
7bf4436b6f9987b070033a323757b206c898c1beChristian Maeder# Use is subject to license terms.
9603ad7198b72e812688ad7970e4eac4b553837aKlaus Luettich#ident "%Z%%M% %I% %E% SMI"
c092fcac4b8f5c524c22ca579189c4487c13edf7Christian Maeder# Path to the base of the uts directory tree.
ba904a15082557e939db689fcfba0c68c9a4f740Christian Maeder# Define the module and object file sets.
7f7460e7095628f3437b116ee78d3043d11f8febChristian MaederLINTS = $(SCSA1394_OBJS:%.o=$(LINTS_DIR)/%.ln)
b9804822fb178b0fc27ce967a6a8cedc42c5bf90Christian Maeder# Include common rules.
0066f18f8ce6221eb08845adf63cc034f90d62e0Cui Jian# Define targets
c83546084a1344bb2ef752b83d0e082823508db2Christian MaederLDFLAGS += -dy -Nmisc/scsi -Nmisc/s1394 -Nmisc/sbp2
b03274844ecd270f9e9331f51cc4236a33e2e671Christian Maeder# For now, disable these lint checks; maintainers should endeavor
b03274844ecd270f9e9331f51cc4236a33e2e671Christian Maeder# to investigate and remove these for maximum lint coverage.
daec53c285f692c56db0cefe16061b46ba602cf0Christian Maeder# Please do not carry these forward to new Makefiles.
85211b47d269cda6a9e5b1446b99f19eae1f3c73Christian Maeder# Default build targets.
c092fcac4b8f5c524c22ca579189c4487c13edf7Christian Maeder# Include common targets.
c092fcac4b8f5c524c22ca579189c4487c13edf7Christian Maeder# Defines for local commands.
7f7460e7095628f3437b116ee78d3043d11f8febChristian Maeder# Warlock targets
a3bcb365497d592616a4e527b426ec210dcd385cChristian MaederSBP2_FILES = $(SBP2_OBJS:%.o= -l ../sbp2/%.ll)
ade09f8be34b77402276c524bf29f2e5df666a94Christian MaederSCSI_FILES = $(SCSI_OBJS:%.o= -l ../scsi/%.ll)
ade09f8be34b77402276c524bf29f2e5df666a94Christian MaederCMLB_FILES = $(CMLB_OBJS:%.o=-l ../cmlb/%.ll)
a3bcb365497d592616a4e527b426ec210dcd385cChristian Maeder cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
15bceb77af626f79747d46d35979640f229a4c71Christian Maeder$(WARLOCK_OK): $(WARLOCK_OUT) sbp2.files warlock_ddi.files scsa1394.wlcmd \
15bceb77af626f79747d46d35979640f229a4c71Christian Maeder $(WARLOCK) -c $(WLCMD_DIR)/scsa1394.wlcmd $(WARLOCK_OUT) $(SD_FILES) \
21dae7237ac384abdb94a81e00b3f099873ec623Till Mossakowski%.ll: $(UTSBASE)/common/io/1394/targets/scsa1394/%.c
21dae7237ac384abdb94a81e00b3f099873ec623Till Mossakowski $(WLCC) $(CPPFLAGS) -DNPROBE -DDEBUG -o $@ $<