Makefile revision 7c478bd95313f5f23a4c958a745db2134aa03244
6743N/A#
6743N/A# CDDL HEADER START
6743N/A#
6743N/A# The contents of this file are subject to the terms of the
6743N/A# Common Development and Distribution License, Version 1.0 only
6743N/A# (the "License"). You may not use this file except in compliance
6743N/A# with the License.
6743N/A#
6743N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6743N/A# or http://www.opensolaris.org/os/licensing.
6743N/A# See the License for the specific language governing permissions
6743N/A# and limitations under the License.
6743N/A#
6743N/A# When distributing Covered Code, include this CDDL HEADER in each
6743N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6743N/A# If applicable, add the following below this CDDL HEADER, with the
6743N/A# fields enclosed by brackets "[]" replaced with your own identifying
6743N/A# information: Portions Copyright [yyyy] [name of copyright owner]
6743N/A#
6743N/A# CDDL HEADER END
6743N/A#
6743N/A#
6743N/A# Copyright 2004 Sun Microsystems, Inc. All rights reserved.
6743N/A# Use is subject to license terms.
6743N/A#
6743N/A# uts/sparc/audio810/Makefile
6743N/A#
6743N/A# ident "%Z%%M% %I% %E% SMI"
6743N/A#
6743N/A# This makefile drives the production of Metropolis audio driver
6743N/A# (audio810) kernel module.
6743N/A#
6743N/A#
6743N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
6743N/A#
6743N/AUTSBASE = ../..
6743N/A
6743N/A#
6743N/A# Define the module and object file sets.
6743N/A#
6743N/AMODULE = audio810
6743N/AOBJECTS = $(AUDIO810_OBJS:%=$(OBJS_DIR)/%)
6743N/ALINTS = $(AUDIO810_OBJS:%.o=$(LINTS_DIR)/%.ln)
6743N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
6743N/ACONF_SRCDIR = $(UTSBASE)/common/io/audio/sada/drv/audio810
6743N/A
6743N/AWARLOCK_OBJECTS = $(AUDIO810_OBJS:%.o=%.ll)
6743N/AWARLOCK_OK = $(MODULE).ok
6743N/A
6743N/A#
6743N/A# Include common rules.
6891N/A#
6891N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
6743N/A
6743N/A#
6743N/A# Overrides, lint pass one enforcement
6743N/A#
6891N/ACFLAGS += $(CCVERBOSE)
6891N/A
6891N/A#
6891N/A# Depends on misc/audiosup, misc/mixer
6743N/A#
6743N/ALDFLAGS += -dy -Nmisc/amsrc2 -Nmisc/mixer -Nmisc/audiosup
6743N/A
6743N/A#
6743N/A# Define targets
6743N/A#
6743N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
6743N/ALINT_TARGET = $(MODULE).lint
6743N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE_64)
6743N/A
6743N/A#
6743N/A# Overrides
6743N/A#
6743N/AALL_BUILDS = $(ALL_BUILDSONLY64)
6743N/ADEF_BUILDS = $(DEF_BUILDSONLY64)
6743N/ACLEANLINTFILES += $(LINT32_FILES)
6743N/A
6743N/A#
6743N/A# Default build targets.
6891N/A#
.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) lint32
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
#
# Warlock targets
#
# NOTE: there will be warnings about q_lock which is the simulated
# rwlock of the taskq framework
#
%.wlcmd:
$(TEST) -f $@ || $(SCCS) get $@
warlock: $(WARLOCK_OK)
$(WARLOCK_OK): $(WARLOCK_OBJECTS) warlock_ddi.files \
warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files
$(WARLOCK) -c audio810_with_sada.wlcmd $(WARLOCK_OBJECTS) \
../audiosup/audio_support.ll ../amsrc2/am_src2.ll \
../mixer/am_main.ll ../mixer/am_ad.ll ../mixer/am_ioctl.ll \
-l ../warlock/ddi_dki_impl.ll
$(TOUCH) $(WARLOCK_OK)
%.ll: $(UTSBASE)/common/io/audio/sada/drv/audio810/%.c
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_standalone: $(WARLOCK_OBJECTS) warlock_ddi.files audio810.wlcmd
$(WARLOCK) -c audio810.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_amsrc2.files:
@cd ../amsrc2; pwd; $(MAKE) warlock
warlock_mixer.files:
@cd ../mixer; pwd; $(MAKE) warlock