xref: /titanic_44/usr/src/uts/intel/net80211/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
10ba2cbe9Sxc151355#
20ba2cbe9Sxc151355# CDDL HEADER START
30ba2cbe9Sxc151355#
40ba2cbe9Sxc151355# The contents of this file are subject to the terms of the
50ba2cbe9Sxc151355# Common Development and Distribution License (the "License").
60ba2cbe9Sxc151355# You may not use this file except in compliance with the License.
70ba2cbe9Sxc151355#
80ba2cbe9Sxc151355# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90ba2cbe9Sxc151355# or http://www.opensolaris.org/os/licensing.
100ba2cbe9Sxc151355# See the License for the specific language governing permissions
110ba2cbe9Sxc151355# and limitations under the License.
120ba2cbe9Sxc151355#
130ba2cbe9Sxc151355# When distributing Covered Code, include this CDDL HEADER in each
140ba2cbe9Sxc151355# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150ba2cbe9Sxc151355# If applicable, add the following below this CDDL HEADER, with the
160ba2cbe9Sxc151355# fields enclosed by brackets "[]" replaced with your own identifying
170ba2cbe9Sxc151355# information: Portions Copyright [yyyy] [name of copyright owner]
180ba2cbe9Sxc151355#
190ba2cbe9Sxc151355# CDDL HEADER END
200ba2cbe9Sxc151355#
210ba2cbe9Sxc151355
220ba2cbe9Sxc151355#
23ff3124efSff224033# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
240ba2cbe9Sxc151355# Use is subject to license terms.
250ba2cbe9Sxc151355#
260ba2cbe9Sxc151355
270ba2cbe9Sxc151355#
280ba2cbe9Sxc151355#	This file makes the atheros driver for an intel system
290ba2cbe9Sxc151355#
300ba2cbe9Sxc151355#	intel architecture dependent
310ba2cbe9Sxc151355#
320ba2cbe9Sxc151355
330ba2cbe9Sxc151355#
340ba2cbe9Sxc151355#	Path to the base of the uts directory tree (usually /usr/src/uts).
350ba2cbe9Sxc151355#
360ba2cbe9Sxc151355UTSBASE	= ../..
370ba2cbe9Sxc151355#
380ba2cbe9Sxc151355#	Define the module and object file sets.
390ba2cbe9Sxc151355#
400ba2cbe9Sxc151355MODULE		= net80211
410ba2cbe9Sxc151355OBJECTS		= $(NET80211_OBJS:%=$(OBJS_DIR)/%)
420ba2cbe9Sxc151355LINTS		= $(NET80211_OBJS:%.o=$(LINTS_DIR)/%.ln)
430ba2cbe9Sxc151355ROOTMODULE	= $(ROOT_MISC_DIR)/$(MODULE)
440ba2cbe9Sxc151355
450ba2cbe9Sxc151355#
460ba2cbe9Sxc151355#	Include common rules.
470ba2cbe9Sxc151355#
480ba2cbe9Sxc151355include $(UTSBASE)/intel/Makefile.intel
490ba2cbe9Sxc151355
500ba2cbe9Sxc151355#
510ba2cbe9Sxc151355#	Define targets
520ba2cbe9Sxc151355#
530ba2cbe9Sxc151355ALL_TARGET	= $(BINARY)
540ba2cbe9Sxc151355LINT_TARGET	= $(MODULE).lint
550ba2cbe9Sxc151355INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
560ba2cbe9Sxc151355
570ba2cbe9Sxc151355#
580ba2cbe9Sxc151355#	Overrides
590ba2cbe9Sxc151355#
600ba2cbe9Sxc151355CFLAGS		+= $(CCVERBOSE)
610ba2cbe9Sxc151355LDFLAGS		+= -dy -Nmisc/mac -Nmac/mac_wifi -Ndrv/ip
620ba2cbe9Sxc151355
630ba2cbe9Sxc151355#
640ba2cbe9Sxc151355# STREAMS API limitations force us to turn off these lint checks.
650ba2cbe9Sxc151355#
660ba2cbe9Sxc151355LINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
670ba2cbe9Sxc151355
68*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
69*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
70*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
71*7014882cSRichard Lowe
720ba2cbe9Sxc151355#
730ba2cbe9Sxc151355#	Default build targets.
740ba2cbe9Sxc151355#
750ba2cbe9Sxc151355.KEEP_STATE:
760ba2cbe9Sxc151355
770ba2cbe9Sxc151355def:		$(DEF_DEPS)
780ba2cbe9Sxc151355
790ba2cbe9Sxc151355all:		$(ALL_DEPS)
800ba2cbe9Sxc151355
810ba2cbe9Sxc151355clean:		$(CLEAN_DEPS)
820ba2cbe9Sxc151355
830ba2cbe9Sxc151355clobber:	$(CLOBBER_DEPS)
840ba2cbe9Sxc151355
850ba2cbe9Sxc151355lint:		$(LINT_DEPS)
860ba2cbe9Sxc151355
870ba2cbe9Sxc151355modlintlib:	$(MODLINTLIB_DEPS)
880ba2cbe9Sxc151355
890ba2cbe9Sxc151355clean.lint:	$(CLEAN_LINT_DEPS)
900ba2cbe9Sxc151355
910ba2cbe9Sxc151355install:	$(INSTALL_DEPS)
920ba2cbe9Sxc151355
930ba2cbe9Sxc151355#
940ba2cbe9Sxc151355#	Include common targets.
950ba2cbe9Sxc151355#
960ba2cbe9Sxc151355include $(UTSBASE)/intel/Makefile.targ
97