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