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