18a3c961bSfei feng - Sun Microsystems - Beijing China# 28a3c961bSfei feng - Sun Microsystems - Beijing China# CDDL HEADER START 38a3c961bSfei feng - Sun Microsystems - Beijing China# 48a3c961bSfei feng - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the 58a3c961bSfei feng - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License"). 68a3c961bSfei feng - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License. 78a3c961bSfei feng - Sun Microsystems - Beijing China# 88a3c961bSfei feng - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 98a3c961bSfei feng - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing. 108a3c961bSfei feng - Sun Microsystems - Beijing China# See the License for the specific language governing permissions 118a3c961bSfei feng - Sun Microsystems - Beijing China# and limitations under the License. 128a3c961bSfei feng - Sun Microsystems - Beijing China# 138a3c961bSfei feng - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each 148a3c961bSfei feng - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 158a3c961bSfei feng - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the 168a3c961bSfei feng - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying 178a3c961bSfei feng - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner] 188a3c961bSfei feng - Sun Microsystems - Beijing China# 198a3c961bSfei feng - Sun Microsystems - Beijing China# CDDL HEADER END 208a3c961bSfei feng - Sun Microsystems - Beijing China# 218a3c961bSfei feng - Sun Microsystems - Beijing China# 228a3c961bSfei feng - Sun Microsystems - Beijing China# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 238a3c961bSfei feng - Sun Microsystems - Beijing China# Use is subject to license terms. 248a3c961bSfei feng - Sun Microsystems - Beijing China# 258a3c961bSfei feng - Sun Microsystems - Beijing China 268a3c961bSfei feng - Sun Microsystems - Beijing China# 278a3c961bSfei feng - Sun Microsystems - Beijing China# This makefile drives the production of the wpi driver kernel module. 288a3c961bSfei feng - Sun Microsystems - Beijing China# 298a3c961bSfei feng - Sun Microsystems - Beijing China# i86pc architecture dependent 308a3c961bSfei feng - Sun Microsystems - Beijing China# 318a3c961bSfei feng - Sun Microsystems - Beijing China 328a3c961bSfei feng - Sun Microsystems - Beijing China# 338a3c961bSfei feng - Sun Microsystems - Beijing China# Path to the base of the uts directory tree (usually /usr/src/uts). 348a3c961bSfei feng - Sun Microsystems - Beijing China# 358a3c961bSfei feng - Sun Microsystems - Beijing ChinaUTSBASE = ../.. 368a3c961bSfei feng - Sun Microsystems - Beijing China 378a3c961bSfei feng - Sun Microsystems - Beijing China# 388a3c961bSfei feng - Sun Microsystems - Beijing China# Define the module and object file sets. 398a3c961bSfei feng - Sun Microsystems - Beijing China# 408a3c961bSfei feng - Sun Microsystems - Beijing ChinaMODULE = rwn 418a3c961bSfei feng - Sun Microsystems - Beijing ChinaOBJECTS = $(RWN_OBJS:%=$(OBJS_DIR)/%) 428a3c961bSfei feng - Sun Microsystems - Beijing ChinaLINTS = $(RWN_OBJS:%.o=$(LINTS_DIR)/%.ln) 438a3c961bSfei feng - Sun Microsystems - Beijing ChinaROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 448a3c961bSfei feng - Sun Microsystems - Beijing China 458a3c961bSfei feng - Sun Microsystems - Beijing China# 468a3c961bSfei feng - Sun Microsystems - Beijing China# Include common rules. 478a3c961bSfei feng - Sun Microsystems - Beijing China# 488a3c961bSfei feng - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.intel 498a3c961bSfei feng - Sun Microsystems - Beijing China 508a3c961bSfei feng - Sun Microsystems - Beijing China# 518a3c961bSfei feng - Sun Microsystems - Beijing China# Define targets 528a3c961bSfei feng - Sun Microsystems - Beijing China# 538a3c961bSfei feng - Sun Microsystems - Beijing ChinaALL_TARGET = $(BINARY) 548a3c961bSfei feng - Sun Microsystems - Beijing ChinaLINT_TARGET = $(MODULE).lint 558a3c961bSfei feng - Sun Microsystems - Beijing ChinaINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 568a3c961bSfei feng - Sun Microsystems - Beijing China 578a3c961bSfei feng - Sun Microsystems - Beijing China# 588a3c961bSfei feng - Sun Microsystems - Beijing China# Driver depends on GLDv3 & wifi kernel support module. 598a3c961bSfei feng - Sun Microsystems - Beijing China# 608a3c961bSfei feng - Sun Microsystems - Beijing ChinaLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 618a3c961bSfei feng - Sun Microsystems - Beijing China 628a3c961bSfei feng - Sun Microsystems - Beijing China# 638a3c961bSfei feng - Sun Microsystems - Beijing China# Overrides 648a3c961bSfei feng - Sun Microsystems - Beijing China# 658a3c961bSfei feng - Sun Microsystems - Beijing ChinaLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 668a3c961bSfei feng - Sun Microsystems - Beijing China 67*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-label 68*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 69*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value 70*7014882cSRichard Lowe 718a3c961bSfei feng - Sun Microsystems - Beijing China# 728a3c961bSfei feng - Sun Microsystems - Beijing China# Default build targets. 738a3c961bSfei feng - Sun Microsystems - Beijing China# 748a3c961bSfei feng - Sun Microsystems - Beijing China.KEEP_STATE: 758a3c961bSfei feng - Sun Microsystems - Beijing China 768a3c961bSfei feng - Sun Microsystems - Beijing Chinadef: $(DEF_DEPS) 778a3c961bSfei feng - Sun Microsystems - Beijing China 788a3c961bSfei feng - Sun Microsystems - Beijing Chinaall: $(ALL_DEPS) 798a3c961bSfei feng - Sun Microsystems - Beijing China 808a3c961bSfei feng - Sun Microsystems - Beijing Chinaclean: $(CLEAN_DEPS) 818a3c961bSfei feng - Sun Microsystems - Beijing China 828a3c961bSfei feng - Sun Microsystems - Beijing Chinaclobber: $(CLOBBER_DEPS) 838a3c961bSfei feng - Sun Microsystems - Beijing China 848a3c961bSfei feng - Sun Microsystems - Beijing Chinalint: $(LINT_DEPS) 858a3c961bSfei feng - Sun Microsystems - Beijing China 868a3c961bSfei feng - Sun Microsystems - Beijing Chinamodlintlib: $(MODLINTLIB_DEPS) 878a3c961bSfei feng - Sun Microsystems - Beijing China 888a3c961bSfei feng - Sun Microsystems - Beijing Chinaclean.lint: $(CLEAN_LINT_DEPS) 898a3c961bSfei feng - Sun Microsystems - Beijing China 908a3c961bSfei feng - Sun Microsystems - Beijing Chinainstall: $(INSTALL_DEPS) 918a3c961bSfei feng - Sun Microsystems - Beijing China 928a3c961bSfei feng - Sun Microsystems - Beijing China# 938a3c961bSfei feng - Sun Microsystems - Beijing China# Include common targets. 948a3c961bSfei feng - Sun Microsystems - Beijing China# 958a3c961bSfei feng - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.targ 968a3c961bSfei feng - Sun Microsystems - Beijing China 978a3c961bSfei feng - Sun Microsystems - Beijing China# 988a3c961bSfei feng - Sun Microsystems - Beijing China# If you have any special case that general 998a3c961bSfei feng - Sun Microsystems - Beijing China# Makefile rules don't serve for you, just do 1008a3c961bSfei feng - Sun Microsystems - Beijing China# it yourself. 1018a3c961bSfei feng - Sun Microsystems - Beijing China# 102