Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# CDDL HEADER START
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# The contents of this file are subject to the terms of the
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# Common Development and Distribution License (the "License").
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# You may not use this file except in compliance with the License.
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# See the License for the specific language governing permissions
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# and limitations under the License.
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# When distributing Covered Code, include this CDDL HEADER in each
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# If applicable, add the following below this CDDL HEADER, with the
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# fields enclosed by brackets "[]" replaced with your own identifying
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# information: Portions Copyright [yyyy] [name of copyright owner]
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# CDDL HEADER END
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# Use is subject to license terms.
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# This makefile drives the production of the Neterion Xframe
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# 10G Ethernet (XGE) driver module in x86 systems
12928e8d8ffd8a265174db6c3dc588929e4d6087Reid Burke# Paths to the base of the uts directory trees
be0939fe6f057fbd5de928d17c4ab75aea379872Reid Burke# Define the module and object file sets.
be0939fe6f057fbd5de928d17c4ab75aea379872Reid BurkeOBJECTS = $(XGE_HAL_OBJS:%=$(OBJS_DIR)/%) $(XGE_OBJS:%=$(OBJS_DIR)/%)
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav GlassLINTS = $(XGE_HAL_OBJS:%.o=$(LINTS_DIR)/%.ln) $(XGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# Include common rules.
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# Define targets
6263d1dafcd2e21b4db703e59b8651bdc04907bcDav Glass# GENERAL PURPOUSE HAL FLAGS: Tuning HAL for Solaris specific modes
c6e42f10a2fe0393820d08f7e0cda61a8487825fReid Burke# TRACE SECTION: Possible values for MODULE, TRACE and ERR masks:
c6e42f10a2fe0393820d08f7e0cda61a8487825fReid Burke# XGE_COMPONENT_HAL_CONFIG 0x1
c6e42f10a2fe0393820d08f7e0cda61a8487825fReid Burke# XGE_COMPONENT_HAL_FIFO 0x2
c6e42f10a2fe0393820d08f7e0cda61a8487825fReid Burke# XGE_COMPONENT_HAL_RING 0x4
c6e42f10a2fe0393820d08f7e0cda61a8487825fReid Burke# XGE_COMPONENT_HAL_CHANNEL 0x8
c6e42f10a2fe0393820d08f7e0cda61a8487825fReid Burke# XGE_COMPONENT_HAL_DEVICE 0x10
439ae5e0cc60411040831b89655c3a4c19fb7779Luke Smith# XGE_COMPONENT_HAL_MM 0x20
a78bde287e583eeb9739959abdf6e0c630c5e36dLuke Smith# XGE_COMPONENT_HAL_QUEUE 0x40
84336e3aa193faf29a9e35bc1be4ba64d181f3b3Luke Smith# XGE_COMPONENT_HAL_STATS 0x100
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# XGE_COMPONENT_OSDEP 0x1000
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# XGE_COMPONENT_LL 0x2000
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# XGE_COMPONENT_TOE 0x4000
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# XGE_COMPONENT_RDMA 0x8000
7aaf708225cdd190d91f49be9e6e966205320a5cDav Glass# XGE_COMPONENT_ALL 0xffffffff
c6e42f10a2fe0393820d08f7e0cda61a8487825fReid Burke#TRACE_CFLAGS = -DXGE_DEBUG_MODULE_MASK=0xffffffff \
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# -DXGE_DEBUG_TRACE_MASK=0xffffffff \
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# -DXGE_DEBUG_ERR_MASK=0xffffffff
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav GlassTRACE_CFLAGS = -DXGE_DEBUG_MODULE_MASK=0x00003010 \
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav GlassXGE_CFLAGS = $(HAL_CFLAGS) $(TRACE_CFLAGS) $(CCVERBOSE) \
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav GlassCFLAGS += $(XGE_CFLAGS) -xO4 -xcrossfile -xc99=%all
c6e42f10a2fe0393820d08f7e0cda61a8487825fReid BurkeCFLAGS64 += $(XGE_CFLAGS) -xO4 -xcrossfile -xc99=%all
660335e82415fd6e6595b9b5ba9bb985cd4d948eReid Burke# Driver depends on MAC & IP
c6e42f10a2fe0393820d08f7e0cda61a8487825fReid Burke# For now, disable these lint checks; maintainers should endeavor
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# to investigate and remove these for maximum lint coverage.
c6e42f10a2fe0393820d08f7e0cda61a8487825fReid Burke# Please do not carry these forward to new Makefiles.
6ce3d0e6f54e83435f626ee7f819f09805f2f9a0Dav Glass# Default build targets.
9815937ca9c6470d6d02ae6713f151fd21ff8922Dav Glass# Include common targets.