Makefile revision 88447a05f537aabe9a1bc3d5313f22581ec992a7
4778ff543a041ac356d6e661cc9b66c3fafa2092Adam Moore#
4778ff543a041ac356d6e661cc9b66c3fafa2092Adam Moore# CDDL HEADER START
2c5ce90c334a2d0f18474e85c93b424b6ec9daaaAdam Moore#
4778ff543a041ac356d6e661cc9b66c3fafa2092Adam Moore# The contents of this file are subject to the terms of the
2c5ce90c334a2d0f18474e85c93b424b6ec9daaaAdam Moore# Common Development and Distribution License (the "License").
4778ff543a041ac356d6e661cc9b66c3fafa2092Adam Moore# You may not use this file except in compliance with the License.
4778ff543a041ac356d6e661cc9b66c3fafa2092Adam Moore#
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore# or http://www.opensolaris.org/os/licensing.
e125e48e3547df3d96d6f2b0e1cf71c9a12a86b5Adam Moore# See the License for the specific language governing permissions
e125e48e3547df3d96d6f2b0e1cf71c9a12a86b5Adam Moore# and limitations under the License.
e125e48e3547df3d96d6f2b0e1cf71c9a12a86b5Adam Moore#
e125e48e3547df3d96d6f2b0e1cf71c9a12a86b5Adam Moore# When distributing Covered Code, include this CDDL HEADER in each
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# If applicable, add the following below this CDDL HEADER, with the
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# fields enclosed by brackets "[]" replaced with your own identifying
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# information: Portions Copyright [yyyy] [name of copyright owner]
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore#
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# CDDL HEADER END
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore#
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore#
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore# uts/intel/audioens/Makefile
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore#
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# Use is subject to license terms.
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore#
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# This makefile drives the production of the audioens driver.
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore#
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore#
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore# Path to the base of the uts directory tree (usually /usr/src/uts).
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore#
0670af1110de6616e0c87818a4ddbd048bc07b97Adam MooreUTSBASE = ../..
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore#
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore# Define the module and object file sets.
0670af1110de6616e0c87818a4ddbd048bc07b97Adam Moore#
0670af1110de6616e0c87818a4ddbd048bc07b97Adam MooreMODULE = audioens
0670af1110de6616e0c87818a4ddbd048bc07b97Adam MooreOBJECTS = $(AUDIOENS_OBJS:%=$(OBJS_DIR)/%)
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam MooreLINTS = $(AUDIOENS_OBJS:%.o=$(LINTS_DIR)/%.ln)
0670af1110de6616e0c87818a4ddbd048bc07b97Adam MooreROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam MooreCONF_SRCDIR = $(UTSBASE)/common/io/audio/drv/audioens
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore#
918b08f9832633dcbf580984b649169aff501b36Adam Moore# Include common rules.
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore#
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Mooreinclude $(UTSBASE)/intel/Makefile.intel
701dfa296d4afcfc9da4c68aaa58369782ca12f4Adam Moore
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore#
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore# Define targets
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore#
7fe7b305509bbc3a3b6fc04bc7f03ed345ed8daaAdam MooreALL_TARGET = $(BINARY) $(SRC_CONFFILE)
7fe7b305509bbc3a3b6fc04bc7f03ed345ed8daaAdam MooreLINT_TARGET = $(MODULE).lint
6e1414a3787add08f9e6457d3d872d980d614862Adam MooreINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
6e1414a3787add08f9e6457d3d872d980d614862Adam Moore
6e1414a3787add08f9e6457d3d872d980d614862Adam MooreLDFLAGS += -dy -Ndrv/audio -Nmisc/ac97
dbe7d1d8fcb85b219fa0d9ab081b7724c651e63dAdam Moore
bf8188e114b371f65f4bf67ce831bc687ce17e4eAdam Moore#
57fe6dcf945efb6f89119a961654a9b0914ddc5cAdam Moore# Default build targets.
38ace6487b8176bc771d6e0277f49015f794aa01Adam Moore#
57fe6dcf945efb6f89119a961654a9b0914ddc5cAdam Moore.KEEP_STATE:
b701c311ef82111da645c974b7f65d58152447f3Adam Moore
b701c311ef82111da645c974b7f65d58152447f3Adam Mooredef: $(DEF_DEPS)
57fe6dcf945efb6f89119a961654a9b0914ddc5cAdam Moore
38ace6487b8176bc771d6e0277f49015f794aa01Adam Mooreall: $(ALL_DEPS)
b701c311ef82111da645c974b7f65d58152447f3Adam Moore
4275b99a8df46fa4dc6836fb581845ebd8857e39Adam Mooreclean: $(CLEAN_DEPS)
f2af787d8d8c17b679458bd58b44846f12b94904Adam Moore
e275a18d7f6fd57baf841eb4c8f82d790c1ef6bdAdam Mooreclobber: $(CLOBBER_DEPS)
bf84ae48e272b3ddc103e8da28cc9ed7f30a9ba2Adam Moore
4ab997398bc9c730d9fc720cd639263c2f1ac747Adam Moorelint: $(LINT_DEPS)
57fe6dcf945efb6f89119a961654a9b0914ddc5cAdam Moore
38ace6487b8176bc771d6e0277f49015f794aa01Adam Mooremodlintlib: $(MODLINTLIB_DEPS)
3ee2f740318e77d0a50957420f1786683531f69eAdam Moore
dcdf332ac871e588177e21c7cbd0045657826f84Adam Mooreclean.lint: $(CLEAN_LINT_DEPS)
a1cb8c0413d9768544e5daa6ba414dfa64d071a5Adam Moore
bf84ae48e272b3ddc103e8da28cc9ed7f30a9ba2Adam Mooreinstall: $(INSTALL_DEPS)
ba2701ee03e94104edf19911ee0989f8cee11088Adam Moore
dcdf332ac871e588177e21c7cbd0045657826f84Adam Moore#
dcdf332ac871e588177e21c7cbd0045657826f84Adam Moore# Include common targets.
de71a413e00aaae25fca939ce99c1c4b02869168Adam Moore#
1633e9a9ce15929556db15d1004e56656550d562Adam Mooreinclude $(UTSBASE)/intel/Makefile.targ
1633e9a9ce15929556db15d1004e56656550d562Adam Moore