xref: /titanic_52/usr/src/uts/intel/ixgbe/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
19da57d7bSbt150084#
29da57d7bSbt150084# CDDL HEADER START
39da57d7bSbt150084#
49da57d7bSbt150084# The contents of this file are subject to the terms of the
59da57d7bSbt150084# Common Development and Distribution License (the "License").
69da57d7bSbt150084# You may not use this file except in compliance with the License.
79da57d7bSbt150084#
89da57d7bSbt150084# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
99da57d7bSbt150084# or http://www.opensolaris.org/os/licensing.
109da57d7bSbt150084# See the License for the specific language governing permissions
119da57d7bSbt150084# and limitations under the License.
129da57d7bSbt150084#
139da57d7bSbt150084# When distributing Covered Code, include this CDDL HEADER in each
149da57d7bSbt150084# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
159da57d7bSbt150084# If applicable, add the following below this CDDL HEADER, with the
169da57d7bSbt150084# fields enclosed by brackets "[]" replaced with your own identifying
179da57d7bSbt150084# information: Portions Copyright [yyyy] [name of copyright owner]
189da57d7bSbt150084#
199da57d7bSbt150084# CDDL HEADER END
209da57d7bSbt150084#
219da57d7bSbt150084#
22ea65739eSchenlu chen - Sun Microsystems - Beijing China# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
239da57d7bSbt150084# Use is subject to license terms.
249da57d7bSbt150084#
259da57d7bSbt150084# uts/intel/ixgbe/Makefile
269da57d7bSbt150084#
279da57d7bSbt150084#	This makefile drives the production of the ixgbe
289da57d7bSbt150084#	network driver kernel module.
299da57d7bSbt150084#
309da57d7bSbt150084#	intel architecture dependent
319da57d7bSbt150084#
329da57d7bSbt150084
339da57d7bSbt150084#
349da57d7bSbt150084#	Paths to the base of the uts directory trees
359da57d7bSbt150084#
369da57d7bSbt150084UTSBASE = ../..
379da57d7bSbt150084
389da57d7bSbt150084#
399da57d7bSbt150084#	Define the module and object file sets.
409da57d7bSbt150084#
419da57d7bSbt150084MODULE		= ixgbe
429da57d7bSbt150084OBJECTS		= $(IXGBE_OBJS:%=$(OBJS_DIR)/%)
439da57d7bSbt150084LINTS		= $(IXGBE_OBJS:%.o=$(LINTS_DIR)/%.ln)
449da57d7bSbt150084ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
459da57d7bSbt150084CONF_SRCDIR	= $(UTSBASE)/common/io/ixgbe
469da57d7bSbt150084
479da57d7bSbt150084#
489da57d7bSbt150084#	Include common rules.
499da57d7bSbt150084#
509da57d7bSbt150084include $(UTSBASE)/intel/Makefile.intel
519da57d7bSbt150084
52*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
53*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
54*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
55*7014882cSRichard Lowe
569da57d7bSbt150084#
579da57d7bSbt150084#	Define targets
589da57d7bSbt150084#
599da57d7bSbt150084ALL_TARGET	= $(BINARY) $(CONFMOD)
609da57d7bSbt150084LINT_TARGET	= $(MODULE).lint
619da57d7bSbt150084INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
629da57d7bSbt150084
639da57d7bSbt150084#
64ea65739eSchenlu chen - Sun Microsystems - Beijing China# Driver depends on MAC
659da57d7bSbt150084#
66ea65739eSchenlu chen - Sun Microsystems - Beijing ChinaLDFLAGS		+= -dy -N misc/mac
679da57d7bSbt150084
689da57d7bSbt150084#
699da57d7bSbt150084#	Default build targets.
709da57d7bSbt150084#
719da57d7bSbt150084.KEEP_STATE:
729da57d7bSbt150084
739da57d7bSbt150084def:		$(DEF_DEPS)
749da57d7bSbt150084
759da57d7bSbt150084all:		$(ALL_DEPS)
769da57d7bSbt150084
779da57d7bSbt150084clean:		$(CLEAN_DEPS)
789da57d7bSbt150084
799da57d7bSbt150084clobber:	$(CLOBBER_DEPS)
809da57d7bSbt150084
819da57d7bSbt150084lint:		$(LINT_DEPS)
829da57d7bSbt150084
839da57d7bSbt150084modlintlib:	$(MODLINTLIB_DEPS)
849da57d7bSbt150084
859da57d7bSbt150084clean.lint:	$(CLEAN_LINT_DEPS)
869da57d7bSbt150084
879da57d7bSbt150084install:	$(INSTALL_DEPS)
889da57d7bSbt150084
899da57d7bSbt150084#
909da57d7bSbt150084#	Include common targets.
919da57d7bSbt150084#
929da57d7bSbt150084include $(UTSBASE)/intel/Makefile.targ
93