9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# CDDL HEADER START
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# The contents of this file are subject to the terms of the
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# Common Development and Distribution License (the "License").
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# You may not use this file except in compliance with the License.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# See the License for the specific language governing permissions
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# and limitations under the License.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# When distributing Covered Code, include this CDDL HEADER in each
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# If applicable, add the following below this CDDL HEADER, with the
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# fields enclosed by brackets "[]" replaced with your own identifying
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# information: Portions Copyright [yyyy] [name of copyright owner]
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# CDDL HEADER END
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# Use is subject to license terms.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# This makefile drives the production of the hermon InfiniBand module
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# intel architecture dependent
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# Path to the base of the uts directory tree (usually /usr/src/uts).
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# Define the module and object file sets.
9e39c5ba00a55fa05777cc94b148296af305e135Bill TaylorCONF_SRCDIR = $(UTSBASE)/common/io/ib/adapters/hermon
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# Include common rules.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# Define targets
9e39c5ba00a55fa05777cc94b148296af305e135Bill TaylorINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# Build with no debug TNF probes enabled (by default)
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor#DEBUG_DEFS_DBG32 += -DTNF_DEBUG
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor#DEBUG_DEFS_DBG64 += -DTNF_DEBUG
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# lint pass one enforcement
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# Default build targets.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# Include common targets.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor# Defines for local commands.
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/hermon.wlcmd
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor $(WARLOCK) -c $(WLCMD_DIR)/hermon.wlcmd $(WARLOCK_OUT) -l \
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor%.ll: $(UTSBASE)/common/io/ib/adapters/hermon/%.c
9e39c5ba00a55fa05777cc94b148296af305e135Bill Taylor @cd $(UTSBASE)/intel/warlock; pwd; $(MAKE) warlock