xref: /illumos-gate/usr/src/uts/intel/rge/Makefile (revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95)
1c7fd2ed0Sgs150176#
2c7fd2ed0Sgs150176# CDDL HEADER START
3c7fd2ed0Sgs150176#
4c7fd2ed0Sgs150176# The contents of this file are subject to the terms of the
5*bb25c06cSjg# Common Development and Distribution License (the "License").
6*bb25c06cSjg# 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#
22*bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23c7fd2ed0Sgs150176# Use is subject to license terms.
24c7fd2ed0Sgs150176#
25c7fd2ed0Sgs150176#ident	"%Z%%M%	%I%	%E% SMI"
26c7fd2ed0Sgs150176#
27c7fd2ed0Sgs150176#	This makefile drives the production of the Realtek
28c7fd2ed0Sgs150176#	Gigabit Ethernet (BGE) driver module in intel systems
29c7fd2ed0Sgs150176#
30c7fd2ed0Sgs150176
31c7fd2ed0Sgs150176#
32c7fd2ed0Sgs150176#	Path to the base of the uts directory tree (usually /usr/src/uts).
33c7fd2ed0Sgs150176#
34c7fd2ed0Sgs150176UTSBASE		= ../..
35c7fd2ed0Sgs150176
36c7fd2ed0Sgs150176#
37c7fd2ed0Sgs150176#	Define the module and object file sets.
38c7fd2ed0Sgs150176#
39c7fd2ed0Sgs150176MODULE		= rge
40c7fd2ed0Sgs150176OBJECTS		= $(RGE_OBJS:%=$(OBJS_DIR)/%)
41c7fd2ed0Sgs150176LINTS		= $(RGE_OBJS:%.o=$(LINTS_DIR)/%.ln)
42c7fd2ed0Sgs150176ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
43c7fd2ed0Sgs150176
44c7fd2ed0Sgs150176#
45c7fd2ed0Sgs150176#	Include common rules.
46c7fd2ed0Sgs150176#
47c7fd2ed0Sgs150176include $(UTSBASE)/intel/Makefile.intel
48c7fd2ed0Sgs150176
49c7fd2ed0Sgs150176#
50c7fd2ed0Sgs150176#	Define targets
51c7fd2ed0Sgs150176#
52c7fd2ed0Sgs150176ALL_TARGET	= $(BINARY)
53c7fd2ed0Sgs150176LINT_TARGET	= $(MODULE).lint
54c7fd2ed0Sgs150176INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55c7fd2ed0Sgs150176
56c7fd2ed0Sgs150176#
57c7fd2ed0Sgs150176#	Overrides
58c7fd2ed0Sgs150176#
59c7fd2ed0Sgs150176
60c7fd2ed0Sgs150176#
61c7fd2ed0Sgs150176# Driver depends on GLD & IP
62c7fd2ed0Sgs150176#
63c7fd2ed0Sgs150176LDFLAGS		+= -dy -N misc/mac -N drv/ip
64c7fd2ed0Sgs150176
65c7fd2ed0Sgs150176#
66*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
67*bb25c06cSjg# to investigate and remove these for maximum lint coverage.
68*bb25c06cSjg# Please do not carry these forward to new Makefiles.
69*bb25c06cSjg#
70*bb25c06cSjgLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
71*bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
72*bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
73*bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
74*bb25c06cSjgLINTTAGS	+= -erroff=E_STATIC_UNUSED
75*bb25c06cSjg
76*bb25c06cSjg#
77c7fd2ed0Sgs150176#	Default build targets.
78c7fd2ed0Sgs150176#
79c7fd2ed0Sgs150176.KEEP_STATE:
80c7fd2ed0Sgs150176
81c7fd2ed0Sgs150176def:		$(DEF_DEPS)
82c7fd2ed0Sgs150176
83c7fd2ed0Sgs150176all:		$(ALL_DEPS)
84c7fd2ed0Sgs150176
85c7fd2ed0Sgs150176clean:		$(CLEAN_DEPS)
86c7fd2ed0Sgs150176
87c7fd2ed0Sgs150176clobber:	$(CLOBBER_DEPS)
88c7fd2ed0Sgs150176
89c7fd2ed0Sgs150176lint:		$(LINT_DEPS)
90c7fd2ed0Sgs150176
91c7fd2ed0Sgs150176modlintlib:	$(MODLINTLIB_DEPS)
92c7fd2ed0Sgs150176
93c7fd2ed0Sgs150176clean.lint:	$(CLEAN_LINT_DEPS)
94c7fd2ed0Sgs150176
95c7fd2ed0Sgs150176install:	$(INSTALL_DEPS)
96c7fd2ed0Sgs150176
97c7fd2ed0Sgs150176#
98c7fd2ed0Sgs150176#	Include common targets.
99c7fd2ed0Sgs150176#
100c7fd2ed0Sgs150176include $(UTSBASE)/intel/Makefile.targ
101