xref: /titanic_41/usr/src/uts/intel/audiols/Makefile (revision 7014882c6a3672fd0e5d60200af8643ae53c5928)
148722b5fSGarrett D'Amore#
248722b5fSGarrett D'Amore# CDDL HEADER START
348722b5fSGarrett D'Amore#
448722b5fSGarrett D'Amore# The contents of this file are subject to the terms of the
548722b5fSGarrett D'Amore# Common Development and Distribution License (the "License").
648722b5fSGarrett D'Amore# You may not use this file except in compliance with the License.
748722b5fSGarrett D'Amore#
848722b5fSGarrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
948722b5fSGarrett D'Amore# or http://www.opensolaris.org/os/licensing.
1048722b5fSGarrett D'Amore# See the License for the specific language governing permissions
1148722b5fSGarrett D'Amore# and limitations under the License.
1248722b5fSGarrett D'Amore#
1348722b5fSGarrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
1448722b5fSGarrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1548722b5fSGarrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
1648722b5fSGarrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
1748722b5fSGarrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
1848722b5fSGarrett D'Amore#
1948722b5fSGarrett D'Amore# CDDL HEADER END
2048722b5fSGarrett D'Amore#
2148722b5fSGarrett D'Amore#
2248722b5fSGarrett D'Amore# uts/intel/audiols/Makefile
2348722b5fSGarrett D'Amore#
2448722b5fSGarrett D'Amore# Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
2548722b5fSGarrett D'Amore# Use is subject to license terms.
2648722b5fSGarrett D'Amore#
2748722b5fSGarrett D'Amore#	This makefile drives the production of the audiols driver.
2848722b5fSGarrett D'Amore#
2948722b5fSGarrett D'Amore
3048722b5fSGarrett D'Amore#
3148722b5fSGarrett D'Amore#	Path to the base of the uts directory tree (usually /usr/src/uts).
3248722b5fSGarrett D'Amore#
3348722b5fSGarrett D'AmoreUTSBASE = ../..
3448722b5fSGarrett D'Amore
3548722b5fSGarrett D'Amore#
3648722b5fSGarrett D'Amore#	Define the module and object file sets.
3748722b5fSGarrett D'Amore#
3848722b5fSGarrett D'AmoreMODULE		= audiols
3948722b5fSGarrett D'AmoreOBJECTS		= $(AUDIOLS_OBJS:%=$(OBJS_DIR)/%)
4048722b5fSGarrett D'AmoreLINTS		= $(AUDIOLS_OBJS:%.o=$(LINTS_DIR)/%.ln)
4148722b5fSGarrett D'AmoreROOTMODULE	= $(ROOT_DRV_DIR)/$(MODULE)
4248722b5fSGarrett D'Amore
4348722b5fSGarrett D'Amore#
4448722b5fSGarrett D'Amore#	Include common rules.
4548722b5fSGarrett D'Amore#
4648722b5fSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
4748722b5fSGarrett D'Amore
4848722b5fSGarrett D'Amore#
4948722b5fSGarrett D'Amore#	Define targets
5048722b5fSGarrett D'Amore#
5148722b5fSGarrett D'AmoreALL_TARGET	= $(BINARY)
5248722b5fSGarrett D'AmoreLINT_TARGET	= $(MODULE).lint
5348722b5fSGarrett D'AmoreINSTALL_TARGET	= $(BINARY) $(ROOTMODULE)
5448722b5fSGarrett D'Amore
5548722b5fSGarrett D'AmoreLDFLAGS		+= -dy -Ndrv/audio -Nmisc/ac97
5648722b5fSGarrett D'Amore
57*7014882cSRichard LoweCERRWARN	+= -_gcc=-Wno-switch
58*7014882cSRichard Lowe
5948722b5fSGarrett D'Amore#
6048722b5fSGarrett D'Amore#	Default build targets.
6148722b5fSGarrett D'Amore#
6248722b5fSGarrett D'Amore.KEEP_STATE:
6348722b5fSGarrett D'Amore
6448722b5fSGarrett D'Amoredef:		$(DEF_DEPS)
6548722b5fSGarrett D'Amore
6648722b5fSGarrett D'Amoreall:		$(ALL_DEPS)
6748722b5fSGarrett D'Amore
6848722b5fSGarrett D'Amoreclean:		$(CLEAN_DEPS)
6948722b5fSGarrett D'Amore
7048722b5fSGarrett D'Amoreclobber:	$(CLOBBER_DEPS)
7148722b5fSGarrett D'Amore
7248722b5fSGarrett D'Amorelint:		$(LINT_DEPS)
7348722b5fSGarrett D'Amore
7448722b5fSGarrett D'Amoremodlintlib:	$(MODLINTLIB_DEPS)
7548722b5fSGarrett D'Amore
7648722b5fSGarrett D'Amoreclean.lint:	$(CLEAN_LINT_DEPS)
7748722b5fSGarrett D'Amore
7848722b5fSGarrett D'Amoreinstall:	$(INSTALL_DEPS)
7948722b5fSGarrett D'Amore
8048722b5fSGarrett D'Amore#
8148722b5fSGarrett D'Amore#	Include common targets.
8248722b5fSGarrett D'Amore#
8348722b5fSGarrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ
84