1f6929eceSGarrett D'Amore# 2f6929eceSGarrett D'Amore# CDDL HEADER START 3f6929eceSGarrett D'Amore# 4f6929eceSGarrett D'Amore# The contents of this file are subject to the terms of the 5f6929eceSGarrett D'Amore# Common Development and Distribution License (the "License"). 6f6929eceSGarrett D'Amore# You may not use this file except in compliance with the License. 7f6929eceSGarrett D'Amore# 8f6929eceSGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9f6929eceSGarrett D'Amore# or http://www.opensolaris.org/os/licensing. 10f6929eceSGarrett D'Amore# See the License for the specific language governing permissions 11f6929eceSGarrett D'Amore# and limitations under the License. 12f6929eceSGarrett D'Amore# 13f6929eceSGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each 14f6929eceSGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15f6929eceSGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the 16f6929eceSGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying 17f6929eceSGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner] 18f6929eceSGarrett D'Amore# 19f6929eceSGarrett D'Amore# CDDL HEADER END 20f6929eceSGarrett D'Amore# 21f6929eceSGarrett D'Amore# 22f6929eceSGarrett D'Amore# uts/intel/audiocmihd/Makefile 23f6929eceSGarrett D'Amore# 24f6929eceSGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 25f6929eceSGarrett D'Amore# Use is subject to license terms. 26f6929eceSGarrett D'Amore# 27f6929eceSGarrett D'Amore# Copyright 2011 Nexenta Systems, Inc. All rights reserved. 28f6929eceSGarrett D'Amore# 29f6929eceSGarrett D'Amore# This makefile drives the production of the audiocmihd driver. 30f6929eceSGarrett D'Amore# 31f6929eceSGarrett D'Amore 32f6929eceSGarrett D'Amore# 33f6929eceSGarrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts). 34f6929eceSGarrett D'Amore# 35f6929eceSGarrett D'AmoreUTSBASE = ../.. 36f6929eceSGarrett D'Amore 37f6929eceSGarrett D'Amore# 38f6929eceSGarrett D'Amore# Define the module and object file sets. 39f6929eceSGarrett D'Amore# 40f6929eceSGarrett D'AmoreMODULE = audiocmihd 41f6929eceSGarrett D'AmoreOBJECTS = $(AUDIOCMIHD_OBJS:%=$(OBJS_DIR)/%) 42f6929eceSGarrett D'AmoreROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE) 43f6929eceSGarrett D'Amore 44f6929eceSGarrett D'Amore# 45f6929eceSGarrett D'Amore# Include common rules. 46f6929eceSGarrett D'Amore# 47f6929eceSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel 48f6929eceSGarrett D'Amore 49f6929eceSGarrett D'Amore# 50f6929eceSGarrett D'Amore# Define targets 51f6929eceSGarrett D'Amore# 52f6929eceSGarrett D'AmoreALL_TARGET = $(BINARY) 53f6929eceSGarrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE) 54f6929eceSGarrett D'Amore 55*82d0151aSRichard LoweLDFLAGS += -Ndrv/audio -Nmisc/ac97 56f6929eceSGarrett D'Amore 577014882cSRichard LoweCERRWARN += -_gcc=-Wno-switch 58d3b5f563SJohn LevonCERRWARN += $(CNOWARN_UNINIT) 597014882cSRichard Lowe 60f6929eceSGarrett D'Amore# 61f6929eceSGarrett D'Amore# Default build targets. 62f6929eceSGarrett D'Amore# 63f6929eceSGarrett D'Amore.KEEP_STATE: 64f6929eceSGarrett D'Amore 65f6929eceSGarrett D'Amoredef: $(DEF_DEPS) 66f6929eceSGarrett D'Amore 67f6929eceSGarrett D'Amoreall: $(ALL_DEPS) 68f6929eceSGarrett D'Amore 69f6929eceSGarrett D'Amoreclean: $(CLEAN_DEPS) 70f6929eceSGarrett D'Amore 71f6929eceSGarrett D'Amoreclobber: $(CLOBBER_DEPS) 72f6929eceSGarrett D'Amore 73f6929eceSGarrett D'Amoreinstall: $(INSTALL_DEPS) 74f6929eceSGarrett D'Amore 75f6929eceSGarrett D'Amore# 76f6929eceSGarrett D'Amore# Include common targets. 77f6929eceSGarrett D'Amore# 78f6929eceSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ 79