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