xref: /illumos-gate/usr/src/uts/intel/iwp/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
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 FangROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4322a84b8dSQuaker Fang
4422a84b8dSQuaker Fang#
4522a84b8dSQuaker Fang#	Include common rules.
4622a84b8dSQuaker Fang#
4722a84b8dSQuaker Fanginclude $(UTSBASE)/intel/Makefile.intel
4822a84b8dSQuaker Fang
4922a84b8dSQuaker Fang#
5022a84b8dSQuaker Fang#	Define targets
5122a84b8dSQuaker Fang#
5222a84b8dSQuaker FangALL_TARGET	= $(BINARY) $(CONFMOD) $(ITUMOD)
5322a84b8dSQuaker FangINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5422a84b8dSQuaker Fang
5522a84b8dSQuaker Fang#
5622a84b8dSQuaker Fang#	Overrides
5722a84b8dSQuaker Fang#
5822a84b8dSQuaker Fang
5922a84b8dSQuaker FangCPPFLAGS	+= -I. -D_KERNEL
6022a84b8dSQuaker Fang
61*82d0151aSRichard LoweLDFLAGS         += -Nmisc/mac -Nmisc/net80211 -Ndrv/random -Ndrv/ip
6222a84b8dSQuaker Fang
637014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-unused-label
64d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
657014882cSRichard Lowe
6622a84b8dSQuaker Fang#
6722a84b8dSQuaker Fang#	Default build targets.
6822a84b8dSQuaker Fang#
6922a84b8dSQuaker Fang.KEEP_STATE:
7022a84b8dSQuaker Fang
7122a84b8dSQuaker Fangdef:		$(DEF_DEPS)
7222a84b8dSQuaker Fang
7322a84b8dSQuaker Fangall:		$(ALL_DEPS)
7422a84b8dSQuaker Fang
7522a84b8dSQuaker Fangclean:		$(CLEAN_DEPS)
7622a84b8dSQuaker Fang
7722a84b8dSQuaker Fangclobber:	$(CLOBBER_DEPS)
7822a84b8dSQuaker Fang
7922a84b8dSQuaker Fanginstall:	$(INSTALL_DEPS)
8022a84b8dSQuaker Fang
8122a84b8dSQuaker Fang#
8222a84b8dSQuaker Fang#	Include common targets.
8322a84b8dSQuaker Fang#
8422a84b8dSQuaker Fanginclude $(UTSBASE)/intel/Makefile.targ
85