10035018cSRaymond Chen# 20035018cSRaymond Chen# CDDL HEADER START 30035018cSRaymond Chen# 40035018cSRaymond Chen# The contents of this file are subject to the terms of the 50035018cSRaymond Chen# Common Development and Distribution License (the "License"). 60035018cSRaymond Chen# You may not use this file except in compliance with the License. 70035018cSRaymond Chen# 80035018cSRaymond Chen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90035018cSRaymond Chen# or http://www.opensolaris.org/os/licensing. 100035018cSRaymond Chen# See the License for the specific language governing permissions 110035018cSRaymond Chen# and limitations under the License. 120035018cSRaymond Chen# 130035018cSRaymond Chen# When distributing Covered Code, include this CDDL HEADER in each 140035018cSRaymond Chen# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150035018cSRaymond Chen# If applicable, add the following below this CDDL HEADER, with the 160035018cSRaymond Chen# fields enclosed by brackets "[]" replaced with your own identifying 170035018cSRaymond Chen# information: Portions Copyright [yyyy] [name of copyright owner] 180035018cSRaymond Chen# 190035018cSRaymond Chen# CDDL HEADER END 200035018cSRaymond Chen# 210035018cSRaymond Chen# 220035018cSRaymond Chen# uts/intel/usbecm/Makefile 230035018cSRaymond Chen# Copyright 2010 Sun Microsystems, Inc. All rights reserved. 240035018cSRaymond Chen# Use is subject to license terms. 250035018cSRaymond Chen# 26e2c88f0cSGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org> 270035018cSRaymond Chen# 28b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 29b6b206fcSJohn Levon 300035018cSRaymond Chen# 310035018cSRaymond Chen# Path to the base of the uts directory tree (usually /usr/src/uts). 320035018cSRaymond Chen# 330035018cSRaymond ChenUTSBASE = ../.. 340035018cSRaymond Chen 350035018cSRaymond Chen# 360035018cSRaymond Chen# Define the module and object file sets. 370035018cSRaymond Chen# 380035018cSRaymond ChenMODULE = usbecm 390035018cSRaymond ChenOBJECTS = $(USBECM_OBJS:%=$(OBJS_DIR)/%) 400035018cSRaymond ChenROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 410035018cSRaymond Chen 420035018cSRaymond Chen# 430035018cSRaymond Chen# Include common rules. 440035018cSRaymond Chen# 450035018cSRaymond Cheninclude $(UTSBASE)/intel/Makefile.intel 460035018cSRaymond Chen 47*82d0151aSRichard LoweLDFLAGS += -Nmisc/usba -Nmisc/mac 480035018cSRaymond Chen 490035018cSRaymond Chen# 500035018cSRaymond Chen# Define targets 510035018cSRaymond Chen# 520035018cSRaymond ChenALL_TARGET = $(BINARY) 530035018cSRaymond ChenINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 540035018cSRaymond Chen 55b6b206fcSJohn Levon# needs work 56b6b206fcSJohn LevonSMOFF += deref_check 57b6b206fcSJohn Levon 580035018cSRaymond Chen.KEEP_STATE: 590035018cSRaymond Chen 600035018cSRaymond Chenall: $(ALL_DEPS) 610035018cSRaymond Chen 620035018cSRaymond Chendef: $(DEF_DEPS) 630035018cSRaymond Chen 640035018cSRaymond Chenclean: $(CLEAN_DEPS) 650035018cSRaymond Chen 660035018cSRaymond Chenclobber: $(CLOBBER_DEPS) 670035018cSRaymond Chen 680035018cSRaymond Cheninstall: $(INSTALL_DEPS) 690035018cSRaymond Chen 700035018cSRaymond Chen# 710035018cSRaymond Chen# Include common targets. 720035018cSRaymond Chen# 730035018cSRaymond Cheninclude $(UTSBASE)/intel/Makefile.targ 74