Makefile revision 582eadee8ab962bd0c2428714daa56ecb51f9402
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# CDDL HEADER START
bef75d63d74f58abc0f834ed271526672777ba29Automatic Updater#
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# or http://www.opensolaris.org/os/licensing.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# See the License for the specific language governing permissions
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# and limitations under the License.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# CDDL HEADER END
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Use is subject to license terms.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# uts/sparc/audiohd/Makefile
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User# ident "%Z%%M% %I% %E% SMI"
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# This makefile drives the production of hight definition audio
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# driver (audiohd) kernel module.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Path to the base of the uts directory tree (usually /usr/src/uts).
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterUTSBASE = ../..
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Define the module and object file sets.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserMODULE = audiohd
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserOBJECTS = $(AUDIOHD_OBJS:%=$(OBJS_DIR)/%)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserLINTS = $(AUDIOHD_OBJS:%.o=$(LINTS_DIR)/%.ln)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCONF_SRCDIR = $(UTSBASE)/common/io/audio/sada/drv/audiohd
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterWARLOCK_OBJECTS = $(AUDIOHD_OBJS:%.o=%.ll)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterWARLOCK_OK = $(MODULE).ok
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Include common rules.
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude $(UTSBASE)/sparc/Makefile.sparc
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Overrides, lint pass one enforcement
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterCFLAGS += $(CCVERBOSE)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Depends on misc/audiosup, misc/mixer
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLDFLAGS += -dy -Nmisc/amsrc2 -Nmisc/mixer -Nmisc/audiosup
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Define targets
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserALL_TARGET = $(BINARY) $(SRC_CONFILE)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic UpdaterLINT_TARGET = $(MODULE).lint
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE_64)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Overrides
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserALL_BUILDS = $(ALL_BUILDSONLY64)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox UserDEF_BUILDS = $(DEF_BUILDSONLY64)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCLEANLINTFILES += $(LINT32_FILES)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Default build targets.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater.KEEP_STATE:
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterdef: $(DEF_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterall: $(ALL_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntclean: $(CLEAN_DEPS); \
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User $(RM) $(WARLOCK_OBJECTS) $(WARLOCK_OK)
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox Userclobber: $(CLOBBER_DEPS); \
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater $(RM) $(WARLOCK_OBJECTS) $(WARLOCK_OK)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterlint: $(LINT_DEPS)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updatermodlintlib: $(MODLINTLIB_DEPS) lint32
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox User
1e9517ea2156b990be21f44676d3370318eacf17Tinderbox Userclean.lint: $(CLEAN_LINT_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updaterinstall: $(INSTALL_DEPS)
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater
5f0c46ca5f68c2148c735aa52d7541baac249c34Tinderbox User#
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater# Include common targets.
fc2381b901eb162810f54a11cc512b95f55a60dfAutomatic Updater#
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 audiohd_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/audiohd/%.c
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_standalone: $(WARLOCK_OBJECTS) warlock_ddi.files audiohd.wlcmd
$(WARLOCK) -c audiohd.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