Makefile revision c525fe66b825cb3e34dd0431b0ef810f2b209048
7cb128dc4cae2a03a742f63ba7afee23c78e3af0Phil Carmody#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# CDDL HEADER START
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# The contents of this file are subject to the terms of the
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# Common Development and Distribution License (the "License").
a85473f7c11c8734bdee9c2cbe4b767f144a18aaTimo Sirainen# You may not use this file except in compliance with the License.
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# or http://www.opensolaris.org/os/licensing.
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# See the License for the specific language governing permissions
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# and limitations under the License.
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# When distributing Covered Code, include this CDDL HEADER in each
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# If applicable, add the following below this CDDL HEADER, with the
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# fields enclosed by brackets "[]" replaced with your own identifying
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# information: Portions Copyright [yyyy] [name of copyright owner]
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# CDDL HEADER END
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# Use is subject to license terms.
3605fb862d3d15e3e747b0cd34729d61acbb332cTimo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# uts/i86pc/audioixp/Makefile
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#pragma ident "%Z%%M% %I% %E% SMI"
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# This makefile drives the production of high definition audio
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# driver (audioixp) kernel module.
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# Path to the base of the uts directory tree (usually /usr/src/uts).
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo SirainenUTSBASE = ../..
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# Define the module and object file sets.
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo SirainenMODULE = audioixp
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo SirainenOBJECTS = $(AUDIOIXP_OBJS:%=$(OBJS_DIR)/%)
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo SirainenLINTS = $(AUDIOIXP_OBJS:%.o=$(LINTS_DIR)/%.ln)
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo SirainenROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo SirainenCONF_SRCDIR = $(UTSBASE)/common/io/audio/sada/drv/audioixp
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# Include common rules.
0219a05495ca78d0ccc2a4d5dcfcf17aa859481fTimo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Siraineninclude $(UTSBASE)/i86pc/Makefile.i86pc
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen
0219a05495ca78d0ccc2a4d5dcfcf17aa859481fTimo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen# Overrides, lint pass one enforcement
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
fd32c46c360e61de2c957c3d2241eaacab7b3eecTimo SirainenCFLAGS += $(CCVERBOSE)
fd32c46c360e61de2c957c3d2241eaacab7b3eecTimo SirainenDEBUG_FLGS =
fd32c46c360e61de2c957c3d2241eaacab7b3eecTimo Sirainen$(NOT_RELEASE_BUILD)DEBUG_DEFS += $(DEBUG_FLGS)
fd32c46c360e61de2c957c3d2241eaacab7b3eecTimo Sirainen
fd32c46c360e61de2c957c3d2241eaacab7b3eecTimo Sirainen#
fd32c46c360e61de2c957c3d2241eaacab7b3eecTimo Sirainen# Depends on misc/audiosup
ce0e25f26d6e67480ee39b5ca0ad634fa60c4605Timo Sirainen#
ce0e25f26d6e67480ee39b5ca0ad634fa60c4605Timo SirainenLDFLAGS += -dy -Nmisc/amsrc2 -Nmisc/audiosup -Nmisc/mixer
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen
ce0e25f26d6e67480ee39b5ca0ad634fa60c4605Timo Sirainen#
ce0e25f26d6e67480ee39b5ca0ad634fa60c4605Timo Sirainen# Define targets
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo SirainenALL_TARGET = $(BINARY) $(SRC_CONFILE)
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo SirainenLINT_TARGET = $(MODULE).lint
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo SirainenINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
299451d50b891c83f4f5d921bc22715f24094236Timo Sirainen# Default build targets.
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen.KEEP_STATE:
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen
a85473f7c11c8734bdee9c2cbe4b767f144a18aaTimo Sirainendef: $(DEF_DEPS)
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainenall: $(ALL_DEPS)
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainenclean: $(CLEAN_DEPS)
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainenclobber: $(CLOBBER_DEPS)
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainenlint: $(LINT_DEPS)
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen
299451d50b891c83f4f5d921bc22715f24094236Timo Sirainenmodlintlib: $(MODLINTLIB_DEPS)
299451d50b891c83f4f5d921bc22715f24094236Timo Sirainen
299451d50b891c83f4f5d921bc22715f24094236Timo Sirainenclean.lint: $(CLEAN_LINT_DEPS)
299451d50b891c83f4f5d921bc22715f24094236Timo Sirainen
299451d50b891c83f4f5d921bc22715f24094236Timo Siraineninstall: $(INSTALL_DEPS)
299451d50b891c83f4f5d921bc22715f24094236Timo Sirainen
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Sirainen#
a85473f7c11c8734bdee9c2cbe4b767f144a18aaTimo Sirainen# Include common targets.
a85473f7c11c8734bdee9c2cbe4b767f144a18aaTimo Sirainen#
7bd5b1c64cc987715bdaf8cc4907c3c37d5d7b29Timo Siraineninclude $(UTSBASE)/i86pc/Makefile.targ
a85473f7c11c8734bdee9c2cbe4b767f144a18aaTimo Sirainen