xref: /illumos-gate/usr/src/uts/intel/audiohd/Makefile (revision 82d0151a)
1582eadeeSfl#
2582eadeeSfl# CDDL HEADER START
3582eadeeSfl#
4582eadeeSfl# The contents of this file are subject to the terms of the
5582eadeeSfl# Common Development and Distribution License (the "License").
6582eadeeSfl# You may not use this file except in compliance with the License.
7582eadeeSfl#
8582eadeeSfl# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9582eadeeSfl# or http://www.opensolaris.org/os/licensing.
10582eadeeSfl# See the License for the specific language governing permissions
11582eadeeSfl# and limitations under the License.
12582eadeeSfl#
13582eadeeSfl# When distributing Covered Code, include this CDDL HEADER in each
14582eadeeSfl# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15582eadeeSfl# If applicable, add the following below this CDDL HEADER, with the
16582eadeeSfl# fields enclosed by brackets "[]" replaced with your own identifying
17582eadeeSfl# information: Portions Copyright [yyyy] [name of copyright owner]
18582eadeeSfl#
19582eadeeSfl# CDDL HEADER END
20582eadeeSfl#
21582eadeeSfl#
22ea463888SZhao Edgar Liu - Sun Microsystems# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
23582eadeeSfl#
24ae115bc7Smrj# uts/intel/audiohd/Makefile
25582eadeeSfl#
26582eadeeSfl#	This makefile drives the production of high definition audio
27582eadeeSfl#	driver (audiohd) kernel module.
28582eadeeSfl#
29582eadeeSfl#
30582eadeeSfl#	Path to the base of the uts directory tree (usually /usr/src/uts).
31582eadeeSfl#
32582eadeeSflUTSBASE = ../..
33582eadeeSfl
34582eadeeSfl#
35582eadeeSfl#	Define the module and object file sets.
36582eadeeSfl#
37582eadeeSflMODULE		= audiohd
38582eadeeSflOBJECTS		= $(AUDIOHD_OBJS:%=$(OBJS_DIR)/%)
39582eadeeSflROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4088447a05SGarrett D'AmoreCONF_SRCDIR	= $(UTSBASE)/common/io/audio/drv/audiohd
41582eadeeSfl
42582eadeeSfl#
43582eadeeSfl#	Include common rules.
44582eadeeSfl#
45ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.intel
46582eadeeSfl
475c25b6f1SYuri Pankov#
480aaef2f5SRichard Lowe# For now, disable these warnings; maintainers should endeavor
490aaef2f5SRichard Lowe# to investigate and remove these for maximum coverage.
50bb25c06cSjg# Please do not carry these forward to new Makefiles.
51bb25c06cSjg#
520aaef2f5SRichard LoweCFLAGS		+= $(CCVERBOSE)
537014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-parentheses
547014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
55d3b5f563SJohn LevonCERRWARN	+= $(CNOWARN_UNINIT)
567014882cSRichard Lowe
57*82d0151aSRichard LoweLDFLAGS		+= -Ndrv/audio
58582eadeeSfl
59582eadeeSfl#
60582eadeeSfl#	Define targets
61582eadeeSfl#
62582eadeeSflALL_TARGET	= $(BINARY) $(SRC_CONFILE)
63582eadeeSflINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
64582eadeeSfl
65582eadeeSfl#
66582eadeeSfl#	Default build targets.
67582eadeeSfl#
68582eadeeSfl.KEEP_STATE:
69582eadeeSfl
70582eadeeSfldef:		$(DEF_DEPS)
71582eadeeSfl
72582eadeeSflall:		$(ALL_DEPS)
73582eadeeSfl
74582eadeeSflclean:		$(CLEAN_DEPS)
75582eadeeSfl
76582eadeeSflclobber:	$(CLOBBER_DEPS)
77582eadeeSfl
78582eadeeSflinstall:	$(INSTALL_DEPS)
79582eadeeSfl
80582eadeeSfl#
81582eadeeSfl#	Include common targets.
82582eadeeSfl#
83ae115bc7Smrjinclude $(UTSBASE)/intel/Makefile.targ
84