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