Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
10139N/A#
10139N/A# CDDL HEADER START
10139N/A#
10139N/A# The contents of this file are subject to the terms of the
10139N/A# Common Development and Distribution License (the "License").
10139N/A# You may not use this file except in compliance with the License.
10139N/A#
10139N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10139N/A# or http://www.opensolaris.org/os/licensing.
10139N/A# See the License for the specific language governing permissions
10139N/A# and limitations under the License.
10139N/A#
10139N/A# When distributing Covered Code, include this CDDL HEADER in each
10139N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
10139N/A# If applicable, add the following below this CDDL HEADER, with the
10139N/A# fields enclosed by brackets "[]" replaced with your own identifying
10139N/A# information: Portions Copyright [yyyy] [name of copyright owner]
10139N/A#
10139N/A# CDDL HEADER END
10139N/A#
10139N/A#
10139N/A# uts/sparc/audiosup/Makefile
10139N/A#
10139N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
10139N/A# Use is subject to license terms.
10139N/A#
10139N/A# This makefile drives the production of the audio support (audiosup)
10139N/A# module.
10139N/A#
10139N/A#ident "%Z%%M% %I% %E% SMI"
10139N/A
10139N/A#
10139N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
10139N/A#
10139N/AUTSBASE = ../..
10139N/A
10139N/A#
10139N/A# Define the module and object file sets.
10139N/A#
10139N/AMODULE = audiosup
10139N/AOBJECTS = $(AUDIO_SUP_OBJS:%=$(OBJS_DIR)/%)
10139N/ALINTS = $(AUDIO_SUP_OBJS:%.o=$(LINTS_DIR)/%.ln)
10139N/AROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
10139N/AWARLOCK_OUT = $(AUDIO_SUP_OBJS:%.o=%.ll)
10139N/AWARLOCK_OK = $(MODULE).ok
10139N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
10139N/A
10139N/A
10139N/A#
10139N/A# Include common rules.
10139N/A#
10139N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
10139N/A
10139N/A#
10139N/A# Turn off -xspace so we get all optimizations.
10139N/A#
10139N/ASPACEFLAG =
10139N/A
10139N/A#
10139N/A# Define targets
10139N/A#
10139N/AALL_TARGET = $(BINARY)
10139N/ALINT_TARGET = $(MODULE).lint
10139N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
10139N/A
10139N/A#
10139N/A# Overrides, lint pass one enforcement
10139N/A#
13570N/ACFLAGS += $(CCVERBOSE)
10139N/A
10139N/A#
10139N/A# For now, disable these lint checks; maintainers should endeavor
11965N/A# to investigate and remove these for maximum lint coverage.
11965N/A# Please do not carry these forward to new Makefiles.
13678N/A#
10139N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
10139N/ALINTTAGS += -erroff=E_PTRDIFF_OVERFLOW
10139N/A
10139N/A#
11933N/A# Default build targets.
10139N/A#
10139N/A.KEEP_STATE:
10139N/A
10139N/Adef: $(DEF_DEPS)
10139N/A
10139N/Aall: $(ALL_DEPS)
10139N/A
10139N/Aclean: $(CLEAN_DEPS)
10139N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
10139N/A
10139N/Aclobber: $(CLOBBER_DEPS)
10139N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
10139N/A
10139N/Alint: $(LINT_DEPS)
10139N/A
10139N/Amodlintlib: $(MODLINTLIB_DEPS)
10139N/A
10139N/Aclean.lint: $(CLEAN_LINT_DEPS)
10139N/A
10139N/Ainstall: $(INSTALL_DEPS)
10139N/A
10139N/A#
12787N/A# Include common targets.
10139N/A#
10139N/Ainclude $(UTSBASE)/sparc/Makefile.targ
10139N/A
11232N/A#
10139N/A# Defines for local commands.
10139N/A#
10139N/ATEST = test
10139N/AWLCC = wlcc
10139N/ATOUCH = touch
10139N/AWARLOCK = warlock
10139N/A
11925N/A#
10139N/A# Warlock targets
10139N/A#
10139N/Awarlock: $(WARLOCK_OK)
10139N/A
10139N/A$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/audiosup.wlcmd
10139N/A $(WARLOCK) -c $(WLCMD_DIR)/audiosup.wlcmd $(WARLOCK_OUT) \
10139N/A -l ../warlock/ddi_dki_impl.ll
10139N/A $(TOUCH) $(WARLOCK_OK)
10139N/A
10139N/A%.ll: $(UTSBASE)/common/io/audio/sada/framework/%.c
10139N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
10139N/A
10139N/Awarlock_ddi.files:
10139N/A @cd ../warlock; pwd; $(MAKE) warlock
10139N/A