xref: /titanic_50/usr/src/uts/intel/rge/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
1c7fd2ed0Sgs150176#
2c7fd2ed0Sgs150176# CDDL HEADER START
3c7fd2ed0Sgs150176#
4c7fd2ed0Sgs150176# The contents of this file are subject to the terms of the
5bb25c06cSjg# Common Development and Distribution License (the "License").
6bb25c06cSjg# You may not use this file except in compliance with the License.
7c7fd2ed0Sgs150176#
8c7fd2ed0Sgs150176# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9c7fd2ed0Sgs150176# or http://www.opensolaris.org/os/licensing.
10c7fd2ed0Sgs150176# See the License for the specific language governing permissions
11c7fd2ed0Sgs150176# and limitations under the License.
12c7fd2ed0Sgs150176#
13c7fd2ed0Sgs150176# When distributing Covered Code, include this CDDL HEADER in each
14c7fd2ed0Sgs150176# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15c7fd2ed0Sgs150176# If applicable, add the following below this CDDL HEADER, with the
16c7fd2ed0Sgs150176# fields enclosed by brackets "[]" replaced with your own identifying
17c7fd2ed0Sgs150176# information: Portions Copyright [yyyy] [name of copyright owner]
18c7fd2ed0Sgs150176#
19c7fd2ed0Sgs150176# CDDL HEADER END
20c7fd2ed0Sgs150176#
21c7fd2ed0Sgs150176#
2222eb7cb5Sgd78059# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
23c7fd2ed0Sgs150176# Use is subject to license terms.
24c7fd2ed0Sgs150176#
25c7fd2ed0Sgs150176#
26c7fd2ed0Sgs150176#	This makefile drives the production of the Realtek
27c7fd2ed0Sgs150176#	Gigabit Ethernet (BGE) driver module in intel systems
28c7fd2ed0Sgs150176#
29c7fd2ed0Sgs150176
30c7fd2ed0Sgs150176#
31c7fd2ed0Sgs150176#	Path to the base of the uts directory tree (usually /usr/src/uts).
32c7fd2ed0Sgs150176#
33c7fd2ed0Sgs150176UTSBASE		= ../..
34c7fd2ed0Sgs150176
35c7fd2ed0Sgs150176#
36c7fd2ed0Sgs150176#	Define the module and object file sets.
37c7fd2ed0Sgs150176#
38c7fd2ed0Sgs150176MODULE		= rge
39c7fd2ed0Sgs150176OBJECTS		= $(RGE_OBJS:%=$(OBJS_DIR)/%)
40c7fd2ed0Sgs150176LINTS		= $(RGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
41c7fd2ed0Sgs150176ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
42c7fd2ed0Sgs150176
43c7fd2ed0Sgs150176#
44c7fd2ed0Sgs150176#	Include common rules.
45c7fd2ed0Sgs150176#
46c7fd2ed0Sgs150176include $(UTSBASE)/intel/Makefile.intel
47c7fd2ed0Sgs150176
48c7fd2ed0Sgs150176#
49c7fd2ed0Sgs150176#	Define targets
50c7fd2ed0Sgs150176#
51c7fd2ed0Sgs150176ALL_TARGET	= $(BINARY)
52c7fd2ed0Sgs150176LINT_TARGET	= $(MODULE).lint
53c7fd2ed0Sgs150176INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
54c7fd2ed0Sgs150176
55c7fd2ed0Sgs150176#
56c7fd2ed0Sgs150176#	Overrides
57c7fd2ed0Sgs150176#
58c7fd2ed0Sgs150176
59c7fd2ed0Sgs150176#
60c7fd2ed0Sgs150176# Driver depends on GLD & IP
61c7fd2ed0Sgs150176#
62c7fd2ed0Sgs150176LDFLAGS		+= -dy -N misc/mac -N drv/ip
63c7fd2ed0Sgs150176
64c7fd2ed0Sgs150176#
65bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
66bb25c06cSjg# to investigate and remove these for maximum lint coverage.
67bb25c06cSjg# Please do not carry these forward to new Makefiles.
68bb25c06cSjg#
69bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
70bb25c06cSjg
71*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
72*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
73*7014882cSRichard Lowe
74bb25c06cSjg#
75c7fd2ed0Sgs150176#	Default build targets.
76c7fd2ed0Sgs150176#
77c7fd2ed0Sgs150176.KEEP_STATE:
78c7fd2ed0Sgs150176
79c7fd2ed0Sgs150176def:		$(DEF_DEPS)
80c7fd2ed0Sgs150176
81c7fd2ed0Sgs150176all:		$(ALL_DEPS)
82c7fd2ed0Sgs150176
83c7fd2ed0Sgs150176clean:		$(CLEAN_DEPS)
84c7fd2ed0Sgs150176
85c7fd2ed0Sgs150176clobber:	$(CLOBBER_DEPS)
86c7fd2ed0Sgs150176
87c7fd2ed0Sgs150176lint:		$(LINT_DEPS)
88c7fd2ed0Sgs150176
89c7fd2ed0Sgs150176modlintlib:	$(MODLINTLIB_DEPS)
90c7fd2ed0Sgs150176
91c7fd2ed0Sgs150176clean.lint:	$(CLEAN_LINT_DEPS)
92c7fd2ed0Sgs150176
93c7fd2ed0Sgs150176install:	$(INSTALL_DEPS)
94c7fd2ed0Sgs150176
95c7fd2ed0Sgs150176#
96c7fd2ed0Sgs150176#	Include common targets.
97c7fd2ed0Sgs150176#
98c7fd2ed0Sgs150176include $(UTSBASE)/intel/Makefile.targ
99