xref: /titanic_41/usr/src/uts/intel/audio1575/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
10e7a77f3SGarrett D'Amore#
20e7a77f3SGarrett D'Amore# CDDL HEADER START
30e7a77f3SGarrett D'Amore#
40e7a77f3SGarrett D'Amore# The contents of this file are subject to the terms of the
50e7a77f3SGarrett D'Amore# Common Development and Distribution License (the "License").
60e7a77f3SGarrett D'Amore# You may not use this file except in compliance with the License.
70e7a77f3SGarrett D'Amore#
80e7a77f3SGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90e7a77f3SGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
100e7a77f3SGarrett D'Amore# See the License for the specific language governing permissions
110e7a77f3SGarrett D'Amore# and limitations under the License.
120e7a77f3SGarrett D'Amore#
130e7a77f3SGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
140e7a77f3SGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150e7a77f3SGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
160e7a77f3SGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
170e7a77f3SGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
180e7a77f3SGarrett D'Amore#
190e7a77f3SGarrett D'Amore# CDDL HEADER END
200e7a77f3SGarrett D'Amore#
210e7a77f3SGarrett D'Amore#
2268c47f65SGarrett D'Amore# Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
230e7a77f3SGarrett D'Amore# Use is subject to license terms.
240e7a77f3SGarrett D'Amore#
250e7a77f3SGarrett D'Amore# uts/intel/audio1575/Makefile
260e7a77f3SGarrett D'Amore#
270e7a77f3SGarrett D'Amore#
280e7a77f3SGarrett D'Amore#	This makefile drives the production of the audio1575 audio driver
290e7a77f3SGarrett D'Amore#	kernel module.
300e7a77f3SGarrett D'Amore#
310e7a77f3SGarrett D'Amore#
320e7a77f3SGarrett D'Amore#	Path to the base of the uts directory tree (usually /usr/src/uts).
330e7a77f3SGarrett D'Amore#
340e7a77f3SGarrett D'AmoreUTSBASE = ../..
350e7a77f3SGarrett D'Amore
360e7a77f3SGarrett D'Amore#
370e7a77f3SGarrett D'Amore#	Define the module and object file sets.
380e7a77f3SGarrett D'Amore#
390e7a77f3SGarrett D'AmoreMODULE		= audio1575
400e7a77f3SGarrett D'AmoreOBJECTS		= $(AUDIO1575_OBJS:%=$(OBJS_DIR)/%)
410e7a77f3SGarrett D'AmoreLINTS		= $(AUDIO1575_OBJS:%.o=$(LINTS_DIR)/%.ln)
420e7a77f3SGarrett D'AmoreROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
430e7a77f3SGarrett D'Amore
440e7a77f3SGarrett D'Amore#
450e7a77f3SGarrett D'Amore#	Include common rules.
460e7a77f3SGarrett D'Amore#
470e7a77f3SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
480e7a77f3SGarrett D'Amore
490e7a77f3SGarrett D'Amore#
500e7a77f3SGarrett D'Amore#	Depends on drv/audio and misc/ac97
510e7a77f3SGarrett D'Amore#
520e7a77f3SGarrett D'AmoreLDFLAGS		+= -dy -Ndrv/audio -Nmisc/ac97
530e7a77f3SGarrett D'Amore
54*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
55*7014882cSRichard Lowe
560e7a77f3SGarrett D'Amore#
570e7a77f3SGarrett D'Amore#	Define targets
580e7a77f3SGarrett D'Amore#
5968c47f65SGarrett D'AmoreALL_TARGET	= $(BINARY)
600e7a77f3SGarrett D'AmoreLINT_TARGET	= $(MODULE).lint
6168c47f65SGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
620e7a77f3SGarrett D'Amore
630e7a77f3SGarrett D'Amore#
640e7a77f3SGarrett D'Amore#	Default build targets.
650e7a77f3SGarrett D'Amore#
660e7a77f3SGarrett D'Amore.KEEP_STATE:
670e7a77f3SGarrett D'Amore
680e7a77f3SGarrett D'Amoredef:		$(DEF_DEPS)
690e7a77f3SGarrett D'Amore
700e7a77f3SGarrett D'Amoreall:		$(ALL_DEPS)
710e7a77f3SGarrett D'Amore
720e7a77f3SGarrett D'Amoreclean:		$(CLEAN_DEPS)
730e7a77f3SGarrett D'Amore
740e7a77f3SGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
750e7a77f3SGarrett D'Amore
760e7a77f3SGarrett D'Amorelint:		$(LINT_DEPS)
770e7a77f3SGarrett D'Amore
780e7a77f3SGarrett D'Amoremodlintlib:	$(MODLINTLIB_DEPS)
790e7a77f3SGarrett D'Amore
800e7a77f3SGarrett D'Amoreclean.lint:	$(CLEAN_LINT_DEPS)
810e7a77f3SGarrett D'Amore
820e7a77f3SGarrett D'Amoreinstall:	$(INSTALL_DEPS)
830e7a77f3SGarrett D'Amore
840e7a77f3SGarrett D'Amore#
850e7a77f3SGarrett D'Amore#	Include common targets.
860e7a77f3SGarrett D'Amore#
870e7a77f3SGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ
88