Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews#
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater# CDDL HEADER START
71bd43eebd9d6e42dbcae62b730f5b6508d5acd8Automatic Updater#
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# The contents of this file are subject to the terms of the
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# Common Development and Distribution License (the "License").
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater# You may not use this file except in compliance with the License.
0bddff542cf2ae1b6595020f2f72ca482c6b438fAutomatic Updater#
75b70a68aefaa17ac4e768d5ed85d2f50d471490Automatic Updater# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater# or http://www.opensolaris.org/os/licensing.
ea854b585041ad19f70f7af15e08144ef2c2bd1bMark Andrews# See the License for the specific language governing permissions
78cb74fab4665da2e2641ba909c6f59f74cc4193Automatic Updater# and limitations under the License.
c89d02f2fb4c06168236d600e86831cff324f763Mark Andrews#
90ff38a0d8deaf5f9c2aa5916d99b2e572d28738Automatic Updater# When distributing Covered Code, include this CDDL HEADER in each
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ac4e70ff8955669341f435bc0a734a17c01af124Mark Andrews# If applicable, add the following below this CDDL HEADER, with the
6c6a121295b30772cbf3dd75a51fb9d883051a0eAutomatic Updater# fields enclosed by brackets "[]" replaced with your own identifying
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater#
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# CDDL HEADER END
56874aef380a64a2c183b7c282c3e7a361d67fa1Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater# uts/sparc/audiocs/Makefile
3cc98b8ecedcbc8465f1cf2740b966b315662430Automatic Updater#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
96713299d08c0735c18ebe8772dd2cc1ecd4356aAutomatic Updater#
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater#ident "%Z%%M% %I% %E% SMI"
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# This makefile drives the production of the Crystal 4231
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# audio driver (audiocs) kernel module.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# sparc architecture dependent
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Path to the base of the uts directory tree (usually /usr/src/uts).
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterUTSBASE = ../..
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Define the module and object file sets.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterMODULE = audiocs
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntOBJECTS = $(AUDIOCS_OBJS:%=$(OBJS_DIR)/%)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLINTS = $(AUDIOCS_OBJS:%.o=$(LINTS_DIR)/%.ln)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterROOTMODULE = $(ROOT_DRV_DIR)/$(MODULE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONF_SRCDIR = $(UTSBASE)/sun/io/audio/sada/drv/audiocs
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntWARLOCK_OUT = $(AUDIOCS_OBJS:%.o=%.ll)
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterWARLOCK_OK = $(MODULE).ok
2d2dc37599979c83495510f8af8d1756753aa2c5Automatic UpdaterWLCMD_DIR = $(UTSBASE)/common/io/warlock
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Include common rules.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updaterinclude $(UTSBASE)/sparc/Makefile.sparc
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater#
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# Define targets
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater#
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterALL_TARGET = $(BINARY) $(SRC_CONFILE)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLINT_TARGET = $(MODULE).lint
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews#
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews# Overrides
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington#
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic UpdaterCFLAGS += $(CCVERBOSE)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater#
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# Depends on misc/audiosup and misc/mixer
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterLDFLAGS += -dy -Nmisc/amsrc2 -Nmisc/audiosup -Nmisc/mixer
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic Updater#
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# For now, disable these lint checks; maintainers should endeavor
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# to investigate and remove these for maximum lint coverage.
1a06700908f5a1d9f4a8d51285a0fd971e2f9117Automatic Updater# Please do not carry these forward to new Makefiles.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
db5b7e2cdf150c46e8242d3e2e3ad3f5c7300258Automatic UpdaterLINTTAGS += -erroff=E_BAD_PTR_CAST_ALIGN
4b2cb1422c7c600fbc13b1cb06a8b4693bc11af8Mark Andrews
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Default build targets.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater.KEEP_STATE:
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsdef: $(DEF_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonall: $(ALL_DEPS)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterclean: $(CLEAN_DEPS)
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updaterclobber: $(CLOBBER_DEPS)
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater $(RM) $(WARLOCK_OUT) $(WARLOCK_OK)
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater
55e03fc54708d97917bf26639b987f759bdc1f44Automatic Updaterlint: $(LINT_DEPS)
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updatermodlintlib: $(MODLINTLIB_DEPS)
2a31bd531072824ef252c18303859d6af7451b00Francis Dupont
52367885450d8f61d4f2d63292beb15ba8f39ac7Automatic Updaterclean.lint: $(CLEAN_LINT_DEPS)
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater
2a31bd531072824ef252c18303859d6af7451b00Francis Dupontinstall: $(INSTALL_DEPS)
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
52367885450d8f61d4f2d63292beb15ba8f39ac7Automatic Updater#
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater# Include common targets.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updaterinclude $(UTSBASE)/sparc/Makefile.targ
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater#
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater# Defines for local commands.
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater#
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic UpdaterSCCS = sccs
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic UpdaterTEST = test
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic UpdaterWLCC = wlcc
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsTOUCH = touch
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic UpdaterWARLOCK = warlock
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater# Warlock targets
9cd5eb6fe0f26d65724b99216cb31dcdd12e4afdAutomatic Updater#
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterMIXER_FILES = $(MIXER_OBJS:%.o=$(UTSBASE)/sparc/mixer/%.ll)
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterAUDIO_SUP_FILES = $(AUDIO_SUP_OBJS:%.o=$(UTSBASE)/sparc/audiosup/%.ll)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic UpdaterAMSRC2_FILES = $(AMSRC2_OBJS:%.o=$(UTSBASE)/sparc/amsrc2/%.ll)
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater%.wlcmd:
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
fe80a4909bf62b602feaf246866e9d29f7654194Automatic Updater
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updaterwarlock: $(WARLOCK_OK)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
aa1d397c4736cd86540555193d71e55fa3b37b2aMark Andrews warlock_standalone audiocs_with_sada.wlcmd
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(WARLOCK) -c $(WLCMD_DIR)/audiocs_with_sada.wlcmd $(WARLOCK_OUT) \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater -l ../warlock/ddi_dki_impl.ll
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater $(TOUCH) $(WARLOCK_OK)
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater%.ll: $(UTSBASE)/sun/io/audio/sada/drv/audiocs/%.c
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater $(WLCC) $(CPPFLAGS) -DDEBUG -o $@ $<
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonwarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files audiocs.wlcmd
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater $(WARLOCK) -c $(WLCMD_DIR)/audiocs.wlcmd $(WARLOCK_OUT) \
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updater -l ../warlock/ddi_dki_impl.ll
0df8ead472f207020f8da22a185fe4b945248ab8Automatic Updater
e8c7dc2a5ce48f11c07a67c9923eeb8f419ff19fEvan Huntwarlock_ddi.files:
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater @cd ../warlock; pwd; $(MAKE) warlock
0ce87e5749aabb8eef1e0a37e4bd6e6ffa1d7196Automatic Updater
0df8ead472f207020f8da22a185fe4b945248ab8Automatic Updaterwarlock_audiosup.files:
2bb3422dc683c013db7042f5736240de6b86f182Automatic Updater @cd ../audiosup; pwd; $(MAKE) warlock
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater
0df8ead472f207020f8da22a185fe4b945248ab8Automatic Updaterwarlock_amsrc2.files:
3b6e4c84a525b0b3fc9e8affd8bb9fa5c000345fAutomatic Updater @cd ../amsrc2; pwd; $(MAKE) warlock
19b3dc94bce93fa76bd7e066f9298630dbc9dcb4Automatic Updater
d145b64cacc8d9cda51f9924ec70cd4661c3e2cfAutomatic Updaterwarlock_mixer.files:
ce9cad6bb04869c5e94d9dc721032b25117f9210Automatic Updater @cd ../mixer; pwd; $(MAKE) warlock
59528addd704f8d5757b54e540520f74e588a7c7Automatic Updater