xref: /illumos-gate/usr/src/uts/intel/mac_wifi/Makefile (revision 0ba2cbe97e0678a691742f98d2532caed0a2c4aa)
1*0ba2cbe9Sxc151355#
2*0ba2cbe9Sxc151355# CDDL HEADER START
3*0ba2cbe9Sxc151355#
4*0ba2cbe9Sxc151355# The contents of this file are subject to the terms of the
5*0ba2cbe9Sxc151355# Common Development and Distribution License (the "License").
6*0ba2cbe9Sxc151355# You may not use this file except in compliance with the License.
7*0ba2cbe9Sxc151355#
8*0ba2cbe9Sxc151355# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*0ba2cbe9Sxc151355# or http://www.opensolaris.org/os/licensing.
10*0ba2cbe9Sxc151355# See the License for the specific language governing permissions
11*0ba2cbe9Sxc151355# and limitations under the License.
12*0ba2cbe9Sxc151355#
13*0ba2cbe9Sxc151355# When distributing Covered Code, include this CDDL HEADER in each
14*0ba2cbe9Sxc151355# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*0ba2cbe9Sxc151355# If applicable, add the following below this CDDL HEADER, with the
16*0ba2cbe9Sxc151355# fields enclosed by brackets "[]" replaced with your own identifying
17*0ba2cbe9Sxc151355# information: Portions Copyright [yyyy] [name of copyright owner]
18*0ba2cbe9Sxc151355#
19*0ba2cbe9Sxc151355# CDDL HEADER END
20*0ba2cbe9Sxc151355#
21*0ba2cbe9Sxc151355#
22*0ba2cbe9Sxc151355# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
23*0ba2cbe9Sxc151355# Use is subject to license terms.
24*0ba2cbe9Sxc151355#
25*0ba2cbe9Sxc151355# ident	"%Z%%M%	%I%	%E% SMI"
26*0ba2cbe9Sxc151355#
27*0ba2cbe9Sxc151355#
28*0ba2cbe9Sxc151355#	This makefile drives the production of the mac_wifi plugin
29*0ba2cbe9Sxc151355#	kernel module.
30*0ba2cbe9Sxc151355#
31*0ba2cbe9Sxc151355
32*0ba2cbe9Sxc151355#
33*0ba2cbe9Sxc151355#	Path to the base of the uts directory tree (usually /usr/src/uts).
34*0ba2cbe9Sxc151355#
35*0ba2cbe9Sxc151355UTSBASE	= ../..
36*0ba2cbe9Sxc151355
37*0ba2cbe9Sxc151355#
38*0ba2cbe9Sxc151355#	Define the module and object file sets.
39*0ba2cbe9Sxc151355#
40*0ba2cbe9Sxc151355MODULE		= mac_wifi
41*0ba2cbe9Sxc151355OBJECTS		= $(MAC_WIFI_OBJS:%=$(OBJS_DIR)/%)
42*0ba2cbe9Sxc151355LINTS		= $(MAC_WIFI_OBJS:%.o=$(LINTS_DIR)/%.ln)
43*0ba2cbe9Sxc151355ROOTMODULE	= $(ROOT_MAC_DIR)/$(MODULE)
44*0ba2cbe9Sxc151355
45*0ba2cbe9Sxc151355#
46*0ba2cbe9Sxc151355#	Include common rules.
47*0ba2cbe9Sxc151355#
48*0ba2cbe9Sxc151355include $(UTSBASE)/intel/Makefile.intel
49*0ba2cbe9Sxc151355
50*0ba2cbe9Sxc151355#
51*0ba2cbe9Sxc151355#	Define targets
52*0ba2cbe9Sxc151355#
53*0ba2cbe9Sxc151355ALL_TARGET	= $(BINARY)
54*0ba2cbe9Sxc151355LINT_TARGET	= $(MODULE).lint
55*0ba2cbe9Sxc151355INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
56*0ba2cbe9Sxc151355
57*0ba2cbe9Sxc151355#
58*0ba2cbe9Sxc151355#	Overrides.
59*0ba2cbe9Sxc151355#
60*0ba2cbe9Sxc151355CFLAGS		+= $(CCVERBOSE)
61*0ba2cbe9Sxc151355LDFLAGS		+= -dy -Nmisc/mac
62*0ba2cbe9Sxc151355#
63*0ba2cbe9Sxc151355# STREAMS API limitations force us to turn off these lint checks.
64*0ba2cbe9Sxc151355#
65*0ba2cbe9Sxc151355LINTTAGS        += -erroff=E_BAD_PTR_CAST_ALIGN
66*0ba2cbe9Sxc151355LINTTAGS        += -erroff=E_PTRDIFF_OVERFLOW
67*0ba2cbe9Sxc151355
68*0ba2cbe9Sxc151355#
69*0ba2cbe9Sxc151355#	Default build targets.
70*0ba2cbe9Sxc151355#
71*0ba2cbe9Sxc151355.KEEP_STATE:
72*0ba2cbe9Sxc151355
73*0ba2cbe9Sxc151355def:		$(DEF_DEPS)
74*0ba2cbe9Sxc151355
75*0ba2cbe9Sxc151355all:		$(ALL_DEPS)
76*0ba2cbe9Sxc151355
77*0ba2cbe9Sxc151355clean:		$(CLEAN_DEPS)
78*0ba2cbe9Sxc151355
79*0ba2cbe9Sxc151355clobber:	$(CLOBBER_DEPS)
80*0ba2cbe9Sxc151355
81*0ba2cbe9Sxc151355lint:		$(LINT_DEPS)
82*0ba2cbe9Sxc151355
83*0ba2cbe9Sxc151355modlintlib:	$(MODLINTLIB_DEPS)
84*0ba2cbe9Sxc151355
85*0ba2cbe9Sxc151355clean.lint:	$(CLEAN_LINT_DEPS)
86*0ba2cbe9Sxc151355
87*0ba2cbe9Sxc151355install:	$(INSTALL_DEPS)
88*0ba2cbe9Sxc151355
89*0ba2cbe9Sxc151355#
90*0ba2cbe9Sxc151355#	Include common targets.
91*0ba2cbe9Sxc151355#
92*0ba2cbe9Sxc151355include $(UTSBASE)/intel/Makefile.targ
93