xref: /titanic_50/usr/src/uts/intel/amd8111s/Makefile (revision 75ab5f91d942eea4138efe4799ca0589870c3899)
1*75ab5f91Slh155975#
2*75ab5f91Slh155975# CDDL HEADER START
3*75ab5f91Slh155975#
4*75ab5f91Slh155975# The contents of this file are subject to the terms of the
5*75ab5f91Slh155975# Common Development and Distribution License (the "License").
6*75ab5f91Slh155975# You may not use this file except in compliance with the License.
7*75ab5f91Slh155975#
8*75ab5f91Slh155975# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*75ab5f91Slh155975# or http://www.opensolaris.org/os/licensing.
10*75ab5f91Slh155975# See the License for the specific language governing permissions
11*75ab5f91Slh155975# and limitations under the License.
12*75ab5f91Slh155975#
13*75ab5f91Slh155975# When distributing Covered Code, include this CDDL HEADER in each
14*75ab5f91Slh155975# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*75ab5f91Slh155975# If applicable, add the following below this CDDL HEADER, with the
16*75ab5f91Slh155975# fields enclosed by brackets "[]" replaced with your own identifying
17*75ab5f91Slh155975# information: Portions Copyright [yyyy] [name of copyright owner]
18*75ab5f91Slh155975#
19*75ab5f91Slh155975# CDDL HEADER END
20*75ab5f91Slh155975#
21*75ab5f91Slh155975#
22*75ab5f91Slh155975# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*75ab5f91Slh155975# Use is subject to license terms.
24*75ab5f91Slh155975#
25*75ab5f91Slh155975# ident	"%Z%%M%	%I%	%E% SMI"
26*75ab5f91Slh155975#
27*75ab5f91Slh155975#	This makefile drives the production of the AMD8111
28*75ab5f91Slh155975#	Fast Ethernet (amd8111s) driver module in intel systems
29*75ab5f91Slh155975#
30*75ab5f91Slh155975
31*75ab5f91Slh155975#
32*75ab5f91Slh155975#	Path to the base of the uts directory tree (usually /usr/src/uts).
33*75ab5f91Slh155975#
34*75ab5f91Slh155975UTSBASE		= ../..
35*75ab5f91Slh155975
36*75ab5f91Slh155975#
37*75ab5f91Slh155975#	Define the module and object file sets.
38*75ab5f91Slh155975#
39*75ab5f91Slh155975MODULE		= amd8111s
40*75ab5f91Slh155975OBJECTS		= $(AMD8111S_OBJS:%=$(OBJS_DIR)/%)
41*75ab5f91Slh155975LINTS		= $(AMD8111S_OBJS:%.o=$(LINTS_DIR)/%.ln)
42*75ab5f91Slh155975ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
43*75ab5f91Slh155975
44*75ab5f91Slh155975#
45*75ab5f91Slh155975#	Include common rules.
46*75ab5f91Slh155975#
47*75ab5f91Slh155975include $(UTSBASE)/intel/Makefile.intel
48*75ab5f91Slh155975
49*75ab5f91Slh155975#
50*75ab5f91Slh155975#	Define targets
51*75ab5f91Slh155975#
52*75ab5f91Slh155975ALL_TARGET	= $(BINARY)
53*75ab5f91Slh155975LINT_TARGET	= $(MODULE).lint
54*75ab5f91Slh155975INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55*75ab5f91Slh155975
56*75ab5f91Slh155975#
57*75ab5f91Slh155975#	Overrides
58*75ab5f91Slh155975#
59*75ab5f91Slh155975#
60*75ab5f91Slh155975# For now, disable these lint checks; maintainers should endeavor
61*75ab5f91Slh155975# to investigate and remove these for maximum lint coverage.
62*75ab5f91Slh155975# Please do not carry these forward to new Makefiles.
63*75ab5f91Slh155975#
64*75ab5f91Slh155975LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
65*75ab5f91Slh155975LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
66*75ab5f91Slh155975
67*75ab5f91Slh155975#
68*75ab5f91Slh155975# Driver depends on GLD & IP
69*75ab5f91Slh155975#
70*75ab5f91Slh155975LDFLAGS		+= -dy -N misc/mac -N drv/ip
71*75ab5f91Slh155975
72*75ab5f91Slh155975#
73*75ab5f91Slh155975#	Default build targets.
74*75ab5f91Slh155975#
75*75ab5f91Slh155975.KEEP_STATE:
76*75ab5f91Slh155975
77*75ab5f91Slh155975def:		$(DEF_DEPS)
78*75ab5f91Slh155975
79*75ab5f91Slh155975all:		$(ALL_DEPS)
80*75ab5f91Slh155975
81*75ab5f91Slh155975clean:		$(CLEAN_DEPS)
82*75ab5f91Slh155975
83*75ab5f91Slh155975clobber:	$(CLOBBER_DEPS)
84*75ab5f91Slh155975
85*75ab5f91Slh155975lint:		$(LINT_DEPS)
86*75ab5f91Slh155975
87*75ab5f91Slh155975modlintlib:	$(MODLINTLIB_DEPS)
88*75ab5f91Slh155975
89*75ab5f91Slh155975clean.lint:	$(CLEAN_LINT_DEPS)
90*75ab5f91Slh155975
91*75ab5f91Slh155975install:	$(INSTALL_DEPS)
92*75ab5f91Slh155975
93*75ab5f91Slh155975#
94*75ab5f91Slh155975#	Include common targets.
95*75ab5f91Slh155975#
96*75ab5f91Slh155975include $(UTSBASE)/intel/Makefile.targ
97