Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
61N/A#
61N/A# CDDL HEADER START
61N/A#
61N/A# The contents of this file are subject to the terms of the
61N/A# Common Development and Distribution License (the "License").
61N/A# You may not use this file except in compliance with the License.
61N/A#
61N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
61N/A# or http://www.opensolaris.org/os/licensing.
61N/A# See the License for the specific language governing permissions
61N/A# and limitations under the License.
61N/A#
61N/A# When distributing Covered Code, include this CDDL HEADER in each
61N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
61N/A# If applicable, add the following below this CDDL HEADER, with the
61N/A# fields enclosed by brackets "[]" replaced with your own identifying
61N/A# information: Portions Copyright [yyyy] [name of copyright owner]
61N/A#
61N/A# CDDL HEADER END
61N/A#
3817N/A#
61N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
61N/A# Use is subject to license terms.
61N/A#
61N/A# uts/sparc/audioixp/Makefile
61N/A#
3817N/A# ident "%Z%%M% %I% %E% SMI"
61N/A#
61N/A# This makefile drives the production of hight definition audio
61N/A# driver (audioixp) kernel module.
61N/A#
61N/A#
61N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
61N/A#
61N/AUTSBASE = ../..
61N/A
61N/A#
61N/A# Define the module and object file sets.
5329N/A#
5329N/AMODULE = audioixp
5329N/AWARLOCK_OUT = $(AUDIOIXP_OBJS:%.o=%.ll)
61N/AWARLOCK_OK = $(MODULE).ok
61N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
61N/A
61N/A#
61N/A# Include common rules.
61N/A#
278N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
5123N/A
278N/A#
5329N/A# For now, disable these lint checks; maintainers should endeavor
5329N/A# to investigate and remove these for maximum lint coverage.
5329N/A# Please do not carry these forward to new Makefiles.
5329N/A#
61N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
61N/A
61N/A#
61N/A# Default build targets.
61N/A#
5329N/A.KEEP_STATE:
61N/A
814N/Adef: warlock
1780N/A
814N/Aclean: $(CLEAN_DEPS)
61N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
61N/A
5329N/Aclobber: $(CLOBBER_DEPS)
5329N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
5329N/A
5329N/A#
61N/A# Include common targets.
61N/A#
61N/Ainclude $(UTSBASE)/sparc/Makefile.targ
5329N/A
61N/A#
61N/A# Defines for local commands.
61N/A#
181N/ATEST = test
3558N/AWLCC = wlcc
3864N/ATOUCH = touch
3864N/AWARLOCK = warlock
181N/A
3558N/A#
3558N/A# Warlock targets
3205N/A#
3558N/AMIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/sparc/mixer/%.ll)
3558N/AAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/sparc/audiosup/%.ll)
181N/AAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/sparc/amsrc2/%.ll)
3558N/A
3558N/Awarlock: $(WARLOCK_OK)
3558N/A
3558N/A$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
3558N/A warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
3558N/A $(WLCMD_DIR)/audioixp_with_sada.wlcmd
3558N/A $(WARLOCK) -c $(WLCMD_DIR)/audioixp_with_sada.wlcmd $(WARLOCK_OUT) \
3558N/A $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
3558N/A -l ../warlock/ddi_dki_impl.ll
3558N/A $(TOUCH) $(WARLOCK_OK)
3558N/A
3558N/A%.ll: $(UTSBASE)/common/io/audio/sada/drv/audioixp/%.c
3558N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
3558N/A
181N/Awarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/audioixp.wlcmd
181N/A $(WARLOCK) -c $(WLCMD_DIR)/audioixp.wlcmd $(WARLOCK_OUT) \
4391N/A -l ../warlock/ddi_dki_impl.ll
4391N/A
4391N/Awarlock_ddi.files:
4391N/A @cd ../warlock; pwd; $(MAKE) warlock
4089N/A
4089N/Awarlock_audiosup.files:
4089N/A @cd ../audiosup; pwd; $(MAKE) warlock
4391N/A
4089N/Awarlock_amsrc2.files:
4089N/A @cd ../amsrc2; pwd; $(MAKE) warlock
4089N/A
4089N/Awarlock_mixer.files:
4089N/A @cd ../mixer; pwd; $(MAKE) warlock
4089N/A