Makefile revision b31d69afd0b141cad8082cc344f651651108c210
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco#
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco# CDDL HEADER START
b227f89b8c13b15a9372ce56713c024f7f73be35Lubos Kosco#
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco# The contents of this file are subject to the terms of the
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen# Common Development and Distribution License (the "License").
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen# You may not use this file except in compliance with the License.
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen#
551b849ce88d596dc52dda2f78229a932b339c78Lubos Kosco# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
551b849ce88d596dc52dda2f78229a932b339c78Lubos Kosco# or http://www.opensolaris.org/os/licensing.
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen# See the License for the specific language governing permissions
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# and limitations under the License.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# When distributing Covered Code, include this CDDL HEADER in each
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
477c09a2656e6a2c1075425ad81e61d594164fa9Lubos Kosco# If applicable, add the following below this CDDL HEADER, with the
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# fields enclosed by brackets "[]" replaced with your own identifying
bcae302a5f4b516d2f3c05f657df054e1a0efde7Knut Anders Hatlen# information: Portions Copyright [yyyy] [name of copyright owner]
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
98774b0b90e4da0f3f2c5e4856bcbbf366ed0fe0Knut Anders Hatlen# CDDL HEADER END
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Use is subject to license terms.
afb218f076cae538126a5f931299a82a114a075aKnut Anders Hatlen#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# uts/intel/audiots/Makefile
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# This makefile drives the production of the T2 audio driver
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# (audiots) kernel module.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Path to the base of the uts directory tree (usually /usr/src/uts).
c0550b01024b910b8c1468811c0ea663b10b1372Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeUTSBASE = ../..
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen# Define the module and object file sets.
bbb39d08c0e5b73c89ba813a7c1789842c60f961Lubos Kosco#
2ba599c0d79caf59996d8b54a0490bb968442134Knut Anders HatlenMODULE = audiots
67b14513c549ae0027ba7590e736b3dd3281db7cLubos KoscoOBJECTS = $(AUDIOTS_OBJS:%=$(OBJS_DIR)/%)
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos KoscoLINTS = $(AUDIOTS_OBJS:%.o=$(LINTS_DIR)/%.ln)
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos KoscoROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos KoscoCONF_SRCDIR = $(UTSBASE)/common/io/audio/drv/audiots
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco#
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco# Include common rules.
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco#
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Koscoinclude $(UTSBASE)/intel/Makefile.intel
6d7c6f82e644c205bc679ee5b1fa2929ec949963Lubos Kosco
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco#
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco# Overrides, lint pass one enforcement
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco#
6d7c6f82e644c205bc679ee5b1fa2929ec949963Lubos KoscoCFLAGS += $(CCVERBOSE)
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco#
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco# Depends on misc/ac97 and drv/audio
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeLDFLAGS += -dy -N misc/ac97 -N drv/audio
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Define targets
9661674ed58ba62a40e43d1a4b38d5e77c3c6545Knut Anders Hatlen#
bbb39d08c0e5b73c89ba813a7c1789842c60f961Lubos KoscoALL_TARGET = $(BINARY) $(SRC_CONFILE)
2ba599c0d79caf59996d8b54a0490bb968442134Knut Anders HatlenLINT_TARGET = $(MODULE).lint
a1318a82916028f363b3c5b52e7fd7256b632497Trond NorbyeINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
ca37bb3c4127b35d333203398bd983ee730d9da5Jan S Berg
6d7c6f82e644c205bc679ee5b1fa2929ec949963Lubos Kosco#
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco# Default build targets.
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco#
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco.KEEP_STATE:
ca37bb3c4127b35d333203398bd983ee730d9da5Jan S Berg
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyedef: $(DEF_DEPS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeall: $(ALL_DEPS)
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Kosco
ab4ab2edaac480f68b476dc19e015c54cd4f1978Lubos Koscoclean: $(CLEAN_DEPS)
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Kosco
f9fd2b96d1c5ea62664f74da0e34a04b6511a8ffLubos Koscoclobber: $(CLOBBER_DEPS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyelint: $(LINT_DEPS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
4bb936310d8f131aa850821e9254ac14242c7f95Knut Anders Hatlenmodlintlib: $(MODLINTLIB_DEPS) lint32
4bb936310d8f131aa850821e9254ac14242c7f95Knut Anders Hatlen
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeclean.lint: $(CLEAN_LINT_DEPS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeinstall: $(INSTALL_DEPS)
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye# Include common targets.
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye#
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbyeinclude $(UTSBASE)/intel/Makefile.targ
a1318a82916028f363b3c5b52e7fd7256b632497Trond Norbye