b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# CDDL HEADER START
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# The contents of this file are subject to the terms of the
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# Common Development and Distribution License (the "License").
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# You may not use this file except in compliance with the License.
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# or http://www.opensolaris.org/os/licensing.
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# See the License for the specific language governing permissions
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# and limitations under the License.
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# When distributing Covered Code, include this CDDL HEADER in each
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# If applicable, add the following below this CDDL HEADER, with the
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# fields enclosed by brackets "[]" replaced with your own identifying
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# information: Portions Copyright [yyyy] [name of copyright owner]
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# CDDL HEADER END
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'Amore# Copyright 2010 Sun Microsystems, Inc. All rights reserved.
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# Use is subject to license terms.
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# uts/intel/audiots/Makefile
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# This makefile drives the production of the T2 audio driver
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# (audiots) kernel module.
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# Path to the base of the uts directory tree (usually /usr/src/uts).
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'AmoreUTSBASE = ../..
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# Define the module and object file sets.
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'AmoreMODULE = audiots
b31d69afd0b141cad8082cc344f651651108c210Garrett D'AmoreOBJECTS = $(AUDIOTS_OBJS:%=$(OBJS_DIR)/%)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'AmoreLINTS = $(AUDIOTS_OBJS:%.o=$(LINTS_DIR)/%.ln)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'AmoreROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# Include common rules.
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amoreinclude $(UTSBASE)/intel/Makefile.intel
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# Overrides, lint pass one enforcement
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'AmoreCFLAGS += $(CCVERBOSE)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# Depends on misc/ac97 and drv/audio
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'AmoreLDFLAGS += -dy -N misc/ac97 -N drv/audio
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
7014882c6a3672fd0e5d60200af8643ae53c5928Richard LoweCERRWARN += -_gcc=-Wno-parentheses
7014882c6a3672fd0e5d60200af8643ae53c5928Richard Lowe
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# Define targets
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreALL_TARGET = $(BINARY)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'AmoreLINT_TARGET = $(MODULE).lint
68c47f65208790c466e5e484f2293d3baed71c6aGarrett D'AmoreINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# Default build targets.
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore.KEEP_STATE:
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amoredef: $(DEF_DEPS)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amoreall: $(ALL_DEPS)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amoreclean: $(CLEAN_DEPS)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amoreclobber: $(CLOBBER_DEPS)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amorelint: $(LINT_DEPS)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
9f51456788105f8fa3e4ebf290b4628eb757e65aGarrett D'Amoremodlintlib: $(MODLINTLIB_DEPS)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amoreclean.lint: $(CLEAN_LINT_DEPS)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amoreinstall: $(INSTALL_DEPS)
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore# Include common targets.
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amore#
b31d69afd0b141cad8082cc344f651651108c210Garrett D'Amoreinclude $(UTSBASE)/intel/Makefile.targ