Makefile revision bf56214c0556fa6864189c826d39dbe156bb22a0
9174efb969475801d0dc88eee35aae40c748d450nd#
ec79b29695b183f794264bbb578c51e93d1f9b1emartin# CDDL HEADER START
6aa2272cc4af77e605ba2c4a4781f8567408b7e3pquerna#
ee508128c414648982d1cca7801f63b01a0a4f8aminfrin# The contents of this file are subject to the terms of the
a623efbff95aab78da9e030524b0fa69b054f6d0brianp# Common Development and Distribution License (the "License").
a623efbff95aab78da9e030524b0fa69b054f6d0brianp# You may not use this file except in compliance with the License.
a623efbff95aab78da9e030524b0fa69b054f6d0brianp#
a623efbff95aab78da9e030524b0fa69b054f6d0brianp# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
a623efbff95aab78da9e030524b0fa69b054f6d0brianp# or http://www.opensolaris.org/os/licensing.
a623efbff95aab78da9e030524b0fa69b054f6d0brianp# See the License for the specific language governing permissions
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm# and limitations under the License.
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm#
0b4b04d8621478ba59f0a6ba2950ddc02ab92b58colm# When distributing Covered Code, include this CDDL HEADER in each
2f1bb5376c5c4022383bb729679ca751dd75a2eabrianp# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2f1bb5376c5c4022383bb729679ca751dd75a2eabrianp# If applicable, add the following below this CDDL HEADER, with the
ad862ab5716726a2d72a292ba1dfb29566c86153brianp# fields enclosed by brackets "[]" replaced with your own identifying
ad862ab5716726a2d72a292ba1dfb29566c86153brianp# information: Portions Copyright [yyyy] [name of copyright owner]
ad862ab5716726a2d72a292ba1dfb29566c86153brianp#
347c9301068524042be654db3b2b055a9ec20633rpluem# CDDL HEADER END
347c9301068524042be654db3b2b055a9ec20633rpluem#
347c9301068524042be654db3b2b055a9ec20633rpluem#
1266e0c1535091b37a0c6ea86183094e575cb8dagregames# Copyright 2007 Sun Microsystems, Inc. All rights reserved.
1266e0c1535091b37a0c6ea86183094e575cb8dagregames# Use is subject to license terms.
29d3b95754d5730dde08bbda9dc76785894f10f8rpluem#
dfd7e0be46ab5ef5b84339b4645d60fdc44cb4a5rpluem# uts/sparc/audiohd/Makefile
dfd7e0be46ab5ef5b84339b4645d60fdc44cb4a5rpluem#
dfd7e0be46ab5ef5b84339b4645d60fdc44cb4a5rpluem# ident "%Z%%M% %I% %E% SMI"
dfd7e0be46ab5ef5b84339b4645d60fdc44cb4a5rpluem#
7461431ba407b0e1eac3d6a81440a4184e652e9fniq# This makefile drives the production of high definition audio
7461431ba407b0e1eac3d6a81440a4184e652e9fniq# driver (audiohd) kernel module.
17d53ea32c4968e47733f1c2c063ae07d280efd6jerenkrantz#
17d53ea32c4968e47733f1c2c063ae07d280efd6jerenkrantz#
17d53ea32c4968e47733f1c2c063ae07d280efd6jerenkrantz# Path to the base of the uts directory tree (usually /usr/src/uts).
2d5532b13110a8d85653da92e97795b09cc25cc2trawick#
b38565306421ff53e9f7499bc728d6df5cec294dpquernaUTSBASE = ../..
b38565306421ff53e9f7499bc728d6df5cec294dpquerna
b38565306421ff53e9f7499bc728d6df5cec294dpquerna#
b38565306421ff53e9f7499bc728d6df5cec294dpquerna# Define the module and object file sets.
3aeb30211790fef38a8297f990b7ad3b2c46ece9colm#
3aeb30211790fef38a8297f990b7ad3b2c46ece9colmMODULE = audiohd
79d1d5666b3ceb59c959b09600aa2bce32324677rpluemOBJECTS = $(AUDIOHD_OBJS:%=$(OBJS_DIR)/%)
79d1d5666b3ceb59c959b09600aa2bce32324677rpluemLINTS = $(AUDIOHD_OBJS:%.o=$(LINTS_DIR)/%.ln)
79d1d5666b3ceb59c959b09600aa2bce32324677rpluemROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
a6ea86151dd968120a12b48867d45947ef2bb9darpluemCONF_SRCDIR = $(UTSBASE)/common/io/audio/sada/drv/audiohd
a6ea86151dd968120a12b48867d45947ef2bb9darpluemWARLOCK_OUT = $(AUDIOHD_OBJS:%.o=%.ll)
a6ea86151dd968120a12b48867d45947ef2bb9darpluemWARLOCK_OK = $(MODULE).ok
a6ea86151dd968120a12b48867d45947ef2bb9darpluemWLCMD_DIR = $(UTSBASE)/common/io/warlock
a17ca1093e7dc28c1a54cfd9741f65653f5b2b19jim
a17ca1093e7dc28c1a54cfd9741f65653f5b2b19jim#
a17ca1093e7dc28c1a54cfd9741f65653f5b2b19jim# Include common rules.
fa735cac4e86858f11c0de4f7cea50fa63eab87ecolm#
fa735cac4e86858f11c0de4f7cea50fa63eab87ecolminclude $(UTSBASE)/sparc/Makefile.sparc
fa735cac4e86858f11c0de4f7cea50fa63eab87ecolm
dbb3b82abaa9c0ad199a0a3d6a7a505136137c61colm#
dbb3b82abaa9c0ad199a0a3d6a7a505136137c61colm# Overrides, lint pass one enforcement
dbb3b82abaa9c0ad199a0a3d6a7a505136137c61colm#
3d76cdd5855071bbfb95a27de7d77a8855d1e893niqCFLAGS += $(CCVERBOSE)
3d76cdd5855071bbfb95a27de7d77a8855d1e893niq
3d76cdd5855071bbfb95a27de7d77a8855d1e893niq#
3d76cdd5855071bbfb95a27de7d77a8855d1e893niq# Depends on misc/audiosup, misc/mixer
3d76cdd5855071bbfb95a27de7d77a8855d1e893niq#
3d76cdd5855071bbfb95a27de7d77a8855d1e893niqLDFLAGS += -dy -Nmisc/amsrc2 -Nmisc/mixer -Nmisc/audiosup
3d76cdd5855071bbfb95a27de7d77a8855d1e893niq
3d76cdd5855071bbfb95a27de7d77a8855d1e893niq#
bf0dec31a67271a4a67a6d3a3a9b3cdb41278390rpluem# Define targets
bf0dec31a67271a4a67a6d3a3a9b3cdb41278390rpluem#
bf0dec31a67271a4a67a6d3a3a9b3cdb41278390rpluemALL_TARGET = $(BINARY) $(SRC_CONFILE)
bf0dec31a67271a4a67a6d3a3a9b3cdb41278390rpluemLINT_TARGET = $(MODULE).lint
7612604db51e61f6ec4a6593c188e6d0640646abwroweINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE_64)
7612604db51e61f6ec4a6593c188e6d0640646abwrowe
7612604db51e61f6ec4a6593c188e6d0640646abwrowe#
7612604db51e61f6ec4a6593c188e6d0640646abwrowe# Overrides
7612604db51e61f6ec4a6593c188e6d0640646abwrowe#
7612604db51e61f6ec4a6593c188e6d0640646abwroweALL_BUILDS = $(ALL_BUILDSONLY64)
0a2c6381b34b977101327f412a4b1ddc8a361ae7rpluemDEF_BUILDS = $(DEF_BUILDSONLY64)
0a2c6381b34b977101327f412a4b1ddc8a361ae7rpluemCLEANLINTFILES += $(LINT32_FILES)
0a2c6381b34b977101327f412a4b1ddc8a361ae7rpluem
0a2c6381b34b977101327f412a4b1ddc8a361ae7rpluem#
8828f8c859fabac8c0080440392bc279877f9802rpluem# For now, disable these lint checks; maintainers should endeavor
8828f8c859fabac8c0080440392bc279877f9802rpluem# to investigate and remove these for maximum lint coverage.
8828f8c859fabac8c0080440392bc279877f9802rpluem# Please do not carry these forward to new Makefiles.
0830215c2542165c027f092c18924f2885c98b49trawick#
0830215c2542165c027f092c18924f2885c98b49trawickLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
0830215c2542165c027f092c18924f2885c98b49trawickLINTTAGS += -erroff=E_ASSIGN_NARROW_CONV
0830215c2542165c027f092c18924f2885c98b49trawick
be2abc811ae62b872703a7b43235598d641f8d8dmjc#
8f1c5a2aca731a7676bf74cdce67ec28557ec299trawick# Default build targets.
bc886ee8559b4feb30d32dc8a50ba2c013c3cc02trawick#
8f1c5a2aca731a7676bf74cdce67ec28557ec299trawick.KEEP_STATE:
9505e1a9012d92bfd2b6228e675156f44a27aa04colm
9505e1a9012d92bfd2b6228e675156f44a27aa04colmdef: $(DEF_DEPS)
3aeb30211790fef38a8297f990b7ad3b2c46ece9colm
3aeb30211790fef38a8297f990b7ad3b2c46ece9colmall: $(ALL_DEPS)
3aeb30211790fef38a8297f990b7ad3b2c46ece9colm
3aeb30211790fef38a8297f990b7ad3b2c46ece9colmclean: $(CLEAN_DEPS)
6eb3a057b5e4f046faba79104d7941552de755dacolm $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
6eb3a057b5e4f046faba79104d7941552de755dacolm
2e02c854b4531480fe3f7ab353154c99c5bd97e8jortonclobber: $(CLOBBER_DEPS)
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton
2e02c854b4531480fe3f7ab353154c99c5bd97e8jortonlint: $(LINT_DEPS)
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton
c07be90520f577cdffc0ee59a81e7f2be4ab24c6martinmodlintlib: $(MODLINTLIB_DEPS) lint32
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton
2e02c854b4531480fe3f7ab353154c99c5bd97e8jortonclean.lint: $(CLEAN_LINT_DEPS)
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton
2e02c854b4531480fe3f7ab353154c99c5bd97e8jortoninstall: $(INSTALL_DEPS)
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton
6a9a6a63bae82591ea75fc602d5260109b8fa02ccolm#
70706a4d1ead0d72a443eac1cc446a0f1a4de069colm# Include common targets.
70706a4d1ead0d72a443eac1cc446a0f1a4de069colm#
70706a4d1ead0d72a443eac1cc446a0f1a4de069colminclude $(UTSBASE)/sparc/Makefile.targ
70706a4d1ead0d72a443eac1cc446a0f1a4de069colm
70706a4d1ead0d72a443eac1cc446a0f1a4de069colm#
9cfe09f7e922f7bdf61bfe10a47e8f25145cdf92colm# Defines for local commands.
9cfe09f7e922f7bdf61bfe10a47e8f25145cdf92colm#
9cfe09f7e922f7bdf61bfe10a47e8f25145cdf92colmTEST = test
9cfe09f7e922f7bdf61bfe10a47e8f25145cdf92colmWLCC = wlcc
be2abc811ae62b872703a7b43235598d641f8d8dmjcTOUCH = touch
2e02c854b4531480fe3f7ab353154c99c5bd97e8jortonWARLOCK = warlock
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton#
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton# Warlock targets
2e02c854b4531480fe3f7ab353154c99c5bd97e8jorton#
2e02c854b4531480fe3f7ab353154c99c5bd97e8jortonMIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/sparc/mixer/%.ll)
2e02c854b4531480fe3f7ab353154c99c5bd97e8jortonAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/sparc/audiosup/%.ll)
a09378e32e823d5619f766394fcdde1cfa16c5dajimAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/sparc/amsrc2/%.ll)
a09378e32e823d5619f766394fcdde1cfa16c5dajim
a09378e32e823d5619f766394fcdde1cfa16c5dajimwarlock: $(WARLOCK_OK)
a09378e32e823d5619f766394fcdde1cfa16c5dajim
a09378e32e823d5619f766394fcdde1cfa16c5dajim$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
a09378e32e823d5619f766394fcdde1cfa16c5dajim warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
a09378e32e823d5619f766394fcdde1cfa16c5dajim $(WLCMD_DIR)/audiohd_with_sada.wlcmd warlock_standalone
ce8e09ffeb8c696f7fc6c5dfa8814c52caaac59bcolm $(WARLOCK) -c $(WLCMD_DIR)/audiohd_with_sada.wlcmd $(WARLOCK_OUT) \
ce8e09ffeb8c696f7fc6c5dfa8814c52caaac59bcolm $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
ce8e09ffeb8c696f7fc6c5dfa8814c52caaac59bcolm -l ../warlock/ddi_dki_impl.ll
ce8e09ffeb8c696f7fc6c5dfa8814c52caaac59bcolm $(TOUCH) $(WARLOCK_OK)
5340bb8547e62ec8ede44b1b086b7da37ee64eefcolm
5340bb8547e62ec8ede44b1b086b7da37ee64eefcolm%.ll: $(UTSBASE)/common/io/audio/sada/drv/audiohd/%.c
5340bb8547e62ec8ede44b1b086b7da37ee64eefcolm $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
f6e71f622ffde40c654288851ff65b8505cf7596colm
f6e71f622ffde40c654288851ff65b8505cf7596colmwarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files $(WLCMD_DIR)/audiohd.wlcmd
f6e71f622ffde40c654288851ff65b8505cf7596colm $(WARLOCK) -c $(WLCMD_DIR)/audiohd.wlcmd $(WARLOCK_OUT) \
f8ae06c7d0615d8b9441099794fe80a3f2915469colm -l ../warlock/ddi_dki_impl.ll
f8ae06c7d0615d8b9441099794fe80a3f2915469colm
f8ae06c7d0615d8b9441099794fe80a3f2915469colmwarlock_ddi.files:
6eb3a057b5e4f046faba79104d7941552de755dacolm @cd ../warlock; pwd; $(MAKE) warlock
6eb3a057b5e4f046faba79104d7941552de755dacolm
6eb3a057b5e4f046faba79104d7941552de755dacolmwarlock_audiosup.files:
6aa2272cc4af77e605ba2c4a4781f8567408b7e3pquerna @cd ../audiosup; pwd; $(MAKE) warlock
6eb3a057b5e4f046faba79104d7941552de755dacolm
be2abc811ae62b872703a7b43235598d641f8d8dmjcwarlock_amsrc2.files:
dface6840439ab84a36749f40e7773ebfdc2066ejorton @cd ../amsrc2; pwd; $(MAKE) warlock
dface6840439ab84a36749f40e7773ebfdc2066ejorton
dface6840439ab84a36749f40e7773ebfdc2066ejortonwarlock_mixer.files:
dface6840439ab84a36749f40e7773ebfdc2066ejorton @cd ../mixer; pwd; $(MAKE) warlock
1febae173a82bc2a71c3c0ba4105cf674000791bjim