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'AmoreLINTS		= $(AUDIOCMIHD_OBJS:%.o=$(LINTS_DIR)/%.ln)
43f6929eceSGarrett D'AmoreROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
44f6929eceSGarrett D'Amore
45f6929eceSGarrett D'Amore#
46f6929eceSGarrett D'Amore#	Include common rules.
47f6929eceSGarrett D'Amore#
48f6929eceSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
49f6929eceSGarrett D'Amore
50f6929eceSGarrett D'Amore#
51f6929eceSGarrett D'Amore#	Define targets
52f6929eceSGarrett D'Amore#
53f6929eceSGarrett D'AmoreALL_TARGET	= $(BINARY)
54f6929eceSGarrett D'AmoreLINT_TARGET	= $(MODULE).lint
55f6929eceSGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
56f6929eceSGarrett D'Amore
57f6929eceSGarrett D'AmoreLDFLAGS		+= -dy -Ndrv/audio -Nmisc/ac97
58f6929eceSGarrett D'Amore
597014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
60*d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
617014882cSRichard Lowe
62f6929eceSGarrett D'Amore#
63f6929eceSGarrett D'Amore#	Default build targets.
64f6929eceSGarrett D'Amore#
65f6929eceSGarrett D'Amore.KEEP_STATE:
66f6929eceSGarrett D'Amore
67f6929eceSGarrett D'Amoredef:		$(DEF_DEPS)
68f6929eceSGarrett D'Amore
69f6929eceSGarrett D'Amoreall:		$(ALL_DEPS)
70f6929eceSGarrett D'Amore
71f6929eceSGarrett D'Amoreclean:		$(CLEAN_DEPS)
72f6929eceSGarrett D'Amore
73f6929eceSGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
74f6929eceSGarrett D'Amore
75f6929eceSGarrett D'Amorelint:		$(LINT_DEPS)
76f6929eceSGarrett D'Amore
77f6929eceSGarrett D'Amoremodlintlib:	$(MODLINTLIB_DEPS)
78f6929eceSGarrett D'Amore
79f6929eceSGarrett D'Amoreclean.lint:	$(CLEAN_LINT_DEPS)
80f6929eceSGarrett D'Amore
81f6929eceSGarrett D'Amoreinstall:	$(INSTALL_DEPS)
82f6929eceSGarrett D'Amore
83f6929eceSGarrett D'Amore#
84f6929eceSGarrett D'Amore#	Include common targets.
85f6929eceSGarrett D'Amore#
86f6929eceSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ
87