Makefile revision ae115bc77f6fcde83175c75b4206dc2e50747966
394N/A#
394N/A# CDDL HEADER START
394N/A#
394N/A# The contents of this file are subject to the terms of the
394N/A# Common Development and Distribution License (the "License").
394N/A# You may not use this file except in compliance with the License.
394N/A#
394N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
394N/A# or http://www.opensolaris.org/os/licensing.
394N/A# See the License for the specific language governing permissions
394N/A# and limitations under the License.
394N/A#
394N/A# When distributing Covered Code, include this CDDL HEADER in each
394N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
394N/A# If applicable, add the following below this CDDL HEADER, with the
394N/A# fields enclosed by brackets "[]" replaced with your own identifying
394N/A# information: Portions Copyright [yyyy] [name of copyright owner]
394N/A#
394N/A# CDDL HEADER END
394N/A#
2790N/A#
394N/A# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
5455N/A# Use is subject to license terms.
2790N/A#
2790N/A# uts/intel/audio810/Makefile
394N/A#
394N/A#
394N/A# ident "%Z%%M% %I% %E% SMI"
394N/A#
618N/A# This makefile drives the production of Metropolis audio driver
394N/A# (audio810) kernel module.
394N/A#
844N/A#
844N/A# Path to the base of the uts directory tree (usually /usr/src/uts).
394N/A#
1258N/AUTSBASE = ../..
394N/A
2899N/A#
2899N/A# Define the module and object file sets.
3817N/A#
3817N/AMODULE = audio810
3817N/AOBJECTS = $(AUDIO810_OBJS:%=$(OBJS_DIR)/%)
394N/ALINTS = $(AUDIO810_OBJS:%.o=$(LINTS_DIR)/%.ln)
1938N/AROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
1938N/ACONF_SRCDIR = $(UTSBASE)/common/io/audio/sada/drv/audio810
2790N/AWARLOCK_OUT = $(AUDIO810_OBJS:%.o=%.ll)
2790N/AWARLOCK_OK = $(MODULE).ok
5455N/AWLCMD_DIR = $(UTSBASE)/common/io/warlock
5455N/A
5455N/A#
5455N/A# Include common rules.
5455N/A#
2790N/Ainclude $(UTSBASE)/intel/Makefile.intel
394N/A
1716N/A#
394N/A# Overrides, lint pass one enforcement
1716N/A#
394N/ACFLAGS += $(CCVERBOSE)
2790N/ADEBUG_FLGS =
5455N/A$(NOT_RELEASE_BUILD)DEBUG_DEFS += $(DEBUG_FLGS)
5455N/A
2790N/A#
394N/A# For now, disable these lint checks; maintainers should endeavor
4337N/A# to investigate and remove these for maximum lint coverage.
4337N/A# Please do not carry these forward to new Makefiles.
#
LINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
#
# Depends on misc/audiosup
#
LDFLAGS += -dy -Nmisc/amsrc2 -Nmisc/audiosup -Nmisc/mixer
#
# Define targets
#
ALL_TARGET = $(BINARY) $(SRC_CONFILE)
LINT_TARGET = $(MODULE).lint
INSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
#
# Default build targets.
#
.KEEP_STATE:
def: $(DEF_DEPS)
all: $(ALL_DEPS)
clean: $(CLEAN_DEPS)
$(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
clobber: $(CLOBBER_DEPS)
$(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
lint: $(LINT_DEPS)
modlintlib: $(MODLINTLIB_DEPS)
clean.lint: $(CLEAN_LINT_DEPS)
install: $(INSTALL_DEPS)
#
# Include common targets.
#
include $(UTSBASE)/intel/Makefile.targ
#
# Defines for local commands.
#
SCCS = sccs
TEST = test
WLCC = wlcc
TOUCH = touch
WARLOCK = warlock
#
# Warlock targets
#
MIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/intel/mixer/%.ll)
AUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/intel/audiosup/%.ll)
AMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/intel/amsrc2/%.ll)
%.wlcmd:
cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
warlock: $(WARLOCK_OK)
$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files warlock_standalone \
warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
audio810_with_sada.wlcmd
$(WARLOCK) -c $(WLCMD_DIR)/audio810_with_sada.wlcmd $(WARLOCK_OUT) \
$(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
-l ../../intel/warlock/ddi_dki_impl.ll
$(TOUCH) $(WARLOCK_OK)
%.ll: $(UTSBASE)/common/io/audio/sada/drv/audio810/%.c
$(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
warlock_standalone: $(WARLOCK_OUT) warlock_ddi.files audio810.wlcmd
$(WARLOCK) -c $(WLCMD_DIR)/audio810.wlcmd $(WARLOCK_OUT) \
-l ../../intel/warlock/ddi_dki_impl.ll
warlock_ddi.files:
@cd ../../intel/warlock; pwd; $(MAKE) warlock
warlock_audiosup.files:
@cd ../../intel/audiosup; pwd; $(MAKE) warlock
warlock_amsrc2.files:
@cd ../../intel/amsrc2; pwd; $(MAKE) warlock
warlock_mixer.files:
@cd ../../intel/mixer; pwd; $(MAKE) warlock