Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
11e9368a226272085c337e9e74b79808c16fbdbaTinderbox User# CDDL HEADER START
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You may not use this file except in compliance with the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
ea94d370123a5892f6c47a97f21d1b28d44bb168Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# Use is subject to license terms.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This makefile drives the production of the tavor InfiniBand module
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# sparc architecture dependent
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Path to the base of the uts directory tree (usually /usr/src/uts).
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Define the module and object file sets.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCONF_SRCDIR = $(UTSBASE)/common/io/ib/adapters/tavor
0f52ea95d861c237da324aa0c009638298069ec0Tinderbox User# Include common rules.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Define targets
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User# Build with no debug TNF probes enabled (by default)
b2f07642fd712c8fda81a116bcdde229ab291f33Tinderbox User#DEBUG_DEFS_DBG32 += -DTNF_DEBUG
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#DEBUG_DEFS_DBG64 += -DTNF_DEBUG
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# lint pass one enforcement
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# For now, disable these lint checks; maintainers should endeavor
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# to investigate and remove these for maximum lint coverage.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Please do not carry these forward to new Makefiles.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Default build targets.
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User# Include common targets.
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User# Defines for local commands.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Warlock targets
c247e3f281613fabe1af362e9f3157e35ebbe52cMark Andrews$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/tavor.wlcmd
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews $(WARLOCK) -c $(WLCMD_DIR)/tavor.wlcmd $(WARLOCK_OUT) \
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User%.ll: $(UTSBASE)/common/io/ib/adapters/tavor/%.c
24abfe433efd98bb2099b867fb14d049b2f1f531Tinderbox User $(WLCC) $(CPPFLAGS) -DNPROBE -DDEBUG -o $@ $<
659d063f23a35d77ad5826e6556d3137672bb937Tinderbox User @cd $(UTSBASE)/sparc/warlock; pwd; $(MAKE) warlock