Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The contents of this file are subject to the terms of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Common Development and Distribution License (the "License").
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You may not use this file except in compliance with the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# See the License for the specific language governing permissions
0662ed52e814f8f08ef0e09956413a792584eddffuankg# and limitations under the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# When distributing Covered Code, include this CDDL HEADER in each
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If applicable, add the following below this CDDL HEADER, with the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
16b55a35cff91315d261d1baa776138af465c4e4fuankg# CDDL HEADER END
b65f699e40d114c470f5d6e4b8e4015385060ddfbnicholes# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
7b3cfb4974fa8dea788092c859d8d38c49f6ab0cbnicholes# Use is subject to license terms.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#ident "%Z%%M% %I% %E% SMI"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# This makefile drives the production of the M1575 audio driver
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# (audio1575) kernel module.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Path to the base of the uts directory tree (usually /usr/src/uts).
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Define the module and object file sets.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONF_SRCDIR = $(UTSBASE)/sun/io/audio/sada/drv/audio1575
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Include common rules.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Overrides, lint pass one enforcement
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLDFLAGS += -dy -Nmisc/amsrc2 -Nmisc/mixer -Nmisc/audiosup
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Define targets
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE_64)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# For now, disable these lint checks; maintainers should endeavor
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# to investigate and remove these for maximum lint coverage.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Please do not carry these forward to new Makefiles.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Default build targets.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Include common targets.
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Defines for local commands.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Warlock targets
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# NOTE: there will be warnings about q_lock which is the simulated
0662ed52e814f8f08ef0e09956413a792584eddffuankg# rwlock of the taskq framework
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/sparc/mixer/%.ll)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/sparc/audiosup/%.ll)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/sparc/amsrc2/%.ll)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files warlock_standalone \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(WARLOCK) -c $(WLCMD_DIR)/audio1575_with_sada.wlcmd $(WARLOCK_OUT) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes%.ll: $(UTSBASE)/sun/io/audio/sada/drv/audio1575/%.c
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeswarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files \