190f05028Syq193411# 290f05028Syq193411# CDDL HEADER START 390f05028Syq193411# 490f05028Syq193411# The contents of this file are subject to the terms of the 590f05028Syq193411# Common Development and Distribution License (the "License"). 690f05028Syq193411# You may not use this file except in compliance with the License. 790f05028Syq193411# 890f05028Syq193411# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 990f05028Syq193411# or http://www.opensolaris.org/os/licensing. 1090f05028Syq193411# See the License for the specific language governing permissions 1190f05028Syq193411# and limitations under the License. 1290f05028Syq193411# 1390f05028Syq193411# When distributing Covered Code, include this CDDL HEADER in each 1490f05028Syq193411# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1590f05028Syq193411# If applicable, add the following below this CDDL HEADER, with the 1690f05028Syq193411# fields enclosed by brackets "[]" replaced with your own identifying 1790f05028Syq193411# information: Portions Copyright [yyyy] [name of copyright owner] 1890f05028Syq193411# 1990f05028Syq193411# CDDL HEADER END 2090f05028Syq193411# 2190f05028Syq193411# 2290f05028Syq193411# uts/intel/usbsacm/Makefile 23d29f5a71Szhigang lu - Sun Microsystems - Beijing China# Copyright 2008 Sun Microsystems, Inc. All rights reserved. 2490f05028Syq193411# Use is subject to license terms. 2590f05028Syq193411# 26b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 27b6b206fcSJohn Levon 2890f05028Syq193411# 2990f05028Syq193411# Path to the base of the uts directory tree (usually /usr/src/uts). 3090f05028Syq193411# 3190f05028Syq193411UTSBASE = ../.. 3290f05028Syq193411 3390f05028Syq193411# 3490f05028Syq193411# Define the module and object file sets. 3590f05028Syq193411# 3690f05028Syq193411MODULE = usbsacm 3790f05028Syq193411OBJECTS = $(USBSACM_OBJS:%=$(OBJS_DIR)/%) 3890f05028Syq193411LINTS = $(USBSACM_OBJS:%.o=$(LINTS_DIR)/%.ln) 3990f05028Syq193411ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 4090f05028Syq193411 4190f05028Syq193411# 4290f05028Syq193411# Include common rules. 4390f05028Syq193411# 4490f05028Syq193411include $(UTSBASE)/intel/Makefile.intel 4590f05028Syq193411 4690f05028Syq193411LDFLAGS += -dy -Nmisc/usba -Nmisc/usbser 4790f05028Syq193411 48*d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 497014882cSRichard Lowe 50b6b206fcSJohn Levon# needs work 51b6b206fcSJohn LevonSMOFF += deref_check 52b6b206fcSJohn Levon 5390f05028Syq193411# 5490f05028Syq193411# Define targets 5590f05028Syq193411# 5690f05028Syq193411ALL_TARGET = $(BINARY) 5790f05028Syq193411LINT_TARGET = $(MODULE).lint 5890f05028Syq193411INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 5990f05028Syq193411 6090f05028Syq193411.KEEP_STATE: 6190f05028Syq193411 6290f05028Syq193411all: $(ALL_DEPS) 6390f05028Syq193411 6490f05028Syq193411def: $(DEF_DEPS) 6590f05028Syq193411 6690f05028Syq193411clean: $(CLEAN_DEPS) 6790f05028Syq193411 6890f05028Syq193411clobber: $(CLOBBER_DEPS) 6990f05028Syq193411 7090f05028Syq193411lint: $(LINT_DEPS) 7190f05028Syq193411 7290f05028Syq193411modlintlib: $(MODLINTLIB_DEPS) 7390f05028Syq193411 7490f05028Syq193411clean.lint: $(CLEAN_LINT_DEPS) 7590f05028Syq193411 7690f05028Syq193411install: $(INSTALL_DEPS) 7790f05028Syq193411 7890f05028Syq193411# 7990f05028Syq193411# Include common targets. 8090f05028Syq193411# 8190f05028Syq193411include $(UTSBASE)/intel/Makefile.targ 82