xref: /illumos-gate/usr/src/uts/intel/ath/Makefile (revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95)
17a1306a7Sxc151355#
27a1306a7Sxc151355# CDDL HEADER START
37a1306a7Sxc151355#
47a1306a7Sxc151355# The contents of this file are subject to the terms of the
5*bb25c06cSjg# Common Development and Distribution License (the "License").
6*bb25c06cSjg# 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#
22*bb25c06cSjg# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
237a1306a7Sxc151355# Use is subject to license terms.
247a1306a7Sxc151355#
257a1306a7Sxc151355
26*bb25c06cSjg#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_ieee80211.ln \
457a1306a7Sxc151355		$(LINTS_DIR)/ath_main.ln \
467a1306a7Sxc151355		$(LINTS_DIR)/ath_osdep.ln \
477a1306a7Sxc151355		$(LINTS_DIR)/ath_rate.ln \
487a1306a7Sxc151355		$(LINTS_DIR)/ath_wificonfig.ln
497a1306a7Sxc151355
507a1306a7Sxc151355ROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
517a1306a7Sxc151355
527a1306a7Sxc151355#
537a1306a7Sxc151355#	Include common rules.
547a1306a7Sxc151355#
557a1306a7Sxc151355include $(UTSBASE)/intel/Makefile.intel
567a1306a7Sxc151355
577a1306a7Sxc151355#
587a1306a7Sxc151355#	Define targets
597a1306a7Sxc151355#
607a1306a7Sxc151355ALL_TARGET	= $(BINARY)
617a1306a7Sxc151355LINT_TARGET	= $(MODULE).lint
627a1306a7Sxc151355INSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
637a1306a7Sxc151355
647a1306a7Sxc151355#
657a1306a7Sxc151355#	Driver depends on GLD & IP.
667a1306a7Sxc151355#
677a1306a7Sxc151355LDFLAGS		+= -dy -Nmisc/gld -Ndrv/ip
687a1306a7Sxc151355
697a1306a7Sxc151355#
70*bb25c06cSjg# For now, disable these lint checks; maintainers should endeavor
71*bb25c06cSjg# to investigate and remove these for maximum lint coverage.
72*bb25c06cSjg# Please do not carry these forward to new Makefiles.
73*bb25c06cSjg#
74*bb25c06cSjgLINTTAGS	+= -erroff=E_SUSPICIOUS_COMPARISON
75*bb25c06cSjgLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
76*bb25c06cSjgLINTTAGS	+= -erroff=E_PTRDIFF_OVERFLOW
77*bb25c06cSjgLINTTAGS	+= -erroff=E_ASSIGN_NARROW_CONV
78*bb25c06cSjg
79*bb25c06cSjg#
807a1306a7Sxc151355#	Default build targets.
817a1306a7Sxc151355#
827a1306a7Sxc151355.KEEP_STATE:
837a1306a7Sxc151355
847a1306a7Sxc151355def:		$(DEF_DEPS)
857a1306a7Sxc151355
867a1306a7Sxc151355all:		$(ALL_DEPS)
877a1306a7Sxc151355
887a1306a7Sxc151355clean:		$(CLEAN_DEPS)
897a1306a7Sxc151355
907a1306a7Sxc151355clobber:	$(CLOBBER_DEPS)
917a1306a7Sxc151355
927a1306a7Sxc151355lint:		$(LINT_DEPS)
937a1306a7Sxc151355
947a1306a7Sxc151355modlintlib:	$(MODLINTLIB_DEPS)
957a1306a7Sxc151355
967a1306a7Sxc151355clean.lint:	$(CLEAN_LINT_DEPS)
977a1306a7Sxc151355
987a1306a7Sxc151355install:	$(INSTALL_DEPS)
997a1306a7Sxc151355
1007a1306a7Sxc151355#
1017a1306a7Sxc151355#	Include common targets.
1027a1306a7Sxc151355#
1037a1306a7Sxc151355include $(UTSBASE)/intel/Makefile.targ
1047a1306a7Sxc151355
1057a1306a7Sxc151355#
1067a1306a7Sxc151355#	If you have any special case that general
1077a1306a7Sxc151355#	Makefile rules don't serve for you, just do
1087a1306a7Sxc151355#	it yourself.
1097a1306a7Sxc151355#
1107a1306a7Sxc151355ATHEROS_HAL=$(UTSBASE)/common/io/ath/hal_x86_$(CLASS).o.uu
1117a1306a7Sxc151355$(OBJS_DIR)/hal.o:     $(ATHEROS_HAL)
1127a1306a7Sxc151355	uudecode -o $@ $(ATHEROS_HAL)
113