Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
18727N/A#
14177N/A# CDDL HEADER START
14177N/A#
14177N/A# The contents of this file are subject to the terms of the
14177N/A# Common Development and Distribution License, Version 1.0 only
14177N/A# (the "License"). You may not use this file except in compliance
14177N/A# with the License.
14177N/A#
14177N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
14177N/A# or http://www.opensolaris.org/os/licensing.
14177N/A# See the License for the specific language governing permissions
14177N/A# and limitations under the License.
14347N/A#
14347N/A# When distributing Covered Code, include this CDDL HEADER in each
14347N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14347N/A# If applicable, add the following below this CDDL HEADER, with the
14347N/A# fields enclosed by brackets "[]" replaced with your own identifying
14347N/A# information: Portions Copyright [yyyy] [name of copyright owner]
14177N/A#
14347N/A# CDDL HEADER END
14347N/A#
14347N/A#
14347N/A# uts/sparc/audiosup/Makefile
14177N/A#
14347N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
14347N/A# Use is subject to license terms.
14177N/A#
14177N/A# This makefile drives the production of the audio support (audiosup)
# module.
#
#pragma ident "%Z%%M% %I% %E% SMI"
#
# Path to the base of the uts directory tree (usually /usr/src/uts).
#
UTSBASE = ../..
#
# Define the module and object file sets.
#
MODULE = audiosup
OBJECTS = $(AUDIO_SUP_OBJS:%=$(OBJS_DIR)/%)
LINTS = $(AUDIO_SUP_OBJS:%.o=$(LINTS_DIR)/%.ln)
ROOTMODULE = $(ROOT_MISC_DIR)/$(MODULE)
WARLOCK_OBJECTS = $(AUDIO_SUP_OBJS:%.o=%.ll)
WARLOCK_OK = $(MODULE).ok
#
# Include common rules.
#
include $(UTSBASE)/sparc/Makefile.sparc
#
# Turn off -xspace so we get all optimizations.
#
SPACEFLAG =
#
# Define targets
#
ALL_TARGET = $(BINARY)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE)
#
# Overrides, lint pass one enforcement
#
CFLAGS += $(CCVERBOSE)
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS); \
$(RM) $(WARLOCK_OBJECTS) $(WARLOCK_OK)
clobber: $(CLOBBER_DEPS); \
$(RM) $(WARLOCK_OBJECTS) $(WARLOCK_OK)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/sparc/Makefile.targ
#
# Defines for local commands.
#
SCCS = sccs
TEST = test
WLCC = wlcc
TOUCH = touch
WARLOCK = warlock
#
# Mapfile target
#
mapfile:
$(TEST) -f $@ || $(SCCS) get $@
#
# Warlock targets
#
%.wlcmd:
$(TEST) -f $@ || $(SCCS) get $@
warlock: $(WARLOCK_OK)
$(WARLOCK_OK): $(WARLOCK_OBJECTS) warlock_ddi.files audiosup.wlcmd
$(WARLOCK) -c audiosup.wlcmd $(WARLOCK_OBJECTS) \
-l ../warlock/ddi_dki_impl.ll
$(TOUCH) $(WARLOCK_OK)
%.ll: $(UTSBASE)/common/io/audio/sada/framework/%.c
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_ddi.files:
@cd ../warlock; pwd; $(MAKE) warlock