Makefile revision 36cfe78cdc0c7a0a0cc944142dfba633f4c2fafa
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# CDDL HEADER START
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# The contents of this file are subject to the terms of the
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Common Development and Distribution License (the "License").
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# You may not use this file except in compliance with the License.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# See the License for the specific language governing permissions
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# and limitations under the License.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# When distributing Covered Code, include this CDDL HEADER in each
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0662ed52e814f8f08ef0e09956413a792584eddffuankg# If applicable, add the following below this CDDL HEADER, with the
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# fields enclosed by brackets "[]" replaced with your own identifying
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# information: Portions Copyright [yyyy] [name of copyright owner]
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# CDDL HEADER END
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Copyright 2008 Sun Microsystems, Inc. All rights reserved.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Use is subject to license terms.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# ident "%Z%%M% %I% %E% SMI"
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# This makefile drives the production of the Sun
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# 10G hxge Ethernet leaf driver kernel module.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Path to the base of the uts directory tree (usually /usr/src/uts).
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Define the module and object file sets.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Include common rules.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Override defaults to build a unique, local modstubs.o.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Define targets
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankgINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Turn on doubleword alignment for 64 bit registers
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Include hxge specific header files
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# lint pass one enforcement
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Debug flags
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# CFLAGS += -DHXGE_DEBUG -DHPI_DEBUG
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# 64 bit only
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# STREAMS, DDI API limitations and other ON header file definitions such as ethernet.h
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# force us to turn off these lint checks.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Driver depends on mac & IP
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Default build targets.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# Include common targets.
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# This is a hack to avoid a lint warning in the nightly build due to
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# lack of a 32 bit version of the hxge driver. This will be removed
fc1365b60fa715841c959c6b91c7ed83884ba3fcfuankg# when the 32 bit driver is available.