xref: /illumos-gate/usr/src/uts/intel/audiots/Makefile (revision 82d0151a507442720a3aea34c8925041894ab173)
1b31d69afSGarrett D'Amore#
2b31d69afSGarrett D'Amore# CDDL HEADER START
3b31d69afSGarrett D'Amore#
4b31d69afSGarrett D'Amore# The contents of this file are subject to the terms of the
5b31d69afSGarrett D'Amore# Common Development and Distribution License (the "License").
6b31d69afSGarrett D'Amore# You may not use this file except in compliance with the License.
7b31d69afSGarrett D'Amore#
8b31d69afSGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9b31d69afSGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
10b31d69afSGarrett D'Amore# See the License for the specific language governing permissions
11b31d69afSGarrett D'Amore# and limitations under the License.
12b31d69afSGarrett D'Amore#
13b31d69afSGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
14b31d69afSGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15b31d69afSGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
16b31d69afSGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
17b31d69afSGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
18b31d69afSGarrett D'Amore#
19b31d69afSGarrett D'Amore# CDDL HEADER END
20b31d69afSGarrett D'Amore#
21b31d69afSGarrett D'Amore#
2268c47f65SGarrett D'Amore# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
23b31d69afSGarrett D'Amore# Use is subject to license terms.
24b31d69afSGarrett D'Amore#
25b31d69afSGarrett D'Amore# uts/intel/audiots/Makefile
26b31d69afSGarrett D'Amore#
27b31d69afSGarrett D'Amore#	This makefile drives the production of the T2 audio driver
28b31d69afSGarrett D'Amore#	(audiots) kernel module.
29b31d69afSGarrett D'Amore#
30b31d69afSGarrett D'Amore#
31b31d69afSGarrett D'Amore#	Path to the base of the uts directory tree (usually /usr/src/uts).
32b31d69afSGarrett D'Amore#
33b31d69afSGarrett D'AmoreUTSBASE = ../..
34b31d69afSGarrett D'Amore
35b31d69afSGarrett D'Amore#
36b31d69afSGarrett D'Amore#	Define the module and object file sets.
37b31d69afSGarrett D'Amore#
38b31d69afSGarrett D'AmoreMODULE		= audiots
39b31d69afSGarrett D'AmoreOBJECTS		= $(AUDIOTS_OBJS:%=$(OBJS_DIR)/%)
40b31d69afSGarrett D'AmoreROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
41b31d69afSGarrett D'Amore
42b31d69afSGarrett D'Amore#
43b31d69afSGarrett D'Amore#	Include common rules.
44b31d69afSGarrett D'Amore#
45b31d69afSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
46b31d69afSGarrett D'Amore
47b31d69afSGarrett D'Amore#
480aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
490aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
500aaef2f5SRichard Lowe# Please do not carry these forward to new Makefiles.
51b31d69afSGarrett D'Amore#
52b31d69afSGarrett D'AmoreCFLAGS		+= $(CCVERBOSE)
530aaef2f5SRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
54b31d69afSGarrett D'Amore
55b31d69afSGarrett D'Amore#
56b31d69afSGarrett D'Amore#	Depends on misc/ac97 and drv/audio
57b31d69afSGarrett D'Amore#
58*82d0151aSRichard LoweLDFLAGS		+= -N misc/ac97 -N drv/audio
59b31d69afSGarrett D'Amore
60b31d69afSGarrett D'Amore#
61b31d69afSGarrett D'Amore#	Define targets
62b31d69afSGarrett D'Amore#
6368c47f65SGarrett D'AmoreALL_TARGET	= $(BINARY)
6468c47f65SGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
65b31d69afSGarrett D'Amore
66b31d69afSGarrett D'Amore#
67b31d69afSGarrett D'Amore#	Default build targets.
68b31d69afSGarrett D'Amore#
69b31d69afSGarrett D'Amore.KEEP_STATE:
70b31d69afSGarrett D'Amore
71b31d69afSGarrett D'Amoredef:		$(DEF_DEPS)
72b31d69afSGarrett D'Amore
73b31d69afSGarrett D'Amoreall:		$(ALL_DEPS)
74b31d69afSGarrett D'Amore
75b31d69afSGarrett D'Amoreclean:		$(CLEAN_DEPS)
76b31d69afSGarrett D'Amore
77b31d69afSGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
78b31d69afSGarrett D'Amore
79b31d69afSGarrett D'Amoreinstall:	$(INSTALL_DEPS)
80b31d69afSGarrett D'Amore
81b31d69afSGarrett D'Amore#
82b31d69afSGarrett D'Amore#	Include common targets.
83b31d69afSGarrett D'Amore#
84b31d69afSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ
85