Makefile revision 4ebb14b236958cfe1ef4ff3b7a50216d9e51f997
885f47576842cf3c569315b9a48bd9f0ca03f203Automatic Updater# CDDL HEADER START
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.
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.
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]
bc0a53583d92309bebcf93c408e2f3247ebd3d3cAutomatic Updater# CDDL HEADER END
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Copyright 2006 Sun Microsystems, Inc. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# Use is subject to license terms.
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater#ident "%Z%%M% %I% %E% SMI"
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# This makefile drives the production of the Crystal 4231
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews# audio driver (audiocs) kernel module.
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson# sparc architecture dependent
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Path to the base of the uts directory tree (usually /usr/src/uts).
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan Hunt# Define the module and object file sets.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterLINTS = $(AUDIOCS_OBJS:%.o=$(LINTS_DIR)/%.ln)
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONF_SRCDIR = $(UTSBASE)/sun/io/audio/sada/drv/audiocs
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Include common rules.
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic Updater# Define targets
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterINSTALL_TARGET = $(BINARY) $(ROOTMODULE) $(ROOT_CONFFILE)
80faf1588895fd26490f82f95a7a1b771df1c324Automatic Updater# Depends on misc/audiosup and misc/mixer
59528addd704f8d5757b54e540520f74e588a7c7Automatic UpdaterLDFLAGS += -dy -Nmisc/amsrc2 -Nmisc/audiosup -Nmisc/mixer
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.
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater# Default build targets.
9174e44c14b1cb91a651fa1dc29470438c246ab9Automatic Updater# Include common targets.
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater# Defines for local commands.
ae7e54b14c946e0984c191554db9abb4893f9349Automatic Updater# Warlock targets
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)
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater cd $(WLCMD_DIR); $(TEST) -f $@ || $(SCCS) get $@
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson$(WARLOCK_OK): $(WARLOCK_OUT) warlock_ddi.files \
f2770f6b39a9b2a98afb7a11ed105f73f1570c1eAutomatic Updater warlock_audiosup.files warlock_mixer.files warlock_amsrc2.files \
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafsson $(WARLOCK) -c $(WLCMD_DIR)/audiocs_with_sada.wlcmd $(WARLOCK_OUT) \
dd65eb1efb40b1c47d57963192bfc54873b219beAutomatic Updater $(MIXER_FILES) $(AUDIO_SUP_FILES) $(AMSRC2_FILES) \
133e6d43fa82e80d3798be4de00f4540f485ec6cAutomatic Updater%.ll: $(UTSBASE)/sun/io/audio/sada/drv/audiocs/%.c
91216cff91b34c9ff6e846dc23f248219cafe660Andreas Gustafssonwarlock_standalone: $(WARLOCK_OUT) warlock_ddi.files audiocs.wlcmd