Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# CDDL HEADER START
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# The contents of this file are subject to the terms of the
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# Common Development and Distribution License (the "License").
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# You may not use this file except in compliance with the License.
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# or http://www.opensolaris.org/os/licensing.
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# See the License for the specific language governing permissions
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# and limitations under the License.
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# When distributing Covered Code, include this CDDL HEADER in each
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# If applicable, add the following below this CDDL HEADER, with the
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# fields enclosed by brackets "[]" replaced with your own identifying
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# information: Portions Copyright [yyyy] [name of copyright owner]
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# CDDL HEADER END
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# Use is subject to license terms.
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# uts/sparc/audioixp/Makefile
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# ident "%Z%%M% %I% %E% SMI"
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# This makefile drives the production of hight definition audio
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# driver (audioixp) kernel module.
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# Path to the base of the uts directory tree (usually /usr/src/uts).
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid ZhangUTSBASE = ../..
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang# Define the module and object file sets.
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid Zhang#
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon RossMODULE = audioixp
b6805bf78d2bbbeeaea8909a05623587b42d58b3Gordon RossWARLOCK_OUT = $(AUDIOIXP_OBJS:%.o=%.ll)
5dc9a9865ba3fe32b5a92dcdbc8fbdcdaa98f54fDavid ZhangWARLOCK_OK = $(MODULE).ok
WLCMD_DIR = $(UTSBASE)/common/io/warlock
#
# Include common rules.
#
include $(UTSBASE)/sparc/Makefile.sparc
#
# For now, disable these lint checks; maintainers should endeavor
# to investigate and remove these for maximum lint coverage.
# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
#
# Default build targets.
#
.KEEP_STATE:
def: warlock
clean: $(CLEAN_DEPS)
$(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
clobber: $(CLOBBER_DEPS)
$(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ
#
# Defines for local commands.
#
TEST = test
WLCC = wlcc
TOUCH = touch
WARLOCK = warlock
#
# Warlock targets
#
MIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/sparc/mixer/%.ll)
AUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/sparc/audiosup/%.ll)
AMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/sparc/amsrc2/%.ll)
warlock: $(WARLOCK_OK)
$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
$(WLCMD_DIR)/audioixp_with_sada.wlcmd
$(WARLOCK) -c $(WLCMD_DIR)/audioixp_with_sada.wlcmd $(WARLOCK_OUT) \
$(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
-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_OUT) warlock_ddi.files $(WLCMD_DIR)/audioixp.wlcmd
$(WARLOCK) -c $(WLCMD_DIR)/audioixp.wlcmd $(WARLOCK_OUT) \
-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