Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas Gustafsson# CDDL HEADER START
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# The contents of this file are subject to the terms of the
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Common Development and Distribution License (the "License").
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You may not use this file except in compliance with the License.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# or http://www.opensolaris.org/os/licensing.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# See the License for the specific language governing permissions
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# and limitations under the License.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# When distributing Covered Code, include this CDDL HEADER in each
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# If applicable, add the following below this CDDL HEADER, with the
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# fields enclosed by brackets "[]" replaced with your own identifying
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# information: Portions Copyright [yyyy] [name of copyright owner]
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# CDDL HEADER END
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Use is subject to license terms.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# This makefile drives the production of the audio mixer (mixer)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Audio Personality Module.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson#ident "%Z%%M% %I% %E% SMI"
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Path to the base of the uts directory tree (usually /usr/src/uts).
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Define the module and object file sets.
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonLINTS = $(MIXER_OBJS:%.o=$(LINTS_DIR)/%.ln)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Include common rules.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Turn off -xspace so we get all optimizations.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Define targets
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Overrides, lint pass one enforcement
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# For now, disable these lint checks; maintainers should endeavor
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# to investigate and remove these for maximum lint coverage.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Please do not carry these forward to new Makefiles.
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonLINTTAGS += -erroff=E_SUSPICIOUS_COMPARISON
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonLINTTAGS += -erroff=E_SUPPRESSION_DIRECTIVE_UNUSED
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Default build targets.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Include common targets.
8eea877894ea5bcf5cdd9ca124a8601ad421d753Andreas Gustafsson# Defines for local commands.
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson# Warlock targets
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/sparc/audiosup/%.ll)
ddccd5811feff696ba460dabfb666ce61040f545Andreas GustafssonAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/sparc/amsrc2/%.ll)
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson warlock_audiosup.files warlock_amsrc2.files \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson warlock_standalone $(WLCMD_DIR)/mixer_with_audiosup.wlcmd
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson $(WARLOCK) -c $(WLCMD_DIR)/mixer_with_audiosup.wlcmd $(WARLOCK_OUT) \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson $(WARLOCK) -c $(WLCMD_DIR)/mixer_with_audiosup.wlcmd $(WARLOCK_OUT) \
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafsson%.ll: $(UTSBASE)/common/io/audio/sada/mixer/%.c
ddccd5811feff696ba460dabfb666ce61040f545Andreas Gustafssonwarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/mixer.wlcmd