Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER START
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Use is subject to license terms.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#ident "%Z%%M% %I% %E% SMI"
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# This makefile drives the production of the st driver kernel module.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# sparc architecture dependent
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Path to the base of the uts directory tree (usually /usr/src/uts).
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Define the module and object file sets.
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Include common rules.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Define targets
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox UserINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# lint pass one enforcement
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# For now, disable these lint checks; maintainers should endeavor
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# to investigate and remove these for maximum lint coverage.
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Please do not carry these forward to new Makefiles.
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox User# Default build targets.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Include common targets.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Defines for local commands.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Warlock targets
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Note that in warlock_with_{esp,isp} it is important to load st.ll
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# before {isp,esp}.ll; the reason is that both have _init/_info/_fini
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# and warlock can only handle one extern function by a given name;
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# any loaded after the first are ignored.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userwarlock: warlock_alone warlock_with_esp warlock_with_isp warlock_with_fas \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userwarlock_with_esp: st_with_esp.wlcmd $(WARLOCK_OUT) scsi_files esp_files \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(WARLOCK) -c $(WLCMD_DIR)/st_with_esp.wlcmd \
44d0f0256fbdce130a18655023c3b06bacacbd61Automatic Updaterwarlock_with_fas: st_with_fas.wlcmd $(WARLOCK_OUT) scsi_files fas_files \
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User $(WARLOCK) -c $(WLCMD_DIR)/st_with_fas.wlcmd \
983df82baf1d7d0b668c98cf45928a19f175c6e7Tinderbox Userwarlock_with_isp: st_with_isp.wlcmd $(WARLOCK_OUT) scsi_files isp_files \
260e8e04b0dc24cb884c789b5d9eb046457f264eTinderbox User $(WARLOCK) -c $(WLCMD_DIR)/st_with_isp.wlcmd \
260e8e04b0dc24cb884c789b5d9eb046457f264eTinderbox User $(WARLOCK_OUT) $(CLOSED)/uts/sparc/isp/isp $(SCSI_FILES) \
260e8e04b0dc24cb884c789b5d9eb046457f264eTinderbox Userwarlock_with_glm: st_with_glm.wlcmd $(WARLOCK_OUT) scsi_files glm_files \
983df82baf1d7d0b668c98cf45928a19f175c6e7Tinderbox User $(WARLOCK) -c $(WLCMD_DIR)/st_with_glm.wlcmd \
260e8e04b0dc24cb884c789b5d9eb046457f264eTinderbox User $(WARLOCK_OUT) $(CLOSED)/uts/sparc/glm/glm $(SCSI_FILES) \
af40ebed6257e4ac1996144530b3de317cf4da11Tinderbox Userst.ok: st.wlcmd st.ll st_conf.ll scsi_files warlock_ddi.files