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