Makefile revision 7014882c6a3672fd0e5d60200af8643ae53c5928
fc88db23cb4b205f1efea5f5d5ae916589db5a61slive#
64154a07803c72f624008f5c77de844607fcc5a5patrikj# CDDL HEADER START
e942c741056732f50da2074b36fe59805d370650slive#
5f5d1b4cc970b7f06ff8ef6526128e9a27303d88nd# The contents of this file are subject to the terms of the
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# Common Development and Distribution License (the "License").
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# You may not use this file except in compliance with the License.
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding#
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# or http://www.opensolaris.org/os/licensing.
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# See the License for the specific language governing permissions
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding# and limitations under the License.
db479b48bd4d75423ed4a45e15b75089d1a8ad72fielding#
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# When distributing Covered Code, include this CDDL HEADER in each
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# If applicable, add the following below this CDDL HEADER, with the
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# fields enclosed by brackets "[]" replaced with your own identifying
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# information: Portions Copyright [yyyy] [name of copyright owner]
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd#
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# CDDL HEADER END
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd#
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd#
d5d794fc2f4cc9ca6d6da17cfa2cdcd8d244bacdnd# Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
7db9f691a00ead175b03335457ca296a33ddf31bnd#
fc88db23cb4b205f1efea5f5d5ae916589db5a61slive# uts/intel/audiohd/Makefile
fc88db23cb4b205f1efea5f5d5ae916589db5a61slive#
fc88db23cb4b205f1efea5f5d5ae916589db5a61slive# This makefile drives the production of high definition audio
fc88db23cb4b205f1efea5f5d5ae916589db5a61slive# driver (audiohd) kernel module.
fc88db23cb4b205f1efea5f5d5ae916589db5a61slive#
fc88db23cb4b205f1efea5f5d5ae916589db5a61slive#
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd# Path to the base of the uts directory tree (usually /usr/src/uts).
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd#
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndUTSBASE = ../..
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd#
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd# Define the module and object file sets.
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd#
f8aafb8bd93472f7da5a7c158958ee09e4176c8etrawickMODULE = audiohd
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndOBJECTS = $(AUDIOHD_OBJS:%=$(OBJS_DIR)/%)
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndLINTS = $(AUDIOHD_OBJS:%.o=$(LINTS_DIR)/%.ln)
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndCONF_SRCDIR = $(UTSBASE)/common/io/audio/drv/audiohd
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jimWARLOCK_OUT = $(AUDIOHD_OBJS:%.o=%.ll)
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jimWARLOCK_OK = $(MODULE).ok
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndWLCMD_DIR = $(UTSBASE)/common/io/warlock
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd#
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd# Include common rules.
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd#
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndinclude $(UTSBASE)/intel/Makefile.intel
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd#
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd# Overrides, lint pass one enforcement
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd#
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndCFLAGS += $(CCVERBOSE)
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndDEBUG_FLGS =
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd$(NOT_RELEASE_BUILD)DEBUG_DEFS += $(DEBUG_FLGS)
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd
da69c3c89e4a7fdeccf2d783a0f8bab528c2bac1rbowen#
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd# For now, disable these lint checks; maintainers should endeavor
da69c3c89e4a7fdeccf2d783a0f8bab528c2bac1rbowen# to investigate and remove these for maximum lint coverage.
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jim# Please do not carry these forward to new Makefiles.
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jim#
6ef46a5fdc5265b89e38ccd0947935b78157c790jortonLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
da69c3c89e4a7fdeccf2d783a0f8bab528c2bac1rbowen
54240e863796e3f085dd1783897201a5d99c33d9ndCERRWARN += -_gcc=-Wno-parentheses
da69c3c89e4a7fdeccf2d783a0f8bab528c2bac1rbowenCERRWARN += -_gcc=-Wno-switch
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jimCERRWARN += -_gcc=-Wno-uninitialized
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jim
6ef46a5fdc5265b89e38ccd0947935b78157c790jortonLDFLAGS += -dy -Ndrv/audio
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jim
da69c3c89e4a7fdeccf2d783a0f8bab528c2bac1rbowen#
15fed63a9e5d0f010f6e6506aa9edf7962835f53jim# Define targets
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jim#
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jimALL_TARGET = $(BINARY) $(SRC_CONFILE)
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jimLINT_TARGET = $(MODULE).lint
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd#
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd# Default build targets.
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jim#
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jim.KEEP_STATE:
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jim
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jimdef: $(DEF_DEPS)
15fed63a9e5d0f010f6e6506aa9edf7962835f53jim
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jimall: $(ALL_DEPS)
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jim
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jimclean: $(CLEAN_DEPS)
67139e2d50d1e11558d87f7042f61cb04bb0d1d2jim $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndclobber: $(CLOBBER_DEPS)
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndlint: $(LINT_DEPS)
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndmodlintlib: $(MODLINTLIB_DEPS)
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndclean.lint: $(CLEAN_LINT_DEPS)
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndinstall: $(INSTALL_DEPS)
326a65297c83c82414fe53aa055623a93193e0d1rederpj
290228013c4ecb5418d70556d6557c93ff043856kess#
326a65297c83c82414fe53aa055623a93193e0d1rederpj# Include common targets.
326a65297c83c82414fe53aa055623a93193e0d1rederpj#
326a65297c83c82414fe53aa055623a93193e0d1rederpjinclude $(UTSBASE)/intel/Makefile.targ
326a65297c83c82414fe53aa055623a93193e0d1rederpj
326a65297c83c82414fe53aa055623a93193e0d1rederpj#
326a65297c83c82414fe53aa055623a93193e0d1rederpj# Defines for local commands.
326a65297c83c82414fe53aa055623a93193e0d1rederpj#
326a65297c83c82414fe53aa055623a93193e0d1rederpjWARLOCK = warlock
326a65297c83c82414fe53aa055623a93193e0d1rederpjWLCC = wlcc
326a65297c83c82414fe53aa055623a93193e0d1rederpjTOUCH = touch
326a65297c83c82414fe53aa055623a93193e0d1rederpjTEST = test
326a65297c83c82414fe53aa055623a93193e0d1rederpj
326a65297c83c82414fe53aa055623a93193e0d1rederpj#
326a65297c83c82414fe53aa055623a93193e0d1rederpj# lock_lint rules
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd#
9cd774340b4867bf4803ab6998450c8d39d0c0c3ndAUDIOHD_FILES = $(AUDIOHD_OBJS:%.o=../audiohd/%.ll)
9cd774340b4867bf4803ab6998450c8d39d0c0c3nd
fc88db23cb4b205f1efea5f5d5ae916589db5a61slivewarlock: $(WARLOCK_OK)
fc88db23cb4b205f1efea5f5d5ae916589db5a61slive
eb2fc080554a5d870ca8f67296256d8781ac0a75slive$(WARLOCK_OK): $(WARLOCK_OUT) $(WLCMD_DIR)/audiohd.wlcmd warlock_ddi.files
fc88db23cb4b205f1efea5f5d5ae916589db5a61slive $(WARLOCK) -c $(WLCMD_DIR)/audiohd.wlcmd $(WARLOCK_OUT) \
ea8a727ff298d2f5368b55b7ae8d87091ae106e7nd -l ../warlock/ddi_dki_impl.ll
23819e87bf36fbb02a63119408034b3818413983patrikj $(TOUCH) $@
fc88db23cb4b205f1efea5f5d5ae916589db5a61slive
0827bb5e74b4053883d808b205248e8966536665trawick%.ll: $(UTSBASE)/common/io/audio/drv/audiohd/audiohd.c \
f8aafb8bd93472f7da5a7c158958ee09e4176c8etrawick $(UTSBASE)/common/io/audio/drv/audiohd/audiohd.h
fc88db23cb4b205f1efea5f5d5ae916589db5a61slive $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
fc88db23cb4b205f1efea5f5d5ae916589db5a61slive
fc88db23cb4b205f1efea5f5d5ae916589db5a61slivewarlock_ddi.files:
a646b97929695e9b76c128c5bea1284f3fb9203ecovener cd ../warlock; pwd; $(MAKE) warlock
a646b97929695e9b76c128c5bea1284f3fb9203ecovener