xref: /illumos-gate/usr/src/uts/intel/ath/Makefile (revision 0ba2cbe97e0678a691742f98d2532caed0a2c4aa)
17a1306a7Sxc151355#
27a1306a7Sxc151355# CDDL HEADER START
37a1306a7Sxc151355#
47a1306a7Sxc151355# The contents of this file are subject to the terms of the
5bb25c06cSjg# Common Development and Distribution License (the "License").
6bb25c06cSjg# You may not use this file except in compliance with the License.
77a1306a7Sxc151355#
87a1306a7Sxc151355# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
97a1306a7Sxc151355# or http://www.opensolaris.org/os/licensing.
107a1306a7Sxc151355# See the License for the specific language governing permissions
117a1306a7Sxc151355# and limitations under the License.
127a1306a7Sxc151355#
137a1306a7Sxc151355# When distributing Covered Code, include this CDDL HEADER in each
147a1306a7Sxc151355# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
157a1306a7Sxc151355# If applicable, add the following below this CDDL HEADER, with the
167a1306a7Sxc151355# fields enclosed by brackets "[]" replaced with your own identifying
177a1306a7Sxc151355# information: Portions Copyright [yyyy] [name of copyright owner]
187a1306a7Sxc151355#
197a1306a7Sxc151355# CDDL HEADER END
207a1306a7Sxc151355#
217a1306a7Sxc151355#
22bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237a1306a7Sxc151355# Use is subject to license terms.
247a1306a7Sxc151355#
257a1306a7Sxc151355
26bb25c06cSjg#ident	"%Z%%M%	%I%	%E% SMI"
277a1306a7Sxc151355
287a1306a7Sxc151355#
297a1306a7Sxc151355#	This file makes the atheros driver for an intel system
307a1306a7Sxc151355#
317a1306a7Sxc151355#	intel architecture dependent
327a1306a7Sxc151355#
337a1306a7Sxc151355
347a1306a7Sxc151355#
357a1306a7Sxc151355#	Path to the base of the uts directory tree (usually /usr/src/uts).
367a1306a7Sxc151355#
377a1306a7Sxc151355UTSBASE	= ../..
387a1306a7Sxc151355#
397a1306a7Sxc151355#	Define the module and object file sets.
407a1306a7Sxc151355#
417a1306a7Sxc151355MODULE		= ath
427a1306a7Sxc151355OBJECTS		= $(ATH_OBJS:%=$(OBJS_DIR)/%) $(OBJS_DIR)/hal.o
437a1306a7Sxc151355LINTS		= $(LINTS_DIR)/ath_aux.ln \
447a1306a7Sxc151355		$(LINTS_DIR)/ath_main.ln \
457a1306a7Sxc151355		$(LINTS_DIR)/ath_osdep.ln \
46*0ba2cbe9Sxc151355		$(LINTS_DIR)/ath_rate.ln
477a1306a7Sxc151355
487a1306a7Sxc151355ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
497a1306a7Sxc151355
507a1306a7Sxc151355#
517a1306a7Sxc151355#	Include common rules.
527a1306a7Sxc151355#
537a1306a7Sxc151355include $(UTSBASE)/intel/Makefile.intel
547a1306a7Sxc151355
557a1306a7Sxc151355#
567a1306a7Sxc151355#	Define targets
577a1306a7Sxc151355#
587a1306a7Sxc151355ALL_TARGET	= $(BINARY)
597a1306a7Sxc151355LINT_TARGET	= $(MODULE).lint
607a1306a7Sxc151355INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
617a1306a7Sxc151355
627a1306a7Sxc151355#
63*0ba2cbe9Sxc151355#	Driver depends on GLDv3 & wifi kernel support module.
647a1306a7Sxc151355#
65*0ba2cbe9Sxc151355LDFLAGS		+= -dy -Nmisc/mac -Nmisc/net80211
667a1306a7Sxc151355
677a1306a7Sxc151355#
68bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
69bb25c06cSjg# to investigate and remove these for maximum lint coverage.
70bb25c06cSjg# Please do not carry these forward to new Makefiles.
71bb25c06cSjg#
72bb25c06cSjgLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
73bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
74bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
75bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
76bb25c06cSjg
77bb25c06cSjg#
787a1306a7Sxc151355#	Default build targets.
797a1306a7Sxc151355#
807a1306a7Sxc151355.KEEP_STATE:
817a1306a7Sxc151355
827a1306a7Sxc151355def:		$(DEF_DEPS)
837a1306a7Sxc151355
847a1306a7Sxc151355all:		$(ALL_DEPS)
857a1306a7Sxc151355
867a1306a7Sxc151355clean:		$(CLEAN_DEPS)
877a1306a7Sxc151355
887a1306a7Sxc151355clobber:	$(CLOBBER_DEPS)
897a1306a7Sxc151355
907a1306a7Sxc151355lint:		$(LINT_DEPS)
917a1306a7Sxc151355
927a1306a7Sxc151355modlintlib:	$(MODLINTLIB_DEPS)
937a1306a7Sxc151355
947a1306a7Sxc151355clean.lint:	$(CLEAN_LINT_DEPS)
957a1306a7Sxc151355
967a1306a7Sxc151355install:	$(INSTALL_DEPS)
977a1306a7Sxc151355
987a1306a7Sxc151355#
997a1306a7Sxc151355#	Include common targets.
1007a1306a7Sxc151355#
1017a1306a7Sxc151355include $(UTSBASE)/intel/Makefile.targ
1027a1306a7Sxc151355
1037a1306a7Sxc151355#
1047a1306a7Sxc151355#	If you have any special case that general
1057a1306a7Sxc151355#	Makefile rules don't serve for you, just do
1067a1306a7Sxc151355#	it yourself.
1077a1306a7Sxc151355#
1087a1306a7Sxc151355ATHEROS_HAL=$(UTSBASE)/common/io/ath/hal_x86_$(CLASS).o.uu
1097a1306a7Sxc151355$(OBJS_DIR)/hal.o:     $(ATHEROS_HAL)
1107a1306a7Sxc151355	uudecode -o $@ $(ATHEROS_HAL)
111