Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
0N/A#
2908N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
0N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
0N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
1472N/A# CDDL HEADER END
1472N/A#
1472N/A#
328N/A# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
0N/A# Use is subject to license terms.
0N/A#
0N/A# uts/sparc/audio810/Makefile
328N/A#
0N/A# ident "%Z%%M% %I% %E% SMI"
0N/A#
328N/A# This makefile drives the production of Metropolis audio driver
0N/A# (audio810) kernel module.
0N/A#
0N/A#
560N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
0N/A#
0N/AUTSBASE = ../..
0N/A
0N/A#
0N/A# Define the module and object file sets.
0N/A#
0N/AMODULE = audio810
560N/AOBJECTS = $(AUDIO810_OBJS:%=$(OBJS_DIR)/%)
0N/ALINTS = $(AUDIO810_OBJS:%.o=$(LINTS_DIR)/%.ln)
0N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
328N/ACONF_SRCDIR = $(UTSBASE)/common/io/audio/sada/drv/audio810
0N/AWARLOCK_OUT = $(AUDIO810_OBJS:%.o=%.ll)
0N/AWARLOCK_OK = $(MODULE).ok
2796N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
2796N/A
2796N/A#
2796N/A# Include common rules.
2796N/A#
2796N/Ainclude $(UTSBASE)/sparc/Makefile.sparc
2796N/A
2796N/A#
2796N/A# Overrides, lint pass one enforcement
2796N/A#
2796N/ACFLAGS += $(CCVERBOSE)
2796N/A
2796N/A#
2796N/A# Depends on misc/audiosup, misc/mixer
2796N/A#
2796N/ALDFLAGS += -dy -Nmisc/amsrc2 -Nmisc/mixer -Nmisc/audiosup
0N/A
0N/A#
328N/A# Define targets
0N/A#
328N/AALL_TARGET = $(BINARY) $(SRC_CONFILE)
0N/ALINT_TARGET = $(MODULE).lint
0N/AINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE_64)
328N/A
0N/A#
0N/A# Overrides
328N/A#
0N/AALL_BUILDS = $(ALL_BUILDSONLY64)
328N/ADEF_BUILDS = $(DEF_BUILDSONLY64)
0N/ACLEANLINTFILES += $(LINT32_FILES)
0N/A
0N/A#
328N/A# For now, disable these lint checks; maintainers should endeavor
0N/A# to investigate and remove these for maximum lint coverage.
0N/A# Please do not carry these forward to new Makefiles.
560N/A#
560N/ALINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
560N/A
560N/A#
328N/A# Default build targets.
328N/A#
328N/A.KEEP_STATE:
328N/A
328N/Adef: $(DEF_DEPS)
328N/A
0N/Aall: $(ALL_DEPS)
328N/A
328N/Aclean: $(CLEAN_DEPS)
0N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
0N/A
1821N/Aclobber: $(CLOBBER_DEPS)
1821N/A $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
1821N/A
1821N/Alint: $(LINT_DEPS)
1821N/A
328N/Amodlintlib: $(MODLINTLIB_DEPS) lint32
0N/A
328N/Aclean.lint: $(CLEAN_LINT_DEPS)
328N/A
328N/Ainstall: $(INSTALL_DEPS)
328N/A
328N/A#
328N/A# Include common targets.
328N/A#
328N/Ainclude $(UTSBASE)/sparc/Makefile.targ
328N/A
328N/A#
328N/A# Defines for local commands.
328N/A#
0N/ASCCS = sccs
328N/ATEST = test
328N/AWLCC = wlcc
328N/ATOUCH = touch
328N/AWARLOCK = warlock
328N/A
0N/A#
328N/A# Warlock targets
328N/A#
328N/AMIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/sparc/mixer/%.ll)
328N/AAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/sparc/audiosup/%.ll)
328N/AAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/sparc/amsrc2/%.ll)
328N/A
328N/A%.wlcmd:
328N/A cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
328N/A
328N/Awarlock: $(WARLOCK_OK)
328N/A
328N/A$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
328N/A warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
328N/A audio810_with_sada.wlcmd warlock_standalone
328N/A $(WARLOCK) -c $(WLCMD_DIR)/audio810_with_sada.wlcmd $(WARLOCK_OUT) \
328N/A $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
328N/A -l ../warlock/ddi_dki_impl.ll
328N/A $(TOUCH) $(WARLOCK_OK)
328N/A
328N/A%.ll: $(UTSBASE)/common/io/audio/sada/drv/audio810/%.c
328N/A $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
328N/A
0N/Awarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files audio810.wlcmd
0N/A $(WARLOCK) -c $(WLCMD_DIR)/audio810.wlcmd $(WARLOCK_OUT) \
0N/A -l ../warlock/ddi_dki_impl.ll
328N/A
328N/Awarlock_ddi.files:
328N/A @cd ../warlock; pwd; $(MAKE) warlock
328N/A
328N/Awarlock_audiosup.files:
328N/A @cd ../audiosup; pwd; $(MAKE) warlock
328N/A
328N/Awarlock_amsrc2.files:
328N/A @cd ../amsrc2; pwd; $(MAKE) warlock
328N/A
328N/Awarlock_mixer.files:
328N/A @cd ../mixer; pwd; $(MAKE) warlock
328N/A