Makefile revision a4aa671e336d5c717aff15808ab91a6bee5e6e41
6c2a76b3e2ccd32c35814b6e0f54da00190749d7Evan Hunt# CDDL HEADER START
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# The contents of this file are subject to the terms of the
c7fd128f8ea8a527fe27c1b95ab46df7155bc8e4Tinderbox User# Common Development and Distribution License (the "License").
ba9e87b35e561bc7354ce3f4b9685b747b7be507Tinderbox User# You may not use this file except in compliance with the License.
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews# See the License for the specific language governing permissions
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# and limitations under the License.
0726d872f6f36901ea09321df57084614e5bb6faTinderbox User# When distributing Covered Code, include this CDDL HEADER in each
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User# If applicable, add the following below this CDDL HEADER, with the
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# information: Portions Copyright [yyyy] [name of copyright owner]
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# CDDL HEADER END
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#ident "%Z%%M% %I% %E% SMI"
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Use is subject to license terms.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# This makefile drives the production of the dad driver kernel module.
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# SPARC architecture dependent
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# Path to the base of the uts directory tree (usually /usr/src/uts).
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# Define the module and object file sets.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Include common rules.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Define targets
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# For now, disable these lint checks; maintainers should endeavor
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# to investigate and remove these for maximum lint coverage.
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews# Please do not carry these forward to new Makefiles.
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# Default build targets.
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User# Include common targets.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Defines for local commands.
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews# Warlock targets
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Note that in warlock_with_{esp,isp} it is important to load sd.ll
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# before {isp,esp}.ll; the reason is that both have _init/_info/_fini
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# and warlock can only handle one extern function by a given name;
415d630b6309922caee8469384a6fab75cf05032Mark Andrews# any loaded after the first are ignored.
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserDADA_FILES = $(DADA_OBJS:%.o=-l $(UTSBASE)/sparc/dada/%.ll)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCMLB_FILES = $(CMLB_OBJS:%.o=-l $(UTSBASE)/sparc/cmlb/%.ll)
28a5dd720187fddb16055a0f64b63a7b66f29f64Mark Andrews cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
ebe53509ca55a141131c104b6d722236b606e0efTinderbox User @cd $(UTSBASE)/sparc/dada; pwd; $(MAKE) warlock
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews @cd $(UTSBASE)/sparc/cmlb; pwd; $(MAKE) warlock
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews$(WARLOCK_OK): dad.wlcmd $(WARLOCK_OUT) dada_files warlock_ddi.files cmlb_files dad.wlcmd
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews $(WARLOCK) -c $(WLCMD_DIR)/dad.wlcmd $(WARLOCK_OUT) -l $(DADA_FILES) \
78f3ed4bc2fcd3d270bfd599804f3b27a1db4d91Mark Andrews @cd $(UTSBASE)/sparc/warlock; pwd; $(MAKE) warlock