xref: /titanic_41/usr/src/uts/intel/rtw/Makefile (revision a72f7ea693101cc48bafbb4db6bb437d828011c4)
1*a72f7ea6Sql147931#
2*a72f7ea6Sql147931# CDDL HEADER START
3*a72f7ea6Sql147931#
4*a72f7ea6Sql147931# The contents of this file are subject to the terms of the
5*a72f7ea6Sql147931# Common Development and Distribution License (the "License").
6*a72f7ea6Sql147931# You may not use this file except in compliance with the License.
7*a72f7ea6Sql147931#
8*a72f7ea6Sql147931# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*a72f7ea6Sql147931# or http://www.opensolaris.org/os/licensing.
10*a72f7ea6Sql147931# See the License for the specific language governing permissions
11*a72f7ea6Sql147931# and limitations under the License.
12*a72f7ea6Sql147931#
13*a72f7ea6Sql147931# When distributing Covered Code, include this CDDL HEADER in each
14*a72f7ea6Sql147931# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*a72f7ea6Sql147931# If applicable, add the following below this CDDL HEADER, with the
16*a72f7ea6Sql147931# fields enclosed by brackets "[]" replaced with your own identifying
17*a72f7ea6Sql147931# information: Portions Copyright [yyyy] [name of copyright owner]
18*a72f7ea6Sql147931#
19*a72f7ea6Sql147931# CDDL HEADER END
20*a72f7ea6Sql147931#
21*a72f7ea6Sql147931#
22*a72f7ea6Sql147931# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
23*a72f7ea6Sql147931# Use is subject to license terms.
24*a72f7ea6Sql147931#
25*a72f7ea6Sql147931#ident	"%Z%%M%	%I%	%E% SMI"
26*a72f7ea6Sql147931#
27*a72f7ea6Sql147931#	This makefile drives the production of the realtek 8180
28*a72f7ea6Sql147931#	wifi(rtw) driver module in intel systems
29*a72f7ea6Sql147931#
30*a72f7ea6Sql147931
31*a72f7ea6Sql147931#
32*a72f7ea6Sql147931#	Path to the base of the uts directory tree (usually /usr/src/uts).
33*a72f7ea6Sql147931#
34*a72f7ea6Sql147931UTSBASE		= ../..
35*a72f7ea6Sql147931
36*a72f7ea6Sql147931#
37*a72f7ea6Sql147931#	Define the module and object file sets.
38*a72f7ea6Sql147931#
39*a72f7ea6Sql147931MODULE		= rtw
40*a72f7ea6Sql147931OBJECTS		= $(RTW_OBJS:%=$(OBJS_DIR)/%)
41*a72f7ea6Sql147931LINTS		= $(RTW_OBJS:%.o=$(LINTS_DIR)/%.ln)
42*a72f7ea6Sql147931ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
43*a72f7ea6Sql147931
44*a72f7ea6Sql147931#
45*a72f7ea6Sql147931#	Include common rules.
46*a72f7ea6Sql147931#
47*a72f7ea6Sql147931include $(UTSBASE)/intel/Makefile.intel
48*a72f7ea6Sql147931
49*a72f7ea6Sql147931#
50*a72f7ea6Sql147931#	Define targets
51*a72f7ea6Sql147931#
52*a72f7ea6Sql147931ALL_TARGET	= $(BINARY)
53*a72f7ea6Sql147931LINT_TARGET	= $(MODULE).lint
54*a72f7ea6Sql147931INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
55*a72f7ea6Sql147931
56*a72f7ea6Sql147931#
57*a72f7ea6Sql147931#	Overrides
58*a72f7ea6Sql147931#
59*a72f7ea6Sql147931
60*a72f7ea6Sql147931#
61*a72f7ea6Sql147931# STREAMS API limitations force us to turn off these lint checks.
62*a72f7ea6Sql147931#
63*a72f7ea6Sql147931LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
64*a72f7ea6Sql147931LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
65*a72f7ea6Sql147931
66*a72f7ea6Sql147931#
67*a72f7ea6Sql147931# Driver depends on MAC-WIFI & net80211 misc modules
68*a72f7ea6Sql147931#
69*a72f7ea6Sql147931LDFLAGS		+= -dy -Nmisc/mac -Nmisc/net80211
70*a72f7ea6Sql147931
71*a72f7ea6Sql147931#
72*a72f7ea6Sql147931#	Default build targets.
73*a72f7ea6Sql147931#
74*a72f7ea6Sql147931.KEEP_STATE:
75*a72f7ea6Sql147931
76*a72f7ea6Sql147931def:		$(DEF_DEPS)
77*a72f7ea6Sql147931
78*a72f7ea6Sql147931all:		$(ALL_DEPS)
79*a72f7ea6Sql147931
80*a72f7ea6Sql147931clean:		$(CLEAN_DEPS)
81*a72f7ea6Sql147931
82*a72f7ea6Sql147931clobber:	$(CLOBBER_DEPS)
83*a72f7ea6Sql147931
84*a72f7ea6Sql147931lint:		$(LINT_DEPS)
85*a72f7ea6Sql147931
86*a72f7ea6Sql147931modlintlib:	$(MODLINTLIB_DEPS)
87*a72f7ea6Sql147931
88*a72f7ea6Sql147931clean.lint:	$(CLEAN_LINT_DEPS)
89*a72f7ea6Sql147931
90*a72f7ea6Sql147931install:	$(INSTALL_DEPS)
91*a72f7ea6Sql147931
92*a72f7ea6Sql147931#
93*a72f7ea6Sql147931#	Include common targets.
94*a72f7ea6Sql147931#
95*a72f7ea6Sql147931include $(UTSBASE)/intel/Makefile.targ
96