Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
624664e50406f63108ddc7bad47dbac87ac74261Francis Dupont#
624664e50406f63108ddc7bad47dbac87ac74261Francis Dupont# CDDL HEADER START
c1ced49662181d2fb2343ed7bde71d170f0d1119Mark Andrews#
c1ced49662181d2fb2343ed7bde71d170f0d1119Mark Andrews# The contents of this file are subject to the terms of the
c1ced49662181d2fb2343ed7bde71d170f0d1119Mark Andrews# Common Development and Distribution License (the "License").
ba88bcf08b965f65c07735efa2f675b8cbeb735aMark Andrews# You may not use this file except in compliance with the License.
ba88bcf08b965f65c07735efa2f675b8cbeb735aMark Andrews#
ba88bcf08b965f65c07735efa2f675b8cbeb735aMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ba88bcf08b965f65c07735efa2f675b8cbeb735aMark Andrews# or http://www.opensolaris.org/os/licensing.
21d349b612e253bea438f3340b2f293b032ed848Mark Andrews# See the License for the specific language governing permissions
88c63fe9c78e60e5e521d095d6e983c211902904Mark Andrews# and limitations under the License.
88c63fe9c78e60e5e521d095d6e983c211902904Mark Andrews#
88c63fe9c78e60e5e521d095d6e983c211902904Mark Andrews# When distributing Covered Code, include this CDDL HEADER in each
4c05f9a6a3d0fe27d5fad1599b10500e21c705feMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d31740ce282bcf0a27e17dec49a3ff9ddd26e814Scott Mann# If applicable, add the following below this CDDL HEADER, with the
d31740ce282bcf0a27e17dec49a3ff9ddd26e814Scott Mann# fields enclosed by brackets "[]" replaced with your own identifying
d31740ce282bcf0a27e17dec49a3ff9ddd26e814Scott Mann# information: Portions Copyright [yyyy] [name of copyright owner]
d31740ce282bcf0a27e17dec49a3ff9ddd26e814Scott Mann#
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont# CDDL HEADER END
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont#
664917bedafa65dee4349c84324a31731aa1e228Francis Dupont#
be789bc7eb6f683979cd1405a06284ee00cda366Mark Andrews# uts/intel/audiocmi/Makefile
17bc56e321574b43c5837d1741e9157c8f2fcd91Francis Dupont#
d3e3d7846dd5895960dcdcb1012b4be23388f81cMark Andrews# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
d3e3d7846dd5895960dcdcb1012b4be23388f81cMark Andrews# Use is subject to license terms.
d3e3d7846dd5895960dcdcb1012b4be23388f81cMark Andrews#
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# This makefile drives the production of the audiocmi driver.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt# Path to the base of the uts directory tree (usually /usr/src/uts).
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt#
7cc5632595476c20f1c0683eff35baa370dd65bbEvan HuntUTSBASE = ../..
7cc5632595476c20f1c0683eff35baa370dd65bbEvan Hunt
7cc5632595476c20f1c0683eff35baa370dd65bbEvan Hunt#
7cc5632595476c20f1c0683eff35baa370dd65bbEvan Hunt# Define the module and object file sets.
2f09e7c3fc25c0e5028593a24531d636845c3e42Mark Andrews#
2f09e7c3fc25c0e5028593a24531d636845c3e42Mark AndrewsMODULE = audiocmi
2f09e7c3fc25c0e5028593a24531d636845c3e42Mark AndrewsOBJECTS = $(AUDIOCMI_OBJS:%=$(OBJS_DIR)/%)
4f07b2b00cf52582b2ee9b55aabe7eb5066e57e7Mark AndrewsLINTS = $(AUDIOCMI_OBJS:%.o=$(LINTS_DIR)/%.ln)
4f07b2b00cf52582b2ee9b55aabe7eb5066e57e7Mark AndrewsROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
4f07b2b00cf52582b2ee9b55aabe7eb5066e57e7Mark Andrews
4f07b2b00cf52582b2ee9b55aabe7eb5066e57e7Mark Andrews#
ddd40390be246189f10dc18782914b295befb139Mark Andrews# Include common rules.
0e507dbb816575e6220fe309e8ada68897ffcdbeMark Andrews#
ddd40390be246189f10dc18782914b295befb139Mark Andrewsinclude $(UTSBASE)/intel/Makefile.intel
fd5d7b4b1cf3b11ff248a361e5b2c56ca7372225Mark Andrews
ddd40390be246189f10dc18782914b295befb139Mark Andrews#
5715e1c6f6b549e95b312f1529efd849f7c9503fMark Andrews# Define targets
5715e1c6f6b549e95b312f1529efd849f7c9503fMark Andrews#
ddd40390be246189f10dc18782914b295befb139Mark AndrewsALL_TARGET = $(BINARY)
b795de862ba8e75f3b9c56abb9553c28255c8567Mark AndrewsLINT_TARGET = $(MODULE).lint
b795de862ba8e75f3b9c56abb9553c28255c8567Mark AndrewsINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
c12904ec531fb210066bafc33bde74d43889caacMark Andrews
c12904ec531fb210066bafc33bde74d43889caacMark AndrewsLDFLAGS += -dy -Ndrv/audio
0a92db42c6be6a158cd41ff863831a8d2d257935Mark Andrews
0a92db42c6be6a158cd41ff863831a8d2d257935Mark AndrewsCERRWARN += -_gcc=-Wno-uninitialized
17c98e7adddf82b73f478e89213fd10148a53100Mark Andrews
17c98e7adddf82b73f478e89213fd10148a53100Mark Andrews#
17c98e7adddf82b73f478e89213fd10148a53100Mark Andrews# Default build targets.
699e00089fb1a6eb31d7bd1c96bf973608953159Mark Andrews#
699e00089fb1a6eb31d7bd1c96bf973608953159Mark Andrews.KEEP_STATE:
6883a918f790147fd98e21b2c3d3d479320f3ed5Mark Andrews
6883a918f790147fd98e21b2c3d3d479320f3ed5Mark Andrewsdef: $(DEF_DEPS)
6883a918f790147fd98e21b2c3d3d479320f3ed5Mark Andrews
e01f55daa4b611190a11a40299007e5e55018854Mark Andrewsall: $(ALL_DEPS)
e01f55daa4b611190a11a40299007e5e55018854Mark Andrews
e01f55daa4b611190a11a40299007e5e55018854Mark Andrewsclean: $(CLEAN_DEPS)
4c577cbd1efc14156751e5b2ced7a866871a2f1aMark Andrews
4c577cbd1efc14156751e5b2ced7a866871a2f1aMark Andrewsclobber: $(CLOBBER_DEPS)
4c577cbd1efc14156751e5b2ced7a866871a2f1aMark Andrews
2ba2a6e4be2eae3a1db1a657ceee15aa62799c7fMark Andrewslint: $(LINT_DEPS)
2ba2a6e4be2eae3a1db1a657ceee15aa62799c7fMark Andrews
2ba2a6e4be2eae3a1db1a657ceee15aa62799c7fMark Andrewsmodlintlib: $(MODLINTLIB_DEPS)
30aaec21221ca5d8715d1ff1ce92fbdf98bb6652Mark Andrews
30aaec21221ca5d8715d1ff1ce92fbdf98bb6652Mark Andrewsclean.lint: $(CLEAN_LINT_DEPS)
30aaec21221ca5d8715d1ff1ce92fbdf98bb6652Mark Andrews
30aaec21221ca5d8715d1ff1ce92fbdf98bb6652Mark Andrewsinstall: $(INSTALL_DEPS)
17a0bbda335ffc9af34be1000f500c622008458cMark Andrews
17a0bbda335ffc9af34be1000f500c622008458cMark Andrews#
17a0bbda335ffc9af34be1000f500c622008458cMark Andrews# Include common targets.
17a0bbda335ffc9af34be1000f500c622008458cMark Andrews#
b32e391602b3655c90c2ded10376dbfa4ec8a074Evan Huntinclude $(UTSBASE)/intel/Makefile.targ
b32e391602b3655c90c2ded10376dbfa4ec8a074Evan Hunt