Makefile revision bb25c06cca41ca78e5fb87fbb8e81d55beb18c95
176N/A#
176N/A# CDDL HEADER START
176N/A#
176N/A# The contents of this file are subject to the terms of the
176N/A# Common Development and Distribution License (the "License").
176N/A# You may not use this file except in compliance with the License.
176N/A#
176N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
176N/A# or http://www.opensolaris.org/os/licensing.
176N/A# See the License for the specific language governing permissions
176N/A# and limitations under the License.
176N/A#
176N/A# When distributing Covered Code, include this CDDL HEADER in each
176N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
176N/A# If applicable, add the following below this CDDL HEADER, with the
176N/A# fields enclosed by brackets "[]" replaced with your own identifying
176N/A# information: Portions Copyright [yyyy] [name of copyright owner]
176N/A#
873N/A# CDDL HEADER END
176N/A#
176N/A#
176N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
176N/A# Use is subject to license terms.
176N/A#
3232N/A# uts/sparc/audioixp/Makefile
176N/A#
176N/A# ident "%Z%%M% %I% %E% SMI"
176N/A#
176N/A# This makefile drives the production of hight definition audio
176N/A# driver (audioixp) kernel module.
1242N/A#
2334N/A#
2334N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
176N/A#
176N/AUTSBASE = ../..
176N/A
176N/A#
176N/A# Define the module and object file sets.
176N/A#
176N/AMODULE = audioixp
176N/AWARLOCK_OBJECTS = $(AUDIOIXP_OBJS:%.o=%.ll)
176N/AWARLOCK_OK = $(MODULE).ok
176N/A
176N/A#
176N/A# Include common rules.
176N/A#
176N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
176N/A
176N/A#
176N/A# For now, disable these lint checks; maintainers should endeavor
176N/A# to investigate and remove these for maximum lint coverage.
176N/A# Please do not carry these forward to new Makefiles.
176N/A#
176N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
176N/A
176N/A#
176N/A# Default build targets.
176N/A#
176N/A.KEEP_STATE:
176N/A
2342N/Adef: warlock
176N/A
176N/Aclean: $(CLEAN_DEPS); \
176N/A $(RM) $(WARLOCK_OBJECTS) $(WARLOCK_OK)
1242N/A
2334N/Aclobber: $(CLOBBER_DEPS); \
1242N/A $(RM) $(WARLOCK_OBJECTS) $(WARLOCK_OK)
2334N/A
1242N/A#
1242N/A# Include common targets.
1242N/A#
1242N/Ainclude $(UTSBASE)/sparc/Makefile.targ
176N/A
176N/A#
176N/A# Defines for local commands.
176N/A#
SCCS = sccs
TEST = test
WLCC = wlcc
TOUCH = touch
WARLOCK = warlock
#
# Warlock targets
#
# NOTE: there will be warnings about q_lock which is the simulated
# rwlock of the taskq framework
#
%.wlcmd:
$(TEST) -f $@ || $(SCCS) get $@
warlock: $(WARLOCK_OK)
$(WARLOCK_OK): $(WARLOCK_OBJECTS) warlock_ddi.files \
warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files
$(WARLOCK) -c audioixp_with_sada.wlcmd $(WARLOCK_OBJECTS) \
../audiosup/audio_support.ll ../amsrc2/am_src2.ll \
../mixer/am_main.ll ../mixer/am_ad.ll ../mixer/am_ioctl.ll \
-l ../warlock/ddi_dki_impl.ll
$(TOUCH) $(WARLOCK_OK)
%.ll: $(UTSBASE)/common/io/audio/sada/drv/audioixp/%.c
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_standalone: $(WARLOCK_OBJECTS) warlock_ddi.files audioixp.wlcmd
$(WARLOCK) -c audioixp.wlcmd $(WARLOCK_OBJECTS) \
-l ../warlock/ddi_dki_impl.ll
warlock_ddi.files:
@cd ../warlock; pwd; $(MAKE) warlock
warlock_audiosup.files:
@cd ../audiosup; pwd; $(MAKE) warlock
warlock_amsrc2.files:
@cd ../amsrc2; pwd; $(MAKE) warlock
warlock_mixer.files:
@cd ../mixer; pwd; $(MAKE) warlock