xref: /titanic_52/usr/src/uts/intel/audiovia823x/Makefile (revision 68c47f65208790c466e5e484f2293d3baed71c6a)
188447a05SGarrett D'Amore#
288447a05SGarrett D'Amore# CDDL HEADER START
388447a05SGarrett D'Amore#
488447a05SGarrett D'Amore# The contents of this file are subject to the terms of the
588447a05SGarrett D'Amore# Common Development and Distribution License (the "License").
688447a05SGarrett D'Amore# You may not use this file except in compliance with the License.
788447a05SGarrett D'Amore#
888447a05SGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
988447a05SGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
1088447a05SGarrett D'Amore# See the License for the specific language governing permissions
1188447a05SGarrett D'Amore# and limitations under the License.
1288447a05SGarrett D'Amore#
1388447a05SGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
1488447a05SGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1588447a05SGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
1688447a05SGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
1788447a05SGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
1888447a05SGarrett D'Amore#
1988447a05SGarrett D'Amore# CDDL HEADER END
2088447a05SGarrett D'Amore#
2188447a05SGarrett D'Amore#
22*68c47f65SGarrett D'Amore# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
2388447a05SGarrett D'Amore# Use is subject to license terms.
2488447a05SGarrett D'Amore#
2588447a05SGarrett D'Amore# uts/intel/audiovia823x/Makefile
2688447a05SGarrett D'Amore#
2788447a05SGarrett D'Amore#
2888447a05SGarrett D'Amore#	This makefile drives the production of the Via 823x audio driver
2988447a05SGarrett D'Amore#	(audiovia823x) kernel module.
3088447a05SGarrett D'Amore#
3188447a05SGarrett D'Amore#
3288447a05SGarrett D'Amore#	Path to the base of the uts directory tree (usually /usr/src/uts).
3388447a05SGarrett D'Amore#
3488447a05SGarrett D'AmoreUTSBASE = ../..
3588447a05SGarrett D'Amore
3688447a05SGarrett D'Amore#
3788447a05SGarrett D'Amore#	Define the module and object file sets.
3888447a05SGarrett D'Amore#
3988447a05SGarrett D'AmoreMODULE		= audiovia823x
4088447a05SGarrett D'AmoreOBJECTS		= $(AUDIOVIA823X_OBJS:%=$(OBJS_DIR)/%)
4188447a05SGarrett D'AmoreLINTS		= $(AUDIOVIA823X_OBJS:%.o=$(LINTS_DIR)/%.ln)
4288447a05SGarrett D'AmoreROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4388447a05SGarrett D'Amore
4488447a05SGarrett D'Amore#
4588447a05SGarrett D'Amore#	Include common rules.
4688447a05SGarrett D'Amore#
4788447a05SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
4888447a05SGarrett D'Amore
4988447a05SGarrett D'Amore#
5088447a05SGarrett D'Amore#	Depends on drv/audio and misc/ac97
5188447a05SGarrett D'Amore#
5288447a05SGarrett D'AmoreLDFLAGS		+= -dy -Ndrv/audio -Nmisc/ac97
5388447a05SGarrett D'Amore
5488447a05SGarrett D'Amore#
5588447a05SGarrett D'Amore#	Define targets
5688447a05SGarrett D'Amore#
57*68c47f65SGarrett D'AmoreALL_TARGET	= $(BINARY)
5888447a05SGarrett D'AmoreLINT_TARGET	= $(MODULE).lint
59*68c47f65SGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
6088447a05SGarrett D'Amore
6188447a05SGarrett D'Amore#
6288447a05SGarrett D'Amore#	Default build targets.
6388447a05SGarrett D'Amore#
6488447a05SGarrett D'Amore.KEEP_STATE:
6588447a05SGarrett D'Amore
6688447a05SGarrett D'Amoredef:		$(DEF_DEPS)
6788447a05SGarrett D'Amore
6888447a05SGarrett D'Amoreall:		$(ALL_DEPS)
6988447a05SGarrett D'Amore
7088447a05SGarrett D'Amoreclean:		$(CLEAN_DEPS)
7188447a05SGarrett D'Amore
7288447a05SGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
7388447a05SGarrett D'Amore
7488447a05SGarrett D'Amorelint:		$(LINT_DEPS)
7588447a05SGarrett D'Amore
7688447a05SGarrett D'Amoremodlintlib:	$(MODLINTLIB_DEPS)
7788447a05SGarrett D'Amore
7888447a05SGarrett D'Amoreclean.lint:	$(CLEAN_LINT_DEPS)
7988447a05SGarrett D'Amore
8088447a05SGarrett D'Amoreinstall:	$(INSTALL_DEPS)
8188447a05SGarrett D'Amore
8288447a05SGarrett D'Amore#
8388447a05SGarrett D'Amore#	Include common targets.
8488447a05SGarrett D'Amore#
8588447a05SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ
86