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