xref: /titanic_52/usr/src/uts/intel/igb/Makefile (revision 75eba5b6d79ed4d2ce3daf7b2806306b6b69a938)
1c869993eSxy150489#
2c869993eSxy150489# CDDL HEADER START
3c869993eSxy150489#
4c869993eSxy150489# The contents of this file are subject to the terms of the
5c869993eSxy150489# Common Development and Distribution License (the "License").
6c869993eSxy150489# You may not use this file except in compliance with the License.
7c869993eSxy150489#
8c869993eSxy150489# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c869993eSxy150489# or http://www.opensolaris.org/os/licensing.
10c869993eSxy150489# See the License for the specific language governing permissions
11c869993eSxy150489# and limitations under the License.
12c869993eSxy150489#
13c869993eSxy150489# When distributing Covered Code, include this CDDL HEADER in each
14c869993eSxy150489# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c869993eSxy150489# If applicable, add the following below this CDDL HEADER, with the
16c869993eSxy150489# fields enclosed by brackets "[]" replaced with your own identifying
17c869993eSxy150489# information: Portions Copyright [yyyy] [name of copyright owner]
18c869993eSxy150489#
19c869993eSxy150489# CDDL HEADER END
20c869993eSxy150489#
21c869993eSxy150489#
22ac7f5757Schenlu chen - Sun Microsystems - Beijing China# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23c869993eSxy150489# Use is subject to license terms.
24c869993eSxy150489#
25c869993eSxy150489# uts/intel/igb/Makefile
26c869993eSxy150489#
27c869993eSxy150489#	This makefile drives the production of the igb
28c869993eSxy150489#	network driver kernel module.
29c869993eSxy150489#
30c869993eSxy150489#	intel architecture dependent
31c869993eSxy150489#
32c869993eSxy150489
33c869993eSxy150489#
34c869993eSxy150489#	Paths to the base of the uts directory trees
35c869993eSxy150489#
36c869993eSxy150489UTSBASE = ../..
37c869993eSxy150489
38c869993eSxy150489#
39c869993eSxy150489#	Define the module and object file sets.
40c869993eSxy150489#
41c869993eSxy150489MODULE		= igb
42c869993eSxy150489OBJECTS		= $(IGB_OBJS:%=$(OBJS_DIR)/%)
43*75eba5b6SRobert MustacchiOBJECTS		+= $(E1000API_OBJS:%=$(OBJS_DIR)/%)
44c869993eSxy150489LINTS		= $(IGB_OBJS:%.o=$(LINTS_DIR)/%.ln)
45c869993eSxy150489ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
46c869993eSxy150489CONF_SRCDIR	= $(UTSBASE)/common/io/igb
47c869993eSxy150489
48c869993eSxy150489#
49c869993eSxy150489#	Include common rules.
50c869993eSxy150489#
51c869993eSxy150489include $(UTSBASE)/intel/Makefile.intel
52c869993eSxy150489
53*75eba5b6SRobert MustacchiLINTFLAGS += \
54*75eba5b6SRobert Mustacchi	-I$(UTSBASE)/common/io/igb \
55*75eba5b6SRobert Mustacchi	-I$(UTSBASE)/common/io/e1000api
56*75eba5b6SRobert Mustacchi
577014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
587014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
59*75eba5b6SRobert MustacchiCERRWARN	+= -_cc=-erroff=E_STATEMENT_NOT_REACHED
60*75eba5b6SRobert Mustacchi
61*75eba5b6SRobert MustacchiCFLAGS		+= -I$(UTSBASE)/common/io/e1000api
62*75eba5b6SRobert MustacchiCFLAGS		+= -I$(UTSBASE)/common/io/igb
637014882cSRichard Lowe
64c869993eSxy150489#
65c869993eSxy150489#	Define targets
66c869993eSxy150489#
67c869993eSxy150489ALL_TARGET	= $(BINARY) $(CONFMOD)
68c869993eSxy150489LINT_TARGET	= $(MODULE).lint
69c869993eSxy150489INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
70c869993eSxy150489
71c869993eSxy150489#
72ac7f5757Schenlu chen - Sun Microsystems - Beijing China# Driver depends on MAC
73c869993eSxy150489#
74ac7f5757Schenlu chen - Sun Microsystems - Beijing ChinaLDFLAGS		+= -dy -N misc/mac
75c869993eSxy150489
76c869993eSxy150489#
77c869993eSxy150489#	Default build targets.
78c869993eSxy150489#
79c869993eSxy150489.KEEP_STATE:
80c869993eSxy150489
81c869993eSxy150489def:		$(DEF_DEPS)
82c869993eSxy150489
83c869993eSxy150489all:		$(ALL_DEPS)
84c869993eSxy150489
85c869993eSxy150489clean:		$(CLEAN_DEPS)
86c869993eSxy150489
87c869993eSxy150489clobber:	$(CLOBBER_DEPS)
88c869993eSxy150489
89c869993eSxy150489lint:		$(LINT_DEPS)
90c869993eSxy150489
91c869993eSxy150489modlintlib:	$(MODLINTLIB_DEPS)
92c869993eSxy150489
93c869993eSxy150489clean.lint:	$(CLEAN_LINT_DEPS)
94c869993eSxy150489
95c869993eSxy150489install:	$(INSTALL_DEPS)
96c869993eSxy150489
97c869993eSxy150489#
98c869993eSxy150489#	Include common targets.
99c869993eSxy150489#
100c869993eSxy150489include $(UTSBASE)/intel/Makefile.targ
101