xref: /titanic_44/usr/src/uts/intel/urtw/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
126594249SQin Michael Li#
226594249SQin Michael Li# CDDL HEADER START
326594249SQin Michael Li#
426594249SQin Michael Li# The contents of this file are subject to the terms of the
526594249SQin Michael Li# Common Development and Distribution License (the "License").
626594249SQin Michael Li# You may not use this file except in compliance with the License.
726594249SQin Michael Li#
826594249SQin Michael Li# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
926594249SQin Michael Li# or http://www.opensolaris.org/os/licensing.
1026594249SQin Michael Li# See the License for the specific language governing permissions
1126594249SQin Michael Li# and limitations under the License.
1226594249SQin Michael Li#
1326594249SQin Michael Li# When distributing Covered Code, include this CDDL HEADER in each
1426594249SQin Michael Li# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1526594249SQin Michael Li# If applicable, add the following below this CDDL HEADER, with the
1626594249SQin Michael Li# fields enclosed by brackets "[]" replaced with your own identifying
1726594249SQin Michael Li# information: Portions Copyright [yyyy] [name of copyright owner]
1826594249SQin Michael Li#
1926594249SQin Michael Li# CDDL HEADER END
2026594249SQin Michael Li#
2126594249SQin Michael Li#
2226594249SQin Michael Li# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2326594249SQin Michael Li# Use is subject to license terms.
2426594249SQin Michael Li#
2526594249SQin Michael Li
2626594249SQin Michael Li#
2726594249SQin Michael Li# This makefile drives the production of the urtw driver kernel module.
2826594249SQin Michael Li#
2926594249SQin Michael Li# i86pc architecture dependent
3026594249SQin Michael Li#
3126594249SQin Michael Li
3226594249SQin Michael Li#
3326594249SQin Michael Li#	Path to the base of the uts directory tree (usually /usr/src/uts).
3426594249SQin Michael Li#
3526594249SQin Michael LiUTSBASE	= ../..
3626594249SQin Michael Li
3726594249SQin Michael Li#
3826594249SQin Michael Li#	Define the module and object file sets.
3926594249SQin Michael Li#
4026594249SQin Michael LiMODULE		= urtw
4126594249SQin Michael LiOBJECTS		= $(URTW_OBJS:%=$(OBJS_DIR)/%)
4226594249SQin Michael LiLINTS           = $(URTW_OBJS:%.o=$(LINTS_DIR)/%.ln)
4326594249SQin Michael LiROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4426594249SQin Michael Li
4526594249SQin Michael Li#
4626594249SQin Michael Li#	Include common rules.
4726594249SQin Michael Li#
4826594249SQin Michael Liinclude $(UTSBASE)/intel/Makefile.intel
4926594249SQin Michael Li
5026594249SQin Michael Li#
5126594249SQin Michael Li#	Define targets
5226594249SQin Michael Li#
5326594249SQin Michael LiALL_TARGET	= $(BINARY)
5426594249SQin Michael LiLINT_TARGET	= $(MODULE).lint
5526594249SQin Michael LiINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5626594249SQin Michael Li
5726594249SQin Michael Li#
5826594249SQin Michael Li#	Driver depends on GLDv3 & wifi kernel support module.
5926594249SQin Michael Li#
6026594249SQin Michael LiLDFLAGS		+= -dy -Nmisc/mac -Nmisc/net80211 -Nmisc/usba
6126594249SQin Michael Li
62*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
63*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
64*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-char-subscripts
65*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
66*7014882cSRichard Lowe
6726594249SQin Michael Li#
6826594249SQin Michael Li#	Default build targets.
6926594249SQin Michael Li#
7026594249SQin Michael Li.KEEP_STATE:
7126594249SQin Michael Li
7226594249SQin Michael Lidef:		$(DEF_DEPS)
7326594249SQin Michael Li
7426594249SQin Michael Liall:		$(ALL_DEPS)
7526594249SQin Michael Li
7626594249SQin Michael Liclean:		$(CLEAN_DEPS)
7726594249SQin Michael Li
7826594249SQin Michael Liclobber:	$(CLOBBER_DEPS)
7926594249SQin Michael Li
8026594249SQin Michael Lilint:		$(LINT_DEPS)
8126594249SQin Michael Li
8226594249SQin Michael Limodlintlib:	$(MODLINTLIB_DEPS)
8326594249SQin Michael Li
8426594249SQin Michael Liclean.lint:	$(CLEAN_LINT_DEPS)
8526594249SQin Michael Li
8626594249SQin Michael Liinstall:	$(INSTALL_DEPS)
8726594249SQin Michael Li
8826594249SQin Michael Li#
8926594249SQin Michael Li#	Include common targets.
9026594249SQin Michael Li#
9126594249SQin Michael Liinclude $(UTSBASE)/intel/Makefile.targ
9226594249SQin Michael Li
9326594249SQin Michael Li#
9426594249SQin Michael Li#	If you have any special case that general
9526594249SQin Michael Li#	Makefile rules don't serve for you, just do
9626594249SQin Michael Li#	it yourself.
9726594249SQin Michael Li#
98