8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# CDDL HEADER START
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# The contents of this file are subject to the terms of the
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Common Development and Distribution License (the "License").
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# You may not use this file except in compliance with the License.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# or http://www.opensolaris.org/os/licensing.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# See the License for the specific language governing permissions
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# and limitations under the License.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# When distributing Covered Code, include this CDDL HEADER in each
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# If applicable, add the following below this CDDL HEADER, with the
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# fields enclosed by brackets "[]" replaced with your own identifying
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# information: Portions Copyright [yyyy] [name of copyright owner]
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# CDDL HEADER END
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# uts/sparc/audiop16x/Makefile
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Use is subject to license terms.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# This makefile drives the production of the audiop16x driver.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce#
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce# Path to the base of the uts directory tree (usually /usr/src/uts).
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce#
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo SorceUTSBASE = ../..
ab967283b710dfa05d11ee5b30c7ac916486ceecSimo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Define the module and object file sets.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceMODULE = audiop16x
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceOBJECTS = $(AUDIOP16X_OBJS:%=$(OBJS_DIR)/%)
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceLINTS = $(AUDIOP16X_OBJS:%.o=$(LINTS_DIR)/%.ln)
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo SorceROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce# Include common rules.
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorce#
8bcabb97d988d1602882a1f036aac2eaf5e09234Simo Sorceinclude $(UTSBASE)/sparc/Makefile.sparc
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
LDFLAGS += -dy -Ndrv/audio -Nmisc/ac97
CERRWARN += -_gcc=-Wno-uninitialized
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
clobber: $(CLOBBER_DEPS)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ