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