xref: /titanic_50/usr/src/uts/sparc/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/sparc/igb/Makefile
26c869993eSxy150489#
27c869993eSxy150489#	This makefile drives the production of the igb
28c869993eSxy150489#	network driver kernel module.
29c869993eSxy150489#
30fa25784cSxy150489#	SPARC architecture dependent
31c869993eSxy150489#
32c869993eSxy150489
33c869993eSxy150489#
34c869993eSxy150489#	Path to the base of the uts directory tree (usually /usr/src/uts).
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)/sparc/Makefile.sparc
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
607014882cSRichard Lowe
61c869993eSxy150489#
62c869993eSxy150489#	Define targets
63c869993eSxy150489#
64c869993eSxy150489ALL_TARGET	= $(BINARY) $(SRC_CONFFILE)
65c869993eSxy150489LINT_TARGET	= $(MODULE).lint
66c869993eSxy150489INSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
67c869993eSxy150489
68c869993eSxy150489#
69c869993eSxy150489#	Override defaults
70c869993eSxy150489#
71*75eba5b6SRobert MustacchiINC_PATH	+= -I$(CONF_SRCDIR) -I$(UTSBASE)/common/io/e1000api
72c869993eSxy150489
73c869993eSxy150489#
74c869993eSxy150489# lint pass one enforcement
75c869993eSxy150489#
76c869993eSxy150489CFLAGS          += $(CCVERBOSE)
77c869993eSxy150489
78c869993eSxy150489#
79c869993eSxy150489# Turn on doubleword alignment for 64 bit registers
80c869993eSxy150489#
81c869993eSxy150489CFLAGS		+= -dalign
82c869993eSxy150489
83c869993eSxy150489#
84ac7f5757Schenlu chen - Sun Microsystems - Beijing China# Driver depends on MAC
85c869993eSxy150489#
86ac7f5757Schenlu chen - Sun Microsystems - Beijing ChinaLDFLAGS		+= -dy -N misc/mac
87c869993eSxy150489
88c869993eSxy150489#
89c869993eSxy150489#	Default build targets.
90c869993eSxy150489#
91c869993eSxy150489.KEEP_STATE:
92c869993eSxy150489
93c869993eSxy150489def:		$(DEF_DEPS)
94c869993eSxy150489
95c869993eSxy150489all:		$(ALL_DEPS)
96c869993eSxy150489
97c869993eSxy150489clean:		$(CLEAN_DEPS)
98c869993eSxy150489
99c869993eSxy150489clobber:	$(CLOBBER_DEPS)
100c869993eSxy150489
101c869993eSxy150489lint:		$(LINT_DEPS)
102c869993eSxy150489
103c869993eSxy150489modlintlib:	$(MODLINTLIB_DEPS)
104c869993eSxy150489
105c869993eSxy150489clean.lint:	$(CLEAN_LINT_DEPS)
106c869993eSxy150489
107c869993eSxy150489install:	$(INSTALL_DEPS)
108c869993eSxy150489
109c869993eSxy150489#
110c869993eSxy150489#	Include common targets.
111c869993eSxy150489#
112c869993eSxy150489include $(UTSBASE)/sparc/Makefile.targ
113c869993eSxy150489
114