xref: /illumos-gate/usr/src/uts/intel/net80211/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#
23*0ba2cbe9Sxc151355# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
24*0ba2cbe9Sxc151355# Use is subject to license terms.
25*0ba2cbe9Sxc151355#
26*0ba2cbe9Sxc151355
27*0ba2cbe9Sxc151355# ident	"%Z%%M%	%I%	%E% SMI"
28*0ba2cbe9Sxc151355
29*0ba2cbe9Sxc151355#
30*0ba2cbe9Sxc151355#	This file makes the atheros driver for an intel system
31*0ba2cbe9Sxc151355#
32*0ba2cbe9Sxc151355#	intel architecture dependent
33*0ba2cbe9Sxc151355#
34*0ba2cbe9Sxc151355
35*0ba2cbe9Sxc151355#
36*0ba2cbe9Sxc151355#	Path to the base of the uts directory tree (usually /usr/src/uts).
37*0ba2cbe9Sxc151355#
38*0ba2cbe9Sxc151355UTSBASE	= ../..
39*0ba2cbe9Sxc151355#
40*0ba2cbe9Sxc151355#	Define the module and object file sets.
41*0ba2cbe9Sxc151355#
42*0ba2cbe9Sxc151355MODULE		= net80211
43*0ba2cbe9Sxc151355OBJECTS		= $(NET80211_OBJS:%=$(OBJS_DIR)/%)
44*0ba2cbe9Sxc151355LINTS		= $(NET80211_OBJS:%.o=$(LINTS_DIR)/%.ln)
45*0ba2cbe9Sxc151355ROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
46*0ba2cbe9Sxc151355
47*0ba2cbe9Sxc151355#
48*0ba2cbe9Sxc151355#	Include common rules.
49*0ba2cbe9Sxc151355#
50*0ba2cbe9Sxc151355include $(UTSBASE)/intel/Makefile.intel
51*0ba2cbe9Sxc151355
52*0ba2cbe9Sxc151355#
53*0ba2cbe9Sxc151355#	Define targets
54*0ba2cbe9Sxc151355#
55*0ba2cbe9Sxc151355ALL_TARGET	= $(BINARY)
56*0ba2cbe9Sxc151355LINT_TARGET	= $(MODULE).lint
57*0ba2cbe9Sxc151355INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
58*0ba2cbe9Sxc151355
59*0ba2cbe9Sxc151355#
60*0ba2cbe9Sxc151355#	Overrides
61*0ba2cbe9Sxc151355#
62*0ba2cbe9Sxc151355CFLAGS		+= $(CCVERBOSE)
63*0ba2cbe9Sxc151355LDFLAGS		+= -dy -Nmisc/mac -Nmac/mac_wifi -Ndrv/ip
64*0ba2cbe9Sxc151355
65*0ba2cbe9Sxc151355#
66*0ba2cbe9Sxc151355# STREAMS API limitations force us to turn off these lint checks.
67*0ba2cbe9Sxc151355#
68*0ba2cbe9Sxc151355LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
69*0ba2cbe9Sxc151355LINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
70*0ba2cbe9Sxc151355
71*0ba2cbe9Sxc151355#
72*0ba2cbe9Sxc151355#	Default build targets.
73*0ba2cbe9Sxc151355#
74*0ba2cbe9Sxc151355.KEEP_STATE:
75*0ba2cbe9Sxc151355
76*0ba2cbe9Sxc151355def:		$(DEF_DEPS)
77*0ba2cbe9Sxc151355
78*0ba2cbe9Sxc151355all:		$(ALL_DEPS)
79*0ba2cbe9Sxc151355
80*0ba2cbe9Sxc151355clean:		$(CLEAN_DEPS)
81*0ba2cbe9Sxc151355
82*0ba2cbe9Sxc151355clobber:	$(CLOBBER_DEPS)
83*0ba2cbe9Sxc151355
84*0ba2cbe9Sxc151355lint:		$(LINT_DEPS)
85*0ba2cbe9Sxc151355
86*0ba2cbe9Sxc151355modlintlib:	$(MODLINTLIB_DEPS)
87*0ba2cbe9Sxc151355
88*0ba2cbe9Sxc151355clean.lint:	$(CLEAN_LINT_DEPS)
89*0ba2cbe9Sxc151355
90*0ba2cbe9Sxc151355install:	$(INSTALL_DEPS)
91*0ba2cbe9Sxc151355
92*0ba2cbe9Sxc151355#
93*0ba2cbe9Sxc151355#	Include common targets.
94*0ba2cbe9Sxc151355#
95*0ba2cbe9Sxc151355include $(UTSBASE)/intel/Makefile.targ
96