xref: /titanic_52/usr/src/uts/intel/audiovia823x/Makefile (revision 88447a05f537aabe9a1bc3d5313f22581ec992a7)
1*88447a05SGarrett D'Amore#
2*88447a05SGarrett D'Amore# CDDL HEADER START
3*88447a05SGarrett D'Amore#
4*88447a05SGarrett D'Amore# The contents of this file are subject to the terms of the
5*88447a05SGarrett D'Amore# Common Development and Distribution License (the "License").
6*88447a05SGarrett D'Amore# You may not use this file except in compliance with the License.
7*88447a05SGarrett D'Amore#
8*88447a05SGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*88447a05SGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
10*88447a05SGarrett D'Amore# See the License for the specific language governing permissions
11*88447a05SGarrett D'Amore# and limitations under the License.
12*88447a05SGarrett D'Amore#
13*88447a05SGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
14*88447a05SGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*88447a05SGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
16*88447a05SGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
17*88447a05SGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
18*88447a05SGarrett D'Amore#
19*88447a05SGarrett D'Amore# CDDL HEADER END
20*88447a05SGarrett D'Amore#
21*88447a05SGarrett D'Amore#
22*88447a05SGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
23*88447a05SGarrett D'Amore# Use is subject to license terms.
24*88447a05SGarrett D'Amore#
25*88447a05SGarrett D'Amore# uts/intel/audiovia823x/Makefile
26*88447a05SGarrett D'Amore#
27*88447a05SGarrett D'Amore#
28*88447a05SGarrett D'Amore#	This makefile drives the production of the Via 823x audio driver
29*88447a05SGarrett D'Amore#	(audiovia823x) kernel module.
30*88447a05SGarrett D'Amore#
31*88447a05SGarrett D'Amore#
32*88447a05SGarrett D'Amore#	Path to the base of the uts directory tree (usually /usr/src/uts).
33*88447a05SGarrett D'Amore#
34*88447a05SGarrett D'AmoreUTSBASE = ../..
35*88447a05SGarrett D'Amore
36*88447a05SGarrett D'Amore#
37*88447a05SGarrett D'Amore#	Define the module and object file sets.
38*88447a05SGarrett D'Amore#
39*88447a05SGarrett D'AmoreMODULE		= audiovia823x
40*88447a05SGarrett D'AmoreOBJECTS		= $(AUDIOVIA823X_OBJS:%=$(OBJS_DIR)/%)
41*88447a05SGarrett D'AmoreLINTS		= $(AUDIOVIA823X_OBJS:%.o=$(LINTS_DIR)/%.ln)
42*88447a05SGarrett D'AmoreROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
43*88447a05SGarrett D'AmoreCONF_SRCDIR	= $(UTSBASE)/common/io/audio/drv/audiovia823x
44*88447a05SGarrett D'Amore
45*88447a05SGarrett D'Amore#
46*88447a05SGarrett D'Amore#	Include common rules.
47*88447a05SGarrett D'Amore#
48*88447a05SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
49*88447a05SGarrett D'Amore
50*88447a05SGarrett D'Amore#
51*88447a05SGarrett D'Amore#	Depends on drv/audio and misc/ac97
52*88447a05SGarrett D'Amore#
53*88447a05SGarrett D'AmoreLDFLAGS		+= -dy -Ndrv/audio -Nmisc/ac97
54*88447a05SGarrett D'Amore
55*88447a05SGarrett D'Amore#
56*88447a05SGarrett D'Amore#	Define targets
57*88447a05SGarrett D'Amore#
58*88447a05SGarrett D'AmoreALL_TARGET	= $(BINARY) $(SRC_CONFILE)
59*88447a05SGarrett D'AmoreLINT_TARGET	= $(MODULE).lint
60*88447a05SGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
61*88447a05SGarrett D'Amore
62*88447a05SGarrett D'Amore#
63*88447a05SGarrett D'Amore#	Default build targets.
64*88447a05SGarrett D'Amore#
65*88447a05SGarrett D'Amore.KEEP_STATE:
66*88447a05SGarrett D'Amore
67*88447a05SGarrett D'Amoredef:		$(DEF_DEPS)
68*88447a05SGarrett D'Amore
69*88447a05SGarrett D'Amoreall:		$(ALL_DEPS)
70*88447a05SGarrett D'Amore
71*88447a05SGarrett D'Amoreclean:		$(CLEAN_DEPS)
72*88447a05SGarrett D'Amore
73*88447a05SGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
74*88447a05SGarrett D'Amore
75*88447a05SGarrett D'Amorelint:		$(LINT_DEPS)
76*88447a05SGarrett D'Amore
77*88447a05SGarrett D'Amoremodlintlib:	$(MODLINTLIB_DEPS)
78*88447a05SGarrett D'Amore
79*88447a05SGarrett D'Amoreclean.lint:	$(CLEAN_LINT_DEPS)
80*88447a05SGarrett D'Amore
81*88447a05SGarrett D'Amoreinstall:	$(INSTALL_DEPS)
82*88447a05SGarrett D'Amore
83*88447a05SGarrett D'Amore#
84*88447a05SGarrett D'Amore#	Include common targets.
85*88447a05SGarrett D'Amore#
86*88447a05SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ
87