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