1692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 2692d834dSPengcheng Chen - Sun Microsystems - Beijing China# CDDL HEADER START 3692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 4692d834dSPengcheng Chen - Sun Microsystems - Beijing China# The contents of this file are subject to the terms of the 5692d834dSPengcheng Chen - Sun Microsystems - Beijing China# Common Development and Distribution License (the "License"). 6692d834dSPengcheng Chen - Sun Microsystems - Beijing China# You may not use this file except in compliance with the License. 7692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 8692d834dSPengcheng Chen - Sun Microsystems - Beijing China# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9692d834dSPengcheng Chen - Sun Microsystems - Beijing China# or http://www.opensolaris.org/os/licensing. 10692d834dSPengcheng Chen - Sun Microsystems - Beijing China# See the License for the specific language governing permissions 11692d834dSPengcheng Chen - Sun Microsystems - Beijing China# and limitations under the License. 12692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 13692d834dSPengcheng Chen - Sun Microsystems - Beijing China# When distributing Covered Code, include this CDDL HEADER in each 14692d834dSPengcheng Chen - Sun Microsystems - Beijing China# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15692d834dSPengcheng Chen - Sun Microsystems - Beijing China# If applicable, add the following below this CDDL HEADER, with the 16692d834dSPengcheng Chen - Sun Microsystems - Beijing China# fields enclosed by brackets "[]" replaced with your own identifying 17692d834dSPengcheng Chen - Sun Microsystems - Beijing China# information: Portions Copyright [yyyy] [name of copyright owner] 18692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 19692d834dSPengcheng Chen - Sun Microsystems - Beijing China# CDDL HEADER END 20692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 21692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 22692d834dSPengcheng Chen - Sun Microsystems - Beijing China# uts/intel/usbwcm/Makefile 23692d834dSPengcheng Chen - Sun Microsystems - Beijing China# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 24692d834dSPengcheng Chen - Sun Microsystems - Beijing China# Use is subject to license terms. 25692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 26692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 27692d834dSPengcheng Chen - Sun Microsystems - Beijing China# This makefile drives the production of the usbwcm kernel module. 28692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 29692d834dSPengcheng Chen - Sun Microsystems - Beijing China 30692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 31692d834dSPengcheng Chen - Sun Microsystems - Beijing China# Path to the base of the uts directory tree (usually /usr/src/uts). 32692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 33692d834dSPengcheng Chen - Sun Microsystems - Beijing ChinaUTSBASE = ../.. 34692d834dSPengcheng Chen - Sun Microsystems - Beijing China 35692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 36692d834dSPengcheng Chen - Sun Microsystems - Beijing China# Define the module and object file sets. 37692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 38692d834dSPengcheng Chen - Sun Microsystems - Beijing ChinaMODULE = usbwcm 39692d834dSPengcheng Chen - Sun Microsystems - Beijing ChinaOBJECTS = $(USBWCM_OBJS:%=$(OBJS_DIR)/%) 40692d834dSPengcheng Chen - Sun Microsystems - Beijing ChinaLINTS = $(USBWCM_OBJS:%.o=$(LINTS_DIR)/%.ln) 41692d834dSPengcheng Chen - Sun Microsystems - Beijing ChinaROOTMODULE = $(ROOT_STRMOD_DIR)/$(MODULE) 42692d834dSPengcheng Chen - Sun Microsystems - Beijing China 43692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 44692d834dSPengcheng Chen - Sun Microsystems - Beijing China# Include common rules. 45692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 46692d834dSPengcheng Chen - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.intel 47692d834dSPengcheng Chen - Sun Microsystems - Beijing China 48692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 49692d834dSPengcheng Chen - Sun Microsystems - Beijing China# Define targets 50692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 51692d834dSPengcheng Chen - Sun Microsystems - Beijing ChinaALL_TARGET = $(BINARY) 52692d834dSPengcheng Chen - Sun Microsystems - Beijing ChinaLINT_TARGET = $(MODULE).lint 53692d834dSPengcheng Chen - Sun Microsystems - Beijing ChinaINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 54692d834dSPengcheng Chen - Sun Microsystems - Beijing China 55692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 56692d834dSPengcheng Chen - Sun Microsystems - Beijing China# Override defaults to build a unique, local modstubs.o. 57692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 58692d834dSPengcheng Chen - Sun Microsystems - Beijing ChinaMODSTUBS_DIR = $(OBJS_DIR) 59692d834dSPengcheng Chen - Sun Microsystems - Beijing ChinaCLEANFILES += $(MODSTUBS_O) 60692d834dSPengcheng Chen - Sun Microsystems - Beijing China 61692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 62692d834dSPengcheng Chen - Sun Microsystems - Beijing China# depends on misc/usba 63692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 64692d834dSPengcheng Chen - Sun Microsystems - Beijing ChinaLDFLAGS += -dy -Nmisc/usba 65692d834dSPengcheng Chen - Sun Microsystems - Beijing China 66692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 67692d834dSPengcheng Chen - Sun Microsystems - Beijing China# For now, disable these lint checks; maintainers should endeavor 68692d834dSPengcheng Chen - Sun Microsystems - Beijing China# to investigate and remove these for maximum lint coverage. 69692d834dSPengcheng Chen - Sun Microsystems - Beijing China# Please do not carry these forward to new Makefiles. 70692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 71692d834dSPengcheng Chen - Sun Microsystems - Beijing ChinaLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN 72692d834dSPengcheng Chen - Sun Microsystems - Beijing China 73*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-parentheses 74*7014882cSRichard LoweCERRWARN += -_gcc=-Wno-uninitialized 75*7014882cSRichard Lowe 76692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 77692d834dSPengcheng Chen - Sun Microsystems - Beijing China# Default build targets. 78692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 79692d834dSPengcheng Chen - Sun Microsystems - Beijing China.KEEP_STATE: 80692d834dSPengcheng Chen - Sun Microsystems - Beijing China 81692d834dSPengcheng Chen - Sun Microsystems - Beijing Chinadef: $(DEF_DEPS) 82692d834dSPengcheng Chen - Sun Microsystems - Beijing China 83692d834dSPengcheng Chen - Sun Microsystems - Beijing Chinaall: $(ALL_DEPS) 84692d834dSPengcheng Chen - Sun Microsystems - Beijing China 85692d834dSPengcheng Chen - Sun Microsystems - Beijing Chinaclean: $(CLEAN_DEPS) 86692d834dSPengcheng Chen - Sun Microsystems - Beijing China 87692d834dSPengcheng Chen - Sun Microsystems - Beijing Chinaclobber: $(CLOBBER_DEPS) 88692d834dSPengcheng Chen - Sun Microsystems - Beijing China 89692d834dSPengcheng Chen - Sun Microsystems - Beijing Chinalint: $(LINT_DEPS) 90692d834dSPengcheng Chen - Sun Microsystems - Beijing China 91692d834dSPengcheng Chen - Sun Microsystems - Beijing Chinamodlintlib: $(MODLINTLIB_DEPS) 92692d834dSPengcheng Chen - Sun Microsystems - Beijing China 93692d834dSPengcheng Chen - Sun Microsystems - Beijing Chinaclean.lint: $(CLEAN_LINT_DEPS) 94692d834dSPengcheng Chen - Sun Microsystems - Beijing China 95692d834dSPengcheng Chen - Sun Microsystems - Beijing Chinainstall: $(INSTALL_DEPS) 96692d834dSPengcheng Chen - Sun Microsystems - Beijing China 97692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 98692d834dSPengcheng Chen - Sun Microsystems - Beijing China# Include common targets. 99692d834dSPengcheng Chen - Sun Microsystems - Beijing China# 100692d834dSPengcheng Chen - Sun Microsystems - Beijing Chinainclude $(UTSBASE)/intel/Makefile.targ 101692d834dSPengcheng Chen - Sun Microsystems - Beijing China 102