1c77a61a7Syz147069# 2c77a61a7Syz147069# CDDL HEADER START 3c77a61a7Syz147069# 4c77a61a7Syz147069# The contents of this file are subject to the terms of the 5c77a61a7Syz147069# Common Development and Distribution License (the "License"). 6c77a61a7Syz147069# You may not use this file except in compliance with the License. 7c77a61a7Syz147069# 8c77a61a7Syz147069# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9c77a61a7Syz147069# or http://www.opensolaris.org/os/licensing. 10c77a61a7Syz147069# See the License for the specific language governing permissions 11c77a61a7Syz147069# and limitations under the License. 12c77a61a7Syz147069# 13c77a61a7Syz147069# When distributing Covered Code, include this CDDL HEADER in each 14c77a61a7Syz147069# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15c77a61a7Syz147069# If applicable, add the following below this CDDL HEADER, with the 16c77a61a7Syz147069# fields enclosed by brackets "[]" replaced with your own identifying 17c77a61a7Syz147069# information: Portions Copyright [yyyy] [name of copyright owner] 18c77a61a7Syz147069# 19c77a61a7Syz147069# CDDL HEADER END 20c77a61a7Syz147069# 21c77a61a7Syz147069 22c77a61a7Syz147069# 23489b7c4aSRaymond Chen# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 24c77a61a7Syz147069# Use is subject to license terms. 25c77a61a7Syz147069# 26e2c88f0cSGarrett D'Amore# Copyright 2014 Garrett D'Amore <garrett@damore.org> 27e2c88f0cSGarrett D'Amore# 28b6b206fcSJohn Levon# Copyright (c) 2018, Joyent, Inc. 29c77a61a7Syz147069 30c77a61a7Syz147069# 31c77a61a7Syz147069# This makefile drives the production of the usbvc driver kernel module. 32c77a61a7Syz147069# 33c77a61a7Syz147069 34c77a61a7Syz147069# 35c77a61a7Syz147069# Path to the base of the uts directory tree (usually /usr/src/uts). 36c77a61a7Syz147069# 37c77a61a7Syz147069UTSBASE = ../.. 38c77a61a7Syz147069 39c77a61a7Syz147069# 40c77a61a7Syz147069# Define the module and object file sets. 41c77a61a7Syz147069# 42c77a61a7Syz147069MODULE = usbvc 43c77a61a7Syz147069OBJECTS = $(USBVC_OBJS:%=$(OBJS_DIR)/%) 44c77a61a7Syz147069ROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 45c77a61a7Syz147069 46c77a61a7Syz147069# 47c77a61a7Syz147069# Include common rules. 48c77a61a7Syz147069# 49c77a61a7Syz147069include $(UTSBASE)/intel/Makefile.intel 50c77a61a7Syz147069 51c77a61a7Syz147069# 52c77a61a7Syz147069# Define targets 53c77a61a7Syz147069# 54c77a61a7Syz147069ALL_TARGET = $(BINARY) 55c77a61a7Syz147069INSTALL_TARGET = $(BINARY) $(ROOTMODULE) 56c77a61a7Syz147069 57c77a61a7Syz147069# 58c77a61a7Syz147069# depends on misc/usba 59c77a61a7Syz147069# 60*82d0151aSRichard LoweLDFLAGS += -Nmisc/usba 61c77a61a7Syz147069 62c77a61a7Syz147069# 63c77a61a7Syz147069# Disable this because it is necessary for this driver 64c77a61a7Syz147069# and it is surely safe 65c77a61a7Syz147069# 66c77a61a7Syz147069 67d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 687014882cSRichard Lowe 69b6b206fcSJohn Levon# needs work 70b6b206fcSJohn LevonSMOFF += deref_check 71b6b206fcSJohn Levon 72c77a61a7Syz147069# 73c77a61a7Syz147069# Default build targets. 74c77a61a7Syz147069# 75c77a61a7Syz147069.KEEP_STATE: 76c77a61a7Syz147069 77c77a61a7Syz147069def: $(DEF_DEPS) 78c77a61a7Syz147069 79c77a61a7Syz147069all: $(ALL_DEPS) 80c77a61a7Syz147069 81c77a61a7Syz147069clean: $(CLEAN_DEPS) 82c77a61a7Syz147069 83c77a61a7Syz147069clobber: $(CLOBBER_DEPS) 84c77a61a7Syz147069 85c77a61a7Syz147069install: $(INSTALL_DEPS) 86c77a61a7Syz147069 87c77a61a7Syz147069# 88c77a61a7Syz147069# Include common targets. 89c77a61a7Syz147069# 90c77a61a7Syz147069include $(UTSBASE)/intel/Makefile.targ 91