xref: /titanic_41/usr/src/uts/intel/iwp/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
122a84b8dSQuaker Fang#
222a84b8dSQuaker Fang# CDDL HEADER START
322a84b8dSQuaker Fang#
422a84b8dSQuaker Fang# The contents of this file are subject to the terms of the
522a84b8dSQuaker Fang# Common Development and Distribution License (the "License").
622a84b8dSQuaker Fang# You may not use this file except in compliance with the License.
722a84b8dSQuaker Fang#
822a84b8dSQuaker Fang# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
922a84b8dSQuaker Fang# or http://www.opensolaris.org/os/licensing.
1022a84b8dSQuaker Fang# See the License for the specific language governing permissions
1122a84b8dSQuaker Fang# and limitations under the License.
1222a84b8dSQuaker Fang#
1322a84b8dSQuaker Fang# When distributing Covered Code, include this CDDL HEADER in each
1422a84b8dSQuaker Fang# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1522a84b8dSQuaker Fang# If applicable, add the following below this CDDL HEADER, with the
1622a84b8dSQuaker Fang# fields enclosed by brackets "[]" replaced with your own identifying
1722a84b8dSQuaker Fang# information: Portions Copyright [yyyy] [name of copyright owner]
1822a84b8dSQuaker Fang#
1922a84b8dSQuaker Fang# CDDL HEADER END
2022a84b8dSQuaker Fang#
2122a84b8dSQuaker Fang#
2222a84b8dSQuaker Fang# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2322a84b8dSQuaker Fang# Use is subject to license terms.
2422a84b8dSQuaker Fang#
2522a84b8dSQuaker Fang
2622a84b8dSQuaker Fang#
2722a84b8dSQuaker Fang# This makefile drives the production of the iwp driver kernel module.
2822a84b8dSQuaker Fang#
2922a84b8dSQuaker Fang# i86pc architecture dependent
3022a84b8dSQuaker Fang#
3122a84b8dSQuaker Fang
3222a84b8dSQuaker Fang#
3322a84b8dSQuaker Fang#	Path to the base of the uts directory tree (usually /usr/src/uts).
3422a84b8dSQuaker Fang#
3522a84b8dSQuaker FangUTSBASE	= ../..
3622a84b8dSQuaker Fang
3722a84b8dSQuaker Fang#
3822a84b8dSQuaker Fang#	Define the module and object file sets.
3922a84b8dSQuaker Fang#
4022a84b8dSQuaker FangMODULE		= iwp
4122a84b8dSQuaker FangOBJECTS		= $(IWP_OBJS:%=$(OBJS_DIR)/%)
4222a84b8dSQuaker FangLINTS		= $(IWP_OBJS:%.o=$(LINTS_DIR)/%.ln)
4322a84b8dSQuaker FangROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4422a84b8dSQuaker Fang
4522a84b8dSQuaker Fang#
4622a84b8dSQuaker Fang#	Include common rules.
4722a84b8dSQuaker Fang#
4822a84b8dSQuaker Fanginclude $(UTSBASE)/intel/Makefile.intel
4922a84b8dSQuaker Fang
5022a84b8dSQuaker Fang#
5122a84b8dSQuaker Fang#	Define targets
5222a84b8dSQuaker Fang#
5322a84b8dSQuaker FangALL_TARGET	= $(BINARY) $(CONFMOD) $(ITUMOD)
5422a84b8dSQuaker FangLINT_TARGET	= $(MODULE).lint
5522a84b8dSQuaker FangINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5622a84b8dSQuaker Fang
5722a84b8dSQuaker Fang#
5822a84b8dSQuaker Fang#	Overrides
5922a84b8dSQuaker Fang#
6022a84b8dSQuaker FangLINTTAGS	+= -erroff=E_BAD_PTR_CAST_ALIGN
6122a84b8dSQuaker Fang
6222a84b8dSQuaker FangCPPFLAGS	+= -I. -D_KERNEL
6322a84b8dSQuaker Fang
6422a84b8dSQuaker FangLDFLAGS         += -dy -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
6522a84b8dSQuaker Fang
66*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
67*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-uninitialized
68*7014882cSRichard Lowe
6922a84b8dSQuaker Fang#
7022a84b8dSQuaker Fang#	Default build targets.
7122a84b8dSQuaker Fang#
7222a84b8dSQuaker Fang.KEEP_STATE:
7322a84b8dSQuaker Fang
7422a84b8dSQuaker Fangdef:		$(DEF_DEPS)
7522a84b8dSQuaker Fang
7622a84b8dSQuaker Fangall:		$(ALL_DEPS)
7722a84b8dSQuaker Fang
7822a84b8dSQuaker Fangclean:		$(CLEAN_DEPS)
7922a84b8dSQuaker Fang
8022a84b8dSQuaker Fangclobber:	$(CLOBBER_DEPS)
8122a84b8dSQuaker Fang
8222a84b8dSQuaker Fanglint:		$(LINT_DEPS)
8322a84b8dSQuaker Fang
8422a84b8dSQuaker Fangmodlintlib:	$(MODLINTLIB_DEPS)
8522a84b8dSQuaker Fang
8622a84b8dSQuaker Fangclean.lint:	$(CLEAN_LINT_DEPS)
8722a84b8dSQuaker Fang
8822a84b8dSQuaker Fanginstall:	$(INSTALL_DEPS)
8922a84b8dSQuaker Fang
9022a84b8dSQuaker Fang#
9122a84b8dSQuaker Fang#	Include common targets.
9222a84b8dSQuaker Fang#
9322a84b8dSQuaker Fanginclude $(UTSBASE)/intel/Makefile.targ
94