Makefile revision a4aa671e336d5c717aff15808ab91a6bee5e6e41
0dc2366f7b9f9f36e10909b1e95edbf2a261c2acVenugopal Iyer# CDDL HEADER START
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# The contents of this file are subject to the terms of the
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Common Development and Distribution License (the "License").
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# You may not use this file except in compliance with the License.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# See the License for the specific language governing permissions
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# and limitations under the License.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# When distributing Covered Code, include this CDDL HEADER in each
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# If applicable, add the following below this CDDL HEADER, with the
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# fields enclosed by brackets "[]" replaced with your own identifying
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# information: Portions Copyright [yyyy] [name of copyright owner]
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# CDDL HEADER END
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx#ident "%Z%%M% %I% %E% SMI"
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Use is subject to license terms.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# This makefile drives the production of the dad driver kernel module.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# SPARC architecture dependent
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Path to the base of the uts directory tree (usually /usr/src/uts).
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Define the module and object file sets.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Include common rules.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Define targets
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Overrides.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# For now, disable these lint checks; maintainers should endeavor
19b23afcc35b3926d062efc1930e65c5fed1084dhx# to investigate and remove these for maximum lint coverage.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Please do not carry these forward to new Makefiles.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Default build targets.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Include common targets.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Defines for local commands.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Warlock targets
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# Note that in warlock_with_{esp,isp} it is important to load sd.ll
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# before {isp,esp}.ll; the reason is that both have _init/_info/_fini
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# and warlock can only handle one extern function by a given name;
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx# any loaded after the first are ignored.
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hxDADA_FILES = $(DADA_OBJS:%.o=-l $(UTSBASE)/sparc/dada/%.ll)
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hxCMLB_FILES = $(CMLB_OBJS:%.o=-l $(UTSBASE)/sparc/cmlb/%.ll)
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx$(WARLOCK_OK): dad.wlcmd $(WARLOCK_OUT) dada_files warlock_ddi.files cmlb_files dad.wlcmd
84f7a9b9dca4f23b5f50edef0e59d7eb44301114hx $(WARLOCK) -c $(WLCMD_DIR)/dad.wlcmd $(WARLOCK_OUT) -l $(DADA_FILES) \