Makefile revision da14cebe459d3275048785f25bd869cb09b5307f
0N/A#
0N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
779N/A# Common Development and Distribution License (the "License").
810N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
0N/A
0N/A#
0N/A# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# This makefile drives the production of the Neterion Xframe
0N/A# 10G Ethernet (XGE) driver module in x86 systems
0N/A#
0N/A
0N/A#
0N/A# Paths to the base of the uts directory trees
0N/A#
846N/AUTSBASE = ../..
0N/A
0N/A#
156N/A# Define the module and object file sets.
493N/A#
0N/AMODULE = xge
0N/AOBJECTS = $(XGE_HAL_OBJS:%=$(OBJS_DIR)/%) $(XGE_OBJS:%=$(OBJS_DIR)/%)
818N/ALINTS = $(XGE_HAL_OBJS:%.o=$(LINTS_DIR)/%.ln) $(XGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
0N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
0N/A
493N/A#
493N/A# Include common rules.
156N/A#
0N/Ainclude $(UTSBASE)/intel/Makefile.intel
0N/A
156N/A#
156N/A# Define targets
0N/A#
0N/AALL_TARGET = $(BINARY)
818N/ALINT_TARGET = $(MODULE).lint
818N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
779N/A
364N/A#
156N/A# GENERAL PURPOUSE HAL FLAGS: Tuning HAL for Solaris specific modes
156N/A#
0N/AHAL_CFLAGS = -DXGE_HAL_USE_MGMT_AUX
591N/A
591N/A#
591N/A# TRACE SECTION: Possible values for MODULE, TRACE and ERR masks:
591N/A#
591N/A# XGE_COMPONENT_HAL_CONFIG 0x1
591N/A# XGE_COMPONENT_HAL_FIFO 0x2
591N/A# XGE_COMPONENT_HAL_RING 0x4
0N/A# XGE_COMPONENT_HAL_CHANNEL 0x8
156N/A# XGE_COMPONENT_HAL_DEVICE 0x10
493N/A# XGE_COMPONENT_HAL_MM 0x20
493N/A# XGE_COMPONENT_HAL_QUEUE 0x40
156N/A# XGE_COMPONENT_HAL_STATS 0x100
493N/A# XGE_COMPONENT_OSDEP 0x1000
493N/A# XGE_COMPONENT_LL 0x2000
837N/A# XGE_COMPONENT_TOE 0x4000
837N/A# XGE_COMPONENT_RDMA 0x8000
846N/A# XGE_COMPONENT_ALL 0xffffffff
493N/A#TRACE_CFLAGS = -DXGE_DEBUG_MODULE_MASK=0xffffffff \
493N/A# -DXGE_DEBUG_TRACE_MASK=0xffffffff \
156N/A# -DXGE_DEBUG_ERR_MASK=0xffffffff
493N/ATRACE_CFLAGS = -DXGE_DEBUG_MODULE_MASK=0x00003010 \
493N/A -DXGE_DEBUG_TRACE_MASK=0x00000000 \
493N/A -DXGE_DEBUG_ERR_MASK=0x00003010
364N/A
0N/AXGE_CFLAGS = $(HAL_CFLAGS) $(TRACE_CFLAGS) $(CCVERBOSE) \
493N/A -I$(UTSBASE)/common/io/xge/hal/include \
493N/A -I$(UTSBASE)/common/io/xge/hal/xgehal \
156N/A -I$(UTSBASE)/common/io/xge/drv -DSOLARIS
493N/A
493N/ACFLAGS += $(XGE_CFLAGS) -xO4 -xcrossfile -xc99=%all
0N/ACFLAGS64 += $(XGE_CFLAGS) -xO4 -xcrossfile -xc99=%all
339N/A
0N/A#
0N/A# Driver depends on MAC & IP
339N/A#
339N/ALDFLAGS += -dy -N misc/mac -N drv/ip
0N/A
837N/A# Lint flag
837N/A#
838N/ALINTFLAGS += $(XGE_CFLAGS) -Xc99=%all
837N/A
837N/A#
591N/A# For now, disable these lint checks; maintainers should endeavor
591N/A# to investigate and remove these for maximum lint coverage.
779N/A# Please do not carry these forward to new Makefiles.
838N/A#
591N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
493N/ALINTTAGS += -erroff=E_STATIC_UNUSED
493N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
0N/A
0N/A#
0N/A#
0N/A# Default build targets.
591N/A#
0N/A.KEEP_STATE:
339N/A
339N/Adef: $(DEF_DEPS)
591N/A
493N/Aall: $(ALL_DEPS)
837N/A
837N/Aclean: $(CLEAN_DEPS)
837N/A
837N/Aclobber: $(CLOBBER_DEPS)
837N/A
837N/Alint: $(LINT_DEPS)
779N/A
156N/Amodlintlib: $(MODLINTLIB_DEPS)
156N/A
810N/Aclean.lint: $(CLEAN_LINT_DEPS)
591N/A
591N/Ainstall: $(INSTALL_DEPS)
591N/A
591N/A#
591N/A# Include common targets.
591N/A#
591N/Ainclude $(UTSBASE)/intel/Makefile.targ
591N/A