Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# CDDL HEADER START
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# The contents of this file are subject to the terms of the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Common Development and Distribution License (the "License").
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You may not use this file except in compliance with the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# or http://www.opensolaris.org/os/licensing.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# See the License for the specific language governing permissions
0662ed52e814f8f08ef0e09956413a792584eddffuankg# and limitations under the License.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# When distributing Covered Code, include this CDDL HEADER in each
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# If applicable, add the following below this CDDL HEADER, with the
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# fields enclosed by brackets "[]" replaced with your own identifying
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# information: Portions Copyright [yyyy] [name of copyright owner]
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
16b55a35cff91315d261d1baa776138af465c4e4fuankg# CDDL HEADER END
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
b65f699e40d114c470f5d6e4b8e4015385060ddfbnicholes# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
7b3cfb4974fa8dea788092c859d8d38c49f6ab0cbnicholes# Use is subject to license terms.
16b55a35cff91315d261d1baa776138af465c4e4fuankg#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# uts/sparc/audio1575/Makefile
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#ident "%Z%%M% %I% %E% SMI"
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# This makefile drives the production of the M1575 audio driver
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# (audio1575) kernel module.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Path to the base of the uts directory tree (usually /usr/src/uts).
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesUTSBASE = ../..
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Define the module and object file sets.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMODULE = audio1575
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesOBJECTS = $(AUDIO1575_OBJS:%=$(OBJS_DIR)/%)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINTS = $(AUDIO1575_OBJS:%.o=$(LINTS_DIR)/%.ln)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCONF_SRCDIR = $(UTSBASE)/sun/io/audio/sada/drv/audio1575
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesWARLOCK_OUT = $(AUDIO1575_OBJS:%.o=%.ll)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesWARLOCK_OK = $(MODULE).ok
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesWLCMD_DIR = $(UTSBASE)/common/io/warlock
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Include common rules.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinclude $(UTSBASE)/sparc/Makefile.sparc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Overrides, lint pass one enforcement
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCFLAGS += $(CCVERBOSE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Depends on misc/audiosup
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLDFLAGS += -dy -Nmisc/amsrc2 -Nmisc/mixer -Nmisc/audiosup
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Define targets
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesALL_TARGET = $(BINARY) $(SRC_CONFILE)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINT_TARGET = $(MODULE).lint
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE_64)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Overrides
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankgALL_BUILDS = $(ALL_BUILDSONLY64)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesDEF_BUILDS = $(DEF_BUILDSONLY64)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesCLEANLINTFILES += $(LINT32_FILES)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# For now, disable these lint checks; maintainers should endeavor
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# to investigate and remove these for maximum lint coverage.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Please do not carry these forward to new Makefiles.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Default build targets.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes.KEEP_STATE:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesdef: $(DEF_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesall: $(ALL_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclean: $(CLEAN_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclobber: $(CLOBBER_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeslint: $(LINT_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
0a39e7683f6611d66c55712f50bb240428d832a1bnicholesmodlintlib: $(MODLINTLIB_DEPS) lint32
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesclean.lint: $(CLEAN_LINT_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesinstall: $(INSTALL_DEPS)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Include common targets.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankginclude $(UTSBASE)/sparc/Makefile.targ
0662ed52e814f8f08ef0e09956413a792584eddffuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg# Defines for local commands.
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesTEST = test
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesWLCC = wlcc
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesTOUCH = touch
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesWARLOCK = warlock
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# Warlock targets
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes# NOTE: there will be warnings about q_lock which is the simulated
0662ed52e814f8f08ef0e09956413a792584eddffuankg# rwlock of the taskq framework
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes#
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesMIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/sparc/mixer/%.ll)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/sparc/audiosup/%.ll)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholesAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/sparc/amsrc2/%.ll)
0662ed52e814f8f08ef0e09956413a792584eddffuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeswarlock: $(WARLOCK_OK)
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files warlock_standalone \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(WLCMD_DIR)/audio1575_with_sada.wlcmd
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(WARLOCK) -c $(WLCMD_DIR)/audio1575_with_sada.wlcmd $(WARLOCK_OUT) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes -l ../warlock/ddi_dki_impl.ll
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(TOUCH) $(WARLOCK_OK)
0662ed52e814f8f08ef0e09956413a792584eddffuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes%.ll: $(UTSBASE)/sun/io/audio/sada/drv/audio1575/%.c
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeswarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files \
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(WLCMD_DIR)/audio1575.wlcmd
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes $(WARLOCK) -c $(WLCMD_DIR)/audio1575.wlcmd $(WARLOCK_OUT) \
ac7985784d08a3655291f24f711812b4d8b1cbcffuankg -l ../warlock/ddi_dki_impl.ll
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeswarlock_ddi.files:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @cd ../warlock; pwd; $(MAKE) warlock
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeswarlock_audiosup.files:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @cd ../audiosup; pwd; $(MAKE) warlock
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeswarlock_amsrc2.files:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @cd ../amsrc2; pwd; $(MAKE) warlock
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes
bb2b38cd44b032118359afbc743efbea12f48e61bnicholeswarlock_mixer.files:
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes @cd ../mixer; pwd; $(MAKE) warlock
bb2b38cd44b032118359afbc743efbea12f48e61bnicholes