1d8d81063Sfei feng - Sun Microsystems - Beijing China# 2d8d81063Sfei feng - Sun Microsystems - Beijing China# CDDL HEADER START 3d8d81063Sfei feng - Sun Microsystems - Beijing China# 4d8d81063Sfei feng - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the 5d8d81063Sfei feng - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License"). 6d8d81063Sfei feng - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License. 7d8d81063Sfei feng - Sun Microsystems - Beijing China# 8d8d81063Sfei feng - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d8d81063Sfei feng - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing. 10d8d81063Sfei feng - Sun Microsystems - Beijing China# See the License for the specific language governing permissions 11d8d81063Sfei feng - Sun Microsystems - Beijing China# and limitations under the License. 12d8d81063Sfei feng - Sun Microsystems - Beijing China# 13d8d81063Sfei feng - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each 14d8d81063Sfei feng - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d8d81063Sfei feng - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the 16d8d81063Sfei feng - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying 17d8d81063Sfei feng - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner] 18d8d81063Sfei feng - Sun Microsystems - Beijing China# 19d8d81063Sfei feng - Sun Microsystems - Beijing China# CDDL HEADER END 20d8d81063Sfei feng - Sun Microsystems - Beijing China# 21d8d81063Sfei feng - Sun Microsystems - Beijing China# 22d8d81063Sfei feng - Sun Microsystems - Beijing China# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 23d8d81063Sfei feng - Sun Microsystems - Beijing China# Use is subject to license terms. 24d8d81063Sfei feng - Sun Microsystems - Beijing China# 25d8d81063Sfei feng - Sun Microsystems - Beijing China 26d8d81063Sfei feng - Sun Microsystems - Beijing China# 27d8d81063Sfei feng - Sun Microsystems - Beijing China# This makefile drives the production of the rwd driver kernel module. 28d8d81063Sfei feng - Sun Microsystems - Beijing China# 29d8d81063Sfei feng - Sun Microsystems - Beijing China# i86pc architecture dependent 30d8d81063Sfei feng - Sun Microsystems - Beijing China# 31d8d81063Sfei feng - Sun Microsystems - Beijing China 32d8d81063Sfei feng - Sun Microsystems - Beijing China# 33d8d81063Sfei feng - Sun Microsystems - Beijing China# Path to the base of the uts directory tree (usually /usr/src/uts). 34d8d81063Sfei feng - Sun Microsystems - Beijing China# 35d8d81063Sfei feng - Sun Microsystems - Beijing ChinaUTSBASE = ../.. 36d8d81063Sfei feng - Sun Microsystems - Beijing China 37d8d81063Sfei feng - Sun Microsystems - Beijing China# 38d8d81063Sfei feng - Sun Microsystems - Beijing China# Define the module and object file sets. 39d8d81063Sfei feng - Sun Microsystems - Beijing China# 40d8d81063Sfei feng - Sun Microsystems - Beijing ChinaMODULE = mwl 41d8d81063Sfei feng - Sun Microsystems - Beijing ChinaOBJECTS = $(MWL_OBJS:%=$(OBJS_DIR)/%) 42d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLINTS = $(MWL_OBJS:%.o=$(LINTS_DIR)/%.ln) 43d8d81063Sfei feng - Sun Microsystems - Beijing ChinaROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 44d8d81063Sfei feng - Sun Microsystems - Beijing China 45d8d81063Sfei feng - Sun Microsystems - Beijing China# 46d8d81063Sfei feng - Sun Microsystems - Beijing China# Include common rules. 47d8d81063Sfei feng - Sun Microsystems - Beijing China# 48d8d81063Sfei feng - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.intel 49d8d81063Sfei feng - Sun Microsystems - Beijing China 50d8d81063Sfei feng - Sun Microsystems - Beijing China# 51d8d81063Sfei feng - Sun Microsystems - Beijing China# Define targets 52d8d81063Sfei feng - Sun Microsystems - Beijing China# 53d8d81063Sfei feng - Sun Microsystems - Beijing ChinaALL_TARGET = $(BINARY) 54d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLINT_TARGET = $(MODULE).lint 55d8d81063Sfei feng - Sun Microsystems - Beijing ChinaINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 56d8d81063Sfei feng - Sun Microsystems - Beijing China 57d8d81063Sfei feng - Sun Microsystems - Beijing China# 58d8d81063Sfei feng - Sun Microsystems - Beijing China# Driver depends on GLDv3 & wifi kernel support module. 59d8d81063Sfei feng - Sun Microsystems - Beijing China# 60d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 61d8d81063Sfei feng - Sun Microsystems - Beijing China 62d8d81063Sfei feng - Sun Microsystems - Beijing China# 63d8d81063Sfei feng - Sun Microsystems - Beijing China# Overrides 64d8d81063Sfei feng - Sun Microsystems - Beijing China# 65d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 66d8d81063Sfei feng - Sun Microsystems - Beijing China 67*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 68*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value 69*7014882cSRichard Lowe 70d8d81063Sfei feng - Sun Microsystems - Beijing China# 71d8d81063Sfei feng - Sun Microsystems - Beijing China# Default build targets. 72d8d81063Sfei feng - Sun Microsystems - Beijing China# 73d8d81063Sfei feng - Sun Microsystems - Beijing China.KEEP_STATE: 74d8d81063Sfei feng - Sun Microsystems - Beijing China 75d8d81063Sfei feng - Sun Microsystems - Beijing Chinadef: $(DEF_DEPS) 76d8d81063Sfei feng - Sun Microsystems - Beijing China 77d8d81063Sfei feng - Sun Microsystems - Beijing Chinaall: $(ALL_DEPS) 78d8d81063Sfei feng - Sun Microsystems - Beijing China 79d8d81063Sfei feng - Sun Microsystems - Beijing Chinaclean: $(CLEAN_DEPS) 80d8d81063Sfei feng - Sun Microsystems - Beijing China 81d8d81063Sfei feng - Sun Microsystems - Beijing Chinaclobber: $(CLOBBER_DEPS) 82d8d81063Sfei feng - Sun Microsystems - Beijing China 83d8d81063Sfei feng - Sun Microsystems - Beijing Chinalint: $(LINT_DEPS) 84d8d81063Sfei feng - Sun Microsystems - Beijing China 85d8d81063Sfei feng - Sun Microsystems - Beijing Chinamodlintlib: $(MODLINTLIB_DEPS) 86d8d81063Sfei feng - Sun Microsystems - Beijing China 87d8d81063Sfei feng - Sun Microsystems - Beijing Chinaclean.lint: $(CLEAN_LINT_DEPS) 88d8d81063Sfei feng - Sun Microsystems - Beijing China 89d8d81063Sfei feng - Sun Microsystems - Beijing Chinainstall: $(INSTALL_DEPS) 90d8d81063Sfei feng - Sun Microsystems - Beijing China 91d8d81063Sfei feng - Sun Microsystems - Beijing China# 92d8d81063Sfei feng - Sun Microsystems - Beijing China# Include common targets. 93d8d81063Sfei feng - Sun Microsystems - Beijing China# 94d8d81063Sfei feng - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.targ 95d8d81063Sfei feng - Sun Microsystems - Beijing China 96d8d81063Sfei feng - Sun Microsystems - Beijing China# 97d8d81063Sfei feng - Sun Microsystems - Beijing China# If you have any special case that general 98d8d81063Sfei feng - Sun Microsystems - Beijing China# Makefile rules don't serve for you, just do 99d8d81063Sfei feng - Sun Microsystems - Beijing China# it yourself. 100d8d81063Sfei feng - Sun Microsystems - Beijing China# 101