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