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