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