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# 25*b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 26d8d81063Sfei feng - Sun Microsystems - Beijing China 27d8d81063Sfei feng - Sun Microsystems - Beijing China# 28d8d81063Sfei feng - Sun Microsystems - Beijing China# This makefile drives the production of the rwd driver kernel module. 29d8d81063Sfei feng - Sun Microsystems - Beijing China# 30d8d81063Sfei feng - Sun Microsystems - Beijing China# i86pc architecture dependent 31d8d81063Sfei feng - Sun Microsystems - Beijing China# 32d8d81063Sfei feng - Sun Microsystems - Beijing China 33d8d81063Sfei feng - Sun Microsystems - Beijing China# 34d8d81063Sfei feng - Sun Microsystems - Beijing China# Path to the base of the uts directory tree (usually /usr/src/uts). 35d8d81063Sfei feng - Sun Microsystems - Beijing China# 36d8d81063Sfei feng - Sun Microsystems - Beijing ChinaUTSBASE = ../.. 37d8d81063Sfei feng - Sun Microsystems - Beijing China 38d8d81063Sfei feng - Sun Microsystems - Beijing China# 39d8d81063Sfei feng - Sun Microsystems - Beijing China# Define the module and object file sets. 40d8d81063Sfei feng - Sun Microsystems - Beijing China# 41d8d81063Sfei feng - Sun Microsystems - Beijing ChinaMODULE = mwl 42d8d81063Sfei feng - Sun Microsystems - Beijing ChinaOBJECTS = $(MWL_OBJS:%=$(OBJS_DIR)/%) 43d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLINTS = $(MWL_OBJS:%.o=$(LINTS_DIR)/%.ln) 44d8d81063Sfei feng - Sun Microsystems - Beijing ChinaROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 45d8d81063Sfei feng - Sun Microsystems - Beijing China 46d8d81063Sfei feng - Sun Microsystems - Beijing China# 47d8d81063Sfei feng - Sun Microsystems - Beijing China# Include common rules. 48d8d81063Sfei feng - Sun Microsystems - Beijing China# 49d8d81063Sfei feng - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.intel 50d8d81063Sfei feng - Sun Microsystems - Beijing China 51d8d81063Sfei feng - Sun Microsystems - Beijing China# 52d8d81063Sfei feng - Sun Microsystems - Beijing China# Define targets 53d8d81063Sfei feng - Sun Microsystems - Beijing China# 54d8d81063Sfei feng - Sun Microsystems - Beijing ChinaALL_TARGET = $(BINARY) 55d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLINT_TARGET = $(MODULE).lint 56d8d81063Sfei feng - Sun Microsystems - Beijing ChinaINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 57d8d81063Sfei feng - Sun Microsystems - Beijing China 58d8d81063Sfei feng - Sun Microsystems - Beijing China# 59d8d81063Sfei feng - Sun Microsystems - Beijing China# Driver depends on GLDv3 & wifi kernel support module. 60d8d81063Sfei feng - Sun Microsystems - Beijing China# 61d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLDFLAGS += -dy -Nmisc/mac -Nmisc/net80211 62d8d81063Sfei feng - Sun Microsystems - Beijing China 63d8d81063Sfei feng - Sun Microsystems - Beijing China# 64d8d81063Sfei feng - Sun Microsystems - Beijing China# Overrides 65d8d81063Sfei feng - Sun Microsystems - Beijing China# 66d8d81063Sfei feng - Sun Microsystems - Beijing ChinaLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 67d8d81063Sfei feng - Sun Microsystems - Beijing China 687014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 697014882cSRichard LoweCERRWARN += -_gcc=-Wno-unused-value 707014882cSRichard Lowe 71*b6b206fcSJohn Levon# needs work 72*b6b206fcSJohn LevonSMOFF += return_cast 73*b6b206fcSJohn Levon 74d8d81063Sfei feng - Sun Microsystems - Beijing China# 75d8d81063Sfei feng - Sun Microsystems - Beijing China# Default build targets. 76d8d81063Sfei feng - Sun Microsystems - Beijing China# 77d8d81063Sfei feng - Sun Microsystems - Beijing China.KEEP_STATE: 78d8d81063Sfei feng - Sun Microsystems - Beijing China 79d8d81063Sfei feng - Sun Microsystems - Beijing Chinadef: $(DEF_DEPS) 80d8d81063Sfei feng - Sun Microsystems - Beijing China 81d8d81063Sfei feng - Sun Microsystems - Beijing Chinaall: $(ALL_DEPS) 82d8d81063Sfei feng - Sun Microsystems - Beijing China 83d8d81063Sfei feng - Sun Microsystems - Beijing Chinaclean: $(CLEAN_DEPS) 84d8d81063Sfei feng - Sun Microsystems - Beijing China 85d8d81063Sfei feng - Sun Microsystems - Beijing Chinaclobber: $(CLOBBER_DEPS) 86d8d81063Sfei feng - Sun Microsystems - Beijing China 87d8d81063Sfei feng - Sun Microsystems - Beijing Chinalint: $(LINT_DEPS) 88d8d81063Sfei feng - Sun Microsystems - Beijing China 89d8d81063Sfei feng - Sun Microsystems - Beijing Chinamodlintlib: $(MODLINTLIB_DEPS) 90d8d81063Sfei feng - Sun Microsystems - Beijing China 91d8d81063Sfei feng - Sun Microsystems - Beijing Chinaclean.lint: $(CLEAN_LINT_DEPS) 92d8d81063Sfei feng - Sun Microsystems - Beijing China 93d8d81063Sfei feng - Sun Microsystems - Beijing Chinainstall: $(INSTALL_DEPS) 94d8d81063Sfei feng - Sun Microsystems - Beijing China 95d8d81063Sfei feng - Sun Microsystems - Beijing China# 96d8d81063Sfei feng - Sun Microsystems - Beijing China# Include common targets. 97d8d81063Sfei feng - Sun Microsystems - Beijing China# 98d8d81063Sfei feng - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.targ 99d8d81063Sfei feng - Sun Microsystems - Beijing China 100d8d81063Sfei feng - Sun Microsystems - Beijing China# 101d8d81063Sfei feng - Sun Microsystems - Beijing China# If you have any special case that general 102d8d81063Sfei feng - Sun Microsystems - Beijing China# Makefile rules don't serve for you, just do 103d8d81063Sfei feng - Sun Microsystems - Beijing China# it yourself. 104d8d81063Sfei feng - Sun Microsystems - Beijing China# 105