Makefile revision fb9f9b975cb9214fec5dab37d461199adab9b964
905N/A#
905N/A# CDDL HEADER START
905N/A#
905N/A# The contents of this file are subject to the terms of the
905N/A# Common Development and Distribution License, Version 1.0 only
905N/A# (the "License"). You may not use this file except in compliance
905N/A# with the License.
905N/A#
905N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
905N/A# or http://www.opensolaris.org/os/licensing.
905N/A# See the License for the specific language governing permissions
905N/A# and limitations under the License.
905N/A#
905N/A# When distributing Covered Code, include this CDDL HEADER in each
905N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
905N/A# If applicable, add the following below this CDDL HEADER, with the
905N/A# fields enclosed by brackets "[]" replaced with your own identifying
905N/A# information: Portions Copyright [yyyy] [name of copyright owner]
905N/A#
905N/A# CDDL HEADER END
5680N/A#
905N/A#
5680N/A# uts/sparc/mixer/Makefile
5680N/A#
5680N/A# Copyright 2005 Sun Microsystems, Inc. All rights reserved.
5680N/A# Use is subject to license terms.
905N/A#
905N/A# This makefile drives the production of the audio mixer (mixer)
905N/A# Audio Personality Module.
4429N/A#
4429N/A#pragma ident "%Z%%M% %I% %E% SMI"
4429N/A
905N/A#
1326N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
905N/A#
4429N/AUTSBASE = ../..
4429N/A
4429N/A#
4429N/A# Define the module and object file sets.
4429N/A#
4429N/AMODULE = mixer
4429N/AOBJECTS = $(MIXER_OBJS:%=$(OBJS_DIR)/%)
4429N/ALINTS = $(MIXER_OBJS:%.o=$(LINTS_DIR)/%.ln)
4429N/AROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
4429N/AWARLOCK_OBJECTS = $(MIXER_OBJS:%.o=%.ll)
6047N/AWARLOCK_OK = $(MODULE).ok
5680N/A
5680N/A#
5680N/A# Include common rules.
5680N/A#
2899N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
4429N/A
4429N/A#
4429N/A# Turn off -xspace so we get all optimizations.
4429N/A#
4429N/ASPACEFLAG =
4429N/A
4429N/A#
4429N/A# Define targets
4429N/A#
4429N/AALL_TARGET = $(BINARY)
4429N/ALINT_TARGET = $(MODULE).lint
4429N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE)
4429N/A
4429N/A#
4429N/A# Overrides, lint pass one enforcement
4429N/A#
4429N/ACFLAGS += $(CCVERBOSE)
4429N/A
905N/A#
5680N/A# Depends on misc/audiosup
905N/A#
1601N/ALDFLAGS += -dy -Nmisc/audiosup
1601N/A
1601N/A#
1601N/A# Default build targets.
1601N/A#
905N/A.KEEP_STATE:
905N/A
905N/Adef: $(DEF_DEPS)
905N/A
905N/Aall: $(ALL_DEPS)
5680N/A
905N/Aclean: $(CLEAN_DEPS); \
4429N/A $(RM) $(WARLOCK_OBJECTS) $(WARLOCK_OK)
4429N/A
4429N/Aclobber: $(CLOBBER_DEPS); \
4429N/A $(RM) $(WARLOCK_OBJECTS) $(WARLOCK_OK)
4429N/A
4429N/Alint: $(LINT_DEPS)
4429N/A
4429N/Amodlintlib: $(MODLINTLIB_DEPS)
1601N/A
5680N/Aclean.lint: $(CLEAN_LINT_DEPS)
5680N/A
3477N/Ainstall: $(INSTALL_DEPS)
5680N/A
5680N/A#
4429N/A# Include common targets.
4429N/A#
4429N/Ainclude $(UTSBASE)/sparc/Makefile.targ
4429N/A
4429N/A#
4429N/A# Defines for local commands.
5680N/A#
905N/ASCCS = sccs
3817N/ATEST = test
4429N/AWLCC = wlcc
3817N/ATOUCH = touch
4429N/AWARLOCK = warlock
3817N/A
6047N/A#
3817N/A# Warlock targets
#
%.wlcmd:
$(TEST) -f $@ || $(SCCS) get $@
warlock: $(WARLOCK_OK)
$(WARLOCK_OK): $(WARLOCK_OBJECTS) warlock_ddi.files \
warlock_audiosup.files warlock_amsrc1.files \
warlock_amsrc2.files \
warlock_standalone mixer_with_audiosup.wlcmd
$(WARLOCK) -c mixer_with_audiosup.wlcmd $(WARLOCK_OBJECTS) \
../audiosup/audio_support.ll $(CLOSED)/uts/sparc/amsrc1/am_src1.ll \
-l ../warlock/ddi_dki_impl.ll
$(WARLOCK) -c mixer_with_audiosup.wlcmd $(WARLOCK_OBJECTS) \
../audiosup/audio_support.ll ../amsrc2/am_src2.ll \
-l ../warlock/ddi_dki_impl.ll
$(TOUCH) $(WARLOCK_OK)
%.ll: $(UTSBASE)/common/io/audio/sada/mixer/%.c
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_standalone: $(WARLOCK_OBJECTS) warlock_ddi.files \
mixer.wlcmd
$(WARLOCK) -c mixer.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_amsrc1.files:
@cd $(CLOSED)/uts/sparc/amsrc1; pwd; $(MAKE) warlock
warlock_amsrc2.files:
@cd ../amsrc2; pwd; $(MAKE) warlock